blacktulip has quit [Remote host closed the connection]
<judofyr>
whitequark: why parser no changelog?
gnufied has joined #ruby-lang
<whitequark>
judofyr: I've been going to patch up some stuff to gather changelog info from git
<whitequark>
but it's been slow
<judofyr>
whitequark: heh, I had to do the same thing for figuring out what *really* had changed between Tilt 1.3.3 and 1.3.4. it's worth it though :)
<whitequark>
judofyr: no no, I'm marking the entries which are supposed to go to changelog with [+-*] at the line begins
<whitequark>
in git log
chendo_ has quit [Excess Flood]
chendo_ has joined #ruby-lang
workmad3 has joined #ruby-lang
justinmburrous has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
D9 has quit [Ping timeout: 245 seconds]
<gnufied>
whitequark: hey there
icanhazfries has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
<bnagy>
ok this is silly
<gnufied>
bnagy: it is?
<bnagy>
item = item.dup.force_encoding('utf-8') if item.respond_to? :force_encoding
<bnagy>
YAML stuff coming in is not only frozen, it's encoded wrong :/
henrikhodne has joined #ruby-lang
henrikhodne has quit [Max SendQ exceeded]
<gnufied>
whitequark: so, I looked little bit inside parser and I do not immediately see a way of getting source location of individual tokens
henrikhodne has joined #ruby-lang
henrikhodne has quit [Max SendQ exceeded]
<gnufied>
in ripper, it is quite easy
workmad3 has quit [Ping timeout: 276 seconds]
henrikhodne has joined #ruby-lang
<gnufied>
may be parser wasn't designed for that. but what I need is, after lexing, each tokens location. so as I know where class Foo is defined, so on and so forth
krombr has joined #ruby-lang
face has joined #ruby-lang
sv has joined #ruby-lang
sv has quit [Changing host]
sv has joined #ruby-lang
corundum has quit [Disconnected by services]
tomzx_mac has quit [Ping timeout: 245 seconds]
corundum has joined #ruby-lang
djinni`_ has joined #ruby-lang
tdy_ has joined #ruby-lang
matti_ has joined #ruby-lang
jtoy_ has joined #ruby-lang
mfn has joined #ruby-lang
_thufir_ has quit [Read error: Connection reset by peer]
perryh has joined #ruby-lang
Raynes_ has joined #ruby-lang
perryh is now known as Guest88750
Rubennn_ has joined #ruby-lang
_dabradley has joined #ruby-lang
Gate_ has joined #ruby-lang
znouza has joined #ruby-lang
sluukkonen has joined #ruby-lang
fbernier_ has joined #ruby-lang
rheddry has joined #ruby-lang
jxie_ has joined #ruby-lang
amateurhuman has joined #ruby-lang
Raynes has quit [*.net *.split]
djinni` has quit [*.net *.split]
perry has quit [*.net *.split]
jtoy has quit [*.net *.split]
slightair has quit [*.net *.split]
amateurhuman_ has quit [*.net *.split]
baseonmars_ has quit [*.net *.split]
fbernier has quit [*.net *.split]
tdy has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
maloik has quit [*.net *.split]
dabradley has quit [*.net *.split]
bentis has quit [*.net *.split]
pdswan_ has quit [*.net *.split]
matti has quit [*.net *.split]
levifig has quit [*.net *.split]
Smol has quit [*.net *.split]
matti_ is now known as matti
brownies_ has joined #ruby-lang
brownies_ has joined #ruby-lang
brownies_ has quit [Changing host]
maloik_ has joined #ruby-lang
barttenbrinke has joined #ruby-lang
baseonmars_ has joined #ruby-lang
GeissT has joined #ruby-lang
vlad_starkov has joined #ruby-lang
GeissT has quit [Read error: Connection reset by peer]
GeissT has joined #ruby-lang
_Mon_Ouie_ has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby-lang
<judofyr>
whitequark: ah, that's smart
noop has quit [Ping timeout: 276 seconds]
heftig has quit [*.net *.split]
melter__ has quit [*.net *.split]
znouza_ has quit [*.net *.split]
brownies has quit [*.net *.split]
mihar has quit [*.net *.split]
mfn_ has quit [*.net *.split]
priodev_ has quit [*.net *.split]
discopig has quit [*.net *.split]
jxie has quit [*.net *.split]
FastJack has quit [*.net *.split]
Gate has quit [*.net *.split]
UziMonkey__ has quit [*.net *.split]
cschneid has quit [*.net *.split]
Rubennn has quit [*.net *.split]
priodev has joined #ruby-lang
mihar has joined #ruby-lang
slightair has joined #ruby-lang
CoverSlide has joined #ruby-lang
bentis has joined #ruby-lang
pdswan_ has joined #ruby-lang
krombr has quit [Quit: krombr]
<yorickpeterse>
morning kids
melter__ has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
krz has quit [Quit: krz]
<whitequark>
gnufied: uhm, parser is parser
cschneid has joined #ruby-lang
<whitequark>
it's not a lexer and does not provide a lexer interface (it won't make any sense)
barttenbrinke has quit [Ping timeout: 248 seconds]
<yorickpeterse>
THEY RODE IN TO A WHITE MAN'S TOWN, BRINGING BLACK MAN'S LAW
<yorickpeterse>
* town
<yorickpeterse>
oh wait
<yorickpeterse>
sad part is that the first time I watched the trailer the tune kinda stuck too much
<yorickpeterse>
so yeah, the entire movie is basically guns, the word "nigger" and a bad story
<andrewvos>
like django
barttenbrinke has joined #ruby-lang
<yorickpeterse>
yeah, but worse
<yorickpeterse>
Django was actually a good movie
<andrewvos>
hehe
<injekt>
except when quentin tarantino comes in
<andrewvos>
injekt: Did you like Inglorious Basterds?
rippa has joined #ruby-lang
<injekt>
andrewvos: meh, i dunno.. I loved the acting in it but the feels was a little slow for me
<andrewvos>
injekt: Seen Four Rooms?
<injekt>
until you know, they go in and kill everyone in the theatre
<injekt>
andrewvos: no i dont think so
dr_bob has joined #ruby-lang
<andrewvos>
injekt: It was really funny when I was young but I tried to watch it recently and just turned it off
<injekt>
:D
<andrewvos>
It's interesting how humour changes over the years. It pretty much implies that humour is just a trend, and things aren't really funny, we have just learned to find them funny.
<injekt>
the thing is, something can be funny but then all the movies do it with their own twist and it turns out its just not funny anymore
<darix>
you just have to wait until most people have forgotten about it
<darix>
and then you can reiterate over it again
<injekt>
yup that's already a trend
<andrewvos>
Like fashion
<injekt>
funny fashion
<andrewvos>
Do we really ever like things, or do w just follow trends
Domon has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
mbj has joined #ruby-lang
noop has joined #ruby-lang
benlovell has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
ikrima_ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
Swimmin__ has joined #ruby-lang
nghialv2607 has joined #ruby-lang
matti__ has joined #ruby-lang
Gate has joined #ruby-lang
Gate has quit [Changing host]
Gate has joined #ruby-lang
<andrewvos>
injekt: Have you seen End of Watch?
ikrima has quit [Ping timeout: 255 seconds]
Swimming_Bird has quit [Ping timeout: 255 seconds]
alessio_rocco has quit [Ping timeout: 260 seconds]
ryez has quit [Ping timeout: 245 seconds]
duckinator has quit [Ping timeout: 255 seconds]
rheddry has quit [Ping timeout: 260 seconds]
grobb has quit [Ping timeout: 260 seconds]
brianpWins has quit [Ping timeout: 260 seconds]
xxaM has quit [Ping timeout: 260 seconds]
Gate_ has quit [Ping timeout: 255 seconds]
tallship has quit [Ping timeout: 255 seconds]
dhruvasagar has quit [Ping timeout: 255 seconds]
matti has quit [Ping timeout: 255 seconds]
alessio_rocco has joined #ruby-lang
dhruvasagar has joined #ruby-lang
xxaM has joined #ruby-lang
brianpWins has joined #ruby-lang
<injekt>
andrewvos: yes
grobb has joined #ruby-lang
tallship has joined #ruby-lang
<andrewvos>
injekt: That movie was so col
<andrewvos>
cool*
<andrewvos>
I think I might watch Get the Gringo
<injekt>
andrewvos: yeah i thought it was awesome
levifig has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
cstrahan has joined #ruby-lang
_Mon_Ouie_ has left #ruby-lang [#ruby-lang]
duckinator has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<Mon_Ouie>
It's kind of annoying that you can't change your nickname when it isn't registered and you're here
vlad_starkov has quit [Ping timeout: 252 seconds]
guns has joined #ruby-lang
<andrewvos>
Why is it that you have to be registered in here?
<andrewvos>
Doesn't seem like a good idea for people new to computers and such
alessio_rocco has quit [*.net *.split]
noop has quit [*.net *.split]
GeissT has quit [*.net *.split]
znouza has quit [*.net *.split]
judofyr has quit [*.net *.split]
greenarrow has quit [*.net *.split]
apeiros has quit [*.net *.split]
thone has quit [*.net *.split]
chrishunt has quit [*.net *.split]
chendo_ has quit [*.net *.split]
closer has quit [*.net *.split]
brianpWins has quit [*.net *.split]
Wardrop has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
xxaM has quit [*.net *.split]
nettsundere has quit [*.net *.split]
Guest70117 has quit [*.net *.split]
mahlon has quit [*.net *.split]
cstrahan has quit [*.net *.split]
<manveru>
because we had a lot of spam issues in the past
matti__ has left #ruby-lang [#ruby-lang]
matti has joined #ruby-lang
<matti>
Jesus.
<matti>
What is this nonsense?
<matti>
[13:21:50] [FREENode] >> matti #ruby-lang Cannot change nickname while banned on channel
<matti>
Who set this here?
<andrewvos>
matti: You have to reconnect or some shit
<matti>
I had to leave this channel to change nick to be able to go back.
<matti>
How retarded is that.
<andrewvos>
Mildly
<matti>
I sit on IRC pretty much since I got my 14.400 bps modem.
<manveru>
otherwise people could spam nick changes :)
<matti>
And I am yet to see something as retarded as settings here.
malign has joined #ruby-lang
<manveru>
we're still waiting for the irc successor
<matti>
There won't be one.
<matti>
manveru: I got two screens full of matti #ruby-lang Cannot change nickname while banned on channel from Freenode services thanks to flags here.
<matti>
Seriously annoying.
fosky has quit [Remote host closed the connection]
cstrahan has joined #ruby-lang
dhruvasagar has joined #ruby-lang
44UAABGVN has joined #ruby-lang
judofyr has joined #ruby-lang
Wardrop has joined #ruby-lang
greenarrow has joined #ruby-lang
mahlon has joined #ruby-lang
brianpWins has joined #ruby-lang
closer has joined #ruby-lang
Guest70117 has joined #ruby-lang
xxaM has joined #ruby-lang
noop has joined #ruby-lang
thone has joined #ruby-lang
nettsundere has joined #ruby-lang
alessio_rocco has joined #ruby-lang
chrishunt has joined #ruby-lang
apeiros has joined #ruby-lang
GeissT has joined #ruby-lang
znouza has joined #ruby-lang
<andrewvos>
First time I saw that I thought "shit how drunk was I last night"
zz_machuga has joined #ruby-lang
<manveru>
:)
<manveru>
first time i saw that i thought i was banned
<matti>
Pro tip: /j #python then look at their flags and reproduce for Ruby.
<matti>
Thank you, kisses.
ikrima_ has quit [Quit: Computer has gone to sleep.]
<dominikh>
injekt: someone like you could never implement an irc framework
<injekt>
dominikh: psh I thought matti was talking about something programming related
<injekt>
dominikh: i know right
<injekt>
dominikh: that's why i ditched irc and did real stuff
<matti>
We could have +CLcfnrt #ruby-lang-unregistered
<matti>
injekt: You cannot ditch IRC. Its addictive.
<injekt>
matti: Heh chatting on it is yeah, but I ditched writing for the protocol because headache
<injekt>
and also because dominikh
<matti>
Ah.
<matti>
injekt: I used to look after IRC hub back at university for IRCnet.
<matti>
injekt: It was interesting.
<matti>
Anyway, my point is... that it is better to offload people to different channel with relevant /topic that has a link which explains what to do.
jds_ has quit [Ping timeout: 264 seconds]
<matti>
I got few random people doing /query and asking me why they are banned.
<injekt>
yeah
<matti>
There are a lot of folks new to IRC.
vlad_sta_ has quit [Remote host closed the connection]
<matti>
And Freenode is slightly different in its own right.
gix- has joined #ruby-lang
gix has quit [Disconnected by services]
<matti>
My 3p :)
nghialv2607 has quit [Remote host closed the connection]
jds has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby-lang
zz_machuga has left #ruby-lang [#ruby-lang]
symm- has joined #ruby-lang
jds has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Remote host closed the connection]
jds has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
benlovell has quit [Ping timeout: 252 seconds]
xxaM is now known as Guest89227
pskosinski has joined #ruby-lang
nghialv2607 has joined #ruby-lang
_elia has joined #ruby-lang
megha has joined #ruby-lang
<r0bgleeson>
matti: /msg nickserv identify <yourname> <yourpassword> , and then you can change your nick fine.
<matti>
No.
elia has quit [Ping timeout: 264 seconds]
_elia is now known as elia
<erikh>
good morning
<matti>
Yo erikh
<r0bgleeson>
what do you mean 'No.' ? that's how it works. if you cant figure it out you dont deserve help :p
<matti>
1. I am not asking for help.
<matti>
2. No, it does not work like that.
<matti>
3. Who asked you to teach me anything
<r0bgleeson>
yes it does work like that
<r0bgleeson>
oh shut up
<erikh>
whoa guys
<erikh>
relax
<matti>
4. Look at my host name and thik twice.
<matti>
5. GTFO
<matti>
;]
<r0bgleeson>
piss off
<r0bgleeson>
asshole
<erikh>
alright relax folks
<erikh>
no point is getting angry over this
<r0bgleeson>
he's being an ass
<r0bgleeson>
he just wants to moan here
<matti>
No.
<r0bgleeson>
he doesnt actually want a solution
* erikh
gives up
<matti>
erikh: Loko at what I've said to injekt about the offload channel.
<matti>
;)
<andrewvos>
That escalated quickly
<r0bgleeson>
he's an ass, he complains about a problem, he's offered a solution, and then he's like "I DIDNT WANT HELP ANYWAY."
<r0bgleeson>
complete idiot/asshole
<matti>
I did not need help.
<matti>
What made you think so?
<r0bgleeson>
then stfu about your "problems", we dont care.
<erikh>
guys can't you all jsut yell at each other in /msg or something
<matti>
"We"? Its you who have problem.
<erikh>
before someone with an @ makes this more about ruby
<erikh>
forcefully?
<erikh>
c'mon. you're both cool people. act like it.
<judofyr>
HEY ERIKH
<erikh>
judofyr: HI
<judofyr>
I HAVE A PLAN
<judofyr>
LET'S JUST TALK VERY LOUD
<erikh>
OK
<judofyr>
IT USUALLY SOLVES ALL MY PROBLEMS
<erikh>
I JUST WOKE UP
<judofyr>
ALTHOUGHT NOW I REGRET THAT I REMAPPED CAPS-LOCK TO CTRL
<andrewvos>
You wake up at 5?
<erikh>
JUST USE SHIFT IT'S A LOT LESS TROUBLE
<erikh>
andrewvos: today, yeah
<erikh>
4:30 actually.
<yorickpeterse>
judofyr: STOP BEING A SISSY
<yorickpeterse>
ENJOY THE NECKBEARD TRAIN. NEXT STOP IS COLMAQ STATION
<yorickpeterse>
or colmack, whatever it was
<r0bgleeson>
wow this place has gone to shit.
r0bgleeson has left #ruby-lang ["WeeChat 0.3.8"]
<yorickpeterse>
lol wat
<judofyr>
hahaha
<yorickpeterse>
but yeah, matti chill out
<matti>
?
<matti>
What have I done?
<matti>
;d
<yorickpeterse>
above conversation, you're not stupid
<matti>
I was about to apologise to him for being an arse.
<yorickpeterse>
don't make me link to whitequark's IRC keylogger
<matti>
But he quit :<
<yorickpeterse>
privmsg
<matti>
He is ignoring me ;p
<matti>
Anyway.
<matti>
Sorry for being an arse :)
<injekt>
FITE
<matti>
Bad day, so sincere apologies.
<matti>
Yet, I'd like us to have offload channel.
<injekt>
I arrived late, sigh
<yorickpeterse>
#ruby-rage
<judofyr>
matti: what's the #ruby-lang-unregistered thing you were talking about?
<injekt>
#ruby-lol
<matti>
judofyr: #python has similar limitations set e.g. for peolpe whom are not registered.
<matti>
judofyr: But instead of blocking them.
<matti>
judofyr: It will move you to an offload channel.
<judofyr>
ah
<judofyr>
that seems useful
<matti>
judofyr: I got asked many times by random people why they are banned, they joined IRC first time in their life.
<judofyr>
although isn't that just #ruby? :)
<matti>
judofyr: We could have small page hosted somewhere, or link to Freenode's help page, that explains what to do.
blacktulip has joined #ruby-lang
toertore has joined #ruby-lang
<gnufied>
we had several pages hosted. they go nowhere.
<gnufied>
:-)
dr_bob has quit [Quit: Leaving.]
matti__ has joined #ruby-lang
<gnufied>
not in this regard, but I am just pointing out. depending on iRC client, people might not see status message
thebastl_ has joined #ruby-lang
<gnufied>
apeiros was hosting bunch of #ruby-lang and #ruby-pro pages IIRC
<erikh>
it's not the end of the world guys
ngw_ has joined #ruby-lang
<gnufied>
erikh: are you sure? :P
<apeiros>
only ruby-pro. and I somehow lost control over ruby-pro.(org?)
<erikh>
gnufied: ya'll are making me wonder
corundum has quit [Disconnected by services]
Taranis_ has joined #ruby-lang
<apeiros>
gnufied: of course he's sure. the world ended in december 2012
<apeiros>
didn't you get the notice from the mayans?
<erikh>
heh
mksm_ has joined #ruby-lang
<gnufied>
so are we inside matrix now?
<apeiros>
no
<apeiros>
in the post-apocalypse
matti has quit [Disconnected by services]
corundum has joined #ruby-lang
* yorickpeterse
keeps typing acitive_record
<apeiros>
aciditive_record?
djinni` has joined #ruby-lang
andrewvo1 has joined #ruby-lang
<injekt>
adictive_record?
matti__ has left #ruby-lang [#ruby-lang]
matti has joined #ruby-lang
<yorickpeterse>
hurrhurr
<matti>
Just got hit by the same problem ;/
<yorickpeterse>
I may live in NL but not everybody here is a crack infested junky
<matti>
Unable to change nick while banned here, and NickServ refuses to identify me for nick I do not registered for.
<yorickpeterse>
there's no way you can work around this by using separate modules, class method calls *have to* be evaluated when included, not when defined
benlovell has quit [Read error: Connection reset by peer]
<erikh>
does _ import it into the local namespace?
<dominikh>
no
<dominikh>
_ imports for its side effects
<erikh>
oh, like a mixin?
krombr has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
<dominikh>
no
<erikh>
ok I am dumb then
<erikh>
explain to me like I'm 5.
<dominikh>
a package can have init functions
<injekt>
erikh: pq hooks into database/sql, I dont use it anywhere, so I import it for its side effects only
<dominikh>
that eg register a driver
<erikh>
ah ok
<injekt>
if I didn't have the _ go would complain about a package I imported but didn't use
<dominikh>
I sure hope my 5yo will now the words init and driver
<dominikh>
*know
<injekt>
You have a 5yo?
<erikh>
gotcha
<yorickpeterse>
dominikh is a real casanova
<dominikh>
no injekt, I do not.
nghialv2_ has quit [Ping timeout: 252 seconds]
<dominikh>
can't afford one
<judofyr>
I like Go too, but I really wish it had a Maybe-type
<judofyr>
or at least something better than "err != nil"
<dominikh>
it's a C, not a haskell :-)
<erikh>
love getting 13M/s on this new intertube
breakingthings has quit [*.net *.split]
blacktul_ has quit [*.net *.split]
djinni` has quit [*.net *.split]
jaimef_ has quit [*.net *.split]
thebastl_ has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
gix- has quit [*.net *.split]
levifig has quit [*.net *.split]
krz has quit [*.net *.split]
flori has quit [*.net *.split]
cschneid has quit [*.net *.split]
maloik_ has quit [*.net *.split]
brownies has quit [*.net *.split]
tdy_ has quit [*.net *.split]
justinmburrous has quit [*.net *.split]
dezasseis has quit [*.net *.split]
stardiviner_ has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
jacknagel__ has quit [*.net *.split]
dumfries has quit [*.net *.split]
mitchty_ has quit [*.net *.split]
grandy__ has quit [*.net *.split]
_dumfries has quit [*.net *.split]
Paradox has quit [*.net *.split]
achiu has quit [*.net *.split]
hagebake has quit [*.net *.split]
shame has quit [*.net *.split]
kith has quit [*.net *.split]
<dominikh>
byte?
My_Hearing has joined #ruby-lang
<erikh>
yes
<dominikh>
damn
<dominikh>
I thought you're American
<erikh>
they just emailed me one day
<erikh>
"we doubled your bandwidth, reboot the router to get it"
brownies has joined #ruby-lang
brownies has quit [Changing host]
brownies has joined #ruby-lang
<erikh>
they of course emailed the account that came with the internet, which I never use
maloik has joined #ruby-lang
<dominikh>
I didn't know America even had those kind of speeds
<erikh>
so it was there for a good month before I noticed it
krombr has quit [Client Quit]
<erikh>
yeah, recent development really
<erikh>
living in silicon valley has advantages
flori has joined #ruby-lang
<dominikh>
even I only have 12.5
<erikh>
oh at that rate it largely depends on the number of hops
<erikh>
probably stanford's serving a mirror or something
<yorickpeterse>
fiber bishes
<dominikh>
100Mbps
<dominikh>
so 12.5 sharp
nghialv2607 has joined #ruby-lang
<erikh>
without compression
<dominikh>
erikh: how much up?
<yorickpeterse>
eh, wouldn't that be more around 9,8 MB/sec?
<erikh>
dominikh: not much, around 2M/s
<erikh>
peak
<dominikh>
yorickpeterse: why?
<erikh>
yorickpeterse: like I said, tcp features
<yorickpeterse>
dominikh: generally it's rounded down
<yorickpeterse>
so over here when an ISP says "100 Mbps" it generally means between 9,5 and 10 MB/sec
<dominikh>
we're German.
<yorickpeterse>
but never more
<dominikh>
100/8 is 12.5 sharp.
yibe_ has quit [Ping timeout: 256 seconds]
bcardarella has quit [Ping timeout: 256 seconds]
whitequark has quit [Ping timeout: 256 seconds]
dvorak has quit [Ping timeout: 256 seconds]
joast has quit [Ping timeout: 256 seconds]
dlackty____ has quit [Ping timeout: 256 seconds]
ammar has quit [Ping timeout: 256 seconds]
<dominikh>
here you either get what you pay for, or 2% and a lot of mocking
<yorickpeterse>
injekt: zzak: you two secretly love skyping or what?
MartynKeigher2 has quit [Ping timeout: 256 seconds]
My_Hearing is now known as Mon_Ouie
jsullivandigs has quit [Ping timeout: 256 seconds]
drakkhen_ has quit [Ping timeout: 256 seconds]
nghialv2607 has quit [*.net *.split]
idkazuma has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
slightair has quit [*.net *.split]
bentis has quit [*.net *.split]
pdswan_ has quit [*.net *.split]
wmoxam has quit [*.net *.split]
mucker has quit [*.net *.split]
lguardiola has quit [*.net *.split]
Guest22432 has quit [*.net *.split]
barttenb_ has quit [*.net *.split]
priodev has quit [*.net *.split]
_dabradley has quit [*.net *.split]
mistym has quit [*.net *.split]
yalue has quit [*.net *.split]
dustint has quit [*.net *.split]
fbernier has quit [*.net *.split]
carloslopes has quit [*.net *.split]
Rubennn has quit [*.net *.split]
JohnBat26 has quit [*.net *.split]
megha has quit [*.net *.split]
Raynes_ has quit [*.net *.split]
hashkey has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
jovy88_ has quit [*.net *.split]
intellitech has quit [*.net *.split]
Nisstyre has quit [*.net *.split]
eval-in has quit [*.net *.split]
face has quit [*.net *.split]
voker57 has quit [*.net *.split]
mbr has quit [*.net *.split]
FiXato has quit [*.net *.split]
aleo_ has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
corundum has quit [*.net *.split]
dr_bob1 has quit [*.net *.split]
Taranis_ has quit [*.net *.split]
stamina has quit [*.net *.split]
Gate has quit [*.net *.split]
mbj has quit [*.net *.split]
malign has quit [*.net *.split]
solars has quit [*.net *.split]
skinny_much has quit [*.net *.split]
heftig has quit [*.net *.split]
melter__ has quit [*.net *.split]
jxie_ has quit [*.net *.split]
sv has quit [*.net *.split]
mfn has quit [*.net *.split]
mytrile has quit [*.net *.split]
sora_h__ has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
singpolyma has quit [*.net *.split]
wang_ has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
sent_hil_ has quit [*.net *.split]
bougyman has quit [*.net *.split]
matled has quit [*.net *.split]
wnd has quit [*.net *.split]
jperry has quit [*.net *.split]
snk has quit [*.net *.split]
segy has quit [*.net *.split]
[dmp]_ has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
ohsix has quit [*.net *.split]
eam has quit [*.net *.split]
oddmunds has quit [*.net *.split]
nikky has quit [*.net *.split]
babinho has quit [*.net *.split]
shtirlic has quit [*.net *.split]
ddd___ has quit [*.net *.split]
thatJasonSmith has quit [*.net *.split]
nivanson_ has quit [*.net *.split]
Quatrerwin has quit [*.net *.split]
dominikh has quit [*.net *.split]
narya has quit [*.net *.split]
Xzyx987X_ has quit [*.net *.split]
KM has quit [*.net *.split]
hackeron has quit [*.net *.split]
kke_ has quit [*.net *.split]
injekt has quit [*.net *.split]
rking1 has quit [*.net *.split]
SubSpawn has quit [*.net *.split]
flexd has quit [*.net *.split]
Kero has quit [*.net *.split]
pbjorklund has quit [*.net *.split]
Asher has quit [*.net *.split]
scottschecter has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
dmwuw has quit [*.net *.split]
s0ber has quit [*.net *.split]
shinh__ has quit [*.net *.split]
badeball has quit [*.net *.split]
bri has quit [*.net *.split]
mose has quit [*.net *.split]
valeri_uF0 has quit [*.net *.split]
ndrst has quit [*.net *.split]
Guest85414_ has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
rue has quit [*.net *.split]
randym_ has quit [*.net *.split]
darix has quit [*.net *.split]
symm- has quit [*.net *.split]
hachiya has quit [*.net *.split]
a3li has quit [*.net *.split]
alessio_rocco has quit [*.net *.split]
KillerFox has quit [*.net *.split]
noop has quit [*.net *.split]
andrewvos has quit [*.net *.split]
felipe has quit [*.net *.split]
GeissT has quit [*.net *.split]
amateurhuman has quit [*.net *.split]
matti has quit [*.net *.split]
ngw has quit [*.net *.split]
znouza has quit [*.net *.split]
steez has quit [*.net *.split]
apeiros has quit [*.net *.split]
judofyr has quit [*.net *.split]
greenarrow has quit [*.net *.split]
thone has quit [*.net *.split]
chrishunt has quit [*.net *.split]
44UAABGVN has quit [*.net *.split]
closer has quit [*.net *.split]
maloik has quit [*.net *.split]
vlad_sta_ has quit [*.net *.split]
io_syl has quit [*.net *.split]
jvrmaia has quit [*.net *.split]
|Vargas| has quit [*.net *.split]
jtoy has quit [*.net *.split]
mksm_ has quit [*.net *.split]
sailias has quit [*.net *.split]
toertore has quit [*.net *.split]
elia has quit [*.net *.split]
baseonmars_ has quit [*.net *.split]
brownies has quit [*.net *.split]
mahlon has quit [*.net *.split]
nettsundere has quit [*.net *.split]
brianpWins has quit [*.net *.split]
Guest70117 has quit [*.net *.split]
Guest89227 has quit [*.net *.split]
Wardrop has quit [*.net *.split]
flori has quit [*.net *.split]
pskosinski has quit [*.net *.split]
glebm has quit [*.net *.split]
cstrahan has quit [*.net *.split]
ritek has quit [*.net *.split]
matthewd_ has quit [*.net *.split]
ruskie has quit [*.net *.split]
i_love_2pi has quit [*.net *.split]
znz_v has quit [*.net *.split]
jwollert- has quit [*.net *.split]
erikh has quit [*.net *.split]
FlyingLeap has quit [*.net *.split]
jayne has quit [*.net *.split]
ahf has quit [*.net *.split]
imajes has quit [*.net *.split]
zenspider has quit [*.net *.split]
bnagy has quit [*.net *.split]
bryanl has quit [*.net *.split]
tos9 has quit [*.net *.split]
llakey has quit [*.net *.split]
spectra has quit [*.net *.split]
khaase has quit [*.net *.split]
drbrain has quit [*.net *.split]
msch has quit [*.net *.split]
naquad has quit [*.net *.split]
lucas has quit [*.net *.split]
Kabaka has quit [*.net *.split]
duckinator has quit [*.net *.split]
canton7 has quit [*.net *.split]
bedouin has quit [*.net *.split]
vivekrai has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
d_roge has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
tarruda has quit [*.net *.split]
kirin` has quit [*.net *.split]
nadendla_ has quit [*.net *.split]
pygmael has quit [*.net *.split]
foca has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
xuser_ has quit [*.net *.split]
_ko10 has quit [*.net *.split]
cyndis has quit [*.net *.split]
pabs has quit [*.net *.split]
ozzloy has quit [*.net *.split]
cout has quit [*.net *.split]
slippyd has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
pcboy_ has quit [*.net *.split]
Mellett68 has quit [*.net *.split]
nirix has quit [*.net *.split]
droptone has quit [*.net *.split]
awkisopen has quit [*.net *.split]
tris has quit [*.net *.split]
fumduq- has quit [*.net *.split]
sonne has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
dbussink has quit [*.net *.split]
Guest47114 has quit [*.net *.split]
dRbiG has quit [*.net *.split]
brixen_ has quit [*.net *.split]
_if has quit [*.net *.split]
franckverrot_ has quit [*.net *.split]
DefV has quit [*.net *.split]
Muz has quit [*.net *.split]
davidbalz has quit [*.net *.split]
meizaps has quit [*.net *.split]
shaman42_ has quit [*.net *.split]
vgoff has quit [*.net *.split]
ericwood has quit [*.net *.split]
halorgium has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
bothra has quit [*.net *.split]
rhizome has quit [*.net *.split]
rtl has quit [*.net *.split]
sora_h___ has quit [*.net *.split]
lupine has quit [*.net *.split]
tsou has quit [*.net *.split]
rondale_sc has quit [*.net *.split]
tonni has quit [*.net *.split]
Bwild_ has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
GitNick has quit [*.net *.split]
lianj has quit [*.net *.split]
crankhar1er has quit [*.net *.split]
supyo has quit [*.net *.split]
Guest84241 has quit [*.net *.split]
kennyvb_ has quit [*.net *.split]
aef_ has quit [*.net *.split]
knu0 has quit [*.net *.split]
Silex has quit [*.net *.split]
Caius has quit [*.net *.split]
countdigi has quit [*.net *.split]
vmoravec_ has quit [*.net *.split]
chris2 has quit [*.net *.split]
Nom- has quit [*.net *.split]
sriehl has quit [*.net *.split]
tpope has quit [*.net *.split]
anekos_ has quit [*.net *.split]
bastetmilo has quit [*.net *.split]
ironcamel has quit [*.net *.split]
kuja has quit [*.net *.split]
t0h has quit [*.net *.split]
UziMonkey__ has quit [*.net *.split]
manveru has quit [*.net *.split]
Swimming_Bird has quit [*.net *.split]
TTilus has quit [*.net *.split]
jds has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
mihar has quit [*.net *.split]
tallship has quit [*.net *.split]
neurodamage has quit [*.net *.split]
grobb has quit [*.net *.split]
sluukkonen has quit [*.net *.split]
rwilcox has quit [*.net *.split]
gnufied has quit [*.net *.split]
marr has quit [*.net *.split]
wudofyr_ has quit [*.net *.split]
kstuart has quit [*.net *.split]
Cope has quit [*.net *.split]
nertzy has quit [*.net *.split]
lele has quit [*.net *.split]
musl has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
kalleth_ has quit [*.net *.split]
PacketMonkey has quit [*.net *.split]
egyp7 has quit [*.net *.split]
tyler_ has quit [*.net *.split]
wycats__ has quit [*.net *.split]
halibut has quit [*.net *.split]
hakunin has quit [*.net *.split]
weeb1e has quit [*.net *.split]
Guu has quit [*.net *.split]
asellus has quit [*.net *.split]
Olipro has quit [*.net *.split]
jwollert has quit [*.net *.split]
joschi has quit [*.net *.split]
nrk has quit [*.net *.split]
kvs has quit [*.net *.split]
norplr has quit [*.net *.split]
khaase_ has quit [*.net *.split]
s4muel has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
sindork has quit [*.net *.split]
DEac- has quit [*.net *.split]
Karql has quit [*.net *.split]
conceal_rs___ has quit [*.net *.split]
nick_h_ has quit [*.net *.split]
xsdg has quit [*.net *.split]
setmeaway2 has quit [*.net *.split]
eban has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
fallenhitokiri has quit [*.net *.split]
rwk1 has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
nazty has quit [*.net *.split]
akahn has quit [*.net *.split]
sn0wb1rdz has quit [*.net *.split]
rikai has quit [*.net *.split]
zzak has quit [*.net *.split]
randalla1ordon has quit [*.net *.split]
Guest18290 has quit [*.net *.split]
danrabinowitz_ has quit [*.net *.split]
meise has quit [*.net *.split]
erichmenge has quit [*.net *.split]
doki_pen_ has quit [*.net *.split]
_whitelogger has joined #ruby-lang
kalleth has joined #ruby-lang
dlackty_____ has quit [Changing host]
dlackty_____ has joined #ruby-lang
lcdhoffman has joined #ruby-lang
nathanstitt has joined #ruby-lang
brownies has joined #ruby-lang
brownies has quit [Changing host]
brownies has joined #ruby-lang
cstrahan has joined #ruby-lang
nlv has joined #ruby-lang
nghialv2607 has quit [Remote host closed the connection]
<yorickpeterse>
So Rubyists, if I do `Base64.strict_encode64(SecureRandom.random_bytes)` for a random password that will be changed when a user accepts an invitation, do I get shot?
nertzy2 has joined #ruby-lang
<yorickpeterse>
(this is because validations are a cunt and require a password for the User instance to be saved)
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
<injekt>
yorickpeterse: I use SecureRandom.hex
glebm has joined #ruby-lang
digs is now known as Guest21819
agile has joined #ruby-lang
<yorickpeterse>
oh shit, I forgot about that one
<yorickpeterse>
that at least looks a bit less like YOLO crypto
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
tbuehlmann has joined #ruby-lang
plurt has quit [Quit: Computer has gone to sleep.]
cofin has joined #ruby-lang
<yorickpeterse>
ta
<dominikh>
nah, that's just SWAG crypto
<dominikh>
uppercase for good measure
<yorickpeterse>
sWaG
plurt has joined #ruby-lang
<yorickpeterse>
or xbox live style: xXxSwAgMoThErFuCkErxXX
<yorickpeterse>
ok I'm done
<dominikh>
you know what the one good thing about the yolo and swag folks is?
<dominikh>
they olo
<yorickpeterse>
everybody does sadly
<dominikh>
yeah, but in their case it's a bonus
<dominikh>
imagine they were wrong. which happens more often than not to idiots
<yorickpeterse>
imagine if they're right
<yorickpeterse>
the horror
<yorickpeterse>
"WHO NEEDS BRAIN CELLS WHEN YOU HAVE SWAG" *newsflash: brain cells proven to be completely useless*
<dominikh>
millions of nerds confused.
<yorickpeterse>
*brain actually powered by mini mice on treadmills*
adambeynon has joined #ruby-lang
<dominikh>
heh, is that why energy drinks work?
<yorickpeterse>
In that case I'd probably have pinky and the brain in my brain, which worries me
<dominikh>
on the other hand, what's powering the brains of mini mice?
<yorickpeterse>
dominikh: mini cats
<dominikh>
we need to go deeper
thatJasonSmith has quit [Ping timeout: 240 seconds]
<yorickpeterse>
SystemStackError
<tarruda>
how can I include the 'Singleton' module in a C-defined class? Some builtin modules have extern definitions(eg: rb_mEnumerable) but how can I get a reference to the Singleton module?
erpuds has joined #ruby-lang
rikai_ has joined #ruby-lang
nignaztic has joined #ruby-lang
meise_ has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
samuelkadolph_ has joined #ruby-lang
<yorickpeterse>
tarruda: you probably have to evaluate that in Ruby using rb_funcall
<yorickpeterse>
not sure though
doki_pen has joined #ruby-lang
meise has quit [Read error: Connection reset by peer]
samuelkadolph has quit [Ping timeout: 256 seconds]
samuelkadolph_ is now known as samuelkadolph
bca has joined #ruby-lang
doki_pen_ has quit [Ping timeout: 256 seconds]
nick_h_ has quit [Ping timeout: 256 seconds]
rikai has quit [Ping timeout: 256 seconds]
Guest18290 has quit [Ping timeout: 256 seconds]
nazty has quit [Ping timeout: 256 seconds]
joooooo has joined #ruby-lang
sindork_ has joined #ruby-lang
lguardiola has quit [Ping timeout: 264 seconds]
bca is now known as Guest74297
zzak has quit [Ping timeout: 256 seconds]
erichmenge has quit [Ping timeout: 256 seconds]
zzak_ has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
sindork has quit [Ping timeout: 256 seconds]
fallenhitokiri has quit [Ping timeout: 256 seconds]
nick_h has joined #ruby-lang
Karql has quit [Ping timeout: 256 seconds]
fallenhitokiri has joined #ruby-lang
beawesomeinstead has quit [Ping timeout: 256 seconds]
danrabinowitz_ has quit [Ping timeout: 256 seconds]
danrabinowitz has joined #ruby-lang
<tarruda>
yorickpeterse: I've tried evaluating with rb_eval_string but it didnt work
<yorickpeterse>
My C API knowledge is limited so I'm afraid I can't help much more, as an alternative you could simply redefine the class in pure Ruby to include the module
<yorickpeterse>
that however is a bit dirty if you'd ask me
randallagordon has joined #ruby-lang
lguardiola has joined #ruby-lang
benlovell has joined #ruby-lang
DEac-_ has joined #ruby-lang
swygue has joined #ruby-lang
xsdg_ has joined #ruby-lang
sush24 has joined #ruby-lang
Karql has joined #ruby-lang
setmeaway2 has quit [Ping timeout: 256 seconds]
akahn has quit [Ping timeout: 256 seconds]
eban has quit [Ping timeout: 256 seconds]
randalla1ordon has quit [Ping timeout: 256 seconds]
sn0wb1rdz has quit [Ping timeout: 256 seconds]
DEac- has quit [Ping timeout: 256 seconds]
xsdg has quit [Ping timeout: 256 seconds]
akahn_ has joined #ruby-lang
sn0wb1rdz_ has joined #ruby-lang
rikai_ has quit [Read error: Connection reset by peer]
erichmenge has joined #ruby-lang
mytrile has joined #ruby-lang
rikai has joined #ruby-lang
benlovell has quit [Ping timeout: 276 seconds]
scampbell has joined #ruby-lang
noop has quit [Ping timeout: 276 seconds]
bzalasky has joined #ruby-lang
<yorickpeterse>
in unrelated news, ActiveRecord really is quite pathetic when it comes to namespaces
apeiros_ has joined #ruby-lang
nertzy3 has joined #ruby-lang
toertore has joined #ruby-lang
<yorickpeterse>
Also, it has some bullshit "type" system that doesn't actually check if two objects are compatible, instead it compares them by namespace
jsullivandigs has joined #ruby-lang
<yorickpeterse>
Duck typing? Never heard of that
Guest21819 has quit [Read error: Connection reset by peer]
<injekt>
yorickpeterse: what are you trying to do?
<yorickpeterse>
Stuff a instance of `AdminTool::Company` into a collection of `Company` instances, both are 100% compatible
steez has quit [Ping timeout: 250 seconds]
apeiros has quit [Ping timeout: 250 seconds]
chrishunt has quit [Quit: ZzZzZz...]
steez has joined #ruby-lang
<injekt>
it sounds like you're doing stupid things
<yorickpeterse>
this whole adventure just shows that namespaces in ActiveRecord were an afterthought, not something included by design
<yorickpeterse>
injekt: not really
<injekt>
but maybe I'm missing something
nertzy2 has quit [Ping timeout: 276 seconds]
toretore has quit [Ping timeout: 276 seconds]
Squarepy has joined #ruby-lang
<injekt>
I mean, I avoid namespace'd models like the plague
<yorickpeterse>
yes, because it's stupid in single isolated apps
<yorickpeterse>
and also because they're a PITA in AR
<injekt>
because you're right, rails doesn't work well with them
<yorickpeterse>
but in this case we're slapping it as an engine into a bigger app, so we have to
<injekt>
I have something similar (an engine with Foo::Bar as well as ::Bar) but I dont really have any issues, when you say you're trying to stuff instances of one into a collection of the other, what exactly do you mean?
<yorickpeterse>
well, in this case I have 3 classes: AdminTool::Contract, AdminTool::Company and Company. The latter is sort of the default class provided by a Gem, AdminTool::Company adds some extra stuff to it (but doesn't patch the existing one or extend it, it uses a module for the boilerplate)
joschi_ is now known as joschi
tomzx_mac has joined #ruby-lang
<yorickpeterse>
basically what it comes down to is something like `AdminTool::Contract.new(magic).companies << AdminTool::Company.new(more_magic)`
<yorickpeterse>
However, Rails complains because it for some reason wants `Company` opposed to `AdminTool::Company`
<yorickpeterse>
this whole story only makes sense if I sit down for two hours and explain everything
loincloth has joined #ruby-lang
<yorickpeterse>
we need to blag about this, though it will probably turn into "Yorick rants about ActiveRecord"
<yorickpeterse>
then inevitbly some HN neckbeard comes along and says "why haven'y you tried active-record-acts-as-retarded-namespace?"
* yorickpeterse
is grumpy
<injekt>
yorickpeterse: does this work? AdminTool::Company.new(...).becomes(Company)
<yorickpeterse>
what the hell is that
<spike|spiegel>
active record sucks... there's nothing to rant about
xcombelle has joined #ruby-lang
<yorickpeterse>
(as in, never heard of it)
<injekt>
yorickpeterse: it's usually for sti
<yorickpeterse>
docs plz
<injekt>
yorickpeterse: Returns an instance of the specified klass with the attributes of the current record.
sush24 has quit [Quit: This computer has gone to sleep]
scottschecter has quit [Read error: Operation timed out]
ikrima has joined #ruby-lang
glebm has joined #ruby-lang
mrsolo has joined #ruby-lang
micaeked has joined #ruby-lang
erpuds has joined #ruby-lang
megha has joined #ruby-lang
baba has quit [Ping timeout: 252 seconds]
krohrbaugh1 has quit [Quit: Leaving.]
<erikh>
andrewvos: use znc
<erikh>
it'll grab your nick for you when your old client disconnects
<erikh>
and then register you with nickserv automatically
<micaeked>
How can I create a module or class that can act as a function? ie, `BigDecimal(0.1288, 2) == BigDecimal.new(0.1288, 2)`
<rippa>
micaeked: def BigDecimal(*args); BigDecimal.new(*args); end
<rippa>
that's how it's done in the standard library
<rippa>
(sort of)
scottschecter has joined #ruby-lang
<injekt>
I hate the constant methods
brownies has joined #ruby-lang
micaeked has quit [Write error: Broken pipe]
micaeked_ has joined #ruby-lang
cofin has quit [Quit: cofin]
malev has joined #ruby-lang
ebouchut has quit [Read error: No route to host]
SqREL has joined #ruby-lang
ebouchut has joined #ruby-lang
tdy has joined #ruby-lang
micaeked_ has quit [Client Quit]
marr has quit [Ping timeout: 249 seconds]
mahlon has joined #ruby-lang
RubyPanther has joined #ruby-lang
dumfries_ has joined #ruby-lang
dr_bob has joined #ruby-lang
gix has joined #ruby-lang
solars has joined #ruby-lang
xcombelle has joined #ruby-lang
amateurhuman has joined #ruby-lang
jayne_ has joined #ruby-lang
danrabinowitz_ has joined #ruby-lang
closer has joined #ruby-lang
44UAABGVN has joined #ruby-lang
nick_h_ has joined #ruby-lang
xxaM has joined #ruby-lang
spinky has quit [Changing host]
spinky has joined #ruby-lang
ikrima has quit [Quit: Computer has gone to sleep.]
krohrbaugh has joined #ruby-lang
micaeked has joined #ruby-lang
xxaM is now known as Guest70794
mahlon is now known as Guest60440
<injekt>
although Array/Integer etc are kinda cool I guess
<injekt>
MEH
saarinen has quit [Quit: saarinen]
<andrewvos>
3dd
<lianj>
injekt: yea, but i always get a strange feeling withing Integer(foo)
<andrewvos>
yeah me too
<lianj>
s/withing/using/
<micaeked>
rippa: Thanks.
Guest70794 has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
Guest70794 has joined #ruby-lang
Raynes_ has left #ruby-lang [#ruby-lang]
noop has joined #ruby-lang
Raynes has joined #ruby-lang
adambeynon has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
sush24 has joined #ruby-lang
<micaeked>
Ah, looks like it doesn't work with rails' autoload. Oh well.
dc5ala has quit [Quit: Ex-Chat]
machuga|away has joined #ruby-lang
machuga|away is now known as machuga
<yxhuvud>
lianj: the main usage reason for Integer as opposed to to_i is that you get an exception instead of 0 when converting something that isn't a number.
loinclot_ has quit [Remote host closed the connection]
jerrytgarcia has joined #ruby-lang
jerrytgarcia has quit [Client Quit]
machuga is now known as machuga|away
erpuds has quit [Quit: erpuds]
elia has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
sv has quit [Quit: sv]
elia has joined #ruby-lang
headius has joined #ruby-lang
<konr>
I have to pass this simple test but the 1st assertion of the 2nd test is obviously failing. Any idea on how to pass them without modifying the tests themselves? Are there test-specific variables, or something? http://8596091058627da6.paste.se/
cstrahan has quit [Ping timeout: 246 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
elia has quit [Quit: Computer has gone to sleep.]
<drbrain>
konr: when testing a global variable you need to reset it to the initial state in #setup
<drbrain>
konr: you should wrap foo up in an object that uses an instance variable instead
breakingthings has joined #ruby-lang
redyellowgreen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
havenn_ has quit [Remote host closed the connection]
<konr>
drbrain: but then I'd have to use the function from the object and then modify the tests, right?
<drbrain>
yep
<drbrain>
your method is a singleton
<drbrain>
in general, singletons are a bad idea
tenderlo_ has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
kith has joined #ruby-lang
achiu has joined #ruby-lang
justinmburrous_ has joined #ruby-lang
grandy__ has joined #ruby-lang
blacktulip has joined #ruby-lang
jacknagel__ has joined #ruby-lang
flexd has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
headius has quit [Quit: headius]
JpC0utur3 has quit [Ping timeout: 268 seconds]
tenderlove has joined #ruby-lang
mbj has quit [Ping timeout: 268 seconds]
vlad_starkov has joined #ruby-lang
anonymuse has quit [Quit: Leaving...]
<zzak_>
injekt: pong
<zzak_>
prolly sleeping
zzak_ is now known as zzak
flexd has joined #ruby-lang
<zzak>
drbrain: hi :D
<zzak>
are you going to asakusa.rb before rubykaigi?? :DD
<drbrain>
what day is it?
<zzak>
tuesday i think
vlad_starkov has quit [Ping timeout: 246 seconds]
<drbrain>
if my flight arrives on time and so-forth, yes
<drbrain>
well, most likely
solars has quit [Ping timeout: 276 seconds]
spinky has joined #ruby-lang
sepp2k1 has joined #ruby-lang
<zzak>
ill ask on tweeter
sepp2k has quit [Ping timeout: 252 seconds]
symm-_ has quit [Ping timeout: 256 seconds]
yxhuvud has quit [Ping timeout: 252 seconds]
redyellowgreen has joined #ruby-lang
bizdak has joined #ruby-lang
woollyams has joined #ruby-lang
glebm has joined #ruby-lang
mjio has joined #ruby-lang
yxhuvud has joined #ruby-lang
postmodern has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
cofin has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
idkazuma has joined #ruby-lang
redyellowgreen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]