apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
JpC0utur3 has joined #ruby-lang
elia has joined #ruby-lang
JpC0utur3 has quit [Client Quit]
JpC0utur3 has joined #ruby-lang
JpC0utur3 has quit [Client Quit]
JpC0utur3 has joined #ruby-lang
JpC0utur4 has quit [Ping timeout: 264 seconds]
TobiG77 has left #ruby-lang [#ruby-lang]
havenwood has quit [Remote host closed the connection]
krohrbaugh1 has joined #ruby-lang
krohrbaugh1 has quit [Client Quit]
fragamus has quit [Ping timeout: 260 seconds]
krohrbaugh has quit [Ping timeout: 248 seconds]
JpC0utur4 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
smook4 has joined #ruby-lang
arubin has joined #ruby-lang
wmoxam has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
smook4 has quit [Ping timeout: 255 seconds]
ioga_wrk has quit [Ping timeout: 264 seconds]
wmoxam has quit [Ping timeout: 256 seconds]
wmoxam has joined #ruby-lang
<zenspider> injekt: drbrain is sick so he's offline
snarfmas_ has quit [Quit: Textual IRC Client: www.textualapp.com]
JpC0utur4 has quit [Ping timeout: 240 seconds]
Linkedipsoul has joined #ruby-lang
symm- has quit [Read error: Operation timed out]
DomKM has quit [Quit: Leaving.]
Linkedipsoul_ has quit [Ping timeout: 260 seconds]
cofin has joined #ruby-lang
slowhands has joined #ruby-lang
Aaaarg has joined #ruby-lang
smook4 has joined #ruby-lang
JpC0utur4 has joined #ruby-lang
hogeo has joined #ruby-lang
tkuchiki has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
ioga_wrk has joined #ruby-lang
dingus_khan has joined #ruby-lang
torrieri has joined #ruby-lang
sepp2k1 has quit [Quit: Leaving.]
dingus_khan has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
duph has quit [Quit: Leaving.]
countdigi has quit [Ping timeout: 276 seconds]
torrieri has quit [Quit: Leaving...]
arubin has quit [Ping timeout: 264 seconds]
mdedetrich has quit [Ping timeout: 264 seconds]
dankest has quit [Quit: Linkinus - http://linkinus.com]
mdedetrich has joined #ruby-lang
wmoxam has quit [Ping timeout: 252 seconds]
JpC0utur4 has quit [Ping timeout: 260 seconds]
corundum has quit [Read error: Connection reset by peer]
arubin has joined #ruby-lang
anonymuse has quit [Remote host closed the connection]
whitequa1k has quit [Ping timeout: 252 seconds]
DomKM has joined #ruby-lang
corundum has joined #ruby-lang
rickhull has quit [Ping timeout: 245 seconds]
whitequark has joined #ruby-lang
rickhull has joined #ruby-lang
fragamus has joined #ruby-lang
duph has joined #ruby-lang
countdigi has joined #ruby-lang
wmoxam has joined #ruby-lang
cored has quit [Read error: Operation timed out]
_ffio_ has joined #ruby-lang
ffio_ has quit [Ping timeout: 264 seconds]
towski_ has quit [Remote host closed the connection]
Kero has joined #ruby-lang
dingus_khan has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
x0f has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 268 seconds]
DomKM has quit [Quit: Leaving.]
x0f has joined #ruby-lang
fedesilva has joined #ruby-lang
gr4yscale has quit [Quit: Computer has gone to sleep.]
x0f has quit [Read error: Connection timed out]
x0f has joined #ruby-lang
wmoxam has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby-lang
cstrahan has quit [Quit: leaving]
cstrahan has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
Aaaarg has quit [Ping timeout: 264 seconds]
torrieri has joined #ruby-lang
Domon has joined #ruby-lang
lsegal has joined #ruby-lang
bzalasky has joined #ruby-lang
Linkedipsoul has quit [Quit: This computer has gone to sleep]
nathanstitt has joined #ruby-lang
DomKM has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
Aaaarg has joined #ruby-lang
FlyingLeap has quit [Quit: No Ping reply in 180 seconds.]
FlyingLeap has joined #ruby-lang
brianpWins has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
JpC0utur3 has quit [Ping timeout: 246 seconds]
JpC0utur3 has joined #ruby-lang
bzalasky has joined #ruby-lang
crudson has left #ruby-lang [#ruby-lang]
FlyingLeap has quit [Quit: No Ping reply in 180 seconds.]
jackhammer2022 has joined #ruby-lang
TwitchTEK has joined #ruby-lang
krz has joined #ruby-lang
FlyingLeap has joined #ruby-lang
smook4 has quit [Ping timeout: 255 seconds]
tomzx_mac_ has quit [Ping timeout: 256 seconds]
zachlatt_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ando has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
JpC0utur3 has quit [Ping timeout: 246 seconds]
JpC0utur3 has joined #ruby-lang
havenwood has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
bzalasky has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
brianpWins has joined #ruby-lang
TwitchTEK has quit []
cstrahan has quit [Ping timeout: 252 seconds]
gr4yscale has joined #ruby-lang
tomzx_mac has joined #ruby-lang
Nisstyre has joined #ruby-lang
Guest27874 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
io_syl has quit [Ping timeout: 240 seconds]
duph has quit [Quit: Leaving.]
naomi has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<naomi> Looking for a little mocha help. I would greatly appreciate if someone takes a look: http://stackoverflow.com/questions/17204371/how-to-test-factory-pattern-using-mocha-in-ruby
tomzx_mac has quit [Ping timeout: 240 seconds]
ando has quit [Quit: Leaving...]
JpC0utur4 has joined #ruby-lang
Linkedipsoul has joined #ruby-lang
brianpWins has joined #ruby-lang
gja has joined #ruby-lang
Linkedipsoul has quit [Client Quit]
brianpWins has quit [Client Quit]
TobiG77 has joined #ruby-lang
gr4yscale has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 246 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
naomi has left #ruby-lang [#ruby-lang]
mdedetrich has joined #ruby-lang
brianpWins has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Client Quit]
brianpWins has joined #ruby-lang
JpC0utur4 has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby-lang
smook4 has joined #ruby-lang
brianpWins has quit [Client Quit]
io_syl has joined #ruby-lang
poga has joined #ruby-lang
glebm has quit [Quit: Textual IRC Client: www.textualapp.com]
smook4 has quit [Ping timeout: 255 seconds]
mytrile has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
wmoxam has joined #ruby-lang
glebm has joined #ruby-lang
glebm has quit [Client Quit]
duph has joined #ruby-lang
dinesh- has joined #ruby-lang
dinesh- has quit [Client Quit]
bzalasky has joined #ruby-lang
mytrile has quit [Ping timeout: 264 seconds]
nathanstitt has quit [Quit: I growing sleepy]
intellitech has joined #ruby-lang
vlad_starkov has joined #ruby-lang
jonahR has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
DomKM has quit [Quit: Leaving.]
rickhull has quit [Read error: Connection reset by peer]
rickhull has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
gr4yscale has joined #ruby-lang
cofin has quit [Quit: cofin]
lcdhoffman has joined #ruby-lang
wmoxam has quit [Ping timeout: 260 seconds]
GeissT has joined #ruby-lang
MyChickenNinja has quit [Ping timeout: 250 seconds]
gr4yscale has quit [Quit: Computer has gone to sleep.]
JpC0utur3 has quit [Ping timeout: 240 seconds]
JpC0utur3 has joined #ruby-lang
Nisstyre has quit [Ping timeout: 260 seconds]
Aaaarg has quit [Quit: Aaaarg]
x0f has quit [Ping timeout: 255 seconds]
x0f has joined #ruby-lang
gr4yscale has joined #ruby-lang
gr4yscale has quit [Client Quit]
tdy has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
tdy has joined #ruby-lang
hashkey has quit [Quit: Leaving]
JpC0utur4 has joined #ruby-lang
Nisstyre has joined #ruby-lang
shireesh has joined #ruby-lang
slowhands has quit [Quit: Computer has gone to sleep]
slowhands has joined #ruby-lang
Aaaarg has joined #ruby-lang
tRAS has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
DomKM has joined #ruby-lang
Aaaarg has quit [Quit: Aaaarg]
slowhands has quit [Ping timeout: 256 seconds]
JpC0utur4 has quit [Ping timeout: 256 seconds]
tRAS_ has joined #ruby-lang
tRAS has quit [Ping timeout: 256 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
Oak has joined #ruby-lang
tdy has quit [Read error: Connection reset by peer]
JpC0utur4 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
tdy has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
duph has quit [Quit: Leaving.]
JpC0utur4 has quit [Ping timeout: 256 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
mistym has quit [Ping timeout: 240 seconds]
<erikh> hello
mdedetrich has joined #ruby-lang
skade has joined #ruby-lang
GeissT has quit [Read error: Connection reset by peer]
GeissT has joined #ruby-lang
hhatch has joined #ruby-lang
macmartine has joined #ruby-lang
havenwood has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
gr4yscale has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Paradox has quit [Quit: off to herp the derps]
Paradox has joined #ruby-lang
DomKM has quit [Quit: Leaving.]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
brianpWins has joined #ruby-lang
Aaaarg has joined #ruby-lang
randalla1ordon has joined #ruby-lang
randallagordon has quit [Ping timeout: 240 seconds]
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rikai_ has joined #ruby-lang
rikai has quit [Ping timeout: 260 seconds]
apeiros has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
Linkedipsoul has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dr_bob has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
dingus_khan has joined #ruby-lang
skade has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
yxhuvud2 has joined #ruby-lang
yxhuvud has quit [Ping timeout: 260 seconds]
TobiG77 has left #ruby-lang [#ruby-lang]
<injekt> hai
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
tonni has quit [Remote host closed the connection]
<whitequark> injekt: hi
macmartine has quit [Quit: Computer has gone to sleep.]
<injekt> hi
justinmburrous has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
rippa has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
relix has joined #ruby-lang
apeiros has joined #ruby-lang
rikai has joined #ruby-lang
tonni has joined #ruby-lang
rikai has quit [Read error: Connection reset by peer]
rikai has joined #ruby-lang
rikai_ has quit [Ping timeout: 256 seconds]
rikai_ has joined #ruby-lang
rikai has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
rikai has joined #ruby-lang
rikai_ has quit [Ping timeout: 256 seconds]
rikai_ has joined #ruby-lang
rikai has quit [Ping timeout: 246 seconds]
skade has joined #ruby-lang
dagobah has joined #ruby-lang
Wardrop has quit [Quit: Wardrop]
towski has joined #ruby-lang
zachlatta has quit [Quit: Textual IRC Client: www.textualapp.com]
rikai has joined #ruby-lang
canton7 has joined #ruby-lang
workmad3 has joined #ruby-lang
stef_204 has joined #ruby-lang
towski has quit [Remote host closed the connection]
rikai_ has quit [Ping timeout: 256 seconds]
dingus_khan has joined #ruby-lang
towski has joined #ruby-lang
hashkey has joined #ruby-lang
fedesilv_ has joined #ruby-lang
tonni has quit [Ping timeout: 240 seconds]
bastilian has joined #ruby-lang
fedesilva has quit [Ping timeout: 246 seconds]
xxaM has quit [Ping timeout: 256 seconds]
xxaM has joined #ruby-lang
towski has quit [Remote host closed the connection]
tonni has joined #ruby-lang
r0bby is now known as robbyoconnor
sush24 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
xxaM has quit [Ping timeout: 256 seconds]
sush24 has quit [Client Quit]
tonni has quit [Ping timeout: 264 seconds]
xxaM has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 0.4.1]
vlad_starkov has quit [Remote host closed the connection]
Kabaka has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
<charliesome> whitequark: yo
Kabaka has joined #ruby-lang
<charliesome> only got ~10 or so minutes, but you sound like you have something interesting to say ;)
<whitequark> charliesome: sure
<whitequark> the problem with lvar injection is, basically, that I cannot replicate it in my library code
<whitequark> also, that it is a syntactic form which requires a very special arrangement for it to work.
<charliesome> ah right sure
<whitequark> I'd suggest adding two different syntactic forms, which are (even!) compatible with the rest of Ruby, and are more generally useful
<charliesome> would you object to making the special syntax use = instead of =~
<charliesome> then it's clearly an assignment
<whitequark> wat?
Kabaka has quit [Remote host closed the connection]
<whitequark> it's =~, semantically
<charliesome> so for example, some languages let you use some literals as lvals
<whitequark> first and foremost.
<charliesome> [a,b] = [1,2] etc
<whitequark> well, it's not a literal then :)
ViperMaul has quit [Read error: Connection reset by peer]
<charliesome> sure, but you know what i mean
<whitequark> in ruby, "a, b" without parens can also be rhs
<charliesome> literal-ish syntax
<charliesome> what if you could assign to a regex, and have the named captures unpack to locals
<charliesome> /it is (?<weather>.*)/ = "it is cold"
<whitequark> this is inconsistent with the rest of the language, and with how assignments work.
<charliesome> it's not =~, it's an assignment
<whitequark> so, yes.
<charliesome> but if the language already let you do things like [a,b] = foo or {a,b} = foo (like coffeescript), it wouldn't be so inconsistent
Rizzle has joined #ruby-lang
ironcamel has quit [Ping timeout: 256 seconds]
tonni has joined #ruby-lang
<whitequark> a better solution is to add a counterpart for record unpacking, similarly to tuple unpacking
<whitequark> yeah, {a, b} = (/it is (?<weather.*)/ =~ "it is cold")
<whitequark> which, itself, would be a syntactic sugar for a different form
Kabaka has joined #ruby-lang
<whitequark> {weather: place_weather_here} = match_stuff
<whitequark> because the return value is the property of whatever interface match_stuff has
<whitequark> and you probably will want to override names sometimes.
<charliesome> sure
<whitequark> the {a:b}= form is kinda easy to add
<whitequark> however, {a} form may present problems
<whitequark> I think?
<whitequark> because before the parser has read =, it doesn't know if {...} is a hash or destructuring lhs
Paradox has quit [Quit: off to herp the derps]
<whitequark> this is solved for (a,b)= by parsing that as NODE_BEGIN and then converting to NODE_MLHS when you parse the =
Paradox has joined #ruby-lang
<whitequark> charliesome: can you post a ruby-lang issue, preferably with a patch to parse.y? :-p
dfdf has joined #ruby-lang
<whitequark> (I'm not up to writing a patch, and you are really far better with MRI than me.)
<charliesome> whitequark: nobody's good with parse.y
<whitequark> duh.
hashkey has quit [Ping timeout: 255 seconds]
<whitequark> I think this is a really useful and unobtrustive syntax.
<whitequark> which complements kwargs, even.
<charliesome> you should definitely propose it
<charliesome> i think it's quite nice as well
<whitequark> I'll try to find some time.
<charliesome> i've got heaps of code that does something like 'foo = some_method; do_stuff foo[:bar], foo[:baz]; …etc'
<charliesome> if i could go
<charliesome> {bar, bas} = some_method; do_stuff bar, baz; etc
<charliesome> it'd be nice
<charliesome> bonus points if the only interface it requires the rhs to implement is #[]
<whitequark> sure
<charliesome> and then you could even write
xxaM has quit [Ping timeout: 256 seconds]
<charliesome> {weather} = /it is (?<weather>.*).match("it is cold")
<charliesome> and it works straight away
xxaM has joined #ruby-lang
<whitequark> yes
<charliesome> i like this
<charliesome> wouldn't be up for patching parse.y though :p
<charliesome> patching compile.c would be fairly straight forward
workmad3 has quit [Ping timeout: 264 seconds]
<whitequark> I think I can, well, help with parse.y
<whitequark> the grammar part
<whitequark> but someone else should fuck with the nasty nodes
<charliesome> i'd be interested in getting it going in a branch to work out the kinks before actually proposing it
<whitequark> charliesome: wanna have a hack weekends?
<whitequark> I'll patch it in parser so you could salvage the grammar rules
robbyoconnor has quit [Max SendQ exceeded]
<charliesome> actually… railscamp is this weekend and i'm planning on doing some mri hacking
<whitequark> zero internet :/
robbyoconnor has joined #ruby-lang
<charliesome> tethering
<whitequark> ah, so it isn't a rule
<charliesome> nah
<whitequark> let's do it :p
<charliesome> anyway, i gotta head off, sounds like an awesome plan!
<charliesome> seeya
<charliesome> whitequark: quick idea:
<charliesome> {a} = { a: 1 } makes a == 1
<charliesome> {a: 2} = {b:1} makes a == 2
<charliesome> {a:} = {b:1} raises
<charliesome> anyway cya
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Criztian has joined #ruby-lang
solars has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
workmad3 has joined #ruby-lang
tonni has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<yorickpeterse> morning
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
elia has joined #ruby-lang
<whitequark> moo
tonni has joined #ruby-lang
sush24 has joined #ruby-lang
<yorickpeterse> In unrelated news, I spent until about 01:00 trying to get Puppet to work
<yorickpeterse> and it still doesn't
sush24 has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
gnufied has joined #ruby-lang
gnufied has quit [Client Quit]
stamina has joined #ruby-lang
gnufied has joined #ruby-lang
Philpax has joined #ruby-lang
adambeynon has joined #ruby-lang
_ffio_ has quit [Ping timeout: 240 seconds]
duph has joined #ruby-lang
MaddinXx has joined #ruby-lang
dingus_khan has joined #ruby-lang
dingus_khan has quit [Ping timeout: 264 seconds]
<whitequark> yorickpeterse: I don't get it
<yorickpeterse> it's just mcafee being mcafee
<yorickpeterse> also TIL about constituent parsing
<yorickpeterse> and I still don't know how to pronounce it
wudofyr___ has quit [Remote host closed the connection]
wudofyr___ has joined #ruby-lang
GarethAdams has joined #ruby-lang
elia has quit [Ping timeout: 246 seconds]
mradmacher has joined #ruby-lang
<whitequark> wait, so it IS mcafee
<whitequark> and not a novelty account
<whitequark> huh.
smook4 has joined #ruby-lang
<yorickpeterse> yes
<yorickpeterse> it's the real deal
Lennier has joined #ruby-lang
<Lennier> hi
<Lennier> how can i use 'Convention Center' with the shortcut %w ?
<injekt> wat
barttenbrinke has joined #ruby-lang
<injekt> oh
<Lennier> like VENUES = %w(Fairgrounds)
<injekt> Lennier: escape the space
<injekt> %w(foo\ bar)
<Lennier> ah, thanks injekt
<Lennier> great
smook4 has quit [Ping timeout: 255 seconds]
<injekt> but that's horrible and you should use %w for single words only imo
mradmacher has quit [Quit: leaving]
<injekt> a few quotes never hurt anyone :)
<Lennier> yeah, that's true
andrewvos has joined #ruby-lang
<Lennier> but i have 10 words and one with a blank inside
dfdf has quit [Remote host closed the connection]
GarethAdams|Work has joined #ruby-lang
bastilian has quit [Quit: Leaving...]
elia has joined #ruby-lang
GarethAdams has quit [Ping timeout: 264 seconds]
duph has quit [Read error: Connection reset by peer]
duph has joined #ruby-lang
mradmacher has joined #ruby-lang
duph has quit [Read error: Connection reset by peer]
duph1 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
fbernier has quit [Ping timeout: 252 seconds]
Lennier has quit [Quit: Lennier]
sush24 has quit [Read error: Connection reset by peer]
elia has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
liamzebedee has joined #ruby-lang
stef_204 has quit [Remote host closed the connection]
elia has joined #ruby-lang
fbernier has joined #ruby-lang
liamzebedee has quit [Client Quit]
ruby-lang377 has joined #ruby-lang
ruby-lang377 has quit [Client Quit]
sush24 has joined #ruby-lang
ruby-lang422 has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 260 seconds]
ruby-lang422 has quit [Ping timeout: 250 seconds]
mbj has joined #ruby-lang
zenspider has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
<kke> i've always hated this (0 for 1) error message, i can never tell was it expecting 1 or 0
<injekt> 0 instead of 1
Squarepy has joined #ruby-lang
<injekt> so clearly it expected 1
<kke> maybe i'll memorize it one day
<kke> it should say something like 0 instead of 1 or expected 0 was 1
<injekt> You gave *0* arguments *for* an expected *1*
elia has quit [Ping timeout: 256 seconds]
zenspider has joined #ruby-lang
elia has joined #ruby-lang
<Olipro> so, I'm finding that if I Dir.chroot() and then Dir.chdir() { dosomething() }, Ruby will throw an exception when exiting the block
<Olipro> looks like the interpreter doesn't get rid of its directory handle after chrooting
<Olipro> so when it exits the chdir block, it tries to switch back to a handle that's now invalid due to the fact we chroot'd
<Olipro> obviously, it can be fixed by calling chdir() straight after the chroot, but shouldn't the interpreter do something about that
<yorickpeterse> what do you expect it can do about that?
<yorickpeterse> You're changing directories while in a chroot (and probably to something out of the chroot), there's not much that can be done about that other than not doing it
<Olipro> it could attempt to chdir to whatever the pwd string is (was)
<Olipro> e.g. if I was in /root prior to the chroot, attempt to chdir to /root in the chroot
gja has quit [Quit: This computer has gone to sleep]
<Olipro> and failing that, set it to /
<Olipro> once you chroot, the handle has become utterly useless
shireesh has quit [Ping timeout: 255 seconds]
<Olipro> so I'd argue it's sensible for Ruby to try and put you at the same path within the chroot, falling back to /
mossplix has joined #ruby-lang
<yorickpeterse> That would mean Ruby would have to keep track of all that
<yorickpeterse> The docs explicitly mention that when calling it without an argument it will chdir to $HOME
<yorickpeterse> (given the variable is there)
marr has joined #ruby-lang
gr4yscale has quit [Ping timeout: 246 seconds]
ruby-lang317 has joined #ruby-lang
_elia has joined #ruby-lang
sush24_ has quit [Ping timeout: 248 seconds]
ruby-lang317 has quit [Ping timeout: 250 seconds]
elia has quit [Ping timeout: 268 seconds]
<Olipro> yorickpeterse: it wouldn't have to "keep track" the code would basically just run as part of doing the chroot
<Olipro> it's unpleasant to have chrooted and then find that Ruby throws an exception when it's exiting a block
<yorickpeterse> It would still have to keep track of the CWD before the chdir
<yorickpeterse> It's not, you're misunderstanding the way Dir.chdir works
<yorickpeterse> without an argument that is
<Olipro> the cwd doesn't change, that's the problem
<Olipro> I call Dir.chroot() and the cwd handle is unchanged
<Olipro> but the OS has of course invalidated the handle
<Olipro> are you following?
sush24 has joined #ruby-lang
<yorickpeterse> The cwd doesn't change, correct. However, depending on what you're chrooting to it might become unreachable
<yorickpeterse> If you're chrooting to /foo/bar/baz and you're in /foo/bar then there's not much Ruby can do
<yorickpeterse> Though it could cd to the chroot, but I don't think that option is available
<Olipro> well that's true, if the cwd is within the chroot path, the handle would remain valid - but then, the chroot() code could easily test for that and do something about it if not
bzalasky has quit [Remote host closed the connection]
lupine has quit [Read error: Connection reset by peer]
lupine has joined #ruby-lang
shireesh has joined #ruby-lang
elia has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 246 seconds]
_elia has quit [Ping timeout: 256 seconds]
Mon_Ouie has quit [Read error: Operation timed out]
rikai_ has joined #ruby-lang
shireesh has quit [Ping timeout: 246 seconds]
toretore has joined #ruby-lang
sush24_ has quit [Ping timeout: 264 seconds]
rikai has quit [Ping timeout: 246 seconds]
_elia has joined #ruby-lang
ironcamel has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
<yorickpeterse> private repos: 44
<yorickpeterse> aww yiss, delete all the repos
elia has quit [Ping timeout: 268 seconds]
yxhuvud2 has quit [Ping timeout: 260 seconds]
yxhuvud has joined #ruby-lang
elia has joined #ruby-lang
GeissT has quit [Ping timeout: 256 seconds]
Domon has quit [Remote host closed the connection]
_elia has quit [Ping timeout: 256 seconds]
Squarepy has joined #ruby-lang
_elia has joined #ruby-lang
Linkedipsoul_ has joined #ruby-lang
Linkedipsoul has quit [Ping timeout: 255 seconds]
elia has quit [Ping timeout: 268 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
philnyc has joined #ruby-lang
mucker has quit [Quit: leaving]
ffio has joined #ruby-lang
barttenbrinke has joined #ruby-lang
kstuart has joined #ruby-lang
ryez has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
x0f has joined #ruby-lang
MaddinXx has quit [Ping timeout: 248 seconds]
x0f has quit [Ping timeout: 252 seconds]
kstuart has quit [Ping timeout: 268 seconds]
x0f has joined #ruby-lang
Linkedipsoul_ has quit [Quit: Leaving]
duph1 has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
Philpax has quit [Quit: Leaving]
jsullivandigs has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Lennier has joined #ruby-lang
lcdhoffman has joined #ruby-lang
MaddinXx has joined #ruby-lang
fedesilv_ has quit [Remote host closed the connection]
fedesilva has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 255 seconds]
x0f has quit [Ping timeout: 260 seconds]
marcostoledo has quit [Ping timeout: 252 seconds]
x0f has joined #ruby-lang
marcostoledo has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
elia has joined #ruby-lang
ldnunes has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
mdedetrich has joined #ruby-lang
_elia has joined #ruby-lang
andrewvos has quit [Ping timeout: 246 seconds]
x0f has quit [Ping timeout: 260 seconds]
x0f has joined #ruby-lang
elia has quit [Ping timeout: 268 seconds]
cstrahan has joined #ruby-lang
jxie has quit [Quit: leaving]
num74 has joined #ruby-lang
gnufied has joined #ruby-lang
ebouchut has quit [Ping timeout: 240 seconds]
x0f has quit [Ping timeout: 260 seconds]
yalue has joined #ruby-lang
rikai_ has quit [Read error: Connection reset by peer]
rikai has joined #ruby-lang
x0f has joined #ruby-lang
elia has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
x0f has quit [Read error: Operation timed out]
x0f has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
ebouchut has joined #ruby-lang
wudofyr___ has quit [Remote host closed the connection]
wudofyr___ has joined #ruby-lang
Lennier has quit [Quit: Lennier]
_elia has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
x0f has joined #ruby-lang
elia has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby-lang
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby-lang
<yorickpeterse> hey you guys remembered that one time I packaged Java in Ruby?
<yorickpeterse> I'm now packaging the following in Ruby: Python code that calls a Bash script that calls a Java library
<injekt> gtfo
finnx has joined #ruby-lang
<yorickpeterse> though I reckon I can get rid of the Bash stuff by moving it over to Python
<yorickpeterse> since it makes no sense for it to be there
Mon_Ouie has quit [Ping timeout: 255 seconds]
finnx has left #ruby-lang [#ruby-lang]
<Olipro> you're making the angels weep
<injekt> ah yes, THATS the part that makes no sense
elia has joined #ruby-lang
<yorickpeterse> injekt: hey, good luck getting 8 different companies to use the same toolchain
<yorickpeterse> especially if they all know only specific ones
postmodern has quit [Quit: Leaving]
<yorickpeterse> and some of them aren't actual brogrammers
<Olipro> "brogrammer", jesus
<yorickpeterse> Oh yeah I forget that this channel generally doesn't understand the concept of sarcasm/generic humor
_elia has quit [Ping timeout: 256 seconds]
x0f has quit [Read error: Operation timed out]
<Olipro> actually, I do
<Olipro> and to prove it
<Olipro> apparently listening to Nickelback lowers your score less than listening to Classic Rock
<Olipro> and that's just WRONG
<yorickpeterse> "sling code" wtf does that mean?
krz has quit [Quit: krz]
<yorickpeterse> oh, just writing code apparently
<yorickpeterse> "Do you have a tribal tatoo" hahaha
tdy has quit [Read error: Connection reset by peer]
smook4 has joined #ruby-lang
x0f has joined #ruby-lang
<yorickpeterse> Your Broficiency Quotient (BQ) is-55...making you a Geek
<yorickpeterse> well tell me something I didn't already know
tdy has joined #ruby-lang
gja has joined #ruby-lang
<yorickpeterse> and now I'm writing Python
<yorickpeterse> brrr
<injekt> "65 making you a brogrammer"
<injekt> wtf
gja has quit [Client Quit]
x0f has quit [Ping timeout: 240 seconds]
_elia has joined #ruby-lang
cstrahan has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
<ndrst_> Olipro: go there: https://www.facebook.com/Nickelback/likes and unfriend everyone who likes it
elia has quit [Ping timeout: 268 seconds]
MaddinXx has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<yorickpeterse> JESUS WTF AMAZON
dhruvasagar has quit [Ping timeout: 252 seconds]
<yorickpeterse> Email from monit sent at 14:10
<yorickpeterse> it's not delivered until now
<yorickpeterse> 37 minutes later
<injekt> are you trying to load amazon via java via bash via python via ruby?
<ndrst_> mhhh why use monit? until now I only had troubles
gnufied has quit [Quit: Leaving.]
<yorickpeterse> ndrst_: because I'd rather not have stuff go rampant on my server
<yorickpeterse> and this particular IRC <-> Campfire bridge does that once in a while
<yorickpeterse> Hmpf, maybe I should just set up a Gmail account for this or just route it through my own
<yorickpeterse> I don't really need SES anymore anyway
<yorickpeterse> ha, look at this Gem:
Squarepy has joined #ruby-lang
jonahR has quit [Quit: jonahR]
elia has joined #ruby-lang
<Olipro> reminds me of a certain someone who wrote all their PHP in the form of "if (false) { } else { }
<Olipro> with all their code in the else part, of course
carloslopes has joined #ruby-lang
krames has joined #ruby-lang
stamina has quit [Ping timeout: 260 seconds]
gnufied has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
scampbell has joined #ruby-lang
wallerdev has joined #ruby-lang
<ndrst_> uhh hastebin looks nice
tonni has quit [Remote host closed the connection]
rsl has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> You know, I can say a lot of bad things about Java but the JAR packaging system works quite well
<ndrst_> monit always behaved fine as long as it didn't do anything...
<yorickpeterse> ndrst_: monit isn't the problem here
<yorickpeterse> it's Amazon SES delaying Emails
rsl has joined #ruby-lang
breakingthings has joined #ruby-lang
<ndrst_> hm that sucks
<ndrst_> just postfix them out! (:
<yorickpeterse> fuck running my own mailserver
<yorickpeterse> that shit's hard
<yorickpeterse> as in, keeping yourself of some asshole sysadmin's blacklist for example
_elia has joined #ruby-lang
bgant has joined #ruby-lang
mradmacher has quit [Quit: leaving]
elia has quit [Ping timeout: 268 seconds]
barttenbrinke has quit [Remote host closed the connection]
marcostoledo has quit [Quit: Leaving...]
<ndrst_> do you want to just send mail or also receive it there?
cofin has joined #ruby-lang
marcostoledo has joined #ruby-lang
<ndrst_> otherwise a simple sendmail should be enough
<yorickpeterse> I send them to my own Gmail account so sendmail probably would be good enough
vlad_starkov has joined #ruby-lang
<ndrst_> yeah
<ndrst_> google takes all the mail it gets anyways!
<ndrst_> just make sure to whitelist your host in your gmail box
<ndrst_> otherwise they will call it spam
tonni has joined #ruby-lang
thiagoborges has joined #ruby-lang
elia has joined #ruby-lang
fedesilva has quit [Remote host closed the connection]
_elia has quit [Ping timeout: 256 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
tRAS_ has quit [Ping timeout: 255 seconds]
ebouchut has quit [Quit: Quitte]
DKnox has joined #ruby-lang
_elia has joined #ruby-lang
wmoxam has joined #ruby-lang
spuk has quit [Read error: Operation timed out]
spuk has joined #ruby-lang
Oak has quit [Quit: Leaving]
tRAS has joined #ruby-lang
elia has quit [Ping timeout: 268 seconds]
gja has joined #ruby-lang
wmoxam_ has joined #ruby-lang
elia has joined #ruby-lang
fragamus has joined #ruby-lang
jsullivandigs has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
barttenbrinke has joined #ruby-lang
smook4 has quit [Ping timeout: 255 seconds]
wmoxam_ has quit [Quit: Lost terminal]
_elia has joined #ruby-lang
melter has joined #ruby-lang
andrewvos has joined #ruby-lang
fedesilva has joined #ruby-lang
elia has quit [Ping timeout: 268 seconds]
wallerdev has quit [Quit: wallerdev]
jsullivandigs has quit [Ping timeout: 268 seconds]
yalue has quit [Read error: Connection reset by peer]
yalue has joined #ruby-lang
elia has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
adambeynon has joined #ruby-lang
pipework has joined #ruby-lang
wudofyr___ has quit [Remote host closed the connection]
wudofyr___ has joined #ruby-lang
nathanstitt has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
mistym has joined #ruby-lang
smook4 has joined #ruby-lang
krombr has joined #ruby-lang
krombr has quit [Client Quit]
_elia has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
yalue has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 260 seconds]
yalue has joined #ruby-lang
elia has quit [Ping timeout: 268 seconds]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
cirenyc has joined #ruby-lang
elia has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
dagobah has quit [Read error: No route to host]
wallerdev has joined #ruby-lang
jxpx777 has joined #ruby-lang
dagobah has joined #ruby-lang
geopet has joined #ruby-lang
<zzak_> hi
<ericwood> hi
_elia has joined #ruby-lang
pskosinski has joined #ruby-lang
cirenyc has quit [Quit: Linkinus - http://linkinus.com]
elia has quit [Ping timeout: 268 seconds]
cirenyc has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
Mon_Ouie has quit [Read error: Connection reset by peer]
gregmore_ has quit [Ping timeout: 264 seconds]
gregmoreno has joined #ruby-lang
tonni has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
xxaM has quit [Ping timeout: 256 seconds]
xxaM has joined #ruby-lang
mdedetrich has joined #ruby-lang
gregmoreno has quit [Ping timeout: 248 seconds]
elia has joined #ruby-lang
mdedetrich has quit [Client Quit]
dhruvasagar has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
_elia has joined #ruby-lang
GarethAdams|Work is now known as GarethAdams
snarfmason has joined #ruby-lang
elia has quit [Ping timeout: 268 seconds]
tRAS has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
carloslopes has quit [Remote host closed the connection]
elia has joined #ruby-lang
_elia has quit [Ping timeout: 256 seconds]
cofin has quit [Quit: cofin]
gnufied has quit [Quit: Leaving.]
_elia has joined #ruby-lang
ChinggizKhan has joined #ruby-lang
elia has quit [Ping timeout: 268 seconds]
mytrile has quit [Remote host closed the connection]
poga has quit [Remote host closed the connection]
cofin has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
tomzx_mac has joined #ruby-lang
elia has joined #ruby-lang
bzalasky has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 258 seconds]
_elia has quit [Ping timeout: 256 seconds]
<injekt> hi
<pipework> hi
carloslopes has joined #ruby-lang
gnufied has joined #ruby-lang
mossplix has quit [Quit: mossplix]
tbuehlmann has quit [Remote host closed the connection]
_elia has joined #ruby-lang
hhatch has quit [Read error: Operation timed out]
bzalasky has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
elia has quit [Ping timeout: 268 seconds]
cirenyc has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
<andrewvos> bye
andrewvos has quit [Quit: leaving]
jsullivandigs has joined #ruby-lang
Voker57 has quit [Ping timeout: 276 seconds]
hashkey has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
bzalasky has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
_elia has quit [Ping timeout: 240 seconds]
<ericwood> good talk, guise
vlad_starkov has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
<bgant> *slow clap*
<bgant> :D
elia has joined #ruby-lang
rue has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
rue has joined #ruby-lang
io_syl has joined #ruby-lang
dhruvasagar has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
jxie has joined #ruby-lang
Voker57 has joined #ruby-lang
lupine has quit [Read error: Connection reset by peer]
cirenyc has quit [Ping timeout: 268 seconds]
dingus_khan has joined #ruby-lang
atmosx has joined #ruby-lang
lupine has joined #ruby-lang
kgrz has joined #ruby-lang
_elia has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
gregmoreno has quit [Remote host closed the connection]
mikewintermute has joined #ruby-lang
mossplix has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
jonahR has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
synthetix has joined #ruby-lang
_elia has quit [Ping timeout: 240 seconds]
DomKM has joined #ruby-lang
elia has joined #ruby-lang
zachlatta has joined #ruby-lang
tRAS has joined #ruby-lang
brianpWins has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
num74 has quit [Quit: leaving]
dingus_khan has joined #ruby-lang
_elia has joined #ruby-lang
stamina has joined #ruby-lang
relix has joined #ruby-lang
x0f has quit [Ping timeout: 268 seconds]
x0f has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
elia has quit [Ping timeout: 260 seconds]
mantono has quit [Remote host closed the connection]
atmosx has quit [Quit: And so the story goes…]
TvL2386 has joined #ruby-lang
_elia has quit [Ping timeout: 240 seconds]
elia has joined #ruby-lang
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby-lang
torrieri has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby-lang
krohrbaugh has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
krohrbaugh has quit [Client Quit]
krohrbaugh has joined #ruby-lang
mossplix has quit [Read error: Connection reset by peer]
x0f has quit [Ping timeout: 252 seconds]
brianpWins has quit [Quit: brianpWins]
gregmoreno has joined #ruby-lang
x0f has joined #ruby-lang
apeiros has joined #ruby-lang
brianpWins has joined #ruby-lang
stamina has quit [Ping timeout: 264 seconds]
towski has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 240 seconds]
dingus_khan has joined #ruby-lang
apeiros has joined #ruby-lang
synthetix has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
dc5ala has joined #ruby-lang
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
__butch__ has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
carloslopes has joined #ruby-lang
krames has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Read error: Operation timed out]
krohrbaugh has quit [Quit: Leaving.]
geopet has quit [Quit: geopet]
firstdayonthejob has joined #ruby-lang
Mawk has quit [Quit: Mawk]
wallerdev has quit [Quit: wallerdev]
jxpx777 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
swav has quit [Remote host closed the connection]
mucker has joined #ruby-lang
adambeynon has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
elia has joined #ruby-lang
krames has joined #ruby-lang
dingus_khan has joined #ruby-lang
gr4yscale has joined #ruby-lang
gr4yscale has quit [Client Quit]
elia has quit [Ping timeout: 268 seconds]
symm- has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
jonahR has quit [Ping timeout: 255 seconds]
<yorickpeterse> http://downloads.yorickpeterse.com/images/mongodb.jpg our day in a nuttshell (somewhat NSFW I suppose)
x0f has quit [Ping timeout: 246 seconds]
ffio has quit [Quit: WeeChat 0.4.0]
lcdhoffman has quit [Quit: lcdhoffman]
x0f has joined #ruby-lang
zachlatta has quit [Ping timeout: 241 seconds]
Voker57|2 has joined #ruby-lang
Voker57 has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 246 seconds]
yorickpeterse has quit [Quit: Who cares about these quit messages?]
yorickpeterse1 has joined #ruby-lang
dLog_ has left #ruby-lang [#ruby-lang]
dLog has joined #ruby-lang
x0f has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
yorickpeterse1 has quit [Changing host]
yorickpeterse1 has joined #ruby-lang
jonahR has joined #ruby-lang
yorickpeterse1 is now known as yorickpeterse
jxie has quit [Ping timeout: 260 seconds]
jxie has joined #ruby-lang
yorickpeterse has quit [Quit: Server maintenance]
ffio has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
mbj has quit [Ping timeout: 264 seconds]
krohrbaugh2 has joined #ruby-lang
krohrbaugh1 has quit [Read error: Connection reset by peer]
krohrbaugh has quit [Ping timeout: 246 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
forrest has joined #ruby-lang
yorickpeterse has joined #ruby-lang
ffio has joined #ruby-lang
gr4yscale has joined #ruby-lang
ffio has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scampbell has quit [Quit: Leaving]
gr4yscale has quit [Ping timeout: 246 seconds]
ffio has joined #ruby-lang
verto has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
mbj has joined #ruby-lang
tonni has joined #ruby-lang
JpC0utur3 has quit [Ping timeout: 256 seconds]
JpC0utur3 has joined #ruby-lang
joshuawscott has joined #ruby-lang
badeball has quit [Read error: Operation timed out]
zachlatta has joined #ruby-lang
krohrbaugh2 has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
badeball has joined #ruby-lang
<ericwood> MongoDB is NSFW in general
badeball has quit [Read error: Operation timed out]
<pipework> haha. :D
badeball has joined #ruby-lang
torrieri has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<bgant> ok… given a symbol that represents a class name… how can I use that to meta-instantiate an instance of a class
<bgant> eg, I have class Foo
<bgant> and a symbol :foo
<bgant> and I want instance = Foo.new
<bgant> but derived from :foo
vlad_starkov has quit [Ping timeout: 260 seconds]
<apeiros> meta-instantiate?
<yorickpeterse> :foo.to_s.upcase
<yorickpeterse> >> :foo.to_s.upcase
<eval-in> yorickpeterse => "FOO" (https://eval.in/34279)
<bgant> that gets me tha name
<yorickpeterse> errrr
<apeiros> did you just make that up?
<yorickpeterse> wait
<apeiros> yorickpeterse: capitalize
<yorickpeterse> yeah
<apeiros> bgant: Object.const_get
<yorickpeterse> and then something like ParentConstant.const_get(...)
stamina has joined #ruby-lang
<apeiros> bgant: if you have to modify the given string/symbol to get at the actual name, then you have a rather brittle system
<apeiros> if it's of your own design, then 2 things: a) classes are objects, you can pass them around like any other object, i.e. you can use Foo instead of :foo
<bgant> basically creating a CLI wrapper class that calls a web service
<apeiros> b) if - for whatever reason - you insist on using a symbol, I'd at least make it match the name directly, e.g. :Foo instead of :foo
<bgant> so it will take the controller name as an argument
<bgant> so, not guaranteed case sensitivity
<bgant> or rather, I can guarantee upcase at parsing
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
lcdhoffman has joined #ruby-lang
gr4yscale has joined #ruby-lang
<bgant> and as the web service grows, I don’t want to handle exceptions to instantiate a new wrapper class for the controllers
<bgant> so, I want to cheat with some meta-programming
<bgant> :D
<apeiros> can't help it, all I hear is "brittle". anyway, your system. have fun.
ffio has quit [Quit: WeeChat 0.4.1]
ChinggizKhan has quit [Quit: ZZzzzZZZzzzZZZZzz]
<cout> sigh.
<cout> I want a Hash with duplicate keys.
ffio has joined #ruby-lang
<apeiros> s/Hash/Something/
<cout> s/Something/Hash/
<joshuawscott> cout: o.O
dhruvasa1ar has joined #ruby-lang
<apeiros> cout: and what value do you get for a duplicate key?
<cout> apeiros: details!
dhruvasagar has quit [Read error: Connection reset by peer]
<yorickpeterse> you mean....an array of pairs?
<apeiros> which key is deleted when you delete a duplicate key?
<apeiros> I think the answer to all these questions tell you that you either want a hash with array values
<yorickpeterse> MongoHash
<apeiros> or that you don't want a hash
ffio has quit [Client Quit]
ruby-lang557 has joined #ruby-lang
<cout> apreiros: I would also like to have a nice warm gazpacho for lunch :)
ruby-lang557 has quit [Client Quit]
<apeiros> crout: then make yourself one
<cout> and an all-electric car that runs on race fuel
<apeiros> I'd try one that runs on dry water
<cout> ice?
<yorickpeterse> https://eval.in/34282
<yorickpeterse> I present to you: LolHash
Aaaarg has quit [Quit: Aaaarg]
<yorickpeterse> hm, this needs to be made more webscale
<pipework> Needs more webscaling for sure.
<apeiros> webscale, pffft… ridiculous. anything below roflscale isn't worth the attempt.
jstorimer has joined #ruby-lang
justinmburrous has quit [Ping timeout: 268 seconds]
srji has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
ChinggizKhan has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<whitequark> yorickpeterse: you joke
<whitequark> but there's a similar method in stdlib
<yorickpeterse> wait, what
<whitequark> >> [[:a, 'foo'], [:b, 'bar']].assoc(:b)
<eval-in> whitequark => [:b, "bar"] (https://eval.in/34298)
<yorickpeterse> assoc is pretty different
<yorickpeterse> and pretty useful
<whitequark> thus, "similar"
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<whitequark> in that it has O(n) behavior
<whitequark> oh it was about completely another thing
<whitequark> nevermind me
<yorickpeterse> Downloading/unpacking cuisine
<yorickpeterse> Real name of requirement cuisine is cuisine
<yorickpeterse> is this some kind of joke?
ldnunes has quit [Quit: Leaving]
Mon_Ouie has quit [Read error: Connection reset by peer]
cofin has quit [Quit: cofin]
JpC0utur3 has quit [Ping timeout: 260 seconds]
JpC0utur3 has joined #ruby-lang
geopet has joined #ruby-lang
<havenwood> yorickpeterse: YALHI (Yet Another LolHash Implementation): https://gist.github.com/havenwood/5825900
<yorickpeterse> havenwood: your version uses more bytes
dc5ala has quit [Quit: Ex-Chat]
<yorickpeterse> therefor I can't cram it on a 1970s tape record
justinmburrous has joined #ruby-lang
<yorickpeterse> hm wait, let me actually verify that
kith has quit [Read error: Connection reset by peer]
kith_ has joined #ruby-lang
<yorickpeterse> CURSE ME TIMBERS
<yorickpeterse> yours is slimmer
justinmburrous has quit [Remote host closed the connection]
<yorickpeterse> it saves 47 characters
<pipework> I like judy hashes. :D
ezkl has joined #ruby-lang
justinram has joined #ruby-lang
justinram has quit [Remote host closed the connection]
justinram has joined #ruby-lang
justinram has quit [Remote host closed the connection]
jstorimer has quit [Remote host closed the connection]
zachlatta has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
gr4yscale has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby-lang
rippa has quit [Ping timeout: 248 seconds]
JpC0utur3 has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
JpC0utur3 has joined #ruby-lang
yalue has quit [Quit: Leaving]
klebervirgilio has joined #ruby-lang
jstorimer has joined #ruby-lang
klebervirgilio has quit [Remote host closed the connection]
stamina has quit [Read error: Operation timed out]
srji has quit [Ping timeout: 248 seconds]
klebervirgilio has joined #ruby-lang
ezkl has quit [Ping timeout: 246 seconds]
xxaM has quit [Ping timeout: 256 seconds]
klebervirgilio has quit [Ping timeout: 246 seconds]
klebervirgilio has joined #ruby-lang
joshuawscott has quit [Quit: joshuawscott]
xxaM has joined #ruby-lang
klebervirgilio has quit [Read error: Connection reset by peer]
klebervirgilio has joined #ruby-lang
klebervirgilio has quit [Remote host closed the connection]
jstorimer has quit [Remote host closed the connection]
randalla1ordon has left #ruby-lang [#ruby-lang]
jstorimer has joined #ruby-lang
dingus_khan has joined #ruby-lang
mbj has quit [Ping timeout: 264 seconds]
srji has joined #ruby-lang
<injekt> yorickpeterse: yo
<yorickpeterse> sup inkjet
coffeeju1 has quit [Ping timeout: 252 seconds]
<injekt> yorickpeterse: I have a rails action called 'assign_contact' which is on a users controller which well, assigns a contact, right now i use a match with get/post and check request.post? that's bad but I can't think of a naming scheme, any ideas?
dingus_khan has quit [Ping timeout: 241 seconds]
<injekt> weird question but i dont like #ror and I know you might have an opinion
<yorickpeterse> well, why do you need both a GET and a POST on the same method?
<yorickpeterse> to show the form and save the data?
<injekt> si
<yorickpeterse> hmm
<injekt> and assign_contact_form is horrible please dont say that
<yorickpeterse> do you also have an overview of the contacts of a user?
<yorickpeterse> as in, an index-like method or something
<injekt> nope otherwise I'd probably nest a new controller
<yorickpeterse> if so I'd probably slap that in a separate controller (e.g. app/controllers/users/contact.rb)
<injekt> which is what you're thinking?
<yorickpeterse> hm
<injekt> :P
gnufied has joined #ruby-lang
<yorickpeterse> yeah, something like /users/10/contact and /users/10/contact/assign
gnufied has quit [Client Quit]
<yorickpeterse> otherwise you'll end up with actions like #assign_contact and #save_assign_contact
<yorickpeterse> or the double action thing
symm- has quit [Ping timeout: 260 seconds]
<injekt> yep :(
<injekt> I have another action like that too, wanted to avoid all the controllers
<yorickpeterse> I'd say just go for an extra controller
<injekt> but I guess that's the right way to do it
<yorickpeterse> especially routing wise it just saves you some trouble
<yorickpeterse> heh wait, let me show you an awesome routes.rb
Squarepy has joined #ruby-lang
<yorickpeterse> best bit are the 3 different names for a hotel group
<yorickpeterse> (there would be a namespace collision otherwise)
<injekt> :hgroup :group :hotel_group nice!
<injekt> mine is pretty nasty too
<yorickpeterse> http://hastebin.com/covotecoto.rb this one is actually pretty decent (newest Rails project)
<injekt> yeah that looks good
<injekt> I've been using focused_controller a little too, it's very opinionated but I think I like the style
<injekt> see before/after
<yorickpeterse> Hm, not sure about that
<injekt> each action is its own object
swav has joined #ruby-lang
<injekt> yeah it's odd I agree
<injekt> I work with Jon (the guy from rails core who built it)
<injekt> he gave an interesting talk on it
<yorickpeterse> oh neat
<injekt> testing is SO much nicer this way
<injekt> (we use fc in all controllers at work)
<yorickpeterse> tbh I think this would just confuse people here too much, at least the occasional intern
<injekt> and no instance variables shared is nice
elia has joined #ruby-lang
<yorickpeterse> also I don't test controllers :>
<injekt> yeah totally, new rails devs would crap themselves
stamina has joined #ruby-lang
<injekt> well, we didnd't until now
<injekt> but now we can unit test them
<yorickpeterse> I just cbf dealing with capybara or rack-test
<injekt> UsersController::Show.new.call
<yorickpeterse> I'd rather first get the rest covered :P
jstorimer has quit [Remote host closed the connection]
<injekt> yeah
<yorickpeterse> yeah, I can see that being a lot easier
<injekt> I dunno sometimes I like the thought of integration tests, sometimes I hate it
<yorickpeterse> get(:fuckyou, ...); last_response.body.shoud =~ /i cant remember/
<injekt> oh those functional tests are retarded
<yorickpeterse> we have some capybara stuff around somewhere in a newer project but it mostly tests some JS related stuff
<injekt> get(:index); assigns(:posts) ... like wtf
<injekt> yeah our capybara specs tests all the js
jstorimer has joined #ruby-lang
<injekt> I have a private app that doesn't load rails at all for tests
<yorickpeterse> ugh, the startup time
<yorickpeterse> pretty sure that without that and the DB cleaner crap our tests could run in < 30 seconds
jstorimer has quit [Remote host closed the connection]
<yorickpeterse> instead of 7 minutes
<yorickpeterse> though I've at least managed to tone down the use of DB cleaner
<injekt> these on this private app run in less than 1
<yorickpeterse> second or minute?
<injekt> second
<yorickpeterse> heh
<injekt> but only because it doesn't load rails
<yorickpeterse> how many testa re there, 1?
<injekt> 50 something
<yorickpeterse> ah
<injekt> honestly losing the rails overhead is all there is to it, no secret magic, most the stuff I tested is just ruby
krohrbaugh has quit [Quit: Leaving.]
<yorickpeterse> we have quite a bit of stuff that does require Rails sadly
<yorickpeterse> as in, it either needs active support, mongo crap, etc, usually just a small bit that I cbf requiring manually and such
krohrbaugh has joined #ruby-lang
<jroes> anyone have any ideas what this mess does, and how it might be better expressed? https://gist.github.com/jroes/d6b7da04a05febe91c67
Aaaarg has joined #ruby-lang
<injekt> yeah once you do that it's hard to get out of it, the only reason it works here for me is I've extracted most bits out of it and it's a very new app
<injekt> jroes: that is disgusting
<injekt> but it's easy to break down
<yorickpeterse> jroes: start with breaking some things into separate methods
<yorickpeterse> e.g.
<yorickpeterse> Hash.new {|h,k| h[k] = Set.new} can probably go in something like default_hash()
<yorickpeterse> and the one-liner `m[(s[1].nil? ? '#ffffff' : s[1].name)] << (s[0].nil? ? '' : s[0].name)` is probably easier to read when spread out
<yorickpeterse> (as in, a normal if/else)
<injekt> also use better variable names
<yorickpeterse> and don't chain blocks that way
<yorickpeterse> (as in, `end.something_else`)
elia has quit [Quit: Computer has gone to sleep.]
<jroes> btw, I didn't write this, I'm just having trouble comprehending it, and I feel obligated to make it readable for the next person
<yorickpeterse> that's a good thing :)
mfn_ has left #ruby-lang [#ruby-lang]
mfn has joined #ruby-lang
<mfn> hi
benanne has joined #ruby-lang
Aaaarg has quit [Quit: Aaaarg]
firstdayonthejob has quit [Ping timeout: 264 seconds]
jstorimer has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
joshuawscott has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh1 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
krohrbaugh1 has quit [Read error: Connection reset by peer]
fedesilva has quit [Read error: Operation timed out]
<whitequark> yorickpeterse: stripping accidental ruby details away from foundry!
<whitequark> feels good man
elia has joined #ruby-lang
<whitequark> like... methods are just closures now, with implicit `self` as a first parameter. (or explicit, if you unbound_method it)
<whitequark> and there's no 'default definee' or 'cref' now. just 'self', and def operates on it.
srji has quit [Ping timeout: 248 seconds]
<whitequark> and include/prepend are called append/prepend, plus you can do it arbitrary many times anywhere in hierarchy.
<cout> what is foundry?
<whitequark> basically, it's just a stack of filters now.
<whitequark> a static language full of metaprogramming.
tomzx_mac_ has joined #ruby-lang
<yorickpeterse> noice
tomzx_mac has quit [Ping timeout: 248 seconds]
<yorickpeterse> I take it it has its own parser?
ffio has joined #ruby-lang
<cout> whitequark: so it's like Juby? (or whatever charlie renamed it to, can't remember of the top of my head)
<whitequark> yorickpeterse: yes, will have
<whitequark> basically, after writing parser I understood that I probably cannot extend ruby's grammar
<whitequark> not in a sane way at least
<whitequark> so, I'll use that experience to build something better.
jstorimer has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby-lang
<yorickpeterse> http://xkcd.com/927/
<yorickpeterse> relevant
DomKM has quit [Quit: Leaving.]
DomKM has joined #ruby-lang
ChinggizKhan has quit [Quit: ZZzzzZZZzzzZZZZzz]
DomKM has quit [Client Quit]
DomKM has joined #ruby-lang
<whitequark> yorickpeterse: well, it never was ruby *semantically*
<whitequark> closer to ML
<zenspider> jroes: holy fuck.
elia has quit [Quit: Computer has gone to sleep.]
<jroes> lol
<jroes> I'm still breaking it apart
<jroes> mind = blown
<zenspider> don't breake the code apart
<zenspider> -e
<jroes> this is also responsible for a huge slowdown for the app
<zenspider> who wrote that? find them... take them outside... and break THEM apart
<jroes> lol
<zenspider> no. really. parking lot therapy for anyone who writes shit like that
<jroes> I will at least tell them that THE zenspider told them
<yorickpeterse> meh, I'd say that code was fairly common
<yorickpeterse> not something I'd get my chinese army shovel for and wack them
<yorickpeterse> (http://www.youtube.com/watch?v=b60OZhrTB6o for the uninformed)
krohrbaugh has quit [Quit: Leaving.]
<yorickpeterse> pretty sure it can also commit patches to Ruby
gr4yscale has joined #ruby-lang
<zenspider> jroes: good names would help: do |s,m| => do |(size,color),m|
<zenspider> then all m[0] become size and m[1] become color
<zenspider> I'm guessing... btw.
<jroes> yeah, I'm guessing too. I'm stepping through the code and I have not seen a case where size[0] or size[1] are anything other than nil
jsullivandigs has quit [Ping timeout: 268 seconds]
<zenspider> hah
<jroes> they are just ActiveRecord objects
<zenspider> so this isn't static data... because it screams static data to me
<zenspider> and lemme guess... this is in a loop somewhere
krohrbaugh has joined #ruby-lang
<zenspider> otherwise.. why would this be the bottleneck?
<jroes> basically, it computes what sizes and colors are available for a particular product
<jroes> and it's getting executed on every damn page load
<jroes> although the pages are being cached, first page hit is like 30 seconds *cringe*
<zenspider> how many products and how many size/color options?
<zenspider> products / page that is
<jroes> 23.5k size/color combinations
<zenspider> fuck
<zenspider> how large is size_names ?
<jroes> 8
<jroes> well, in this loop
<zenspider> how many sizes?
cofin has joined #ruby-lang
<zenspider> size_names = Hash[size_names.with_index.map { |s,i| [s, i] }]; size_names.default = 0
<jroes> just 31 total
<zenspider> right. so 31 but you only have 8 with names
<zenspider> but you're doing 23.5k runs of that array miss
<zenspider> switch it to a hash. change size_names.index(s) || 0 to size_names[s]
<zenspider> that'll at least help
<jroes> I'll give that a go. thanks!
<zenspider> that's only ONE of your problems :)
<jroes> yeah, I have a mountain ahead of me
dingus_khan has joined #ruby-lang
<zenspider> whatever s[1] is... go change the model so that name will return #ffffff if it isn't set
<zenspider> whatever s[0] is, go change it to return empty string
<zenspider> m[(s[1].nil? ? '#ffffff' : s[1].name)] << (s[0].nil? ? '' : s[0].name)
<zenspider> becomes
<zenspider> m[s[1]] << s[0].name
DomKM has quit [Quit: Leaving.]
<zenspider> then name them properly
<zenspider> because fuck me
<jroes> lol
krohrbaugh has quit [Quit: Leaving.]
vlad_starkov has joined #ruby-lang
krohrbaugh has joined #ruby-lang
<zenspider> sec
ffio has quit [Quit: WeeChat 0.4.1]
<zenspider> with a little massaging, you should be able to get to something close to:
<zenspider> size_and_color_options.group_by { |size, color| color.name }
tomzx_mac_ has quit [Quit: tomzx_mac_]
tomzx_mac has joined #ruby-lang
jstorimer has joined #ruby-lang
ffio has joined #ruby-lang
relix has joined #ruby-lang
x0f_ has joined #ruby-lang
<zenspider> jroes: I'm guessing that sort_by is wrong, no? the ones w/o size_names w/ be unordered
nathanstitt has quit [Quit: I growing sleepy]
<zenspider> lastly... If I had to guess, there's a LOT of duplication on the products of their size and color options, so you could build up a table w/ the cached results and look it up
vlad_starkov has quit [Ping timeout: 241 seconds]
krohrbaugh has quit [Quit: Leaving.]
w00x has joined #ruby-lang
<zenspider> pushed another rev
thiagoborges has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 264 seconds]
skade has joined #ruby-lang
<jroes> dang, nice!
<jroes> I was off researching what the heck is coming into this thing, since apparently it's not what I expected
<jroes> I think it's a zipped form of size and color
postmodern has joined #ruby-lang
forrest has quit [Quit: Leaving]
<zenspider> prolly not zipped. or... they'd have to multiply them out first
<zenspider> this just seems bad
<zenspider> and... WHERE is this code?
<zenspider> I'm guessing it isn't on Product, because that would make sense
<apeiros> zenspider: SortedSet and drop the sorting?
<jroes> hahaha. it is. it's in a module called "ProductFunctions"
<injekt> omg Functions
<jroes> which is included in Product. *sigh*
<apeiros> oh, sort_by
* injekt des
<injekt> dies
<jroes> lol
<zenspider> apeiros: that was my initial thought... but it seems like the sort is too complex? I dunno
<apeiros> yeah
<zenspider> jroes: are you fucking kidding? tell me you are
* jroes shakes head slowly
<zenspider> ok. where are you?
<jroes> I better hide all info
<zenspider> and does the author still work there?
<jroes> damn myself for not staying more anonymous on the internets
<jroes> author works for me, he's a good guy, real smart and all. he just likes puzzles :x
<injekt> jroes: your blog is interesting
<jroes> think he got bored and decided to play ruby golf
Aloysius1 has joined #ruby-lang
<zenspider> if he shouldn't be fired... he should be forced to pair with someone UNclevar for at least a week
<injekt> zenspider: so cold
dingus_khan has quit [Remote host closed the connection]
<jroes> I reviewed the pull request for these changes and I made some faces, but it's hrad enough to get people to get things done in a timely manner, let alone in quality code
<apeiros> zenspider: for teams that's actually a very useful measure
<zenspider> pairing is a good way to retrain someone out of the bullshit
bgant has quit [Quit: Leaving.]
wesside has quit [Quit: Ice cream truck!]
<apeiros> indeed
dhruvasa1ar has quit [Ping timeout: 268 seconds]
<zenspider> jroes: timely and quality go hand in hand
<jroes> long-term, definitely
<zenspider> quality code takes a little longer up front, but requires less revisiting
<jroes> I haven't been able to make the short-term case though
<jroes> that's how I feel. tough to get the rest of the company / clients on board
<zenspider> and I'm talking 5-10 minutes longer
<jroes> so the author of this code has gained a reputation of writing "too many tests" and not being very productive
<jroes> I venture to say it's not the tests fault, it's the "clever"ness
<zenspider> then he needs to learn about proper edge cases... and yeah. not being clevar
jstorimer has quit [Remote host closed the connection]
<zenspider> objective profiling of the code can point a lot of that out
<zenspider> clevar code frequently becomes the bottleneck
jstorimer has joined #ruby-lang
<jroes> yeah. there's some other code in a long lost place that's doing some really fancy currying
<jroes> same author
skade has quit [Ping timeout: 264 seconds]
<zenspider> jroes: nil checks are almost always a code smell.
krohrbaugh has joined #ruby-lang
<jroes> yeah, it's funny because this guy has totally seen the DAS episode about the nil object pattern
<jroes> he told me all about it
wmoxam has quit [Ping timeout: 260 seconds]
<zenspider> yeah blowmage ... that's creepy
<blowmage> its creepy?
breakingthings has quit [Quit: breakingthings]
atmosx has joined #ruby-lang
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby-lang
krohrbaugh1 has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
Wardrop has joined #ruby-lang
w00x has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
enebo has joined #ruby-lang
workmad3 has joined #ruby-lang
enebo has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
torrieri has quit [Quit: Leaving...]
krohrbaugh has quit [Quit: Leaving.]
pipework has quit [Ping timeout: 255 seconds]
neurodamage has quit [Ping timeout: 248 seconds]
jsullivandigs has joined #ruby-lang
neurodamage has joined #ruby-lang
benanne has quit [Quit: kbai]
joshuawscott has quit [Quit: joshuawscott]
<Aloysius1> Hey, would it be banworthy to ask a testing question here?
torrieri has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
<injekt> Aloysius1: no
joshuawscott has joined #ruby-lang
<Aloysius1> OK, here it is: I have an object that subscribes to a message queue by passing a code block. So, "message_queue_module::subscribe(args) do | parm1, parm2, parm3 | <...code block here...>".
<Aloysius1> And I want to test that "code block here" part. It seems like I should be able to do that by hijacking the "message_queue_module::subscribe" routine so that my testing code gets it rather than the message_queue_module.
coffeeju1 has joined #ruby-lang
<Aloysius1> I thought I could stub it with "message_queue_module.stub(:subscribe) do | callback |" and then capturing the value of callback, which should contain my code block.
<Aloysius1> But maybe I'm just thinking about it wrong.
atmosx has quit [Quit: And so the story goes…]
<Aloysius1> (I mean, needless to say this doesn't work, but I'm not sure if it's that I've made a minor mistake or gone completely of the proverbial rails.)
TvL2386 has quit [Quit: Ex-Chat]
torrieri has quit [Read error: Connection reset by peer]
torrieri_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
JpC0utur3 has quit [Ping timeout: 248 seconds]
jstorimer has joined #ruby-lang
JpC0utur3 has joined #ruby-lang
torrieri_ has quit [Client Quit]
dingus_khan has joined #ruby-lang
xsdg has quit [Ping timeout: 256 seconds]
smook4 has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
jstorimer has quit [Ping timeout: 240 seconds]
<naquad> is there something like lazy value in ruby?
<naquad> i need something that will accept block and won't execute it until someone tries to do something with this object
krohrbaugh has quit [Quit: Leaving.]
joshuawscott has quit [Quit: joshuawscott]
krames has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x0f_ has quit [Ping timeout: 264 seconds]
tdy has quit [Read error: Connection reset by peer]
machuga has quit [Ping timeout: 248 seconds]
x0f has joined #ruby-lang
tdy has joined #ruby-lang
xsdg has joined #ruby-lang
machuga has joined #ruby-lang
x0f has quit [Read error: Operation timed out]
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
torrieri has joined #ruby-lang
x0f has joined #ruby-lang
geopet has quit [Quit: geopet]
DomKM has joined #ruby-lang
krohrbaugh has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
krohrbaugh1 has joined #ruby-lang
solars has quit [Read error: Operation timed out]
andrewvos has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
Squarepy has quit [Quit: Leaving]
machuga has quit [Max SendQ exceeded]
machuga has joined #ruby-lang
cofin has quit [Quit: cofin]
krohrbaugh1 has quit [Quit: Leaving.]
torrieri has quit [Quit: Leaving...]
krohrbaugh has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
fragamus has quit [Quit: Computer has gone to sleep.]
Silex has quit [Ping timeout: 248 seconds]
mikewintermute has quit [Quit: mikewintermute]
torrieri_ has joined #ruby-lang
Silex has joined #ruby-lang
andrewvos has quit [Quit: leaving]
slowhands has joined #ruby-lang
jstorimer has joined #ruby-lang
bastilian has joined #ruby-lang
DomKM has quit [Quit: Leaving.]
GarethAdams has joined #ruby-lang
stamina has quit [Ping timeout: 246 seconds]
krohrbaugh has quit [Quit: Leaving.]
kstuart has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gja has joined #ruby-lang
bastilian has quit [Quit: Leaving...]
DomKM has joined #ruby-lang
umttumt has joined #ruby-lang
anonymuse has joined #ruby-lang