sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby-lang
enebo has joined #ruby-lang
ascarter has joined #ruby-lang
Hendrikto has joined #ruby-lang
<Hendrikto>
Anybody knowledgable about Rails and minitest?
havenwood has joined #ruby-lang
bungoman has joined #ruby-lang
micmus has joined #ruby-lang
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
<ericwood>
check out #rubyonrails
workmad3 has joined #ruby-lang
woodruffw has quit [Ping timeout: 264 seconds]
alestuber has quit [Remote host closed the connection]
alestuber has joined #ruby-lang
micmus has quit [Ping timeout: 240 seconds]
malconis has joined #ruby-lang
tomaz_b has quit [Ping timeout: 256 seconds]
AlexAltea has joined #ruby-lang
unreal has joined #ruby-lang
rikkipitt has quit [Quit: Leaving...]
ledestin has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
airdisa has quit [Remote host closed the connection]
foucist has joined #ruby-lang
<foucist>
hey folks.. is there a good way to do some sort of string interpolation on a constant/hash afterwards
<foucist>
i have a set of memcache keys like ["profile_logins_blocking_#{block_id}", "profile_ids_blocking_#{block_id}", "profile_logins_blocked_by_#{profile_id}", "profile_ids_blocked_by_#{profile_id}"]
<foucist>
is there a good way to get it back out, with interpolation
riotjone_ has quit [Remote host closed the connection]
<foucist>
making it a constant so i can access it from the test specs too
<apeiros>
foucist: I can't really make sense of your question
<foucist>
apeiros: well i mean, ultimately i want ""profile_logins_blocking_1021" etc
joaomdmoura has joined #ruby-lang
<apeiros>
that does not really clarify where you're having issues
_1_Alex2 has joined #ruby-lang
djinni` has quit [Ping timeout: 248 seconds]
_1_Alex2 has quit [Read error: Connection reset by peer]
<foucist>
apeiros: CACHEKEYS.to_a.map {|x| value = (x.first == :block ? block_id : profile_id); x.last.zip([value, value]).map {|x| x.join("") }} works
<foucist>
i was hoping for a simpler solution :P
<foucist>
=> [["profile_logins_blocking_1", "profile_ids_blocking_1"], ["profile_logins_blocked_by_2", "profile_ids_blocked_by_2"]] (where block_id was 1, and profile_id was 2)
bungoman has quit [Remote host closed the connection]
<apeiros>
def cache_keys(block_id, profile_id); ["profile_logins_blocking_#{block_id}", "profile_ids_blocking_#{block_id}", "profile_logins_blocked_by_#{profile_id}", "profile_ids_blocked_by_#{profile_id}"]; end
AlexAltea has quit [Ping timeout: 256 seconds]
<apeiros>
though your results differ - in your initial question you had a flat array, in your example you don't…
<foucist>
yeah that's probably the simplest approach, d'oh :P
<apeiros>
doesn't help making your question less confusing if your examples don't align…
<foucist>
er yeah it is supposed to be a flat array ultimately
alestuber has joined #ruby-lang
sarkyniin has quit [Quit: Quit]
ryba_ has quit [Ping timeout: 272 seconds]
<foucist>
Hendrikto: i'd test with binding.pry, sounds like you're not bypassing validation error. besides that seems to be more of a #rubyonrails question
cryptarium has joined #ruby-lang
cryptarium has quit [Remote host closed the connection]
sarkyniin has joined #ruby-lang
Hendrikto has quit [Quit: Page closed]
tiagotex has joined #ruby-lang
lapide_viridi has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
whippythellama has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
<blowmage>
henrikhodne: apologies, that was meant for Hendrikto
nertzy has joined #ruby-lang
joaomdmoura has joined #ruby-lang
ogpastaling has joined #ruby-lang
riotjones has joined #ruby-lang
Voker57 has joined #ruby-lang
riotjones has quit [Ping timeout: 272 seconds]
woodruffw has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
Guest20 has joined #ruby-lang
Almotasim has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby-lang
Almotasim has joined #ruby-lang
that1guy has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
airdisa has quit []
micmus has joined #ruby-lang
airdisa has joined #ruby-lang
solars has quit [Ping timeout: 240 seconds]
|jemc| has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
ogpastaling has quit [Remote host closed the connection]
ogpastaling has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
nertzy has quit [Quit: This computer has gone to sleep]
jo__ has joined #ruby-lang
charliesome has quit [Quit: zzz]
fujimura has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
that1guy has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
hackeron has joined #ruby-lang
delongG has joined #ruby-lang
delongG has quit [Remote host closed the connection]
tiagotex has quit [Remote host closed the connection]
meekalpha has joined #ruby-lang
workmad3 has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
airdisa has quit []
bb010g has quit [Quit: Connection closed for inactivity]
imperator2 has joined #ruby-lang
AlexAltea has joined #ruby-lang
alestuber has quit [Ping timeout: 276 seconds]
that1guy has joined #ruby-lang
alestuber has joined #ruby-lang
moretti has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
foucist has left #ruby-lang [#ruby-lang]
shinnya has joined #ruby-lang
Iskarlar has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
rbowlby has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 240 seconds]
stan has quit [Ping timeout: 256 seconds]
Guest20 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alestuber has quit [Ping timeout: 276 seconds]
alestuber has joined #ruby-lang
arBmind has joined #ruby-lang
matp_ is now known as matp
delongG has joined #ruby-lang
jgpawletko has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
AugustoCesar has quit [Ping timeout: 256 seconds]
_djbkd has joined #ruby-lang
moretti has quit [Remote host closed the connection]
jacaballero has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
alestuber has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby-lang
alestuber has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
dabradley has quit [Quit: WeeChat 0.4.2]
bungoman has joined #ruby-lang
dabradley has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
bungoman has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby-lang
RobertBirnie has joined #ruby-lang
arBmind has quit [Ping timeout: 265 seconds]
dellavg_ has joined #ruby-lang
alestuber has quit [Ping timeout: 256 seconds]
arBmind has joined #ruby-lang
moretti has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alestuber has joined #ruby-lang
delongG has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
tsujp has joined #ruby-lang
bungoman has joined #ruby-lang
delongG has joined #ruby-lang
tsujp has quit [Client Quit]
joaomdmoura has joined #ruby-lang
ryba_ has joined #ruby-lang
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GitNick has joined #ruby-lang
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 246 seconds]
nertzy has joined #ruby-lang
xcesariox has joined #ruby-lang
shinnya has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
pabloh has joined #ruby-lang
jdeen has joined #ruby-lang
moretti has quit [Remote host closed the connection]
<jdeen>
Hi guys, do any one of you know how to find the 'Easter Sunday' for any given year? I beleive it has to do some thing with the Lunar Calander...
<bougyman>
which easter?
<bougyman>
orthodox easter is different from non-orhodox.
<apeiros>
jdeen: take a look on wikipedia. there's a formula to calculate it.
leat3 has quit [Remote host closed the connection]
leat3 has joined #ruby-lang
cryptarium has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
_djbkd has joined #ruby-lang
that1guy has quit [Quit: This computer has gone to sleep]
jacaballero has quit [Remote host closed the connection]
pas has joined #ruby-lang
jacaballero has joined #ruby-lang
<pas>
testing new irc client
<pas>
nice
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
joaomdmo_ has joined #ruby-lang
joaomdmoura has quit [Read error: Connection reset by peer]
leat3 has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
bertocode has joined #ruby-lang
leat3 has joined #ruby-lang
joaomdmo_ has quit [Read error: Connection reset by peer]
pas has quit [Quit: WeeChat 1.1.1]
joaomdmoura has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
rflot has quit [Read error: Connection reset by peer]
bcardarella_ has quit [Read error: Connection reset by peer]
lacrosse__ has quit [Read error: Connection reset by peer]
linc01n has quit [Ping timeout: 256 seconds]
rflot has joined #ruby-lang
bcardarella_ has joined #ruby-lang
lacrosse__ has joined #ruby-lang
alestuber has quit [Ping timeout: 256 seconds]
alestuber has joined #ruby-lang
linc01n has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
delongG has quit [Remote host closed the connection]
delongG has joined #ruby-lang
fusillicode has joined #ruby-lang
joaomdmoura has quit [Read error: No route to host]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joaomdmoura has joined #ruby-lang
dagda1 has joined #ruby-lang
bruno- has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
bruno- has joined #ruby-lang
bruno- is now known as Guest39059
k3asd` has joined #ruby-lang
riffraff has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
delongG has quit [Remote host closed the connection]
andrewpagej has joined #ruby-lang
<andrewpagej>
Hi, I'm using method_missing to intercept a failing method call. The method call is passing a block, and I want to pass that block on to the correct recipient using something like #send or #public_send. How do I pass a block with those methods?
<andrewpagej>
StackOverflow hasn't been helpful
<bnagy>
&blk
<andrewpagej>
so public_send(:method_name, *arguments, &block)?
<womble>
andrewpagej: Yes.
<bnagy>
usually
<andrewpagej>
alright thanks
andrewpagej has left #ruby-lang [#ruby-lang]
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
RickHull has joined #ruby-lang
someguy has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
delongG has joined #ruby-lang
tomaz_b has joined #ruby-lang
DefV has quit [Ping timeout: 252 seconds]
alestuber has quit [Ping timeout: 264 seconds]
someguy has quit [Quit: This computer has gone to sleep]
izzimus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]