jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
uglybandersnatch has quit [Ping timeout: 268 seconds]
charliesome has quit [Ping timeout: 260 seconds]
BrunoSaboia has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
BSaboia has quit [Ping timeout: 252 seconds]
jordanm has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
freerobby has quit [Quit: Leaving.]
yqt has quit [Ping timeout: 276 seconds]
ensyde__ has joined #ruby
Limix has quit [Quit: Limix]
symm- has joined #ruby
conail has joined #ruby
stunder001 has quit [Ping timeout: 260 seconds]
ensyde_ has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
Gasher has quit [Quit: Leaving]
idefine has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rmulligan has joined #ruby
Snowy has joined #ruby
uglybandersnatch has joined #ruby
fpedroso has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
zenguy_pc has quit [Ping timeout: 240 seconds]
zenguy_pc has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
RegulationD has quit [Remote host closed the connection]
ropeney has joined #ruby
ebbflowgo has joined #ruby
Wicaeed has joined #ruby
saneax is now known as saneax_AFK
charliesome has quit [Read error: Connection reset by peer]
bronson has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Rickmasta has joined #ruby
axl_ has quit [Quit: axl_]
stunder001 has joined #ruby
kies has joined #ruby
x77686d has quit [Quit: x77686d]
intrigueD has quit [Remote host closed the connection]
freerobby has joined #ruby
stunder001 has quit [Ping timeout: 240 seconds]
stunder001 has joined #ruby
Jardayn has quit [Quit: Leaving]
CloCkWeRX has quit [Ping timeout: 244 seconds]
<jericon> Is there a way to use the Ruby Logger to output to a file if invoked by cron, but output to stdout if invoked by a person?
confused123 has joined #ruby
<confused123> Anyone alive in here?
bronson has quit [Remote host closed the connection]
<confused123> I need help with RSpec
<confused123> I've created a class under my spec/ folder called FileMock
<confused123> Sitting in file_mock.rb
axl_ has joined #ruby
<confused123> In this class, I call "allow"
uglybandersnatch has quit [Ping timeout: 244 seconds]
<confused123> allow(File).to receive(:open) do |path|
<confused123> Like this
<confused123> But
<confused123> I'm getting a NoMethodError
<confused123> undefined method `allow'
stunder001 has quit [Ping timeout: 244 seconds]
<confused123> I'm creating FileMock in a before :each clause in RSpec
Snowy has quit [Quit: ragequit]
<confused123> And if I don't use FileMock and call allow in a global method, there's no issues
charliesome has quit [Ping timeout: 250 seconds]
uglybandersnatch has joined #ruby
bronson has joined #ruby
mlehrer has quit [Ping timeout: 246 seconds]
<adit> jericon yes, there are a lot of ways to do that
baweaver has joined #ruby
axl_ has quit [Client Quit]
<adit> for example you could set an env var when invoking by cron:
<adit> FOO=1 ruby my_script.rb
<adit> then check if ENV["FOO"] is set in your script
mlehrer has joined #ruby
charliesome has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eregi_ has joined #ruby
dasher^0_o has quit [Ping timeout: 244 seconds]
confused123 has quit [Quit: Page closed]
dasher^0_o has joined #ruby
arescorpio has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
idefine has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
uglybandersnatch has quit [Ping timeout: 244 seconds]
eregi has quit [Ping timeout: 252 seconds]
moos3 has quit [Ping timeout: 248 seconds]
uglybandersnatch has joined #ruby
s1kx has quit [Quit: bai]
skade has joined #ruby
idefine has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
Kryptonical has joined #ruby
DLSteve has joined #ruby
kam270 has joined #ruby
Synthead has quit [Remote host closed the connection]
blackgoat has quit [Quit: WeeChat 1.4]
CloCkWeRX has joined #ruby
Krypt has joined #ruby
Kryptonical has quit [Ping timeout: 240 seconds]
Synthead has joined #ruby
Kryptonical has joined #ruby
eregi_ has quit [Ping timeout: 276 seconds]
aeontech has quit [Ping timeout: 252 seconds]
KliKK has quit [Ping timeout: 252 seconds]
nanoz has joined #ruby
pawnbox has joined #ruby
Krypt has quit [Ping timeout: 250 seconds]
lemur has joined #ruby
lyoshajapan has joined #ruby
Kryptonical has quit [Ping timeout: 240 seconds]
yuung has joined #ruby
safe has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 248 seconds]
lyoshaja_ has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
minimalism has quit [Quit: minimalism]
robbyoconnor has joined #ruby
lyoshajapan has quit [Ping timeout: 248 seconds]
HalcyonicStorm has quit [Quit: Leaving.]
trinaldi has quit [Quit: zzz]
siaw has quit [Quit: siaw]
gbgdev has joined #ruby
aeontech has joined #ruby
ivanskie_work_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
ivanskie_work_ has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
rmulligan has joined #ruby
wnd has quit [Ping timeout: 260 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
babblebre has quit [Quit: Connection closed for inactivity]
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mojo_Nixon has joined #ruby
Mojo_Nixon has quit [Client Quit]
aeontech has quit [Ping timeout: 252 seconds]
safe has quit [Quit: Leaving]
decoponio has quit [Quit: Leaving...]
aeontech has joined #ruby
vishwa has joined #ruby
safe has joined #ruby
baweaver has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 244 seconds]
rmulligan has quit [Ping timeout: 248 seconds]
railsFor_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
lyoshaja_ has quit [Remote host closed the connection]
Synthead has quit [Remote host closed the connection]
norc_ has quit [Ping timeout: 252 seconds]
krobzaur has joined #ruby
rcvalle has quit [Quit: rcvalle]
AlphaAtom has joined #ruby
RegulationD has joined #ruby
wnd has joined #ruby
baweaver has joined #ruby
Synthead has joined #ruby
johnmilton has joined #ruby
lyoshajapan has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
RegulationD has quit [Ping timeout: 248 seconds]
blackmesa has quit [Quit: WeeChat 1.4]
marr has quit [Ping timeout: 264 seconds]
idefine has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
araujo has quit [Read error: Connection timed out]
baweaver has quit [Remote host closed the connection]
araujo has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
idefine has quit [Ping timeout: 240 seconds]
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
BrunoSaboia has quit [Ping timeout: 252 seconds]
but3k4 has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
aeontech has quit [Quit: aeontech]
johnmilton has quit [Ping timeout: 260 seconds]
adit has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie_work_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
aspiers has joined #ruby
Mia has quit [Ping timeout: 244 seconds]
moos3 has joined #ruby
stunder001 has joined #ruby
but3k4 has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
stunder001 has quit [Ping timeout: 240 seconds]
djbkd has quit [Quit: My people need me...]
nerium has quit [Quit: nerium]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
bronson has quit [Remote host closed the connection]
juanfra has quit [Ping timeout: 248 seconds]
moos3 has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
Rodya_ has joined #ruby
PaulCapestany has quit [Quit: .]
juanfra has joined #ruby
pawnbox has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
juanfra has quit [Client Quit]
PaulCapestany has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
duckpuppy has joined #ruby
eregi has joined #ruby
statelesscode has joined #ruby
ebbflowgo has joined #ruby
freerobby has quit [Quit: Leaving.]
A124 has quit [Quit: '']
A124 has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
CloCkWeRX has joined #ruby
freerobby has joined #ruby
hxegon has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
jenrzzz has joined #ruby
juanfra has joined #ruby
maletor_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rmulligan has joined #ruby
justbleed has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
wename has joined #ruby
Sucks has joined #ruby
<havenwood> !troll wename
wename was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
dcunit3d has quit [Quit: WeeChat 1.4]
polyidus has joined #ruby
aeontech has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
arlek has joined #ruby
yuung has quit [Quit: leaving]
rmulligan has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
bronson has joined #ruby
Mon_Ouie has quit [Ping timeout: 276 seconds]
aeontech has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
rattatmatt has quit [Remote host closed the connection]
cyclonis has joined #ruby
niksrc_ has joined #ruby
aeontech has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
cyclonis has quit [Ping timeout: 250 seconds]
Mon_Ouie has joined #ruby
FooMunki has quit [Quit: FooMunki]
trosborn has joined #ruby
ensyde__ has quit [Quit: Leaving]
boontdustie has joined #ruby
cpup has quit [Ping timeout: 264 seconds]
cpup has joined #ruby
tjbiddle has joined #ruby
trosborn has quit [Quit: trosborn]
jayc0b0 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
veduardo has joined #ruby
Tricon has quit [Remote host closed the connection]
Tricon has joined #ruby
devbug has joined #ruby
Sucks has quit [Remote host closed the connection]
cyclonis has joined #ruby
baweaver has joined #ruby
niksrc_ has quit [Quit: Leaving]
zeroDivisible has quit [Quit: WeeChat 1.3]
boontdustie has quit [Quit: Mutter: www.mutterirc.com]
ramfjord has quit [Ping timeout: 240 seconds]
boontdustie has joined #ruby
norc_ has joined #ruby
Sucks has joined #ruby
eregi has quit [Ping timeout: 248 seconds]
kam270 has quit [Ping timeout: 248 seconds]
Wicaeed has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
moos3 has joined #ruby
rattatmatt has joined #ruby
dopie has quit [Quit: Lost terminal]
auzty has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
moos3 has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
n008f4g_ has quit [Ping timeout: 248 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
boontdustie has quit [Quit: Mutter: www.mutterirc.com]
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
boontdustie has joined #ruby
floatingpoint has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
fpedroso has quit [Quit: Leaving]
boontdustie has quit [Client Quit]
norc__ has joined #ruby
sarbs has quit [Max SendQ exceeded]
sarbs has joined #ruby
cyclonis has quit [Ping timeout: 248 seconds]
rattatmatt has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
chouhoulis has quit [Remote host closed the connection]
shadoi has joined #ruby
chouhoulis has joined #ruby
shadoi has quit [Client Quit]
cyclonis has joined #ruby
kam270 has joined #ruby
norc_ has quit [Ping timeout: 268 seconds]
moeabdol2 has quit [Ping timeout: 260 seconds]
_kfpratt has quit []
uglybandersnatch has joined #ruby
vdamewood has quit [Quit: Life beckons.]
rmulligan has joined #ruby
freerobby has quit [Quit: Leaving.]
baweaver has joined #ruby
boontdustie has joined #ruby
ESpiney has joined #ruby
Moosashi has joined #ruby
justbleed is now known as BuildTheWall
rmulligan has quit [Ping timeout: 268 seconds]
baweaver has quit [Ping timeout: 248 seconds]
boontdustie has quit [Quit: Mutter: www.mutterirc.com]
boontdustie has joined #ruby
aeontech has quit [Quit: aeontech]
pawnbox has joined #ruby
jottr has joined #ruby
DmitryBochkarev has joined #ruby
boontdustie has quit [Client Quit]
davejlong has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
rattatmatt has joined #ruby
boontdustie has joined #ruby
rkazak has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
polyidus has quit [Quit: Later]
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> long live ruby!
boontdustie has quit [Ping timeout: 252 seconds]
jayc0b0 has quit [Ping timeout: 260 seconds]
jud has quit [Read error: Connection reset by peer]
jud has joined #ruby
Es0teric has joined #ruby
anon___ has joined #ruby
guardian has quit [Ping timeout: 260 seconds]
norc_ has joined #ruby
ramfjord has joined #ruby
ziprar has quit [Ping timeout: 268 seconds]
Limix has joined #ruby
Limix has quit [Client Quit]
HalcyonicStorm has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
boontdustie has joined #ruby
zarubin has quit [Ping timeout: 276 seconds]
jayc0b0 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 264 seconds]
norc__ has quit [Ping timeout: 268 seconds]
zarubin has joined #ruby
treaki_ has quit [Ping timeout: 244 seconds]
treaki_ has joined #ruby
cyclonis has quit [Ping timeout: 250 seconds]
HalcyonicStorm has quit [Quit: Leaving.]
cyclonis has joined #ruby
boontdustie has quit [Ping timeout: 276 seconds]
Moosashi has quit [Quit: Moosashi]
Moosashi has joined #ruby
krobzaur has quit [Ping timeout: 244 seconds]
but3k4 has joined #ruby
hxegon has joined #ruby
x77686d has joined #ruby
UtkarshRay has quit [Ping timeout: 240 seconds]
but3k4 has quit [Ping timeout: 244 seconds]
kfpratt has joined #ruby
ivanskie has joined #ruby
hxegon has quit [Quit: BRB]
lyoshajapan has quit [Remote host closed the connection]
graphettion has joined #ruby
lyoshajapan has joined #ruby
sneakerhax has joined #ruby
rmulligan has joined #ruby
chipotle has joined #ruby
Sucks has quit [Quit: No Ping reply in 180 seconds.]
Sucks has joined #ruby
arescorpio has quit [Ping timeout: 244 seconds]
hxegon has joined #ruby
krz has joined #ruby
pawnbox has joined #ruby
rmulligan has quit [Ping timeout: 240 seconds]
tjbiddle has quit [Quit: tjbiddle]
idefine has joined #ruby
gbgdev has quit [Remote host closed the connection]
hxegon is now known as hxegon_AFK
Moosashi has quit [Quit: Moosashi]
s00pcan has quit [Ping timeout: 264 seconds]
hxegon_AFK is now known as hxegon
pawnbox has quit [Ping timeout: 244 seconds]
idefine has quit [Ping timeout: 248 seconds]
s00pcan has joined #ruby
cantaberry has quit []
hxegon is now known as hxegon_AFK
treaki_ has quit [Ping timeout: 248 seconds]
treaki_ has joined #ruby
hxegon_AFK is now known as hxegon
hxegon is now known as hxegon_AFK
duncannz has joined #ruby
gix has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
davejlong has quit []
Rodya_ has joined #ruby
braincrash has quit [Quit: bye bye]
arlek has quit [Ping timeout: 244 seconds]
CBX has joined #ruby
zast has joined #ruby
gix has joined #ruby
Rodya_ has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
stardiviner has joined #ruby
djbkd has joined #ruby
hxegon_AFK has quit [Quit: BRB]
ghormoon has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
PlasmaStar has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
Spleeze has quit [Quit: QUIT]
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
boontdustie has joined #ruby
CBX has quit [Quit: Leaving]
DoubleMalt has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
lyoshajapan has quit [Remote host closed the connection]
Spleeze has joined #ruby
lyoshajapan has joined #ruby
svankmajer has joined #ruby
Moosashi has joined #ruby
BuildTheWall has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lyoshajapan has quit [Remote host closed the connection]
lyoshajapan has joined #ruby
lyoshajapan has quit [Remote host closed the connection]
lyoshaja_ has joined #ruby
hxegon has joined #ruby
tjbiddle has joined #ruby
mallu has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
boontdustie has quit [Remote host closed the connection]
quazimodo has joined #ruby
<quazimodo> hey all
lyoshaja_ has quit [Remote host closed the connection]
hxegon is now known as hxegon_AFK
<havenwood> quazimodo: hi
Rodya_ has quit [Remote host closed the connection]
bry4n has joined #ruby
dcope has joined #ruby
<dcope> with net http, how can i set a query string?
<dcope> i can't find any applicable properties on Net::HTTP::Get
arescorpio has joined #ruby
<Radar> dcope: Do you have to use Net::HTTP or are you doing it because of masochistic tendencies?
<dcope> Radar: i'm just using net:http to keep it simple. this is just a simple shell script i'm playing with. :)
pawnbox has joined #ruby
<Radar> Net::HTTP is not "simple"
microt has left #ruby ["WeeChat 1.3"]
<Radar> I recommend using Excon or HTTParty so that you don't have to battle with Net::HTTP's crap API
<dcope> Radar: well, simple to setup. i was just trying to stick in with built in libraries.
<dcope> request_uri did the trick though! thank you :D
<svankmajer> I've a Hash with three keys: a, b, and c. I want to map their elements like this: `a.flat_map { |i| b.flat_map { |j| c.map {|k| [i, j, k] } } }`. Now, how could I do this, not knowing how many keys the Hash has? How can one nest those `map`s "dynamically", based on a number of collections? Jesus. I don't know anymore if this is making any sense whatsoever.
bronson has quit [Remote host closed the connection]
<svankmajer> their values, which are arrays* (e.g. of integers)
polyidus has joined #ruby
ghormoon has joined #ruby
hxegon_AFK is now known as hxegon
devbug_ has joined #ruby
Tricon has quit [Remote host closed the connection]
Tricon has joined #ruby
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
krz has quit [Ping timeout: 276 seconds]
<Ox0dea> svankmajer: It's not entirely clear what you're asking, but I suspect you want something from Ruby's limited supply of combinatorics.
statelesscode has quit [Quit: statelesscode]
tjbiddle has quit [Ping timeout: 260 seconds]
sarlalian has joined #ruby
treaki__ has joined #ruby
nicnilov has joined #ruby
<havenwood> svankmajer: h.values.reduce(&:product).map(&:flatten)
tjbiddle has joined #ruby
rmulligan has joined #ruby
graphettion has quit [Remote host closed the connection]
djellemah has quit [Ping timeout: 250 seconds]
voidsta has joined #ruby
hxegon is now known as hxegon_AFK
toretore has joined #ruby
sarlalian has quit [Client Quit]
hxegon_AFK is now known as hxegon
sarlalian has joined #ruby
treaki_ has quit [Ping timeout: 268 seconds]
hxegon is now known as hxegon_AFK
<Ox0dea> svankmajer: https://eval.in/532335
arescorpio has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 250 seconds]
hxegon_AFK is now known as hxegon
<havenwood> >> {a: [1, 2, 3], b: [5, 7], c: [3, 1, 6]}.values.reduce(&:product).map(&:flatten)
<ruby[bot]> havenwood: # => [[1, 5, 3], [1, 5, 1], [1, 5, 6], [1, 7, 3], [1, 7, 1], [1, 7, 6], [2, 5, 3], [2, 5, 1], [2, 5, 6], ...check link for more (https://eval.in/532338)
<Ox0dea> A reduction is kinda wasteful here, no?
<Ox0dea> #product can take any number of arguments.
krz has joined #ruby
<havenwood> head, *tail = h.values; head.product(*tail)
<Ox0dea> Sexeh.
<havenwood> Ox0dea: roger that!
Macaveli has joined #ruby
<Ox0dea> Is there a name for applying some operation *to* the head *with* the tail as arguments?
<svankmajer> havenwood: Ox0dea: Wow. Thanks for taking the time. I didn't know about #product. I'm playing with it on the repl now.
Spleeze has quit [Quit: QUIT]
<Ox0dea> I feel like Factor had some name for it, but there's idiosyncrasy all over the place there.
ponga has joined #ruby
saneax_AFK is now known as saneax
djellemah has joined #ruby
aupadhye has joined #ruby
hxegon is now known as hxegon_AFK
Sucks has quit [Ping timeout: 246 seconds]
veduardo has quit [Ping timeout: 264 seconds]
Macaveli has quit [Ping timeout: 276 seconds]
rattatmatt has quit []
hxegon_AFK is now known as hxegon
hxegon is now known as hxegon_AFK
brent_ has joined #ruby
ruby-lang851 has joined #ruby
<brent_> HI, i had a question regarding passing a hash as an argument
<brent_> the test case they gave me is basically Dictionary.new.add("fish" => "water"), and i need to add that to the instance variable hash
vishwa has quit [Ping timeout: 244 seconds]
eregi has joined #ruby
<Ox0dea> brent_: A Hash is in fact being passed as an argument there.
<brent_> i'm confused on how they give the argument... add("fish" => "water"), and don't put it between {}
<Ox0dea> You can have an "implicit Hash" as the last argument in a method call.
sauvin has joined #ruby
gix has quit [Ping timeout: 244 seconds]
<brent_> 0x0dea okay, so in my add method i can pull the key and value like it's a normal hash
<Ox0dea> brent_: https://eval.in/532339
hxegon_AFK is now known as hxegon
hxegon has quit [Quit: BRB]
Moosashi has quit [Quit: Moosashi]
<brent_> 0x0dea thanks for the confirmation
<Ox0dea> Sure thing.
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
gix has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
rmulligan has joined #ruby
<Ox0dea> brent_: A neat trick: https://eval.in/532340
hk238 has joined #ruby
Tricon has quit [Remote host closed the connection]
Tricon has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
Tricon has quit [Client Quit]
<brent_> 0x0dea interesting, so the (k, v), = *entry assigns the key/values?
<brent_> no need to iterate through?
baweaver has joined #ruby
Lucky_ABA has joined #ruby
rmulligan has quit [Ping timeout: 260 seconds]
rmulligan has joined #ruby
RegulationD has joined #ruby
<Ox0dea> brent_: Well, no, it only assigns the first key-value pair; that dangling comma ignores the rest.
statelesscode has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<brent_> okay
<Ox0dea> It certainly makes sense for your #add method to be able to handle multiple new definitions, so probably ignore that trick for now. :)
<brent_> yeah i agree
<brent_> it looks like there is test cases for single arguments as well which you then have to assign it a value of nil
<brent_> if entry.is_a?(Hash)
<brent_> seem like the best way to go aobut it
<brent_> ?
<brent_> else; @dict[entry] = nil
krz has quit [Ping timeout: 248 seconds]
<Ox0dea> Seems fine.
eregi has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
krz has joined #ruby
darkxploit has quit [Ping timeout: 246 seconds]
vishwa has joined #ruby
A124 has quit [Quit: '']
DmitryBochkarev has joined #ruby
A124 has joined #ruby
kp666 has quit [Remote host closed the connection]
lxsameer has joined #ruby
BtcBen has joined #ruby
kp666 has joined #ruby
darkxploit has joined #ruby
sarlalian has quit [Quit: ZNC 1.6.1 - http://znc.in]
quazimodo has quit [Ping timeout: 250 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: My people need me...]
rkazak has quit [Quit: Sleep.....ing....]
crankhar1er has quit [Ping timeout: 240 seconds]
Hobbyboy has quit [Quit: I think the BNC broke.]
djbkd has joined #ruby
sauvin has quit [Max SendQ exceeded]
sauvin has joined #ruby
moeabdol3 has joined #ruby
djbkd has quit [Client Quit]
ixti has quit [Ping timeout: 260 seconds]
quazimodo has joined #ruby
ArtursL has joined #ruby
rmulligan has quit [Remote host closed the connection]
rmulligan has joined #ruby
moeabdol3 has quit [Ping timeout: 268 seconds]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nicnilov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
x77686d has quit [Quit: x77686d]
djbkd has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
nicnilov has joined #ruby
abhi_rsd has joined #ruby
zast has quit [Remote host closed the connection]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has joined #ruby
roshanavand has joined #ruby
polyidus has quit [Quit: Later]
sarlalian has joined #ruby
vishwa has quit [Ping timeout: 244 seconds]
Hobbyboy has joined #ruby
abhi_rsd has quit [Ping timeout: 268 seconds]
svankmajer has quit [Ping timeout: 246 seconds]
ruby-lang851 has quit [Ping timeout: 252 seconds]
paatalaBhairavi has joined #ruby
sarlalian has quit [Quit: ZNC 1.6.1 - http://znc.in]
sarlalian has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
nicnilov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quazimodo has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
ArtursL has quit [Ping timeout: 250 seconds]
eregi has quit [Ping timeout: 240 seconds]
nicnilov has joined #ruby
amclain has quit [Quit: Leaving]
araujo_ has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
eregi has joined #ruby
tjbiddle has joined #ruby
ixti has joined #ruby
araujo has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
solocshaw has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
KensoDev has joined #ruby
symm-_ has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
floatingpoint has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
floatingpoint has quit [Client Quit]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 264 seconds]
coffeecupp has joined #ruby
ta_ has quit [Remote host closed the connection]
thor_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
dede has joined #ruby
pawnbox has quit [Remote host closed the connection]
thor_ has quit [Ping timeout: 268 seconds]
symm-_ has quit [Ping timeout: 260 seconds]
charliesome has quit [Ping timeout: 240 seconds]
safe has quit [Quit: Leaving]
CloCkWeRX has quit [Quit: Leaving.]
solars has joined #ruby
TinkerTyper has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
coffeecupp has quit [Quit: Leaving]
coffeecupp has joined #ruby
pawnbox has joined #ruby
krz has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
krz has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
skydiver has joined #ruby
crdpink2 has joined #ruby
ohaibbq has joined #ruby
skydiver has quit [Client Quit]
skydiver has joined #ruby
eregi has quit [Ping timeout: 260 seconds]
crdpink has quit [Ping timeout: 248 seconds]
skydiver has quit [Client Quit]
TinkerTyper has joined #ruby
aganov has joined #ruby
Kryptonical has joined #ruby
skydiver has joined #ruby
skydiver has quit [Client Quit]
siaw has joined #ruby
tjbiddle has joined #ruby
rippa has joined #ruby
quazimodo has joined #ruby
Kryptonical has quit [Ping timeout: 248 seconds]
TinkerTyper has quit [Max SendQ exceeded]
eregi has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TinkerTyper has joined #ruby
St1gma has quit [Quit: laters]
Don_John has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.2]
firstdayonthejob has joined #ruby
krz has joined #ruby
uglybandersnatch has quit [Ping timeout: 268 seconds]
sandstrom has joined #ruby
d0nn1e has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 244 seconds]
d0nn1e has joined #ruby
krzkrz has joined #ruby
araujo_ has quit [Quit: Leaving]
the_drow has joined #ruby
solocshaw has quit [Ping timeout: 268 seconds]
skydiver has joined #ruby
uglybandersnatch has joined #ruby
pawnbox has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
skade has joined #ruby
skydiver has quit [Client Quit]
skydiver has joined #ruby
peteyg has quit [Ping timeout: 276 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uglybandersnatch has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
but3k4 has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
skydiver has quit [Client Quit]
skydiver has joined #ruby
jottr has joined #ruby
siaw has quit [Quit: siaw]
skydiver has quit [Client Quit]
copperb0lt has joined #ruby
hahuang61 has joined #ruby
skydiver has joined #ruby
but3k4 has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
jas02 has joined #ruby
peteyg has joined #ruby
rkazak has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
andikr has joined #ruby
eregi has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
konsolebox has joined #ruby
coffeecupp has quit [Quit: Leaving]
sandstrom has joined #ruby
krzkrzkrz has joined #ruby
krzkrz has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
norc_ has quit [Read error: Connection reset by peer]
Es0teric has quit [Quit: Computer has gone to sleep.]
rdark has joined #ruby
djbkd has quit [Remote host closed the connection]
ta_ has joined #ruby
ohaibbq has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
arthurix has joined #ruby
uglybandersnatch has joined #ruby
arthurix_ has quit [Ping timeout: 260 seconds]
jeanlinux has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
codecop_ has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
Couch has joined #ruby
copperb0lt has quit [Quit: WeeChat 1.4]
sandstrom has quit [Quit: My computer has gone to sleep.]
copperb0lt has joined #ruby
jeanlinux has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 252 seconds]
aufi has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
statelesscode has quit [Quit: statelesscode]
<djellemah> I'm looking for a more generic version of something like this
<djellemah> ary.reduce([]){|totals,item| totals << (totals.last || 0) + item}
<djellemah> afaics, it's one way to do what Haskell calls scanl. Anybody know of ruby implementations? I want to see how the possible wrinkles are handled. I can only find some snippets on stackoverflow.
uglybandersnatch has quit [Ping timeout: 252 seconds]
vondruch has joined #ruby
<jhass> I'd use each_with_object but that's about as good as it gets
jaruga has joined #ruby
neanderslob_ has quit [Remote host closed the connection]
neanderslob has joined #ruby
jeanlinux has joined #ruby
<apeiros> meh, I'd probably do ary.map(&:last).compact.inject(:+)
devbug_ has quit [Ping timeout: 240 seconds]
<apeiros> oh
<apeiros> misread. you push to an array.
<jhass> apeiros: I think you misread it :)
<apeiros> yeah. it's still early morning. not had my caffeine yet :D
<jhass> sure there's a mathematical term for that, cumulative sequence or something?
<apeiros> looks like a running total?
<djellemah> yup - prefix sum, cumulative sum
<apeiros> total=0; ary.map { |item| total+item }
<apeiros> total=0; ary.map { |item| total+=item }
tvw has joined #ruby
LoneHerm_ has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<djellemah> that as well. I'm wondering if there's any point in having the totals collection (and the last total) passed around via reduce or each_with_object. Or if it's easier to just have them as locals like ^
pawnbox has quit [Remote host closed the connection]
maner has joined #ruby
pawnbox has joined #ruby
<jhass> boils down to preference I'd say
copperb0lt has quit [Quit: WeeChat 1.4]
<djellemah> I can't really think of anything more solid than that either ;-)
sandstrom has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
LoneHerm_ has quit [Ping timeout: 252 seconds]
copperb0lt has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
bronson has joined #ruby
Es0teric has joined #ruby
SCHAAP137 has joined #ruby
terlar has joined #ruby
shredding has joined #ruby
gbgdev has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
firstdayonthejob has quit [Ping timeout: 248 seconds]
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
binaryplease1 has joined #ruby
wldcordeiro has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
biberu has joined #ruby
<morfin> apeiros, i thought you can collect
ixti has quit [Ping timeout: 240 seconds]
electriv has joined #ruby
baweaver has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
<morfin> oh no, not collect but inject/reduce
Es0teric has quit [Quit: Computer has gone to sleep.]
<morfin> >> [56,873,234,89,345,96,68].reduce(:+)
<ruby[bot]> morfin: # => 1761 (https://eval.in/532431)
lxsameer has quit [Ping timeout: 250 seconds]
igam has joined #ruby
<morfin> hmm
anisha_ has joined #ruby
elaptics`away is now known as elaptics
araujo has joined #ruby
minimalism has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
the_drow has joined #ruby
anisha has quit [Ping timeout: 246 seconds]
anisha_ has quit [Client Quit]
anisha_ has joined #ruby
vondruch has quit [Ping timeout: 276 seconds]
malcolmva has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
atmosx has joined #ruby
pawnbox has joined #ruby
drptbl has joined #ruby
krzkrzkrz has quit [Ping timeout: 250 seconds]
c0x has joined #ruby
devbug has quit [Ping timeout: 268 seconds]
Es0teric has joined #ruby
krzkrzkrz has joined #ruby
<c0x> Hello People!!
wldcordeiro has joined #ruby
duncannz has quit [Remote host closed the connection]
FooMunki has joined #ruby
<jhass> hi
araujo has quit [Quit: Leaving]
araujo has joined #ruby
nerium has joined #ruby
mark2 has joined #ruby
nobitanobi has joined #ruby
whiteline has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Client Quit]
neanderslob has quit [Ping timeout: 248 seconds]
lipoqil has joined #ruby
vondruch has joined #ruby
sarlalia1 has joined #ruby
krzkrzkrz has quit [Ping timeout: 248 seconds]
sarlalia1 has quit [Client Quit]
sergey_makagon has joined #ruby
FooMunki has quit [Read error: Connection reset by peer]
neanderslob_ has joined #ruby
Xeago has joined #ruby
RegulationD has joined #ruby
mikhael_k33hl has left #ruby ["Leaving"]
eregi has joined #ruby
CloCkWeRX has joined #ruby
GBrawl has joined #ruby
malcolmva has joined #ruby
Snowy has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
BLuEGoD has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
eregi has quit [Ping timeout: 246 seconds]
gbgdev has quit [Remote host closed the connection]
joonty has joined #ruby
GBrawl has quit [Quit: (null)]
aufi_ has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
skade has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
sandstrom has joined #ruby
paatalaBhairavi has quit [Read error: Connection reset by peer]
LoneHermit has joined #ruby
but3k4 has joined #ruby
paatalaBhairavi has joined #ruby
stan has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
but3k4 has quit [Ping timeout: 248 seconds]
<morfin> that thing with foo.each(&:bar) confusing me
<morfin> >> 10.to_proc
<ruby[bot]> morfin: # => undefined method `to_proc' for 10:Fixnum ...check link for more (https://eval.in/532491)
Trioxin has joined #ruby
<Trioxin> I'm new to ruby. I installed rbenv via my distro's package manager. should I be using rbenv as root when installing a ruby or from the my user context?
troulouliou_div2 has joined #ruby
<Trioxin> none of the install tutorials mention this
f4cl3y has joined #ruby
<morfin> you can install for your user only
mfaeh has joined #ruby
<morfin> basically all ruby stuff located in ~/.rbenv
sepp2k has joined #ruby
<Trioxin> is it going to drop it into whatever directory im in?
<Trioxin> oh
troulouliou_div2 has quit [Remote host closed the connection]
baweaver has joined #ruby
Snowy has quit [Remote host closed the connection]
<morfin> no
<morfin> into /home/username/.rbenv
<Trioxin> hrm. it's showing the latest version it has is 2.2.0-preview1
<morfin> mm
<Trioxin> probably because I used apt-get?
<morfin> you can install rbenv not from apt-get
aupadhye has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
<morfin> that gives some freedom - i think you can even run your projects in jail without problems(one project - one jail)
<djellemah> :downcase.to_proc.call("STRING")
Moosashi has joined #ruby
<djellemah> doh!
M-shine has joined #ruby
glcx has joined #ruby
glcx has joined #ruby
<djellemah> >> :downcase.to_proc.call("STRING") #morfin
<ruby[bot]> djellemah: # => "string" (https://eval.in/532499)
Moosashi has quit [Client Quit]
lele has quit [Ping timeout: 246 seconds]
<morfin> what
<djellemah> to_proc for Symbol does that ^. Doesn't do the same thing for Fixnum.
<morfin> oh i forgot &:foo means :foo.to_proc done
<morfin> but how that done in context of object?
<morfin> >> &:foo.to_proc
<ruby[bot]> morfin: # => /tmp/execpad-9a902b798b2d/source-9a902b798b2d:2: syntax error, unexpected & ...check link for more (https://eval.in/532502)
<morfin> i mean how &:foo expanded to someobject.foo with to_proc
<djellemah> >> def big_letters; yield "UPPERCASE STRING"; end; big_letters(&:downcase)
<ruby[bot]> djellemah: # => "uppercase string" (https://eval.in/532505)
<morfin> [1,4,6,2,7].each(&:float)
<morfin> >> [1,4,6,2,7].each(&:float)
<ruby[bot]> morfin: # => undefined method `float' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/532506)
<morfin> oops
<morfin> >> [1,4,6,2,7].each(&:to_float)
<ruby[bot]> morfin: # => undefined method `to_float' for 1:Fixnum (NoMethodError) ...check link for more (https://eval.in/532507)
<djellemah> to_f ;-)
lele has joined #ruby
<morfin> ah yes
<morfin> >> [1,4,6,2,7].each(&:to_f)
<ruby[bot]> morfin: # => [1, 4, 6, 2, 7] (https://eval.in/532508)
<djellemah> each returns the original array. map does what you want there.
<morfin> >> [1,4,6,2,7].map(&:to_float)
<morfin> oops
<morfin> >> [1,4,6,2,7].map(&:to_f)
ferr1 has joined #ruby
<morfin> heh
<morfin> >> dead
uglybandersnatch has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<morfin> >> [1,4,6,2,7].map(&:to_f)
<ruby[bot]> morfin: # => [1.0, 4.0, 6.0, 2.0, 7.0] (https://eval.in/532510)
<morfin> see it do something like {|value| value.to_f}
<djellemah> exactly
M-Kodo has joined #ruby
<djellemah> >> :to_f.to_proc.call(42)
Snowy has joined #ruby
<ruby[bot]> djellemah: # => 42.0 (https://eval.in/532511)
<morfin> hmm what
nando293921 has quit [Ping timeout: 250 seconds]
<jhass> morfin: class Symbol; def to_proc; proc {|x| x.send(self) }; end; basically
<morfin> idk why but i remembered one discu7ssion in C++ channel about f(x) and x.f()
<morfin> and in Ruby somehow you called f(x) and it was like x.f()
<jhass> no, ruby doesn't support uniform call syntax (that's what it's called)
pandaant has joined #ruby
<morfin> oh
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<igam> But instead of x.f(1,2) you can write (x.f 1,2)
<morfin> so it just creates proc sending message to x
last_staff has joined #ruby
<morfin> >> (10.to_f)
<ruby[bot]> morfin: # => 10.0 (https://eval.in/532513)
<jhass> igam: the outer parens are pretty meaningless there
<igam> Not to a lisper :-)
<jhass> just a grouping expression
<igam> Quite useful with paredit in emacs actually.
krzkrzkrz has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<morfin> you can want do something like (x.f 1,2).bar :foo
<jhass> ugh, that's ugly
<jhass> in that case just x.f(1, 2).bar :foo
Es0teric has joined #ruby
<igam> x.f(1, 2).bar :foo is harder to read. Now you have to know priority levels and to parse them.
<jhass> I disagree
<igam> with ((x.f 1,2).bar :foo) you don't have to think, the parentheses tell it all. Lisp is nice.
<jhass> there's no precedence rules needed there
<morfin> i heard in Lisp you count parentheses to be fine )
<jhass> then go write lisp instead of ruby
<igam> I wish, but because of you, ruby is installed everywhere instead of lisp.
<jhass> don't try to write ruby like it's lisp
<jhass> are you trying to troll? because that's not welcome here
TomyLobo has joined #ruby
<igam> Then modify the syntax of ruby. I can, so I will.
mg^ has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
sandstrom has quit [Ping timeout: 276 seconds]
crdpink2 has quit [Ping timeout: 250 seconds]
marr has joined #ruby
marr has quit [Client Quit]
sandstrom has joined #ruby
glcx has quit [Quit: Quitte]
DaniG2k has joined #ruby
marr has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pandaant has quit [Remote host closed the connection]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
haxrbyte has joined #ruby
yardenbar has joined #ruby
lxsameer has joined #ruby
jayc0b0 has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
<djellemah> pythonistas indent their 'end' lines, c++/java folks use {} for all blocks, lispers and ocamlers say (obj.method arg). Javascripters never leave out the () and ; brainfuckers use only symbols
workmad3 has joined #ruby
ext0 has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
M-mistake has joined #ruby
Guest34101 has joined #ruby
<yorickpeterse> x.f(1, 2).bar :foo is no harder to read than (x.f 1,2).bar :foo
<yorickpeterse> In fact, I'd argue the latter is harder to read as it relies on explicitly defined precedences
<yorickpeterse> whereas the former is just the natural way of writing it
<yorickpeterse> And people like jhass aren't the reason Ruby is installed everywhere. The reason is because Ruby actually works, is widely used and useful to many
<yorickpeterse> Meanwhile Lisp users continue to brag about how great it is, yet it's a fraction of the industry
<yorickpeterse> I wonder why
<gregf_> lisp is quite unreadable imo, prolly a write once language
gbgdev has joined #ruby
M-mistake has quit [Quit: node-irc says goodbye]
gbgdev has quit [Read error: Connection reset by peer]
gbgdev has joined #ruby
M-shine has quit [Quit: node-irc says goodbye]
glcx has quit [Quit: Quitte]
jeanlinux has joined #ruby
sergey_makagon has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
sandstrom has joined #ruby
pawnbox has quit [Remote host closed the connection]
jeanlinux has quit [Remote host closed the connection]
pawnbox has joined #ruby
n008f4g_ has joined #ruby
moeabdol3 has joined #ruby
<djellemah> I find джэллемах quite hard to read. But there are lots of people who find it very easy.
whiteline has joined #ruby
troulouliou_div2 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<Trioxin> should I be able to run script coded in 2.1..5 on 2.3.0?
robbyoconnor has quit [Ping timeout: 252 seconds]
nw has left #ruby ["WeeChat 1.3"]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> You should, yes.
eregi has joined #ruby
gnagh has joined #ruby
hahuang61 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mg^ has joined #ruby
jeanlinux has joined #ruby
charlemagne has joined #ruby
eregi has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 248 seconds]
crdpink2 has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
jenrzzz has joined #ruby
nicnilov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
mfaeh has quit [Read error: Connection reset by peer]
jeanlinux has quit [Remote host closed the connection]
* gnagh
shredding has quit [Remote host closed the connection]
shredding has joined #ruby
<adaedra> I see.
gnagh has quit [Quit: leaving]
krzkrzkrz has quit [Read error: Connection reset by peer]
wolfedale has joined #ruby
mfaeh has joined #ruby
<wolfedale> Hi
mg^ has quit [Ping timeout: 276 seconds]
krzkrzkrz has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<wolfedale> Anyone is using gem: mail? (mikel)
astrobun_ has joined #ruby
Xeago has joined #ruby
rodfersou has joined #ruby
Ishido has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
astrobun_ has quit [Ping timeout: 250 seconds]
Abrin_AWAY has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
<DaniG2k> universa1: good call on checking out the SQL, thanks for that
<siaw> hello
<siaw> what would be a more elegant way to write this
Xeago_ has joined #ruby
<siaw> i want to capitalize each word in the “msg” variable
gnagh has joined #ruby
pookie_ is now known as olspookishmagus
Xeago has quit [Read error: Connection reset by peer]
nicnilov has joined #ruby
drptbl has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<adaedra> What do you have already?
<jhass> wolfedale: quite a lot of people do
sandstrom has quit [Quit: My computer has gone to sleep.]
crdpink2 has quit [Ping timeout: 268 seconds]
<wolfedale> siaw: "msg".upcase (not sure if I understand your question).
uglybandersnatch has quit [Ping timeout: 276 seconds]
y2mq37 has joined #ruby
stardiviner has quit [Ping timeout: 248 seconds]
charlemagne has quit [Read error: Connection reset by peer]
<wolfedale> jhass: it works great for me but just figure out BCC is not working at all. I'm not sure if I'm using it correctly.
<siaw> adaedra: forgot to post what i have already https://gist.github.com/siaw23/e21afcedb36e2e8c133b
n008f4g_ has quit [Ping timeout: 276 seconds]
<siaw> adaedra: no, not that
<siaw> adaedra: i don’t want to capitalize all letters in all words
<siaw> example
<siaw> this
<adaedra> Yeah, I saw it
<siaw> “hello world”
<siaw> should be
<siaw> “Hello World”
<siaw> and this
<siaw> “hello sweet america"
charlemagne has joined #ruby
<siaw> should be
<siaw> “Hello Sweet America”
<adaedra> >> "The quick brown fox jumps over the lazy dog".split.map(&:capitalize).join(" ") # But this one won't preserve extra spaces
<ruby[bot]> adaedra: # => "The Quick Brown Fox Jumps Over The Lazy Dog" (https://eval.in/532555)
dangerousdave has joined #ruby
<adaedra> >> "The quick brown fox jumps over the lazy dog".gsub(/($|\b)[a-z]/) { |a| a.upcase }
<ruby[bot]> adaedra: # => "The Quick Brown Fox Jumps Over The Lazy Dog" (https://eval.in/532558)
troulouliou_div2 has quit [Ping timeout: 276 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<siaw> that works for me
<siaw> adaedra: :)
n008f4g_ has joined #ruby
<adaedra> You weren't so far away, though.
<siaw> i just thought i was over thinking
<siaw> :)
<adaedra> errr
Xeago has joined #ruby
<adaedra> the $ has nothing to do here, though, in the regexp one
<adaedra> It's /\b[a-z]/
<siaw> i need to learn regex by heart anyway
<adaedra> the first one was rather close from your try at least, do you understand how it works?
charlemagne has quit [Ping timeout: 252 seconds]
evidex has joined #ruby
Abrin_AWAY has joined #ruby
Aviio has joined #ruby
<siaw> adaedra: yeap
<siaw> i do undestand :)
charliesome has joined #ruby
chouhoulis has joined #ruby
mg^ has joined #ruby
UtkarshRay has joined #ruby
Xeago has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 260 seconds]
ebbflowgo has joined #ruby
symm- has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
ziprar has joined #ruby
ebbflowgo has quit [Ping timeout: 240 seconds]
but3k4 has joined #ruby
c355e3b has joined #ruby
trosborn has joined #ruby
ldnunes has joined #ruby
but3k4 has quit [Client Quit]
mikar has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
kam270 has quit [Quit: Leaving]
anon___ has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
mikeiniowa has joined #ruby
moeabdol3 has quit [Ping timeout: 244 seconds]
but3k4 has joined #ruby
Guest34101 has quit [Ping timeout: 250 seconds]
mikar has quit [Client Quit]
mikar has joined #ruby
mondok has joined #ruby
<wolfedale> mail.bcc should return address.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wolfedale> And it's returning Nil in my case (all the time).
charliesome has joined #ruby
<wolfedale> I checked Mail.new and Mail.read(mail) and so on.
trinaldi has joined #ruby
<wolfedale> Any clue how to check bcc address from STDIN?
<mikar> is there some sort of shorthand that translates weeks/days/hours into seconds? i'd like a timeout in seconds and a variable input of something like "2:hours" or "3.5:minutes"
openstruct has joined #ruby
crdpink2 has joined #ruby
shredding has quit [Ping timeout: 240 seconds]
aufi_ has quit [Ping timeout: 260 seconds]
<adaedra> I don't think there's something directly, but you could have something like `UNIT = { second: 1, minute: 60, hour: 3600 }` and `second_duration = duration * UNIT[unit]`
blackms has quit [Ping timeout: 264 seconds]
tim_s007 has quit [Ping timeout: 268 seconds]
gnagh has quit [Quit: leaving]
sdothum has joined #ruby
UtkarshRay has quit [Ping timeout: 240 seconds]
<djellemah> mikar: active_support/core_ext/numeric/time.rb has methods for that. Maybe one of the other time gems has something as well.
<f4cl3y> Hey guys, I know this is rather trivial question for most of you, but this my first project. I was wondering if there a "best practice" to handle configurations in Ruby?
cyclonis has quit [Ping timeout: 244 seconds]
<f4cl3y> And if anyone would recommend using Thor for CLI stuff?
konsolebox has quit [Quit: Leaving]
<adaedra> Use what suits you best
<mikar> adaedra, djellemah: thanks
lxsameer has quit [Ping timeout: 248 seconds]
mostlybadfly has joined #ruby
<jhass> f4cl3y: I believe configuration is highly specific to your project, target environment and userbase and thus there's no universal best solution possible
baweaver has joined #ruby
<f4cl3y> jhass: Thank you!
trosborn has quit [Quit: trosborn]
DaniG2k has quit [Quit: leaving]
electriv has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
auzty has quit [Quit: Leaving]
ebbflowgo has joined #ruby
callen92 has joined #ruby
blackms has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
callen92 has quit [Client Quit]
lxsameer has joined #ruby
Xeago has joined #ruby
UtkarshRay has joined #ruby
moeabdol3 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<Takumo> Hi all, how do I set the background fill color for a page in PrawnPDF?
jeanlinux has joined #ruby
moeabdol3 has quit [Ping timeout: 252 seconds]
johnmilton has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Slice^ has joined #ruby
zapata has quit [Ping timeout: 260 seconds]
dgncn has quit [Excess Flood]
Snowy has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
jeanlinux has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 248 seconds]
dgncn has joined #ruby
DmitryBochkarev has joined #ruby
charlemagne has joined #ruby
skade has joined #ruby
dgncn has quit [Excess Flood]
evidex has quit [Remote host closed the connection]
chocoelho has joined #ruby
evidex has joined #ruby
sandstrom has joined #ruby
Shaboum has joined #ruby
dgncn has joined #ruby
sgambino has joined #ruby
pawnbox has joined #ruby
electriv has joined #ruby
niksrc has joined #ruby
<wolfedale> hmm, how to execute something like this from ruby?
<wolfedale> /usr/sbin/sendmail -G -i "$@" < @mail
<wolfedale> Where only @mail is a ruby object.
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
duckpuppy has joined #ruby
p1k has joined #ruby
mfaeh has quit [Remote host closed the connection]
<p1k> hello
charlemagne has quit [Remote host closed the connection]
Macaveli has joined #ruby
charlemagne has joined #ruby
<p1k> is there a ruby sort equivalen to python's e.g. key = lambda a: a[0] ? I see that sort takes a block but that seems like a full fledged compare
trinaldi has quit [Ping timeout: 248 seconds]
<hanmac> p1k checkout sort_by
<p1k> thanks that's exactly what I was looking for
chouhoulis has joined #ruby
augcesar has quit [Quit: CyberScript - O ministério da saúde adverte: usar CyberScript causa dependência! (www.cyberscript.org)]
helpa has quit [Remote host closed the connection]
augcesar has joined #ruby
helpa has joined #ruby
charlemagne has quit [Ping timeout: 276 seconds]
jeanlinux has joined #ruby
moos3 has joined #ruby
<shevy> wolfedale I don't know what is $@ but you can do everything with system() `` or popen*
chouhoulis has quit [Ping timeout: 240 seconds]
eregi has joined #ruby
Shaboum has quit [Quit: WeeChat 1.4]
<chridal> The Resque poll timer is set to every 5 seconds but this slows down our workers by a lot
<chridal> Would there be a drawback to setting this to for instance 0.1s?
troulouliou_div2 has joined #ruby
saneax is now known as saneax_AFK
<jhass> wolfedale: hint: Kernel#system takes the same argument forms as documented on Kernel#spawn
cyclonis has joined #ruby
Aviio has quit [Quit: Leaving.]
eregi has quit [Ping timeout: 244 seconds]
tvon has quit [Quit: tvon]
Domaldel has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
n008f4g_ has joined #ruby
diegoviola has joined #ruby
aryaching has joined #ruby
GBrawl has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
Snowy has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
electriv has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wolfedale> jhass: I'm trying but still not sure how to do it :(
jeanlinux has quit [Remote host closed the connection]
trinaldi has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
charlemagne has joined #ruby
jeanlinux has joined #ruby
but3k4 has joined #ruby
hahuang61 has joined #ruby
solars has quit [Ping timeout: 260 seconds]
CustosLim3n has quit [Quit: CustosLimen]
hahuang61 has quit [Ping timeout: 264 seconds]
<jhass> well, what did you try so far?
tvon has joined #ruby
bry4n has quit [Ping timeout: 264 seconds]
charlema_ has joined #ruby
charlemagne has quit [Read error: No route to host]
atmosx has quit [Remote host closed the connection]
joonty has quit [Read error: Connection reset by peer]
joonty has joined #ruby
jottr has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
last_staff has quit [Quit: last_staff]
RegulationD has joined #ruby
AlphaAtom has quit [Ping timeout: 276 seconds]
n008f4g_ has quit [Ping timeout: 240 seconds]
charlema_ has quit [Ping timeout: 246 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
Abrin_AWAY has quit [Ping timeout: 244 seconds]
aufi_ has joined #ruby
Rickmasta has joined #ruby
mfaeh has joined #ruby
moeabdol3 has joined #ruby
gbgdev has quit [Read error: Connection reset by peer]
gbgdev has joined #ruby
synthroid has joined #ruby
augcesar has quit [Remote host closed the connection]
jottr has quit [Quit: WeeChat 1.4]
jottr has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
tonyynot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
UtkarshRay has joined #ruby
Domaldel has quit [Quit: Leaving]
aupadhye has quit [Ping timeout: 260 seconds]
fexilal has joined #ruby
cyclonis has quit [Ping timeout: 244 seconds]
Snowy has quit [Remote host closed the connection]
Ishido has quit [Remote host closed the connection]
chouhoulis has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
Ishido has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
solars has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
anisha_ has quit [Quit: Leaving]
leventix has joined #ruby
ropeney has joined #ruby
hxegon has joined #ruby
Spami has joined #ruby
siaw has quit [Quit: siaw]
Xeago has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
Xeago has joined #ruby
tungd has joined #ruby
kam270 has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
zotherstupidguy has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haylon has joined #ruby
codecop has quit [Remote host closed the connection]
haxrbyte has joined #ruby
mfaeh has quit []
leventix_ has joined #ruby
GBrawl has quit [Quit: (null)]
malconis has joined #ruby
hxegon has quit [Quit: BRB]
malconis has quit [Remote host closed the connection]
haxrbyte has quit [Client Quit]
baweaver has joined #ruby
leventix_ has left #ruby [#ruby]
malconis has joined #ruby
vishwa has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
howdoi has joined #ruby
ramortegui has joined #ruby
freerobby has joined #ruby
c0x has quit [Remote host closed the connection]
leventix_ has joined #ruby
trinaldi has quit [Ping timeout: 264 seconds]
ramortegui has quit [Client Quit]
dstarh has joined #ruby
saneax_AFK is now known as saneax
nennes has joined #ruby
Slice^ has quit [Quit: This computer has gone to sleep]
saneax is now known as saneax_AFK
hs366 has joined #ruby
saneax_AFK is now known as saneax
shevy has joined #ruby
bluOxigen_ has joined #ruby
Snowy has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
paatalaBhairavi has quit [Quit: Leaving]
bluOxigen has quit [Ping timeout: 244 seconds]
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
Trioxin has left #ruby ["Konversation terminated!"]
last_staff has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
joonty has joined #ruby
nando293921 has joined #ruby
jyaworski has joined #ruby
Macaveli has quit [Ping timeout: 276 seconds]
Ishido has quit [Remote host closed the connection]
Macaveli has joined #ruby
freerobby has quit [Quit: Leaving.]
UtkarshRay has quit [Remote host closed the connection]
drptbl has joined #ruby
Ishido has joined #ruby
dima_ has joined #ruby
UtkarshRay has joined #ruby
eregi has joined #ruby
DmitryBochkarev has quit [Ping timeout: 246 seconds]
kam270 has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trinaldi has joined #ruby
CustosLimen has joined #ruby
wolfedale has quit [Ping timeout: 244 seconds]
nando293921 has quit [Quit: Lost terminal]
shevy has joined #ruby
eregi has quit [Ping timeout: 248 seconds]
bMalum has joined #ruby
nando293921 has joined #ruby
hxegon has joined #ruby
chouhoulis has joined #ruby
tungd has quit [Quit: Dreaming...]
unl0ckd has joined #ruby
Xeago has quit [Remote host closed the connection]
nobitanobi has joined #ruby
Jardayn has joined #ruby
Xeago has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
kristofferR has joined #ruby
danjack has joined #ruby
<danjack> hello
chouhoulis has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
<danjack> if i parse [a,b,c] from yaml to ruby, it will give me an array of strings [:a, :b, :c], is there a way to define a one line yaml array of symbols?
Prominent has joined #ruby
r4z3r has quit [Max SendQ exceeded]
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
r4z3r has joined #ruby
n008f4g_ has joined #ruby
dfinninger has quit [Client Quit]
justbleed has joined #ruby
Snowy has quit [Remote host closed the connection]
Xeago has joined #ruby
r4z3r has quit [Max SendQ exceeded]
r4z3r has joined #ruby
freerobby has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Prominent has quit [Ping timeout: 252 seconds]
Xeago_ has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
gbgdev has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
kies has quit [Ping timeout: 252 seconds]
aegis3121 has joined #ruby
shanemcd has joined #ruby
mary5030 has joined #ruby
sandstrom has joined #ruby
hahuang61 has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
Guest34101 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> your example is an array of symbols, but anyway, yaml doesn't know symbols
solars has quit [Ping timeout: 260 seconds]
<jhass> so no
<shevy> danjack you should be able to store symbols in yaml e. g. via "- !ruby/symbol a" for :a or rather an array with :a
<jhass> ah right, that weird stuff
Anderson69s_Deb has quit [Ping timeout: 260 seconds]
<jhass> note it's incompatible with other yaml parsers than psych
<jhass> I wouldn't recommend to rely on it
hahuang61 has quit [Ping timeout: 240 seconds]
leventix_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
chouhoulis has joined #ruby
zapata has joined #ruby
<jhass> mmh interesting
<jhass> >> require "yaml"; YAML.dump [:a]
<ruby[bot]> jhass: # => "---\n- :a\n" (https://eval.in/532711)
<jhass> would've thought it dumps it as - a
leventix has quit []
cdg has joined #ruby
jeanlinux has quit []
<hanmac> 18>> require "yaml"; YAML.dump [:a]
<ruby[bot]> hanmac: # => "--- \n- :a\n" (https://eval.in/532712)
krobzaur has joined #ruby
idefine has joined #ruby
Yiota has joined #ruby
<jhass> also nice asymmetry here
<jhass> >> require "yaml"; YAML.load YAML.dump :a
<ruby[bot]> jhass: # => :a (https://eval.in/532713)
<jhass> er nvm I' dumb
n008f4g_ has quit [Ping timeout: 246 seconds]
JiKa has joined #ruby
svankmajer has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
emilkarl has joined #ruby
floatingpoint has joined #ruby
Slice^ has joined #ruby
HalcyonicStorm has joined #ruby
ropeney has quit [Quit: Leaving]
Snowy has joined #ruby
RegulationD has joined #ruby
cpup has quit [Ping timeout: 252 seconds]
solars has joined #ruby
babblebre has joined #ruby
openstruct has quit [Remote host closed the connection]
gbgdev has joined #ruby
justbleed is now known as tommy_p
Rodya_ has joined #ruby
cpup has joined #ruby
griffindy has joined #ruby
Slice^ has quit [Quit: This computer has gone to sleep]
uglybandersnatch has joined #ruby
Slice^ has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
connor_goodwolf has quit [Ping timeout: 260 seconds]
<danjack> somehow the ruby yaml implementation can store an array of symbols in multiple lines, but i was not able to store it in one line
TomyLobo has quit [Ping timeout: 248 seconds]
evidex has quit [Ping timeout: 250 seconds]
<danjack> makes me sad, but ill just let ruby convert some specific paths in the from yaml converted ruby objects with map(&:to_sym)
gnagh has joined #ruby
<jhass> feels like you try to keep user data as symbols
Tricon has joined #ruby
<jhass> which is a smell in itself
stannard has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 248 seconds]
JiKa has quit [Quit: Sto andando via]
Slice^ has quit [Quit: This computer has gone to sleep]
Anderson69s_Deb has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
<danjack> im just trying to figure out how to make the yaml config file simple
<shevy> danjack why must it be on one line?
sandstrom has quit [Quit: My computer has gone to sleep.]
<danjack> having it specify as symbols is probably a bad idea indeed
<danjack> shevy: its easier to read in one line
chouhoulis has quit [Remote host closed the connection]
<danjack> format: [nick, ip, id, geoip]
<shevy> these are not symbols!
<danjack> ill just map it with ruby to symbols and then use them internally
x77686d has joined #ruby
chouhoulis has joined #ruby
<danjack> i know
infra-red has joined #ruby
infra-red has quit [Remote host closed the connection]
infra-red has joined #ruby
gnagh has quit [Quit: leaving]
<jhass> why do you need symbols?
decoponio has joined #ruby
aganov has quit [Remote host closed the connection]
cyclonis has joined #ruby
<danjack> because my ruby code uses symbols internally
<danjack> :D
<jhass> that's not a good reason ;)
nofacade has joined #ruby
<danjack> yeah i know, ill just map it to symbols in my own code
<jhass> that is what I consider the smell ;)
<danjack> i just got curious if it is possible to save it as symbols in a one liner yaml definition
Slice^ has joined #ruby
Slice^ has quit [Remote host closed the connection]
solars has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
B1n4r10 has joined #ruby
Coldblackice has quit [Ping timeout: 260 seconds]
n008f4g_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
Hammy_Work has joined #ruby
Xeago has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
bry4n has joined #ruby
jhack has joined #ruby
Rodya_ has quit [Remote host closed the connection]
cyclonis has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
jyaworski_ has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
tricon_ has joined #ruby
pawnbox has joined #ruby
rkazak has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
jyaworski_ is now known as jyaworski
krobzaur has quit [Quit: WeeChat 1.2]
JiKa has joined #ruby
nicnilov has quit [Quit: Textual IRC Client: www.textualapp.com]
JiKa has quit [Client Quit]
Renich has joined #ruby
mallu has joined #ruby
<shevy> !
<shevy> I guess in principle you could extend yaml to allow for that
<shevy> ruby code would strike me as even shorter than the yaml though, if you only have one-word things to store %i( a b c ) # => [:a, :b, :c]
gbgdev has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 244 seconds]
configged has joined #ruby
zotherstupidguy has quit [Ping timeout: 248 seconds]
configged- has joined #ruby
tvw has quit []
sandstrom has joined #ruby
The_Phoenix has joined #ruby
aufi_ has quit [Quit: Konversation terminated!]
tricon_ has quit [Remote host closed the connection]
Tricon has joined #ruby
aufi has joined #ruby
gbgdev has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
openstruct has joined #ruby
baweaver has joined #ruby
solars has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
hs366 has quit [Quit: Leaving]
evidex has joined #ruby
eregi has joined #ruby
aufi has quit [Ping timeout: 240 seconds]
glcx has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
al2o3-cr has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
jhack has joined #ruby
prefix has joined #ruby
rubie has joined #ruby
Rodya_ has joined #ruby
marxarelli has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
floatingpoint has quit [Ping timeout: 246 seconds]
<rubie> hi all: i have a scale that goes from -50 to 50 but i need to fit that inside a range of 0-255 (rgb colors), so when my scale is -50 i get 0 and when the scale is 50 i would get 250, any ideas how to solve this?
jyaworski_ has joined #ruby
<jhass> with math
jyaworski has quit [Ping timeout: 268 seconds]
jyaworski_ is now known as jyaworski
<rubie> is there any particular kind of math that would work best?
<ljarvis> multiplication and divisionz
solars has quit [Ping timeout: 252 seconds]
andikr has quit [Remote host closed the connection]
trinaldi_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
trinaldi has quit [Disconnected by services]
trinaldi_ is now known as trinaldi
<gregf_> -50 to 50 is 100 , so divide 255 by 100?
jaruga has quit [Ping timeout: 268 seconds]
<gregf_> s/255/256/
<igam> rubie: depends also on how you want to map your range. Linearly? Quadratically? Exponentially? etc
aufi has joined #ruby
<jhass> >> (-50..50).map {|n| [n, (n + 50) * 2.55).round] }.to_h
<ruby[bot]> jhass: # => /tmp/execpad-ad8853dbc784/source-ad8853dbc784:2: syntax error, unexpected ')', expecting ']' ...check link for more (https://eval.in/532777)
<jhass> ups
<jhass> >> (-50..50).map {|n| [n, ((n + 50) * 2.55).round] }.to_h
<ruby[bot]> jhass: # => {-50=>0, -49=>3, -48=>5, -47=>8, -46=>10, -45=>13, -44=>15, -43=>18, -42=>20, -41=>23, -40=>26, -39= ...check link for more (https://eval.in/532778)
shanemcd has quit [Remote host closed the connection]
dfinninger has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aegis3121 has joined #ruby
jhack has quit [Quit: jhack]
sneakerhax has quit [Ping timeout: 276 seconds]
<hanmac> jhass: your solution is mathematical! xD
M-Kodo has quit [Quit: node-irc says goodbye]
<igam> Notice that for colors, using a linear scale is often not the right thing to do…
<rubie> igam: what do you mean?
boontdustie has joined #ruby
<igam> I mean that the transformation must depend on where the [-50,+50] comes from.
shinnya has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
binaryplease1 has quit [Ping timeout: 246 seconds]
stunder has joined #ruby
ta_ has quit [Remote host closed the connection]
jas02 has quit [Quit: jas02]
dima_ has quit [Quit: This computer has gone to sleep]
jhack has joined #ruby
rodfersou is now known as rodfersou|lunch
amargherio has joined #ruby
tomchapin has joined #ruby
nobitanobi has quit []
xaxisx has joined #ruby
decoponio has quit [Quit: Leaving...]
B1n4r10 has joined #ruby
barajasfab has joined #ruby
greenhat_ has quit [Quit: ZNC - http://znc.in]
dfinninger has quit []
decoponio has joined #ruby
svankmajer has quit [Changing host]
svankmajer has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
boontdustie has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
paul98_ has joined #ruby
dantevergil has joined #ruby
dantevergil has quit [Client Quit]
ElSif has joined #ruby
infra-re_ has joined #ruby
paul98 has quit [Ping timeout: 240 seconds]
roshanavand has quit [Ping timeout: 248 seconds]
glcx has quit [Quit: Quitte]
cyclonis has joined #ruby
infra-r__ has joined #ruby
momomomomo has joined #ruby
kriskropd has quit [Ping timeout: 260 seconds]
infra-red has quit [Ping timeout: 244 seconds]
binaryplease1 has joined #ruby
al2o3-cr has joined #ruby
pandaant has joined #ruby
bronson has joined #ruby
synthroid has quit [Remote host closed the connection]
infra-re_ has quit [Ping timeout: 264 seconds]
nofacade has quit [Read error: Connection reset by peer]
aeontech has joined #ruby
elifoster has joined #ruby
saneax is now known as saneax_AFK
yardenbar has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
binaryplease1 has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
Guest34101 has quit [Ping timeout: 268 seconds]
jaruga has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Ping timeout: 268 seconds]
Xeago_ has joined #ruby
eregi has quit [Ping timeout: 264 seconds]
siaw has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
pandaant has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
shanemcd has joined #ruby
f4cl3y has quit [Ping timeout: 268 seconds]
skade has joined #ruby
Xeago_ has quit [Remote host closed the connection]
bMalum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
ixti has joined #ruby
darkf has joined #ruby
momomomomo has quit [Quit: momomomomo]
roshanavand has joined #ruby
bMalum has quit [Ping timeout: 260 seconds]
ixti has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
kfpratt has quit [Remote host closed the connection]
Couch has quit [Ping timeout: 260 seconds]
pwnd_nsfw` is now known as pwnd_nsfw
momomomomo has joined #ruby
amclain has joined #ruby
Xeago has joined #ruby
aegis3121 has quit [Ping timeout: 260 seconds]
mfaeh has joined #ruby
rkazak has quit [Ping timeout: 252 seconds]
Don_John has joined #ruby
binaryplease1 has joined #ruby
binaryplease1 has quit [Client Quit]
binaryplease has joined #ruby
aufi has quit [Quit: Konversation terminated!]
f4cl3y has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
vipaca has joined #ruby
x77686d has quit [Quit: x77686d]
edwinvdgraaf has joined #ruby
joonty has quit [Ping timeout: 240 seconds]
Macaveli_ has joined #ruby
aryaching has quit []
synthroid has joined #ruby
eregi has joined #ruby
shanemcd_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<pushcx> the cubehelix color scheme is a good way to do gradients: https://www.mrao.cam.ac.uk/~dag/CUBEHELIX/
roshanavand has quit [Quit: This computer has gone to sleep]
edwinvdgraaf has joined #ruby
djbkd has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
<pushcx> humans are more sensitive to green than red and especially blue, so if you just linearly ramp over all three your colors will not be accurately understood
terminalrecluse has joined #ruby
roshanavand has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
Guest38 has joined #ruby
sandstrom has joined #ruby
jhack has quit [Quit: jhack]
Macaveli has quit [Ping timeout: 260 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
greenhat has joined #ruby
SCHAAP137 has joined #ruby
blackms has quit [Quit: Leaving]
shanemcd_ has quit [Ping timeout: 250 seconds]
binaryplease has quit [Ping timeout: 246 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
jaruga has quit [Remote host closed the connection]
roshanavand has quit [Quit: This computer has gone to sleep]
jaruga has joined #ruby
maletor has joined #ruby
atmosx has joined #ruby
TomyLobo has joined #ruby
baweaver has joined #ruby
openstruct has quit []
connor_goodwolf has joined #ruby
momomomomo has quit [Quit: momomomomo]
ivanskie has joined #ruby
neanderslob_ has quit [Quit: No Ping reply in 180 seconds.]
poguez_ has joined #ruby
JohnBat26 has joined #ruby
neanderslob_ has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
ixti has joined #ruby
st0mar has joined #ruby
jaruga has quit [Quit: jaruga]
shinnya has quit [Ping timeout: 244 seconds]
tvsutton_ has quit [Quit: Quit]
roshanavand has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
roshanavand has quit [Client Quit]
TomyLobo has quit [Ping timeout: 252 seconds]
cyclonis has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
kfpratt has joined #ruby
skade has joined #ruby
Snowy has quit [Remote host closed the connection]
<shevy> I use marque + pink
sneakerhax has joined #ruby
nennes has quit [Quit: Leaving]
roshanavand has joined #ruby
igam has quit [Ping timeout: 244 seconds]
Xeago has quit [Ping timeout: 268 seconds]
st0mar has quit [Read error: Connection reset by peer]
st0mar has joined #ruby
niksrc has quit [Quit: Leaving]
<bob_f> Hi, is there a nice Ruby idiom for setting a default argument on a method and catching whether the value is the default, or a value passed in by the caller ?
<bob_f> I need to differentiate between `nil` and `no value` so `nil` is not an appropriate sentinel value.
kriskropd has joined #ruby
<bob_f> I have just done `class Sentinel; end; def foo(arg = Sentinel)` but wondering if there is a cleaner way.
Lucky_ABA has joined #ruby
boontdustie has joined #ruby
erts has joined #ruby
wldcordeiro has quit [Ping timeout: 244 seconds]
AnoHito has joined #ruby
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
erts has quit [Client Quit]
cyclonis has quit [Ping timeout: 244 seconds]
mondok has quit [Ping timeout: 244 seconds]
erts has joined #ruby
AnoHito_ has quit [Ping timeout: 244 seconds]
erts has quit [Client Quit]
<shevy> bob_f nothing in built
<jhass> bob_f: IME the real issue is that you need to differentiate it, it hints that your API is either too complex or not well designed
kfpratt has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
hahuang61 has joined #ruby
kfpratt has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
<bob_f> jhass: In this case, I pass the argument to hash.fetch(foo, default) so if I use `default = nil` then I never know if the value was absent.
<jhass> wrong, you can just .has_key?(foo)
<bob_f> Sure, but then that's two (admittedly fast) lookups. It's not very clean.
<jhass> but that you need to know is still a smell IMO
elifoster has quit [Ping timeout: 244 seconds]
<bob_f> Fixing one smell with another isn't much of a solution. ;)
Macaveli_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I smell flowers in the air
<jhass> what would be the other smell? I mean how is not needing to know whether it was the default or not a smell?
kfpratt has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
cyclonis has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
asmodlol has joined #ruby
<bob_f> jhass: I'm saying that I need to pass a caller-provided argument as the default to hash.fetch and then act accordingly if the result is not found in the hash. You're saying that this is a smell (I believe).
boontdustie has quit [Ping timeout: 252 seconds]
<jhass> yes
<bob_f> Using .has_key? is not a good solution - if the implementation changes to (e.g.) a database lookup, then I have two slow calls when I only need one.
<jhass> having a default and needing to know whether it's in use is a smell IMO
RegulationD has joined #ruby
niksrc has joined #ruby
<jhass> at best it hints a bad or incomplete default
<bob_f> So I'm wondering if there is a nicer way to do hash.fetch with a default argument, but still know whether the result is the [user-supplied] default (which could be `nil`) or that the result was not found.
<jhass> I'm questioning that you need to know
B1n4r10 has quit [Ping timeout: 248 seconds]
treehug88 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.4]
allcentury has joined #ruby
<bob_f> Because if the value is not found, then it means there is a configuration problem and an appropriate error/warning must be raised.
<bob_f> The caller can pass a default if it wants to, but it doesn't have to.
jackjackdripper has joined #ruby
<jhass> you probably should just disallow nil as a user provided default or something, I still don't have enough context to get specific
<shevy> ban all the nils!
dstarh has joined #ruby
<jhass> or require a default to be provided
<shevy> default to nil!
<bob_f> jhass: Here's a distilled version of the problem: https://bpaste.net/show/6869e3c20df9
<bob_f> And here's a less stupid version ... https://bpaste.net/show/7ae79f640e60
<bob_f> (Long day).
<jhass> I gathered as much, that's not adding any context
The_Phoenix has quit [Read error: Connection reset by peer]
<jhass> anyway, one option is to mirror Hash#fetch with a block's API
<bob_f> Well, `nil` is a valid value to be given as a default. There's no getting around that.
<jhass> that has the advantage that the caller can lazily provide an expensive to compute default and gives you block_given?
maner has quit [Read error: Connection reset by peer]
<hayden_> bob_f: you can create a class for that purpose, that's what rails core does in one if it's fetch methods (https://github.com/rails/rails/blob/e7feaff70f13b56a0507e9f4dfaf3ebc361cb8e6/actionpack/lib/action_dispatch/request/session.rb#L133-L140)
KensoDev has joined #ruby
<hayden_> not a class, an object
<bob_f> FWIW, here's the legit code: https://bpaste.net/show/0800bff26093
<bob_f> hayden_: Ah, that's what I did.
<jhass> def fetch_config_value(key); value = config[key]; if value.nil?; if block_given?; value = yield; else; raise ConfigError; end
bronson has joined #ruby
idefine has quit [Remote host closed the connection]
borodin has quit [Max SendQ exceeded]
<jhass> that's still stupid as nil can't be a valid configuration value there but a valid default
<jhass> has_key? is the only actual way to know whether the value existed
<bob_f> jhass: I'm not sure I understand what you mean ?
Macaveli has joined #ruby
siaw has quit [Quit: siaw]
firstdayonthejob has joined #ruby
<bob_f> And I don't know if that's true - calling Hash#fetch with no default raises KeyError, so you also know that way.
<bob_f> And you guarantee one lookup.
<jhass> well, or def fetch_config_value(key); config.fetch(key) { block_given? ? yield : raise ConfigError }
DynamicMetaFlow has joined #ruby
<bob_f> I'm not obsessed with an O(1) lookup, but the flow just smells bad, and I prefer a bespoke sentinel approach to that.
atmosx has quit [Quit: This is aparting message!]
idefine has joined #ruby
<bob_f> jhass: Sorry, if you don't mind, could you elaborate on "that's still stupid as nil ..." ?
<bob_f> I didn't understand what you meant.
<jhass> ignore it, take the last version I showed
<bob_f> Ah, I thought you were referring to my code.
<jhass> provide the default via a block, a tiny bit more verbose but gives you a single lookup and lazy default computation for the caller
infra-red has joined #ruby
<bob_f> Yeah, it's certainly cleaner, in the implementation, but I gotta say I find the block requirement a bit crufty and un-Rubyish.
gizmore has joined #ruby
<jhass> &ri Hash#fetch
<bob_f> I'd expect to be able to pass both an absolute value as well as a block. Seems a bit mean to pass the cruft on to the caller instead of hiding it in one place. :)
<jhass> it's a pattern used in core
<bob_f> Sure, but it's common to accept both absolute and block, in my experience.
<jhass> then you have to use has_key? to get to a sane implementation
aeontech has joined #ruby
<bob_f> I guess I'll just stick with what I have, in that case.
<bob_f> Don't want to ruin someone's day if they decide to move the config to a web service.
st0mar has quit [Ping timeout: 252 seconds]
<jhass> I find it very ugly, but just my opinion I guess
idefine_ has joined #ruby
<bob_f> Thanks for the help regardless.
idefine has quit [Ping timeout: 240 seconds]
zast has joined #ruby
<bob_f> Yeah, me too, was hoping there'd be some Rubytastic version. The `fetch` call with a block is likely something I'll use at some point though so thanks for the tip.
infra-r__ has quit [Ping timeout: 244 seconds]
peaches has joined #ruby
peaches is now known as Guest41507
idefine has joined #ruby
Es0teric has joined #ruby
arthurix_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
rodfersou|lunch is now known as rodfersou
jackjackdripper has joined #ruby
B1n4r10 has joined #ruby
infra-re_ has joined #ruby
idefine_ has quit [Ping timeout: 260 seconds]
Guest34101 has joined #ruby
zast has quit [Ping timeout: 244 seconds]
tvon has quit [Quit: tvon]
arthurix has quit [Ping timeout: 250 seconds]
idefine has quit [Ping timeout: 248 seconds]
yokel has joined #ruby
roshanavand has joined #ruby
infra-red has quit [Ping timeout: 244 seconds]
ArtursL has joined #ruby
naftilos76 has joined #ruby
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
boontdustie has joined #ruby
wldcordeiro has joined #ruby
st0mar has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
Guest41507 has quit [Ping timeout: 252 seconds]
sergey_makagon has joined #ruby
sergey_makagon has quit [Client Quit]
shanemcd_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
cyclonis has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
cyclonis has joined #ruby
jhack has joined #ruby
jhack has quit [Client Quit]
boontdustie has quit [Remote host closed the connection]
pawnbox has joined #ruby
shanemcd_ has quit [Ping timeout: 240 seconds]
arlek has joined #ruby
cyclonis has quit [Ping timeout: 244 seconds]
<gizmore> 'evening'; %w can i store a block that remembers class_eval somehow?
<jhass> you can store a block that class evals another block
<gizmore> so the class_eval inside that block would work
<gizmore> redundancy... but a way
<gizmore> thank you
sp4rrow has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
mark2 has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
<apeiros> you can also just store the block
<apeiros> gizmore: and class_eval that at any time
kgirthofer has quit [Quit: Leaving]
arlek has quit [Ping timeout: 248 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
niksrc has quit [Ping timeout: 260 seconds]
solars has joined #ruby
<gizmore> apeiros: greetings... what i would need: class_eval(klass_name) do |klass| now i am inside klass / klass_name
jmarinelli has joined #ruby
jmarinelli is now known as yuung
<apeiros> um, class_eval is klass.class_eval do … end
rubie has joined #ruby
<apeiros> see Object.const_get and Module#class_eval
ramfjord has quit [Ping timeout: 246 seconds]
julieeharshaw has quit [Quit: ZZZZZzzzz]
kgirthofer has joined #ruby
moos3 has quit [Ping timeout: 276 seconds]
steffkes has quit [Ping timeout: 260 seconds]
<yuung> i'm trying to use VCR in my rails app, and in the method i'm trying to test, i use Hash#transform_keys which is a Rails method. it seems that when i test with VCR, this method isn't added. how can i amend this?
julieeharshaw has joined #ruby
siaw has joined #ruby
edwinvdg_ has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
<kaleido> yuung: #rubyonrails
<kaleido> they will have better answers
<gizmore> apeiros: nvm... just was just a bug / typo :) ignore
yuung has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 260 seconds]
skade has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
st0mar has quit [Ping timeout: 246 seconds]
uxp has quit [Read error: Connection reset by peer]
rubie has quit [Read error: Connection reset by peer]
uxp has joined #ruby
zast has joined #ruby
rubie has joined #ruby
kies has joined #ruby
DynamicMetaFlow has quit [Ping timeout: 244 seconds]
sp4rrow has quit [Ping timeout: 246 seconds]
Wicaeed has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<shevy> I am all in favour of .klass_eval
<shevy> strong german words!
al2o3-cr has quit [Ping timeout: 248 seconds]
[Butch] has joined #ruby
al2o3-cr has joined #ruby
chipotle has joined #ruby
robbyoconnor has joined #ruby
aeontech has quit [Quit: aeontech]
spider-mario has joined #ruby
sp4rrow has joined #ruby
baweaver has joined #ruby
shanemcd_ has joined #ruby
cb has joined #ruby
intrigueD has joined #ruby
<Canar> deutsch ist verboten
<Canar> :B
idefine has joined #ruby
<cb> Hi there, I am new to ruby and looking for an scheduler which i can manage from my Rails-Application. So that a User could change the Timings of certain Tasks. Any recommendations?
p1k has quit [Ping timeout: 248 seconds]
eregi has quit [Ping timeout: 248 seconds]
eregi has joined #ruby
Xiti has quit [Quit: Xiti]
momomomomo has joined #ruby
slash_join is now known as slash_nick
baweaver has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
yqt has joined #ruby
shanemcd_ has quit [Ping timeout: 276 seconds]
allcentury has quit [Quit: WeeChat 1.2]
ferr1 has quit [Quit: WeeChat 1.4]
dravine has joined #ruby
aeontech has joined #ruby
cwenner has joined #ruby
wilbert has joined #ruby
ldnunes has quit [Ping timeout: 268 seconds]
edwinvdg_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
evidex has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
Abrin_AWAY has joined #ruby
dravine has quit [Quit: dravine]
dopie has joined #ruby
roshanavand has joined #ruby
dopie has quit [Client Quit]
amargherio has quit [Ping timeout: 240 seconds]
aeontech has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
ramfjord has joined #ruby
aeontech has joined #ruby
mfaeh has quit []
nando294021 has joined #ruby
shadoi has joined #ruby
fostertheweb has joined #ruby
shanemcd_ has joined #ruby
Snowy has joined #ruby
neanderslob_ has quit [Quit: No Ping reply in 180 seconds.]
neanderslob_ has joined #ruby
infra-red has joined #ruby
x77686d has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
al2o3-cr has quit [Ping timeout: 244 seconds]
vdamewood has joined #ruby
idefine has quit [Read error: Connection reset by peer]
st0mar has joined #ruby
idefine has joined #ruby
zast has quit [Remote host closed the connection]
thevaliantx has joined #ruby
shanemcd_ has quit [Ping timeout: 268 seconds]
infra-re_ has quit [Ping timeout: 248 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
B1n4r10 has joined #ruby
al2o3-cr has joined #ruby
haylon has quit [Read error: Connection reset by peer]
cyclonis has joined #ruby
jgpawletko has joined #ruby
f4cl3y has quit [Ping timeout: 276 seconds]
sauvin has quit [Read error: Connection reset by peer]
mdw has joined #ruby
trosborn has joined #ruby
TomyLobo has joined #ruby
mdw_ has joined #ruby
idefine_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
theery has joined #ruby
mdw has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
mdw_ is now known as mdw
momomomomo has quit [Quit: momomomomo]
infra-re_ has joined #ruby
momomomomo has joined #ruby
devbug has joined #ruby
idefine_ has quit [Remote host closed the connection]
idefine has joined #ruby
<kgirthofer> hey all - new to developing ruby gems, I'm updating an old gem to start and I'd like to update some of the deps in Gemfile.lock - how do I update them? seems everytime I run bundler it overwrites
jottr has joined #ruby
infra-red has quit [Ping timeout: 244 seconds]
dcunit3d has joined #ruby
jenrzzz has joined #ruby
n008f4g_ has joined #ruby
peteyg has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
idefine has quit [Read error: Connection reset by peer]
idefine_ has joined #ruby
djbkd has joined #ruby
momomomomo has quit [Quit: momomomomo]
BtcBen has joined #ruby
mondok has joined #ruby
mallu has joined #ruby
<gizmore> woho :) uncaught throw #<ActiveRecord::Magic::MissingDependency: ActiveRecord::Magic::Spec::User depends on {:"ActiveRecord::Magic::Gender"=>1}>
mallu has quit [Client Quit]
<gizmore> now i simply can annotate update steps and depend on them :)
<gizmore> stupid rails migrations are too bloated
baweaver has joined #ruby
<gizmore> ActiveRecord::Magic also features a global object cache... where each row is always the same instance
<gizmore> and it´s my first spec driven development project
shadoi has quit [Quit: Leaving.]
medicate has joined #ruby
aegis3121 has quit [Ping timeout: 246 seconds]
<gizmore> helper classes for code reload at runtime. a logfile system that closes rarely used logfiles after a few minutes, and some more stuff i will depend my new ruby chatbot on \o/
<gizmore> and a new proof that p == np
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
jottr_ has joined #ruby
shanemcd_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
idefine has joined #ruby
idefine_ has quit [Ping timeout: 244 seconds]
openstruct has joined #ruby
<xpt> there is a proof that p == np already?
jottr has quit [Ping timeout: 276 seconds]
<xpt> Someone else took mine 1 million dollars?
<cwenner> /ignore gizmore
mary5030 has quit [Read error: Connection reset by peer]
roshanavand has quit [Quit: This computer has gone to sleep]
mary5030 has joined #ruby
<gizmore> xpt: http://cxg.de/_a0a77a.htm (p = np) ... and sorry for my bloat :)
ljames has quit []
shanemcd_ has quit [Ping timeout: 276 seconds]
medicate has quit [Ping timeout: 264 seconds]
faelkle has joined #ruby
dopie has joined #ruby
kfpratt has joined #ruby
dopie has quit [Client Quit]
shadoi has joined #ruby
shanemcd has quit [Remote host closed the connection]
akkad has quit [Quit: Emacs must have died]
SuperDave has joined #ruby
<SuperDave> test
<SuperDave> ok
casadei has joined #ruby
<SuperDave> .balance
<SuperDave> .act
roshanavand has joined #ruby
trinaldi has quit [Quit: WeeChat 1.5-dev]
robbyoconnor has quit [Ping timeout: 240 seconds]
<SuperDave> commands not working, or big lag?
elaptics is now known as elaptics`away
jenrzzz has quit [Ping timeout: 264 seconds]
dcunit3d has quit [Quit: WeeChat 1.3]
dcunit3d has joined #ruby
shanemcd has joined #ruby
intrigueD has quit [Remote host closed the connection]
roshanavand has quit [Quit: This computer has gone to sleep]
jottr_ has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
trosborn has quit [Quit: trosborn]
st0mar has quit [Ping timeout: 248 seconds]
_ht has joined #ruby
lemur has joined #ruby
roshanavand has quit [Client Quit]
baweaver_ has joined #ruby
trosborn has joined #ruby
<apeiros> kgirthofer: you update the version spec in the Gemfile and then run "bundle update"
<kgirthofer> cool thanks
<apeiros> that will update all gems to the newest version still satisfying the spec
<apeiros> SuperDave: those aren't commands here. what makes you think they were? wrong channel?
trosborn has quit [Client Quit]
<SuperDave> oh i'm not on the channel i thought i was
openstruct has quit [Ping timeout: 248 seconds]
binaryplease has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
lemur has quit [Ping timeout: 248 seconds]
Rickmasta has joined #ruby
zeroDivisible has joined #ruby
trosborn has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
A124 has quit [Quit: '']
SuperDave has left #ruby [#ruby]
Lucky_ABA has quit [Read error: Connection reset by peer]
tvsutton has joined #ruby
rmulligan has joined #ruby
A124 has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rmulligan has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
codecop has quit [Remote host closed the connection]
rmulligan has joined #ruby
shanemcd has quit [Remote host closed the connection]
trosborn has quit [Quit: trosborn]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest34101 has quit [Ping timeout: 246 seconds]
mdw has quit [Ping timeout: 244 seconds]
nullwarp has quit [Quit: ZNC - http://znc.in]
futilegames has joined #ruby
trosborn has joined #ruby
vishwa has quit [Ping timeout: 244 seconds]
B3rg3lm1r has joined #ruby
B3rg3lm1r has quit [Client Quit]
Coldblackice has joined #ruby
Rickmasta has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
trosborn has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
faelkle has quit [Quit: leaving]
ivanskie has quit [Ping timeout: 252 seconds]
ivanskie_work has joined #ruby
pawnbox has joined #ruby
kirun has joined #ruby
shadoi has quit [Quit: Leaving.]
nullwarp has joined #ruby
eurialo has joined #ruby
rattatmatt has joined #ruby
roger_rabbit has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
mdw has joined #ruby
uglybandersnatch has joined #ruby
neohunter has joined #ruby
copperb0lt has quit [Quit: WeeChat 1.4]
Cohedrin has joined #ruby
safe has joined #ruby
fostertheweb has joined #ruby
faelkle has joined #ruby
krzkrzkrz has quit [Ping timeout: 240 seconds]
BtcBen has quit [Ping timeout: 252 seconds]
gbgdev has quit [Remote host closed the connection]
<xpt> gizmore: np (or should I say p?)
<gizmore> yun :)
<gizmore> *yup
mdw has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
vishwa has joined #ruby
pawnbox has joined #ruby
moos3 has joined #ruby
sandstrom has joined #ruby
mdw has joined #ruby
ixti has quit [Read error: Connection reset by peer]
shanemcd has joined #ruby
chocoelho has quit [Quit: Connection closed for inactivity]
baweaver_ has quit [Read error: Connection reset by peer]
neohunter has quit [Quit: leaving]
shanemcd has quit [Remote host closed the connection]
shadoi has joined #ruby
shanemcd has joined #ruby
casadei has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aegis3121 has joined #ruby
cyclonis has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
st0mar has joined #ruby
glcx has joined #ruby
jottr_ is now known as jottr
FernandoBasso has joined #ruby
uglybandersnatch has quit [Ping timeout: 268 seconds]
d0nn1e has quit [Ping timeout: 248 seconds]
Rickmasta has joined #ruby
julieeharshaw has quit [Quit: ZZZZZzzzz]
d0nn1e has joined #ruby
<gizmore> http://cxg.de/_32e44b.htm (cache spec test)
julieeharshaw has joined #ruby
intrigueD has joined #ruby
intrigueD has joined #ruby
uglybandersnatch has joined #ruby
infra-re_ has quit [Read error: Connection reset by peer]
infra-red has joined #ruby
x77686d has joined #ruby
dcunit3d has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
jackjackdripper1 has joined #ruby
djbkd has quit [Remote host closed the connection]
ixti has joined #ruby
rodferso1 has joined #ruby
momomomomo has joined #ruby
jackjackdripper has quit [Ping timeout: 244 seconds]
casadei has joined #ruby
prefix is now known as _stahp
jenrzzz has joined #ruby
binaryplease1 has joined #ruby
rodfersou has quit [Ping timeout: 260 seconds]
lightheaded has joined #ruby
shanemcd has quit [Remote host closed the connection]
rodferso1 has quit [Quit: leaving]
infra-red has quit [Remote host closed the connection]
infra-red has joined #ruby
binaryplease has quit [Ping timeout: 244 seconds]
moos3 has quit [Quit: leaving]
svankmajer has quit [Quit: leaving]
ramfjord has joined #ruby
freerobby has joined #ruby
dcunit3d has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
moos3 has joined #ruby
uglybandersnatch has quit [Ping timeout: 268 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
codecop_ has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
infra-re_ has joined #ruby
shanemcd has joined #ruby
infra-red has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
roger_rabbit has joined #ruby
nando294021 has quit [Ping timeout: 276 seconds]
shanemcd has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
skade has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
st0mar has quit [Quit: quit]
vishwa has quit [Ping timeout: 268 seconds]
glcx_ has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
ldnunes has quit [Quit: Leaving]
shadoi has quit [Quit: Leaving.]
moos3 has quit [Quit: leaving]
DylanJ has joined #ruby
mondok has quit [Ping timeout: 244 seconds]
shanemcd has joined #ruby
synthroid has quit []
moos3 has joined #ruby
moos3 has quit [Client Quit]
SCHAAP137 has joined #ruby
moos3 has joined #ruby
eregi_ has joined #ruby
shanemcd has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
eregi has quit [Ping timeout: 276 seconds]
jackjackdripper has joined #ruby
shanemcd has joined #ruby
shanemcd_ has joined #ruby
momomomomo has joined #ruby
thevaliantx has quit [Quit: Leaving]
bronson has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
shanemcd_ has quit [Ping timeout: 248 seconds]
shanemcd has quit [Ping timeout: 240 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
steffkes has joined #ruby
glcx has quit [Quit: Quitte]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
glcx has quit [Remote host closed the connection]
moos3 has quit [Quit: leaving]
skade has quit [Quit: Computer has gone to sleep.]
mondok has joined #ruby
marxarelli is now known as marxarelli|afk
gbgdev has joined #ruby
glcx_ is now known as glcx
BSaboia has joined #ruby
trosborn has joined #ruby
ext0 has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
BtcBen has joined #ruby
BLuEGoD has quit [Ping timeout: 276 seconds]
futilegames has quit [Quit: futilegames]
ivanskie_work_ has joined #ruby
ArtursL has quit [Ping timeout: 252 seconds]
lightheaded has quit []
ivanskie_work has quit [Ping timeout: 268 seconds]
momomomomo has quit [Quit: momomomomo]
n008f4g_ has joined #ruby
zack6849 has quit [Quit: Leaving]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A124 has quit [Quit: '']
moos3 has joined #ruby
Hammy_Work has quit [Quit: Leaving]
last_staff has quit [Quit: last_staff]
shlomocomputer has joined #ruby
gbgdev has quit [Remote host closed the connection]
idefine_ has joined #ruby
<shlomocomputer> Hi. Why, when I run ruby -pe '$_ + "Hello"', does Ruby never append Hello to the lines I pipe in?
aeontech has quit [Quit: aeontech]
vishwa has joined #ruby
hangelo has joined #ruby
A124 has joined #ruby
n1colas has quit [Ping timeout: 260 seconds]
shlomocomputer has quit [Client Quit]
zack6849 has joined #ruby
zack6849 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 244 seconds]
futilegames has joined #ruby
shadoi has joined #ruby
<gizmore> http://railsbin.wechall.net/pastes/8 (my first spec \o/)
_ht has quit [Quit: Konversation terminated!]
marxarelli|afk is now known as marxarelli
crankharder has quit [Ping timeout: 244 seconds]
<pwnd_nsfw> Grats gizmore !
<gizmore> thanks ... it feels so much more sane to do test driven
<pwnd_nsfw> hell yeah
<gizmore> the arm_cache is quite slim in v4
cyclonis has joined #ruby
<gizmore> http://railsbin.wechall.net/pastes/9 (monkey patch activerecord to make use of a cache filter)
uglybandersnatch has joined #ruby
zapata has quit [Quit: WeeChat 1.4]
<gizmore> i bet it wont work nicely with memcached or whatnot... but it guarantees fancy unique/same records/object_id across your whole app
bluOxigen has joined #ruby
<gizmore> its not for rails... but could be used there
duckpuppy has quit [Ping timeout: 252 seconds]
bluOxigen_ has quit [Ping timeout: 244 seconds]
julieeharshaw has quit [Quit: ZZZZZzzzz]
julieeharshaw has joined #ruby
cyclonis has quit [Ping timeout: 248 seconds]
infra-re_ has quit [Remote host closed the connection]
crankharder has joined #ruby
replay has joined #ruby
zapata has joined #ruby
aeontech has joined #ruby
djbkd has joined #ruby
B1n4r10 has quit [Ping timeout: 260 seconds]
moeabdol4 has joined #ruby
shanemcd has joined #ruby
araujo has quit [Read error: Connection timed out]
vipaca has quit [Quit: Textual IRC Client: www.textualapp.com]
futilegames has quit [Quit: futilegames]
araujo has joined #ruby
moeabdol3 has quit [Ping timeout: 244 seconds]
quazimodo has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
theRealAlexz has quit [Quit: No Ping reply in 180 seconds.]
johnmilton has quit [Remote host closed the connection]
sp4rrow has joined #ruby
theRealAlexz has joined #ruby
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
hahuang61 has quit [Ping timeout: 244 seconds]
Jardayn has quit [Read error: Connection reset by peer]
<adaedra> wohoo, first communication between a C++ program and mruby
Moosashi has joined #ruby
steffkes has quit [Ping timeout: 268 seconds]
vishwa has quit [Read error: Connection reset by peer]
vishwa has joined #ruby
chipotle has quit [Quit: cheerio]
mistermocha has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
x77686d has quit [Quit: x77686d]
trinaldi has joined #ruby
elifoster has joined #ruby
Twitty has joined #ruby
Guest38 has quit [Read error: Connection reset by peer]
tonyynot has joined #ruby
Moosashi has quit [Quit: Moosashi]
uglybandersnatch has quit [Ping timeout: 240 seconds]
shanemcd has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
tommy_p has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aeontech has quit [Quit: aeontech]
chipotle has joined #ruby
swills has joined #ruby
yuung has joined #ruby
<yuung> i'd like to test a method that returns an object in its `rescue` clause. how can i do this with rspec?
<Cohedrin> yuung if you return the object in the rescue clause of the method
<Cohedrin> it will return it from the object, just like it would if you normally returned it
idefine_ has quit [Remote host closed the connection]
<aegis3121> Make sure you raise the error that will be rescued at some point.
<Cohedrin> return it from the method*
<yuung> Cohedrin, aegis3121, yeah - i want to know how i can raise this exception in a test?
sepp2k has quit [Quit: Leaving.]
<Cohedrin> depends on your exception
<Cohedrin> what are you trying to raise
<yuung> Cohedrin OpenURI::HTTPError
<aegis3121> yuung I assume you're calling some method that raises that error, yes?
<yuung> aegis3121 yep
SaintAardvark has joined #ruby
theery has quit []
<Cohedrin> as far as I know theres no way to have rspec raise an error without raising it in your code
<aegis3121> except using `allow` syntax vs `expect`
<Cohedrin> normally you would cause the method to raise the error by passing invalid params, etc
<aegis3121> allow(Receiver).to receive(:message).and_raise(SomeError)
<Cohedrin> but since you're trying to raise an http method
<Cohedrin> you can use webmock, https://github.com/bblimke/webmock
<aegis3121> I lied about the matcher, sorry. I didn't realize until I wrote out the syntax.
<SaintAardvark> Hi all -- I've got a Rakefile that does some jsonlinting on files, and I want that task to be run when I run "rake test". Is there a way to do this?
<Cohedrin> and stub that request to return an erorr
<SaintAardvark> so far the docs I've seen have been focused on running spec tests, which isn't what I'm after here
<aegis3121> (or just stub whatever method it is to raise)
nerium has quit [Quit: nerium]
mondok has quit [Ping timeout: 276 seconds]
<yuung> aegis3121, Cohedrin, hm - so i don't think i'll really be able to simulate the way i'd like. but i'll take what you said into consideration. thanks!
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
unl0ckd has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
shadoi has quit [Quit: Leaving.]
<SaintAardvark> yuung: thanks, looking now
kriskropd has quit [Quit: WeeChat 0.4.2]
St1gma has joined #ruby
kriskropd has joined #ruby
volty has joined #ruby
mostlybadfly has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
zenlot has quit [Ping timeout: 244 seconds]
rattatmatt has quit [Remote host closed the connection]
<Ox0dea> SaintAardvark: Rake is a dependency resolution system; you should be able to just declare your lint task as a dependency of your test task.
<Ox0dea> It's not entirely clear why you'd do that, mind.
<SaintAardvark> 0x0dea: thanks
zenlot has joined #ruby
rattatmatt has joined #ruby
<SaintAardvark> in this case, I'm using Rake to automate some tasks as a way of learning Rake/Ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
<SaintAardvark> the larger purpose is to make some updates based on json files, and I want to lint those files before attempting to make changes
<SaintAardvark> it seems test-ish, so I'm going with that for now :)
htmldrum has joined #ruby
<SaintAardvark> the problem I'm running into is that if I name the task 'jsonlint' and run it, it picks up errors -- quickly barfs on a bad json file
<SaintAardvark> whereas if I name the task 'test', it does no such thing -- exit code 0, seems to be saying everything's fine
idefine has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 264 seconds]
Twitty has quit [Quit: WeeChat 1.4]
rattatmatt has quit [Ping timeout: 244 seconds]
aegis3121 has quit [Ping timeout: 248 seconds]
htmldrum has quit [Client Quit]
htmldrum has joined #ruby
idefine has joined #ruby
<Ox0dea> It's probably the case that your test task isn't actually the one being invoked there.
iooner has quit [Ping timeout: 268 seconds]
<SaintAardvark> 0x0dea: not sure I understand - are you saying that there's another test task somewhere that's being included somehow?
cyclonis has joined #ruby
<Ox0dea> SaintAardvark: Well, given that you've defined your :test and :jsonlint tasks identically, that they don't behave identically is certainly suspicious.
<SaintAardvark> yeah, couldn't figure that out...was wondering if 'test' was a special keyword for Rakefiles or some such
iooner has joined #ruby
<Ox0dea> It's not; it's just a convention, but those can bite you too.
* SaintAardvark just noticed that the nick is Ox0dea, not the other way around
<Ox0dea> Leading digits aren't permitted here. :(
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
robbyoconnor has joined #ruby
<SaintAardvark> ok, managed to get around this by adding "task test: ['jsonlint']" to the Rakefile...that now invokes jsonlint, which barfs on a bad file
rmulligan has quit [Remote host closed the connection]
<Ox0dea> Aye, that's what I suggested from the first. :P
skade has joined #ruby
cyclonis has quit [Ping timeout: 240 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nb_bez___ has joined #ruby
mdw has quit [Ping timeout: 252 seconds]
saneax_AFK is now known as saneax
aeontech has joined #ruby
<SaintAardvark> I need to pay more attention :-)
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<Ox0dea> Can't speak as to why jsonlint is barfing other than to suggest you're probably feeding it some not-JSON.
cdg has quit [Remote host closed the connection]
cyclonis has joined #ruby
cdg has joined #ruby
snockerton has joined #ruby
cdg_ has joined #ruby
<SaintAardvark> ah, that was because I'd deliberately borked one of the json files in order to make sure I was catching errors
shanemcd has quit [Ping timeout: 240 seconds]
znz_jp has quit [Ping timeout: 248 seconds]
[Butch] has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 240 seconds]
shanemcd has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has quit [Ping timeout: 260 seconds]
stunder has quit [Ping timeout: 264 seconds]
n1colas has joined #ruby
binaryplease1 has quit [Ping timeout: 240 seconds]
nighttime is now known as daytime
replay has quit [Ping timeout: 250 seconds]
intrigueD has quit [Remote host closed the connection]
DarthGandalf has quit [Ping timeout: 276 seconds]
wilbert has quit [Ping timeout: 260 seconds]
cdg_ has quit [Remote host closed the connection]
shanemcd has quit [Ping timeout: 248 seconds]
spider-mario has quit [Remote host closed the connection]
shanemcd has joined #ruby
Renich has quit [Quit: leaving]
jyaworski has quit [Ping timeout: 260 seconds]
stunder has joined #ruby
Synthead has quit [Quit: Synthead]
idefine has quit [Remote host closed the connection]
fostertheweb has joined #ruby
hahuang61 has joined #ruby
AlphaAtom has joined #ruby
charliesome has joined #ruby
vdamewood has quit [Quit: Life beckons.]
stunder has quit [Ping timeout: 252 seconds]
AlphaAtom has quit [Max SendQ exceeded]
aeon_ has joined #ruby
DarthGandalf has joined #ruby
GBrawl has joined #ruby
AlphaAtom has joined #ruby
Moosashi has joined #ruby
aeontech has quit [Ping timeout: 252 seconds]
hahuang61 has quit [Ping timeout: 268 seconds]
symm- has quit [Ping timeout: 260 seconds]
stunder has joined #ruby
crystal77 has joined #ruby
HalcyonicStorm has quit [Quit: Leaving.]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
[Butch] has joined #ruby
sp4rrow has joined #ruby
ramfjord_ has joined #ruby
stannard has quit [Remote host closed the connection]
trosborn has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
trosborn has joined #ruby
moeabdol4 has quit [Ping timeout: 276 seconds]
ramfjord_ has quit [Ping timeout: 248 seconds]
swills has quit [Quit: Leaving]
[Butch] has quit [Quit: I'm out . . .]
fostertheweb has quit [Quit: Textual IRC Client: www.textualapp.com]
siaw has quit [Quit: siaw]
toretore has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
moos3 has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 276 seconds]
Moosashi has quit [Quit: Moosashi]
al2o3-cr has joined #ruby
swills has joined #ruby
gbgdev has joined #ruby
bry4n has quit [Ping timeout: 248 seconds]
ta_ has quit [Remote host closed the connection]
BtcBen has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
sp4rrow has joined #ruby
kirun has quit [Quit: Client exiting]
GBrawl has quit [Read error: Connection reset by peer]
uglybandersnatch has joined #ruby
ramfjord has joined #ruby
ta_ has quit [Ping timeout: 248 seconds]
nfk|laptop has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
gregf has joined #ruby
<yuung> accident, my bad.
cdg has joined #ruby