jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
skalfyfan has joined #ruby
mikeiniowa has joined #ruby
hahuang61 has joined #ruby
Dimik-- has joined #ruby
Asher has joined #ruby
coffeecupp has quit [Ping timeout: 264 seconds]
dragon9783 has joined #ruby
skalfyfan has quit [Client Quit]
skalfyfan has joined #ruby
colegatron_origi has joined #ruby
hipertracker has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niandalu has joined #ruby
hipertracker has quit [Client Quit]
mattwashere has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 252 seconds]
mattwashere has joined #ruby
Xiti` has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
postmodern has quit [Quit: Leaving]
tristanp has joined #ruby
macsteps has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 240 seconds]
mattwashere has quit [Ping timeout: 252 seconds]
elifoster has quit [Quit: coffee and shit]
djbkd has quit [Quit: My people need me...]
roamingdog has joined #ruby
agent_white has quit [Quit: bbl]
postmodern has joined #ruby
roamingdog has quit [Ping timeout: 246 seconds]
hipertracker has joined #ruby
dkam has quit [Quit: Be back later ...]
mistermocha has joined #ruby
flyinprogrammer has left #ruby [#ruby]
Asher has quit [Quit: Leaving.]
ramfjord has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hipertracker has quit [Client Quit]
spudowiar has quit [Quit: Leaving.]
tristanp has joined #ruby
nettoweb has joined #ruby
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has joined #ruby
rodfersou has quit [Quit: leaving]
Asher has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
nando293921 has quit [Ping timeout: 246 seconds]
nettoweb has quit [Client Quit]
hipertracker has joined #ruby
Dreamer3 has quit [Quit: Leaving...]
nettoweb has joined #ruby
diprotic is now known as monoprotic
blackmesa has joined #ruby
hipertracker has quit [Client Quit]
dvinciguerra_ has quit [Ping timeout: 240 seconds]
zacts has quit [Ping timeout: 258 seconds]
Sucks has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
hipertracker has joined #ruby
karapetyan has joined #ruby
tristanp has joined #ruby
coffeecupp has joined #ruby
hipertracker has quit [Client Quit]
TheHodge has quit [Quit: Connection closed for inactivity]
Asher has quit [Quit: Leaving.]
mistermocha has quit [Ping timeout: 244 seconds]
roamingdog has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
toretore has quit [Ping timeout: 272 seconds]
Sammichmaker has quit [Read error: Connection reset by peer]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hipertracker has joined #ruby
bweston92 has quit [Ping timeout: 260 seconds]
hipertracker has quit [Client Quit]
zacts has joined #ruby
bweston92 has joined #ruby
isberg_ has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 276 seconds]
shakes has joined #ruby
nankyokusei has joined #ruby
tristanp has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
weaksauce has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
hahuang61 has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
crystal77 has joined #ruby
SilverKey has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 272 seconds]
macsteps has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 252 seconds]
hipertracker has joined #ruby
tristanp has joined #ruby
hutch34_ has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
<zacts> hello
<zacts> I'm getting through rubymonk
<zacts> it's cool
<zacts> =)
hipertracker has quit [Client Quit]
<zacts> I feel kind of like Thelonious Monk's Ruby my Dear
<zacts> for sures...
sumobob has quit [Ping timeout: 250 seconds]
SilverKey has quit [Quit: Halted.]
colegatron_origi has quit [Ping timeout: 272 seconds]
hipertracker has joined #ruby
akira616 has quit [Ping timeout: 252 seconds]
JeanCarloMachado has quit [Ping timeout: 276 seconds]
cdg has quit [Remote host closed the connection]
ryez has joined #ruby
cdg has joined #ruby
<ramfjord> Heya guys - Anyone know how to (in rspec) make sure that a varargs method is called, and each of it's arguments fit a matcher? This gist should provide an example: https://gist.github.com/ramfjord/1f7a9f3809d644563994b811fb375487
GinoMan2440 has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
<ramfjord> if I pass in an array it's easy to do .with(all(starts_with("hello"))) - but that doesn't seem to work with varargs
<ramfjord> not sure what this (paren, syntax) is indicating in the error
GinoMan2440 has joined #ruby
Guest42361 has quit [Quit: Leaving]
hutch34_ has quit [Ping timeout: 250 seconds]
tristanp has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 260 seconds]
<ramfjord> nvm, finally got a google search that showed me a working syntax using receive(:method) do |*args|
mello has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
hipertracker has quit [Quit: hipertracker]
colegatron_origi has joined #ruby
mistermocha has joined #ruby
blackmesa has joined #ruby
LoneHerm_ has joined #ruby
enterprisey has joined #ruby
nogic has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
allstar has joined #ruby
dkam has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
Asher has joined #ruby
dkam has quit [Client Quit]
hipertracker has joined #ruby
Asher has quit [Client Quit]
allstar has quit [Client Quit]
huser has joined #ruby
huser has quit [Client Quit]
tristanp has quit [Ping timeout: 276 seconds]
Sucks has quit [Remote host closed the connection]
allstar has joined #ruby
tristanp has joined #ruby
Spami has joined #ruby
skalfyfan has joined #ruby
hipertracker has quit [Quit: hipertracker]
tossup__ has joined #ruby
tossup__ has quit [Read error: Connection reset by peer]
hipertracker has joined #ruby
jenrzzz has joined #ruby
skalfyfan has quit [Ping timeout: 264 seconds]
coffeecupp has quit [Quit: Lost terminal]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rstacruz has joined #ruby
ryez has quit [Ping timeout: 250 seconds]
nersoh has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has joined #ruby
hutch34_ has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 258 seconds]
macsteps has quit [Remote host closed the connection]
tristanp has joined #ruby
hipertracker has quit [Quit: hipertracker]
tossup has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mattwashere has joined #ruby
moeabdol has joined #ruby
freerobby has quit [Quit: Leaving.]
dragon9783 has quit [Quit: Connection closed for inactivity]
hipertracker has joined #ruby
mistermocha has joined #ruby
hutch34_ has quit [Ping timeout: 240 seconds]
macsteps has joined #ruby
macsteps has quit [Remote host closed the connection]
macsteps has joined #ruby
<nettoweb> hey guys, is it possible to create a similar script to setup a app but with ruby? this one is created with python: https://github.com/evanplaice/sublime-text-seed/blob/master/setup.py
spiette has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
hutch34_ has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
mistermocha has joined #ruby
macsteps has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
tristanp has joined #ruby
roamingdog has joined #ruby
hipertracker has quit [Quit: hipertracker]
<nettoweb> ?
A_Drone has joined #ruby
xall has quit [Ping timeout: 252 seconds]
<al2o3-cr> sure, why not
mistermocha has quit [Ping timeout: 240 seconds]
Sebastian1408 has joined #ruby
claw has quit [Read error: Connection reset by peer]
akira616 has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Sebastian1408 has left #ruby [#ruby]
ElFerna has joined #ruby
claw has joined #ruby
hipertracker has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
blackmesa has joined #ruby
tmtwd has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
Xiti` has quit [Quit: Xiti`]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 252 seconds]
blackmesa has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
<shevy> looks very straightforward
<shevy> try:
<shevy> subprocess.call(['sudo', 'id', '-nu'], stdout=subprocess.PIPE)
<shevy> in ruby... begin/rescue, and system or ``
hipertracker has quit [Quit: hipertracker]
arooni_________ has quit [Ping timeout: 264 seconds]
arooni_______ has quit [Ping timeout: 276 seconds]
rstacruz has quit [Quit: rstacruz]
ecksit has joined #ruby
ecksit has quit [Client Quit]
mindcrimes has joined #ruby
<mindcrimes> hi
<mindcrimes> activesupport requires Ruby version >= 2.2.2.
ramfjord has quit [Ping timeout: 250 seconds]
<mindcrimes> any idea what this error means?
<eam> mindcrimes: it means the gem requires a version of ruby 2.2.2 or newer
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
mk92 has joined #ruby
<eam> sometimes gems have dependencies on the version of ruby itself
hahuang65 has quit [Ping timeout: 258 seconds]
mrmargolis has quit [Ping timeout: 260 seconds]
mk92 has quit [Client Quit]
mk92 has joined #ruby
mrmargolis has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<havenwood> mindcrimes: Preferably use Ruby 2.2.5 or 2.3.1 (the latest versions of the supported releases).
<mindcrimes> alright
ecksit has joined #ruby
ecksit has quit [Client Quit]
<mindcrimes> any idea how to install ruby 2.2.5 on centos?
nettoweb has joined #ruby
hipertracker has joined #ruby
coffeecupp has joined #ruby
<shevy> you can try things such as https://github.com/postmodern/chruby
coffeecupp has quit [Client Quit]
<havenwood> mindcrimes: Do you just need one Ruby for production or are you going to be switching between Rubies?
<mindcrimes> just one
MrBusiness2 has quit [Read error: Connection reset by peer]
xall has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
<shevy> one gem to rule them
coffeecupp has joined #ruby
Rodya_ has joined #ruby
<shevy> one gem to find them
howdoi has joined #ruby
drewo has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
AndyBotwin has joined #ruby
nankyokusei has joined #ruby
Xiti has joined #ruby
tristanp has quit [Ping timeout: 264 seconds]
mrmargolis has quit [Remote host closed the connection]
<havenwood> mindcrimes: You could use ruby-install to install to /usr/local/ for your one Ruby: https://github.com/postmodern/ruby-install
eizua has joined #ruby
tristanp has joined #ruby
<havenwood> mindcrimes: sudo ruby-install --latest --system ruby-2.2.5
<havenwood> mindcrimes: ^ that will install Ruby 2.2.5 to /usr/local
<havenwood> /usr/local/bin
ElFerna has quit [Ping timeout: 250 seconds]
hipertracker has quit [Quit: hipertracker]
hahuang61 has joined #ruby
<mindcrimes> thanks
<mindcrimes> bash: ruby-install: command not found
nankyokusei has quit [Ping timeout: 276 seconds]
<havenwood> mindcrimes: you'd just have to install ruby-install first
shakes has quit [Quit: Leaving]
tossup has quit [Quit: Saliendo]
hahuang61 has quit [Ping timeout: 250 seconds]
Asher has joined #ruby
coffeecupp has quit [Quit: Lost terminal]
kavanagh has joined #ruby
macsteps has joined #ruby
memorasus1 has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
nettoweb has joined #ruby
hipertracker has joined #ruby
<mindcrimes> didnt seem to work
<mindcrimes> >>> Successfully installed ruby 2.2.5 into /usr/local
<mindcrimes> [root@BlackQuarterback ruby-install-0.6.0]# gem install discordrb
<mindcrimes> ERROR: Error installing discordrb: activesupport requires Ruby version >= 2.2.2.
<mindcrimes> [root@BlackQuarterback ruby-install-0.6.0]#
nettoweb has quit [Client Quit]
<mindcrimes> sorry for this giant wall of text
kavanagh has quit [Client Quit]
memorasus has quit [Ping timeout: 240 seconds]
memorasus1 is now known as memorasus
<shevy> you still have the old ruby?
<mindcrimes> yeah
<mindcrimes> should i uninstall it?
macsteps has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> dunno, up to you, the issue probably is that your $PATH has the old ruby first
tmtwd has quit [Ping timeout: 240 seconds]
<shevy> have a look into /usr/local first, if the above was correct, there should be a bin/ruby there
<shevy> and also a gem
<shevy> you can try to put /usr/local first on $PATH to see if that changes it
moeabdol1 has joined #ruby
tristanp has quit [Ping timeout: 246 seconds]
hipertracker has quit [Quit: hipertracker]
c355e3b has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
roamingdog has quit [Remote host closed the connection]
treaki_ has joined #ruby
ryez has joined #ruby
zacts has quit [Ping timeout: 244 seconds]
<mindcrimes> so ruby -v shows ruby 2.2.5p319 but i still get the same error
tmtwd has joined #ruby
treaki has quit [Ping timeout: 252 seconds]
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
hipertracker has joined #ruby
blackmesa has joined #ruby
arooni_______ has joined #ruby
arooni_________ has joined #ruby
<shevy> gem --version shows?
LoneHerm_ has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
<mindcrimes> nvm i fixed it
<mindcrimes> found a script that installs the needed version
tristanp has joined #ruby
moeabdol2 has joined #ruby
arescorpio has joined #ruby
<shevy> yay \o/
hipertracker has quit [Quit: hipertracker]
memorasus has quit [Ping timeout: 244 seconds]
moeabdol1 has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
moeabdol3 has joined #ruby
moeabdol2 has quit [Ping timeout: 264 seconds]
A_Drone has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
elifoster has joined #ruby
l4v2 has quit [Quit: l4v2]
ramfjord has joined #ruby
akira616 has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 252 seconds]
mattwashere has quit [Remote host closed the connection]
allstar has quit [Quit: Konversation terminated!]
mattwashere has joined #ruby
moeabdol3 has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
niandalu has quit [Remote host closed the connection]
hipertracker has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
mattwashere has quit [Remote host closed the connection]
leea has joined #ruby
mattwashere has joined #ruby
allstar has joined #ruby
arooni_______ has quit [Ping timeout: 260 seconds]
A_Drone has joined #ruby
arooni_________ has quit [Ping timeout: 264 seconds]
gix has quit [Ping timeout: 240 seconds]
gusrub has quit [Quit: Leaving]
A_Drone has quit [Client Quit]
hipertracker has quit [Quit: hipertracker]
mattwashere has quit [Ping timeout: 250 seconds]
singalaut has joined #ruby
hahuang61 has joined #ruby
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gix has joined #ruby
macsteps has joined #ruby
gusrub has joined #ruby
Dimik-- has quit [Ping timeout: 276 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
macsteps has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
craigp_ has quit [Ping timeout: 276 seconds]
yadobujo has joined #ruby
gusrub has quit [Client Quit]
underplank has joined #ruby
enterprisey has quit [Remote host closed the connection]
moeabdol3 has joined #ruby
dfinninger has joined #ruby
underplank has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
moeabdol3 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Read error: No route to host]
djbkd has joined #ruby
modin has quit [Ping timeout: 264 seconds]
karapetyan has quit [Ping timeout: 258 seconds]
hipertracker has joined #ruby
mindcrimes has left #ruby [#ruby]
moeabdol3 has joined #ruby
gregf has quit [Read error: No route to host]
mistermocha has joined #ruby
hipertracker has quit [Quit: hipertracker]
astrobun_ has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
moeabdol3 has quit [Ping timeout: 260 seconds]
Oclair has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 276 seconds]
mk92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
roamingdog has joined #ruby
mk92 has joined #ruby
blackmesa has joined #ruby
tvw has joined #ruby
mk92 has quit [Client Quit]
tmtwd has quit [Ping timeout: 252 seconds]
enterprisey has joined #ruby
mk92 has joined #ruby
tmtwd has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
mk92 has quit [Client Quit]
zacts has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
conta has joined #ruby
alfiemax has joined #ruby
Gooer has joined #ruby
pawnbox has joined #ruby
nankyokusei has joined #ruby
Beverage is now known as Wsewolod
roamingdog has quit [Remote host closed the connection]
d5sx43 has joined #ruby
et09 has joined #ruby
hahuang61 has joined #ruby
<et09> lambda{|x| foobar(x)} === ->(x){ foobar(x)} correct?
singalaut has quit [Killed (verne.freenode.net (Nickname regained by services))]
edwinvdgraaf has quit [Remote host closed the connection]
singalaut has joined #ruby
mk92 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 258 seconds]
craigp_ has joined #ruby
tmtwd has joined #ruby
<Radar> yup
arescorpio has quit [Quit: Leaving.]
Bugboy1028 has quit [Remote host closed the connection]
mattwashere has joined #ruby
<et09> hey Radar long time no see
Bugboy1028 has joined #ruby
craigp_ has quit [Ping timeout: 240 seconds]
Gooer has quit [Quit: Gooer]
Bugboy1028 has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwashere has quit [Ping timeout: 272 seconds]
harfangk has joined #ruby
enterprisey has quit [Remote host closed the connection]
<Radar> indeed
Bugboy1028 has joined #ruby
Bugboy1028 has quit [Remote host closed the connection]
conta has quit [Ping timeout: 276 seconds]
aredridel has quit [Ping timeout: 244 seconds]
Robtop__ has quit [Read error: Connection reset by peer]
Bugboy1028 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
yadobujo has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
bluOxigen has joined #ruby
hutch34_ has quit [Quit: WeeChat 1.5]
jenrzzz has quit [Ping timeout: 276 seconds]
monoprotic has quit [Read error: Connection reset by peer]
monoprotic has joined #ruby
mk92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
travisxcode has joined #ruby
jenrzzz has joined #ruby
mk92 has joined #ruby
tmtwd has quit [Ping timeout: 276 seconds]
mk92 has quit [Client Quit]
ramfjord has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 258 seconds]
Hobogrammer has quit [Quit: WeeChat 0.4.2]
pawnbox has joined #ruby
xall has quit [Ping timeout: 276 seconds]
ljc has joined #ruby
blackmesa has joined #ruby
aryaching has quit [Remote host closed the connection]
foul_owl has quit [Quit: WeeChat 1.0.1]
aryaching has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
xall has joined #ruby
mk92 has joined #ruby
RequireDragon has joined #ruby
singalaut has quit [Quit: test]
jenrzzz has quit [Ping timeout: 252 seconds]
RequireDragon has quit [Client Quit]
RequireDragon has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mk92 has quit [Client Quit]
zacts has quit [Ping timeout: 250 seconds]
RequireDragon has quit [Client Quit]
andikr has joined #ruby
mk92 has joined #ruby
moeabdol has joined #ruby
travisxcode has quit [Read error: Connection reset by peer]
mk92 has quit [Client Quit]
mk92 has joined #ruby
mk92 has quit [Client Quit]
Gooer has joined #ruby
yfeldblum has quit [Remote host closed the connection]
et09 has quit [Quit: leaving]
Cohedrin has joined #ruby
Oclair has joined #ruby
yadobujo has joined #ruby
xlegoman has joined #ruby
yadobujo has quit [Remote host closed the connection]
yadobujo has joined #ruby
zacts has joined #ruby
Dimik-- has joined #ruby
atom_ has joined #ruby
Macaveli has joined #ruby
d5sx43 has quit [Remote host closed the connection]
Guest22436 has quit [Ping timeout: 276 seconds]
wldcordeiro has quit [Ping timeout: 250 seconds]
harfangk has quit [Quit: harfangk]
craigp_ has joined #ruby
mk92 has joined #ruby
jakkn has joined #ruby
wldcordeiro has joined #ruby
Rodya_ has quit [Remote host closed the connection]
eljimmy has quit [Quit: This computer has gone to sleep]
atom_ has quit [Quit: WeeChat 1.5]
Gooer has quit [Quit: Gooer]
Agashard has joined #ruby
craigp_ has quit [Ping timeout: 250 seconds]
raeoks has joined #ruby
Rodya_ has joined #ruby
jakkn has quit [Ping timeout: 258 seconds]
crdpink has quit [Quit: q term]
crdpink has joined #ruby
solars has joined #ruby
jsaak has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
rstacruz has joined #ruby
hipertracker has joined #ruby
harfangk has joined #ruby
tvw has quit []
toretore has joined #ruby
roamingdog has joined #ruby
aganov has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 264 seconds]
firstdayonthejob has joined #ruby
<zacts> hello
<Dimik--> sup
Agashard has quit [Ping timeout: 272 seconds]
djbkd has quit [Quit: My people need me...]
karapetyan has joined #ruby
fujinuma has joined #ruby
<fujinuma> I just completed reading "Practical Object-Oriented in Ruby" book, what is your suggestion for next step?
<fujinuma> design patterns?
rstacruz has quit [Quit: rstacruz]
djbkd has joined #ruby
hipertracker has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Ping timeout: 250 seconds]
conta has joined #ruby
hipertracker has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
karapetyan has quit [Ping timeout: 258 seconds]
finnnnnnnnnnn has joined #ruby
jsaak has joined #ruby
blackmesa has joined #ruby
tristanp has joined #ruby
sujith has joined #ruby
alem0lars has quit [Ping timeout: 250 seconds]
Klumben has quit [Ping timeout: 250 seconds]
eregon has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
mark_661 has joined #ruby
rstacruz has joined #ruby
rstacruz has quit [Client Quit]
jsaak has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
saneax_AFK is now known as saneax
saneax is now known as saneax_AFK
karapetyan has quit [Ping timeout: 258 seconds]
saneax_AFK is now known as saneax
djbkd has quit [Remote host closed the connection]
jsaak has joined #ruby
LoneHermit has quit [Remote host closed the connection]
jolamb has quit [Ping timeout: 258 seconds]
jolamb has joined #ruby
lkb has joined #ruby
Rodya_ has quit [Remote host closed the connection]
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eregon has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.4]
the_drow has joined #ruby
hakunin has joined #ruby
nankyokusei has joined #ruby
yfeldblum has joined #ruby
yfeldblu_ has joined #ruby
isberg has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
dminuoso has joined #ruby
rstacruz has joined #ruby
jsaak has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
ljc has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Ping timeout: 250 seconds]
<zacts> fujinuma: how many apps have you written?
andikr has quit [Remote host closed the connection]
<zacts> along with reading, I would write tons of Ruby apps
amclain has quit [Quit: Leaving]
<zacts> that's what I've had to do
<zacts> I'm just starting with Ruby
blaxter has joined #ruby
<fujinuma> zacts: I can write apps but I don't have idea :?
biberu has joined #ruby
TomyWork has joined #ruby
navneet has joined #ruby
rstacruz has quit [Quit: rstacruz]
navneet has quit [Client Quit]
jsaak has joined #ruby
dragon9783 has joined #ruby
hipertracker has quit [Quit: hipertracker]
dionysus69 has quit [Ping timeout: 246 seconds]
monoprotic has quit [Ping timeout: 246 seconds]
monoprotic has joined #ruby
rstacruz has joined #ruby
jsaak has quit [Ping timeout: 272 seconds]
jsaak has joined #ruby
dionysus69 has joined #ruby
hipertracker has joined #ruby
drewo has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
lxsameer has joined #ruby
rstacruz has quit [Client Quit]
antgel has joined #ruby
jsaak has quit [Ping timeout: 246 seconds]
aufi has joined #ruby
DoubleMalt has joined #ruby
blackmesa has joined #ruby
rstacruz has joined #ruby
kedare has joined #ruby
harrisi has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
jsaak has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has quit [Quit: sleep]
Hounddog has joined #ruby
codecop has joined #ruby
rstacruz has quit [Ping timeout: 240 seconds]
hipertracker has quit [Quit: hipertracker]
jud^ has joined #ruby
rstacruz has joined #ruby
pawnbox has quit [Remote host closed the connection]
jsaak has quit [Ping timeout: 276 seconds]
jud has quit [Ping timeout: 240 seconds]
Madplatypus has joined #ruby
fujinuma has left #ruby ["WeeChat 1.5"]
hipertracker has joined #ruby
hipertracker has quit [Client Quit]
pawnbox has joined #ruby
rstacruz has quit [Quit: rstacruz]
pawnbox has quit [Remote host closed the connection]
mistermocha has joined #ruby
coffeecupp has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
rstacruz has joined #ruby
pawnbox has joined #ruby
coffeecupp has quit [Client Quit]
Rickmasta has quit [Remote host closed the connection]
rstacruz has quit [Client Quit]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 276 seconds]
isberg has quit [Ping timeout: 264 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
alem0lars has joined #ruby
multi_io has quit [Ping timeout: 246 seconds]
<shevy> zacts!
<shevy> write ruby code!!!
multi_io has joined #ruby
anisha has joined #ruby
drewo has joined #ruby
<shevy> hmmm
<shevy> why do we not have .sample for hashes?
edwinvdgraaf has joined #ruby
reaVer has quit [Ping timeout: 272 seconds]
<shevy> hash.to_a.sample(1).to_h
<shevy> bit weird but works
jsaak has joined #ruby
LoneHerm_ has joined #ruby
<al2o3-cr> shevy: not for symbols :(
GinoManWorks has quit [Read error: Connection reset by peer]
marr has joined #ruby
jaruga___ has joined #ruby
xall has quit [Ping timeout: 240 seconds]
drewo has quit [Ping timeout: 244 seconds]
<al2o3-cr> shevy: :) it does
LoneHerm_ has quit [Ping timeout: 252 seconds]
<shevy> hmm
<shevy> I think we did not have .sample on 1.8.x
<shevy> or was it .shuffle... or both... either way I remember to have used workarounds to obtain a random element back then
mikecmpbll has joined #ruby
haxrbyte has quit [Remote host closed the connection]
blackgoat has quit [Ping timeout: 258 seconds]
atom_ has joined #ruby
haxrbyte has joined #ruby
<al2o3-cr> 18>> [1,2,3].sample
<ruby[bot]> al2o3-cr: # => undefined method `sample' for [1, 2, 3]:Array (NoMethodError) ...check link for more (https://eval.in/604968)
<al2o3-cr> 18>> [1,2,3].shuffle
<ruby[bot]> al2o3-cr: # => [3, 2, 1] (https://eval.in/604969)
<al2o3-cr> yep, sample
<shevy> ah
<shevy> useful bot :)
<al2o3-cr> :)
Couch has joined #ruby
elaptics`away is now known as elaptics
Klumben has joined #ruby
xall has joined #ruby
Dimik-- has quit [Ping timeout: 240 seconds]
rstacruz has joined #ruby
xue has quit [Ping timeout: 240 seconds]
saneax is now known as saneax_AFK
jsaak has quit [Ping timeout: 244 seconds]
jsaak has joined #ruby
yeticry has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
roshanavand has joined #ruby
jud^ has quit [Ping timeout: 246 seconds]
Snowy has joined #ruby
wazzat has joined #ruby
wazzat has left #ruby [#ruby]
jud has joined #ruby
Silthias1 has joined #ruby
aryaching has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 264 seconds]
omphe has joined #ruby
hipertracker has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpb_ has joined #ruby
mikecmpb_ is now known as mikecmpbll
xue has joined #ruby
hipertracker has quit [Client Quit]
ReK2 has quit [Read error: No route to host]
stephan_ has joined #ruby
ReK2 has joined #ruby
<stephan_> Hey, i got an really odd error. i always get "undefined method `each' for nil:NilClass" for this snippet of code: http://pastebin.com/cukxkJNF
<ruby[bot]> stephan_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/79fbb8bc2cac849e324cd29e329134a0
<ruby[bot]> stephan_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<stephan_> but on line two, puts returns "Array" as the class of event_ligen
<TomyWork> not as terrible as hastebin :)
LoneHerm_ has joined #ruby
<stephan_> how can this possibly be?
<stephan_> is this a bug in ruby?!
hemangpatel has joined #ruby
<hemangpatel> Hello
<TomyWork> stephan_ https://eval.in/604983 works for me
<hemangpatel> When run gem build fro this spec i got error, undefined method `metadata=' for #<Gem::Specification:0x00000001b408b0>
<hemangpatel> gem version 1.8.23
<stephan_> TomyWork, yeah, thats the strange thing, sometimes it works, sometimes it doesnt... would i get the same error if the array was empty?
aryaching has joined #ruby
<stephan_> TomyWork, nah, obviously not, thats what you did
rstacruz has quit [Quit: rstacruz]
LoneHerm_ has quit [Ping timeout: 252 seconds]
<hemangpatel> I'm php dev so i have no idea. I'm working on logstash plugin
Jet4Fire has quit []
edwinvdgraaf has quit [Remote host closed the connection]
allstar has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
hipertracker has joined #ruby
<stephan_> it also works when i debug it using pry... REALLY strange
rstacruz has joined #ruby
<TomyWork> stephan_ what i'm trying to tell you is that we need more of your code to be able to tell you what the problem is
<al2o3-cr> hemangpatel: try updating rubygems with gem update --system (that version is old)
allstar has joined #ruby
<stephan_> TomyWork, sure, wait a sec
<TomyWork> stephan_ a number of things can be the cause: broken libraries, broken libraries that monkey-patch in strange ways
<hemangpatel> al2o3-cr, gem update --system is disabled on Debian. I don't want to break my system. Is there any standalone binary available ?
<TomyWork> it is unlikely to be a problem with ruby itself
<stephan_> thats the whole method
<stephan_> what is strange, for the statement in line 6 i get two returns
<TomyWork> then your code runs twice
<stephan_> fist "Array", then "NilClass", even though i just use one "puts"
<stephan_> hmmm
<hemangpatel> ok thanks
govg has joined #ruby
<TomyWork> stephan_ wild guess, favicon.ico?
jenrzzz has quit [Ping timeout: 252 seconds]
ReK2 has quit [Read error: Connection reset by peer]
ReK2GnULinuX has joined #ruby
ReK2GnULinuX has joined #ruby
ReK2GnULinuX has quit [Changing host]
<stephan_> TomyWork, what do you mean?
<TomyWork> it's really just a wild guess, i dont even know which framework you're in
<stephan_> TomyWork, no framework
<TomyWork> i.e. what calls "hole_fixtures"
<stephan_> fixtures = pinnacle.hole_fixtures "https://api.pinnacle.com/v1/fixtures?sportid=29&islive=0", pinnacle.header
<TomyWork> also german names suck :)
<stephan_> thats the line that calls "hole_fixtures"... yeah, sorry for that. the code was just for myself
ramfjord has joined #ruby
jishankai has joined #ruby
<stephan_> is there some sort of introspection where i can see why it gets called twice?
<TomyWork> you can probably get a stack trace
der-landgraf has quit [Ping timeout: 264 seconds]
<hemangpatel> al2o3-cr, inside bin directory i tried ./gem --version but it show me old version
karapetyan has quit [Remote host closed the connection]
<shevy> stephan_ require 'pp'; pp caller() in the method that you consider strange
<stephan_> thanks, ill try and report back then
<TomyWork> shevy why pp and why the ()? :)
govg has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
<shevy> pp is awesome, caller() I like for it being explicit
<stephan_> okay i see
<TomyWork> so who is calling your stuff? :)
chip_ has joined #ruby
xall has quit [Ping timeout: 252 seconds]
<stephan_> it get called twice, it seems like the first call doesnt wait for the hhtp request to end and instead sends the http request and doesnt wait for an answer
<stephan_> is there some way to force this?
govg has joined #ruby
tristanp has quit [Ping timeout: 244 seconds]
<TomyWork> wat
<TomyWork> stephan_ what http request?
karapetyan has joined #ruby
<stephan_> "hole_fixtures" sends a http get request to an api
ramfjord has quit [Ping timeout: 264 seconds]
<TomyWork> and what does that have to do with how many times your function is being invoked?
<stephan_> but doesnt wait until the request is completet, instead it continus executing my script
<al2o3-cr> hemangpatel: download the zip
<al2o3-cr> What makes you say it's disabled on debian?
<al2o3-cr> ^ hemangpatel
drewo has joined #ruby
<stephan_> really strange but it seems to run that way, look thats the code that calls it: https://gist.github.com/anonymous/b3d03e27985562694a1edec967fab164
<hemangpatel> ok installed
<stephan_> it gets called in line 1 and 18
<stephan_> but doesnt wait until line 1 is finished
<stephan_> no wait
<stephan_> i am on the wrong path
<stephan_> the second call is the problem
<TomyWork> of course it is
<TomyWork> if the first call was the problem, it wouldnt get to the second call
<TomyWork> and i think your assumption is wrong. if line 1 didnt finish, line 1 wouldnt work
<TomyWork> line 1 works, ergo line 1 did finish
jsaak has quit [Ping timeout: 272 seconds]
drewo has quit [Ping timeout: 244 seconds]
aryaching has quit [Remote host closed the connection]
rstacruz has quit [Ping timeout: 244 seconds]
akira616` has joined #ruby
<stephan_> yeah it does
<stephan_> all this asynchronous programming stuff made me paraoid ;)
<TomyWork> your program doesnt look terribly asynchronous to me, btw
<stephan_> TomyWork, my first project with ruby ;)
<TomyWork> and by "not terribly", i mean "not at all"
tristanp has joined #ruby
<stephan_> yeah i know
<stephan_> i got it now, thanks for your input TomyWork, the program crashed if the http response is empty whis is what i will fix now
jenrzzz has quit [Ping timeout: 276 seconds]
nhhc has joined #ruby
Spami has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
aryaching has joined #ruby
akira616` has left #ruby [#ruby]
akira616 has joined #ruby
TheHodge has joined #ruby
aredridel has joined #ruby
<TomyWork> remember to always check your assumptions :)
jsaak has joined #ruby
AndyBotwin has quit [Ping timeout: 260 seconds]
dennisvennink has quit [Ping timeout: 240 seconds]
der-landgraf has joined #ruby
xall has joined #ruby
lacce has joined #ruby
stephan_ has quit [Remote host closed the connection]
nankyokusei has joined #ruby
akira616` has joined #ruby
saneax_AFK is now known as saneax
xall has quit [Ping timeout: 244 seconds]
<zacts> shevy: I'm making a few web scrapers and spiders, also a web bookmarks cli app using the gli gem
<al2o3-cr> 19>> Gem::Specification.instance_methods.grep /meta/
<ruby[bot]> al2o3-cr: # => [] (https://eval.in/605011)
Tele has joined #ruby
akira616 has quit [Ping timeout: 250 seconds]
aryaching has quit [Quit: Bye]
nankyokusei has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
<jhass> al2o3-cr: what's the question?
<al2o3-cr> must be using 1.9
hipertracker has quit [Quit: hipertracker]
deuterium has joined #ruby
zacts has quit [Ping timeout: 260 seconds]
guest___ has joined #ruby
<jhass> al2o3-cr: ?
<al2o3-cr> hey, what question
jsaak has quit [Ping timeout: 252 seconds]
rstacruz has joined #ruby
<jhass> oh, there was so much stuff in between
<jhass> I'd expected you'd highlight the other person it was an answer to something
<jhass> so I took it as a question
<al2o3-cr> i should of done really
Gooer has joined #ruby
burgestrand has joined #ruby
guest___ is now known as relix
tvw has joined #ruby
Klumben has quit [Ping timeout: 250 seconds]
alem0lars has quit [Ping timeout: 250 seconds]
Kuukunen has joined #ruby
jsaak has joined #ruby
wazzat has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
aryaching has quit [Remote host closed the connection]
dangerousdave has joined #ruby
LoneHermit has joined #ruby
rstacruz has quit [Quit: rstacruz]
saneax is now known as saneax_AFK
edwinvdgraaf has joined #ruby
rstacruz has joined #ruby
jsaak has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
dragon9783 has quit [Quit: Connection closed for inactivity]
LoneHermit has quit [Ping timeout: 252 seconds]
Oclair has quit [Read error: Connection reset by peer]
Oclair has joined #ruby
xall has joined #ruby
jsaak has joined #ruby
Gooer has quit [Ping timeout: 240 seconds]
saneax_AFK is now known as saneax
macsteps has joined #ruby
drewo has joined #ruby
rstacruz has quit [Quit: rstacruz]
aryaching has quit [Remote host closed the connection]
andikr has joined #ruby
karapetyan has quit []
xall_ has joined #ruby
Devalo has joined #ruby
macsteps has quit [Remote host closed the connection]
cd-rum has joined #ruby
drewo has quit [Ping timeout: 252 seconds]
xall has quit [Ping timeout: 250 seconds]
cd-rum_ has joined #ruby
Devalo has quit [Remote host closed the connection]
rstacruz has joined #ruby
cd-rum has quit [Ping timeout: 250 seconds]
<crdpink> where would I submit stdlib documentation fixes to these days?
<dminuoso> crdpink: bugs.ruby-lang.org
<crdpink> dminuoso: cheers!
<dminuoso> crdpink: Or you can simply try a pull request on github, but generally you should get feedback first.
<dminuoso> Or actually!
<dminuoso> crdpink: Documentation fixes, just make a pull request on github. :)
<crdpink> dminuoso: ok I will do that. Been a while since I did this and couldn't remember which way was preferred then.
<crdpink> thanks :D
jsaak has quit [Ping timeout: 250 seconds]
hipertracker has joined #ruby
jsaak has joined #ruby
<dminuoso> crdpink: Well, if it's obvious things that don't require peer review you can always just make a pull request - even for code stuff.
<dminuoso> But the moment when you modify existing behavior or are applying some non-trivial fix, open a ticket first.
<crdpink> it's really simple - just the name of a couple of arguments out of date.
<dminuoso> Yeah that's perfectly fine. :)
pawnbox has joined #ruby
reaVer has joined #ruby
bruce_lee has joined #ruby
sdothum has joined #ruby
jsaak has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
blackgoat has joined #ruby
Klumben has joined #ruby
ramfjord has joined #ruby
alem0lars has joined #ruby
blackgoat has quit [Ping timeout: 258 seconds]
hipertracker has quit [Quit: hipertracker]
jsaak has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
johnmilton has quit [Remote host closed the connection]
Wildfyr has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
c355e3b has joined #ruby
Gooer has joined #ruby
jsaak has quit [Ping timeout: 252 seconds]
jsaak has joined #ruby
giz|work has joined #ruby
Aria22 is now known as Rose_Aleria
harfangk has quit [Quit: harfangk]
jsaak has quit [Ping timeout: 240 seconds]
akira616` has quit [Read error: Connection reset by peer]
Gooer has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
Daneel has joined #ruby
<Daneel> hi
<Daneel> i am not a ruby man nor a windows man but i would like to use ruby on a windows to make a big search on all disks of a file with pattern matching
<Daneel> Dir.glob("*pattern")
jsaak has joined #ruby
<Daneel> but does it search on all the disks ?
<Wildfyr> i don't think so
<Mon_Ouie> That searches only in the current directory
<Wildfyr> ^
<Mon_Ouie> You can do something like '/**/*pattern'
craigp_ has joined #ruby
bkxd has joined #ruby
<Daneel> Mon_Ouie, with ** it will use all drives ?
<Daneel> like '**/*pattern'
<Daneel> without root /
<Daneel> it does not means something with windows
freerobby has joined #ruby
<Mon_Ouie> No, that would look for *pattern within the current directory all its subdirectories (recursively)
<Mon_Ouie> Well, what does Dir.entries("/") return?
coffeecupp has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
<elomatreb> Does not work across drives for me on W10
<Mon_Ouie> okay, then I don't know I'm affraid
<Daneel> i hope i will be able to use this
<Daneel> i can not test for the moment
<Daneel> thank you for your help
colegatron_origi has quit [Ping timeout: 260 seconds]
hk238 has joined #ruby
coffeecupp has quit [Quit: leaving]
lacce has quit [Quit: Leaving]
xall_ has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
johnmilton has joined #ruby
tristanp has quit [Ping timeout: 276 seconds]
dsuper7 has joined #ruby
colegatron_origi has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
hemangpatel has left #ruby ["Leaving"]
sullyj3 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
giz|work has quit [Ping timeout: 272 seconds]
<sullyj3> I notice ruby doesn't have zipwith. Is there a more idiomatic way to do `[3,2,1].zip([2,1,0]).map { |a,b| a-b }` ?
<sullyj3> = [1,1,1]?
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis_> that looks idiomatic to me
<sullyj3> in that case, is there a nicer way? In haskell, It's `zipWith (-) [3,2,1] [2,1,0]`
craigp has joined #ruby
<dminuoso> sullyj3: a.zip(b).map { |a| a - b } # if you remove the literals it becomes quite obvious that it's quite elegant already.
<dminuoso> And of course it should be |(a, b)|
omphe has joined #ruby
<manveru> it actually doesn't matter in this case
craigp_ has quit [Ping timeout: 240 seconds]
<dminuoso> Interesting, did not know that.
<sullyj3> Thanks!
<manveru> you need it for example for [3,2,1].zip([2,1,0]).each_with_index.map{|(a,b),i| [a,b,i]}
craigp has quit [Read error: Connection reset by peer]
<jhass> dminuoso: semantically Hash#each yields an array ;)
<dminuoso> jhass: Yeah but def f(a, b); end; f([1, 2]); will produce an error, I did not know block args would splat the array if possible
<manveru> aye, block args are fun :)
<Mon_Ouie> It mostly works like an assignment, 'a, b = [1, 2]' also deconstructs the array
deadnull has joined #ruby
<manveru> >> [3,2,1].map{|a,b=rand| [a,b]}
<ruby[bot]> manveru: # => [[3, 0.4285513179763143], [2, 0.5087079773158356], [1, 0.6709102363259049]] (https://eval.in/605174)
harfangk has quit [Quit: harfangk]
skweek has quit [Ping timeout: 258 seconds]
giz|work has joined #ruby
jsaak has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
tristanp has joined #ruby
deuterium has quit [Ping timeout: 258 seconds]
moeabdol has quit [Ping timeout: 276 seconds]
rodfersou has joined #ruby
craigp has joined #ruby
nankyokusei has joined #ruby
<dminuoso> Mon_Ouie: It feels a bit clunky. Consider [[1,2]].each { |a, b=0| p b }
EDT has joined #ruby
Wildfyr has quit [Ping timeout: 276 seconds]
edwinvdg_ has joined #ruby
isberg has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 258 seconds]
jsaak has joined #ruby
<shevy> you guys indeed have fun with block arguments
moeabdol has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
omphe has joined #ruby
chip_ has quit [Ping timeout: 276 seconds]
Ropeney has joined #ruby
aryaching has joined #ruby
Ropeney has quit [Client Quit]
johnny56 has quit [Ping timeout: 264 seconds]
jsaak has quit [Ping timeout: 276 seconds]
hipertracker has joined #ruby
aryaching has quit [Remote host closed the connection]
jsaak has joined #ruby
aryaching has joined #ruby
hipertracker has quit [Quit: hipertracker]
hipertracker has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
hipertracker has quit [Client Quit]
hipertracker has joined #ruby
hipertracker has quit [Client Quit]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has quit [Remote host closed the connection]
drewo has joined #ruby
hanmac has quit [Ping timeout: 272 seconds]
drewo has quit [Ping timeout: 246 seconds]
harfangk has joined #ruby
alfiemax has joined #ruby
dfinninger has joined #ruby
kavanagh has joined #ruby
blackmesa has joined #ruby
yfeldblu_ has quit [Ping timeout: 250 seconds]
AngryBuzzy has joined #ruby
hanmac has joined #ruby
Jet4Fire has joined #ruby
JeanCarloMachado has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
Mimorial has joined #ruby
blackgoat has joined #ruby
astrobun_ has joined #ruby
xall_ has joined #ruby
mk92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nocco has joined #ruby
mk92 has joined #ruby
AngryBuzzy has quit [Quit: This computer has gone to sleep]
omphe has joined #ruby
bkxd has joined #ruby
AngryBuzzy has joined #ruby
GinoMan2440 has quit [Ping timeout: 250 seconds]
xall_ has quit [Ping timeout: 246 seconds]
rstacruz has quit [Quit: rstacruz]
mistermocha has joined #ruby
ramfjord has joined #ruby
workmad3 has joined #ruby
ldnunes has joined #ruby
hipertracker has joined #ruby
yardenbar has joined #ruby
Coldblackice has quit [Ping timeout: 272 seconds]
dennisvennink has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
nocco has quit [Remote host closed the connection]
statelesscode_ has joined #ruby
synthroid has joined #ruby
statelesscode has quit [Ping timeout: 250 seconds]
statelesscode_ is now known as statelesscode
lacce has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giz|work has quit [Ping timeout: 240 seconds]
omphe has joined #ruby
workmad3 has quit [Read error: Connection reset by peer]
giz|work has joined #ruby
dminuoso has quit [Quit: Lost terminal]
dminuoso has joined #ruby
wazzat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mk92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nocco has joined #ruby
GinoManWorks has joined #ruby
workmad3 has joined #ruby
mdw has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
wazzat has joined #ruby
tvw has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
AngryBuzzy has quit [Quit: This computer has gone to sleep]
astrobun_ has quit [Remote host closed the connection]
GinoManWorks has quit [Ping timeout: 260 seconds]
astrobun_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
drewo has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chip_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
omphe has joined #ruby
haxrbyte has joined #ruby
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
drewo has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
giz|work has quit [Ping timeout: 244 seconds]
mikecmpb_ has joined #ruby
miesco has joined #ruby
<miesco> Hi. I need a language that is readable, that doesn't have characters before variables when you define them ($, @, etc), and is good for one liners. Is this the language?
nocco has quit []
blackmesa has joined #ruby
giz|work has joined #ruby
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
aupadhye has joined #ruby
Gooer has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jishankai has quit [Ping timeout: 272 seconds]
ewelina has joined #ruby
<toretore> miesco: no
kavanagh has quit [Ping timeout: 240 seconds]
<dminuoso> miesco: If you want a language that is great for one liners than readability is probably not important to you. ;-)
valkyrka_ has joined #ruby
<miesco> ruby isn't good for one liners?
kavanagh has joined #ruby
<dminuoso> Oh its superb for one liners.
<dminuoso> Even quite readable ones at times
<dminuoso> And for short compact code you probably don't need instance variables (@ivar) anyway.
<dminuoso> But what do I know, Im a Ruby guy - Ill sell Ruby to you even if you want Perl.
the_drow has joined #ruby
jaiks has quit [Ping timeout: 250 seconds]
gloscombe has joined #ruby
ngw has joined #ruby
valkyrka has quit [Ping timeout: 276 seconds]
valkyrka_ is now known as valkyrka
modin has joined #ruby
<lupine> it's ok, they look quite similar ^^
craigp has quit [Ping timeout: 244 seconds]
xall_ has joined #ruby
the_drow has quit [Client Quit]
the_drow has joined #ruby
<miesco> So what is ruby lacking out of what I mentioned?
mdw has quit [Quit: Sleeping Zzzzz]
aupadhye has quit [Ping timeout: 258 seconds]
astrobun_ has quit [Read error: Connection reset by peer]
<dminuoso> miesco: Well, Ruby comes with global variables ($foo) but you rarely if ever use them, and instance variables (which well ruby code should have) start with @.
<dminuoso> But for short code that does not rely on classes/object oriented design that last one shouldn't matter to you.
xall_ has quit [Ping timeout: 264 seconds]
<dminuoso> And the way that Ruby uses blocks makes it pretty easy to use for long one liners without getting confused
mattwashere has joined #ruby
craigp has joined #ruby
<ewelina> okay
umdstu has joined #ruby
deuterium has joined #ruby
pawnbox has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
camilasan has quit [Remote host closed the connection]
JeanCarloMachado has quit [Ping timeout: 244 seconds]
ewelina has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
camilasan has joined #ruby
vondruch has quit [Ping timeout: 276 seconds]
haxrbyte has quit [Ping timeout: 258 seconds]
jaiks has joined #ruby
ryez has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
aupadhye has joined #ruby
sjums has quit [Quit: Connection reset by beer]
l4v2 has joined #ruby
ryez has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
nhhc has quit [Quit: Leaving]
Macaveli has joined #ruby
pawnbox has quit [Remote host closed the connection]
dfinninger has joined #ruby
pawnbox has joined #ruby
wazzat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> they left but tbf pseudo globals are not uncommon in one liners
<jhass> $~, $_ etc
malconis has joined #ruby
jrafanie has joined #ruby
anisha_ has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
drewo has joined #ruby
anisha has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Ping timeout: 258 seconds]
hipertracker has quit [Ping timeout: 276 seconds]
<shevy> miesco have you found such a language yet
Tempesta has quit [Quit: See ya!]
hipertracker has joined #ruby
<jhass> oh, wait, they didn't leave, ewelina confused me :P
ta_ has joined #ruby
<miesco> shevy: I think ruby does all of that. I don't care if you have to use sigals for class variables and such.
<miesco> ruby = real perl 6
<lupine> don't forget, some globals are actually thread-local-globals
mattwashere has quit [Ping timeout: 240 seconds]
<lupine> and some are not
mrmargolis has joined #ruby
<shevy> ah
<shevy> now I see what you mean
drewo has quit [Ping timeout: 240 seconds]
<shevy> like perl 5 my $foo = "black cat";
GinoManWorks has joined #ruby
<miesco> shevy: Yea, and I don't even mind using a '$' as long as its in a quote, but if its outside a quote...
<miesco> I guess the only problem with ruby is it can only do 40 recursive nests
sujith has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<toretore> i did 41 once
<shevy> lol
zapata has quit [Ping timeout: 258 seconds]
ramortegui has joined #ruby
memorasus has joined #ruby
spiette has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
ta_ has quit [Remote host closed the connection]
tesuji has joined #ruby
sepp2k has joined #ruby
roamingdog has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 272 seconds]
aupadhye has quit [Ping timeout: 252 seconds]
Rutix`away is now known as Rutix
jsaak has quit [Ping timeout: 250 seconds]
peteretep has joined #ruby
<peteretep> Do all of Ruby's testing tools basically just raise errors on failure?
<toretore> elaborate
fmcgeough has joined #ruby
<peteretep> It seems that Test::Unit's assertions, and Spec::Expectations, they just `raise` to signal an assertion failure
dvinciguerra_ has joined #ruby
<peteretep> I'm guessing this is the standard Ruby mechanism?
<toretore> you mean in their implementation?
<peteretep> Sure
zapata has joined #ruby
mrmargolis has quit []
<peteretep> As one example, yes
JeanCarloMachado has quit [Ping timeout: 252 seconds]
<toretore> well, that's implementation specific, is it a problem for your use case?
roamingdog has joined #ruby
xall_ has joined #ruby
A_Drone has quit [Remote host closed the connection]
<peteretep> It would seem there's no sensible interoperability mechanism between these libraries
<peteretep> They all use their own exception classes
Tempesta has joined #ruby
Silthias1 has left #ruby [#ruby]
swills has joined #ruby
<peteretep> If I wanted to use something like hashdiff, I'd have to write library-specific glue for each testing library I wanted to use it with
rstacruz has joined #ruby
<toretore> probably, yes
nersoh has joined #ruby
pard has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<peteretep> And impossible to interoperate between different test libraries
<pard> hello
xall_ has quit [Ping timeout: 272 seconds]
<pard> >> eval(":\\ne")
<ruby[bot]> pard: # => (eval):1: syntax error, unexpected $undefined, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_ ...check link for more (https://eval.in/605369)
the_drow has joined #ruby
<pard> >> eval(":#\ne")
<ruby[bot]> pard: # => (eval):1: syntax error, unexpected ':' (SyntaxError) ...check link for more (https://eval.in/605370)
<pard> thanks
cd-rum_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pard> in irb2, i can have a comment after : and have 'e' come after it, and it would still be a sym
<pard> has it been a bug
<pard> i mean
<pard> ?
ascarter has joined #ruby
<pard> >> eval("print :#\ne") // like this
<ruby[bot]> pard: # => /tmp/execpad-788815e522ef/source-788815e522ef:2: unterminated regexp meets end of file ...check link for more (https://eval.in/605372)
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
<pard> oh sorry
<pard> >> eval("print :#\ne") # like this
<ruby[bot]> pard: # => (eval):1: syntax error, unexpected ':', expecting end-of-input ...check link for more (https://eval.in/605373)
cdg has joined #ruby
<pard> thanks a lot
<toretore> you're welcome
<pard> :)
<pard> apologies for asking
the_drow has quit [Ping timeout: 276 seconds]
roshanavand has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 246 seconds]
<toretore> pard: i would be surprised if this were supported by ruby
<toretore> it's likely been something in the way your repl parses the input
nettoweb has joined #ruby
JeanCarloMachado has joined #ruby
ItSANgo has quit [Quit: Leaving...]
<pard> toretore, i was actually surprise too; but I also testd it with ruby 2.0 and it parsed
<toretore> >> eval(":\\\nfoo")
<ruby[bot]> toretore: # => :foo (https://eval.in/605374)
<pard> :\
<toretore> well, in any case, i don't think it's something you should do or rely on
<pard> thanks
astrobun_ has joined #ruby
<pard> >> eval(":#this is a comment\\ne") # toretore
<ruby[bot]> pard: # => (eval):1: syntax error, unexpected ':' ...check link for more (https://eval.in/605376)
<pard> looks like it has been resolved actually
<toretore> >> eval(":\\#you can do this\nfoo")
<ruby[bot]> toretore: # => (eval):1: syntax error, unexpected $undefined, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_ ...check link for more (https://eval.in/605377)
<toretore> or maybe not
sjums has joined #ruby
<toretore> >> eval(":#comment\\\nfoo")
<ruby[bot]> toretore: # => (eval):1: syntax error, unexpected ':' ...check link for more (https://eval.in/605378)
<toretore> ok, enough bot abuse
roamingdog has quit [Remote host closed the connection]
<pard> toretore, thanks; is there any way to use a particular version of ruby with >> ?
<toretore> 20>> RUBY_VERSION
<ruby[bot]> toretore: # => "2.0.0" (https://eval.in/605379)
<pard> strange
<toretore> but you should use your own, the bot is not for experimenting with
<toretore> eval.in should work
stephenmac7 has joined #ruby
<stephenmac7> How would I go about zipping two arrays of different length without getting nils at the end?
Gooer has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
al2o3-cr has joined #ruby
<dminuoso> stephenmac7: What semantic do you want instead?
<pard> toretore, thanks a lot; actually, i wantd to make sure this is a bug in irb, not on my local irb only; looks like it is mine
<stephenmac7> dminuoso: [1,2,3].zip [1,2] -> [[1,1], [2,2]]
<pard> i guess it's a bug in irb, inrepreting comments a line-continuations
<pard> *as
<dminuoso> stephenmac7: I don't see a compact way of doing it.
tristanp has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
<stephenmac7> dminuoso: [1,2].zip([1,2,3]).map &:reverse seems a little inefficient
<dminuoso> stephenmac7: truncate the longer one first, then zip.
<dminuoso> stephenmac7: In about 548 cases out of 560 when people talk about efficiency it is premature optimization.
<dminuoso> Also 90% of all statistics are made up
JakFrist has joined #ruby
<stephenmac7> dminuoso: Yup, and that's probably one of them
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> It doesn't invalidate my point though.
<stephenmac7> (a case of premature optimization) Plus, if I was working somewhere that actually cared about speed I wouldn't be using ruby
<dminuoso> Precisely.
depesz has left #ruby ["WeeChat 1.5-dev"]
mattwashere has joined #ruby
<stephenmac7> So something like a.take(a.size - 1).zip(a.drop(1)) is better than the reverse approach
[74]HELLth has joined #ruby
alfiemax has joined #ruby
dasher^0_o has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
<dminuoso> stephenmac7: It at also clearly documents the intent.
Gooer has joined #ruby
mdw has joined #ruby
<stephenmac7> dminuoso: Yes, thanks for the help!
kavanagh has quit [Read error: Connection reset by peer]
AngryBuzzy has joined #ruby
JeanCarloMachado has quit [Ping timeout: 246 seconds]
hipertracker has quit [Ping timeout: 276 seconds]
Es0teric has joined #ruby
roshanavand has joined #ruby
codecop has quit [Remote host closed the connection]
tristanp has joined #ruby
sneakerhax has quit [Ping timeout: 250 seconds]
pard has quit [Quit: Leaving]
drewo has joined #ruby
Es0teric has quit [Client Quit]
eljimmy has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
roshanavand has quit [Client Quit]
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
JeanCarloMachado has joined #ruby
flughafen_ has joined #ruby
drewo has quit [Ping timeout: 264 seconds]
The_Phoenix has joined #ruby
mistermocha has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
mdw has quit [Quit: Sleeping Zzzzz]
chip_ has quit [Ping timeout: 258 seconds]
The_Phoenix has joined #ruby
Hounddog has quit [Remote host closed the connection]
polysics has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
ItSANgo has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
mdw has joined #ruby
aupadhye has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
yadobujo has quit [Remote host closed the connection]
giz|work has quit [Ping timeout: 240 seconds]
yadobujo has joined #ruby
hipertracker has joined #ruby
giz|work has joined #ruby
yadobujo has quit [Ping timeout: 240 seconds]
xue has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
LBRapid has joined #ruby
dminuoso has quit [Ping timeout: 272 seconds]
mrmargolis has joined #ruby
chenillen has joined #ruby
<nettoweb> guys, I installed RVM, but it was all ok, but then I installed fish shell, and now it dont recognize rvm command. I need to change some config so fish can detect previous rvm installed?
the_drow has joined #ruby
<adam12> nettoweb: Likely need to download the fish integration. https://rvm.io/integration/fish
<nettoweb> adam12 thanks
edwinvdgraaf has quit [Remote host closed the connection]
j0bk has quit [Ping timeout: 244 seconds]
AngryBuzzy has quit [Quit: This computer has gone to sleep]
skweek has joined #ruby
dminuoso has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
mattwashere has quit [Remote host closed the connection]
anisha_ has quit [Quit: This computer has gone to sleep]
mattwashere has joined #ruby
j0bk has joined #ruby
j0bk has quit [Changing host]
j0bk has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nettoweb> adam12 ok, and I had already installed a bunch of gems with bundle install, changing the shell I need to reinstall these gems?
mattwashere has quit [Read error: Connection reset by peer]
mattwash_ has joined #ruby
AngryBuzzy has joined #ruby
underplank has joined #ruby
gregf has joined #ruby
<adam12> nettoweb: I'm not familiar with rvm but you shouldn't. I believe it stores them in a shared path, regardless of shell used.
moeabdol has quit [Ping timeout: 240 seconds]
sullyj3 has quit [Ping timeout: 240 seconds]
<nettoweb> ok, I'll confirm it
<nettoweb> thanks
JeanCarloMachado has quit [Ping timeout: 240 seconds]
sullyj3 has joined #ruby
smathy has joined #ruby
mark_661 has quit [Quit: Leaving.]
M4dH4TT3r has joined #ruby
M4dH4TT3r is now known as Guest60828
agent_white has joined #ruby
LBRapid has joined #ruby
<agent_white> Mornin'
tesuji has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Wildfyr has joined #ruby
rstacruz has quit [Ping timeout: 252 seconds]
polishdub has joined #ruby
rstacruz has joined #ruby
underplank has quit [Quit: underplank]
giz|work has quit [Ping timeout: 250 seconds]
kedare has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
bmurt has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
joneshf-laptop has joined #ruby
yadobujo has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
rstacruz has quit [Ping timeout: 250 seconds]
yadobujo has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
dionysus69 has joined #ruby
yadobujo has joined #ruby
dfinninger has joined #ruby
jud has quit [Quit: Leaving]
drewo has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
SilverKey has quit [Quit: Halted.]
underplank has joined #ruby
underplank has quit [Client Quit]
aganov has quit [Remote host closed the connection]
nersoh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LBRapid has joined #ruby
dminuoso has quit [Remote host closed the connection]
mistermocha has joined #ruby
yadobujo has quit [Ping timeout: 264 seconds]
JakFrist has joined #ruby
cschnei__ has joined #ruby
blackmesa has joined #ruby
AngryBuzzy has quit [Quit: This computer has gone to sleep]
TomyWork has quit [Ping timeout: 276 seconds]
rodfersou is now known as rodfersou|lunch
nankyokusei has quit [Ping timeout: 250 seconds]
drewo has quit [Ping timeout: 258 seconds]
deadnull has quit [Quit: Bye]
SilverKey has joined #ruby
dhollinger has joined #ruby
jzigmund has joined #ruby
Pumukel has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
dfinninger has quit [Remote host closed the connection]
mattwash_ has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
mattwashere has joined #ruby
mistermocha has joined #ruby
dfinninger has joined #ruby
xue has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
saneax is now known as saneax_AFK
tristanp has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 276 seconds]
chenillen has quit [Quit: chenillen]
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
_dev has quit [Ping timeout: 250 seconds]
xue has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
davedev24 has joined #ruby
Bish has quit [Ping timeout: 246 seconds]
_dev has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Remote host closed the connection]
Bish has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
SilverKey has quit [Quit: Halted.]
pontiki has joined #ruby
TomyLobo has joined #ruby
Guest60828 has quit [Ping timeout: 240 seconds]
xall_ has joined #ruby
djbkd has joined #ruby
LBRapid has joined #ruby
dfinninger has quit [Remote host closed the connection]
Guest60828 has joined #ruby
SilverKey has joined #ruby
k13nox has joined #ruby
moredhel has quit [Quit: byee]
Gooer has quit [Ping timeout: 246 seconds]
Miron has quit [Ping timeout: 250 seconds]
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
jsaak has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbr has quit [Disconnected by services]
rbr has joined #ruby
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
swills has quit [Remote host closed the connection]
moredhel has joined #ruby
deuterium has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
yadobujo has joined #ruby
jsaak has quit [Ping timeout: 276 seconds]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
miesco has left #ruby [#ruby]
troulouliou_divn has joined #ruby
troulouliou_div2 has quit [Read error: Connection reset by peer]
symm- has joined #ruby
dsuper7 has quit [Quit: Catch you on the flip side....]
finnnnnnnnnnn has joined #ruby
nettoweb has joined #ruby
yadobujo_ has joined #ruby
arooni_______ has joined #ruby
yadobujo has quit [Ping timeout: 244 seconds]
Devalo has quit [Remote host closed the connection]
arooni_________ has joined #ruby
mdw has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
mattwashere has quit [Read error: Connection reset by peer]
lacce has quit [Quit: Leaving]
dminuoso has joined #ruby
mattwashere has joined #ruby
lacce has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
zacts has joined #ruby
drewo has joined #ruby
mdw has quit [Client Quit]
bluOxigen has quit [Ping timeout: 250 seconds]
andikr has quit [Remote host closed the connection]
Bish has quit [Ping timeout: 264 seconds]
Miron has joined #ruby
hipertracker has quit [Quit: hipertracker]
mistermocha has quit [Ping timeout: 252 seconds]
amclain has joined #ruby
johnbat26 has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
hipertracker has joined #ruby
nk121 has quit [Quit: moo]
drewo has quit [Ping timeout: 246 seconds]
T2_ has joined #ruby
finnnnnnnnnnn has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Miron has quit [Ping timeout: 250 seconds]
LBRapid has joined #ruby
Bish has joined #ruby
JakFrist has joined #ruby
Guest60828 has quit [Ping timeout: 260 seconds]
omphe has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
centrx has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
Couch has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
<Daneel> how to do in ruby the same as in bash : cat file | wc -l
T2_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
<chris2> File.read("file").count("\n")
Guest60828 has joined #ruby
arooni_________ has quit [Quit: Leaving]
shinnya has joined #ruby
Miron has joined #ruby
<Daneel> chris2, even if the file is with microsoft end of file ?
<chris2> if it consistently uses \r\n...
<chris2> probably File.read transcodes on windows
xue has joined #ruby
<Daneel> chris2, thank you
hipertracker has quit [Quit: hipertracker]
gizmore has joined #ruby
Mirubiri has joined #ruby
Mirubiri has quit [Max SendQ exceeded]
tristanp has joined #ruby
ngw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mirubiri has joined #ruby
diegoviola has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Mirubiri has quit [Max SendQ exceeded]
[Butch] has joined #ruby
Mirubiri has joined #ruby
nersoh has joined #ruby
Miron has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
Mirubiri has quit [Max SendQ exceeded]
loveablelobster has joined #ruby
loveablelobster has quit [Client Quit]
d5sx43 has joined #ruby
<lupine> note that that won't do too well with ginormous files
jsaak has joined #ruby
troulouliou_divn has quit [Quit: Leaving]
swills has joined #ruby
<jhass> File.foreach("file").count should however
troulouliou_div2 has joined #ruby
Mirubiri has joined #ruby
Pumukel has quit [Ping timeout: 252 seconds]
<lupine> I'd gotten as far as `File.open("/vmlinuz", "r").each_line.inject(0) {|acc,_| acc + 1 }` :D
Snowy has quit [Quit: ragequit]
Azure has quit [Ping timeout: 276 seconds]
Azure|dc has joined #ruby
xall_ has joined #ruby
Mirubiri has left #ruby [#ruby]
<Daneel> in a string like /my/path/for/a/file, i would like have 'file' in a variable. How to call the variable in the string ? like /my/path/for/a/$myvariable ?
the_drow has quit [Quit: This computer has gone to sleep]
sullyj3 has quit [Quit: Leaving]
<lupine> yeah, foreach is better
<Daneel> ah perhaps #{myvariable} ?
Cohedrin has joined #ruby
swills has quit [Remote host closed the connection]
<jhass> Daneel: generically yes, in this case however just File.join("/my/path/for/a", myvariable)
<lupine> Daneel: yep, although you might one to use File.join to avoid a platform dependency
<lupine> :D
<chris2> so it runs on vms? :P
<jhass> all ruby code must!
AndyBotwin has joined #ruby
<jhass> but no, so you don't have to deal with trailing/leading / in the variable yourself
dionysus69 has quit [Ping timeout: 260 seconds]
swills has joined #ruby
Guest60828 has quit [Ping timeout: 276 seconds]
whathappens has joined #ruby
swills has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
harfangk has quit [Quit: harfangk]
d5sx43 has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
swills has joined #ruby
xall_ has quit [Ping timeout: 272 seconds]
d5sx43 has joined #ruby
isjaylee has joined #ruby
<Daneel> my best ruby code i ever produced : https://gist.github.com/Dan33l/87cff30e215a4a43667cccd451c1bbbf
<Daneel> thank you all :D
<Daneel> does this code will run on windows ?
<Daneel> i am testing on a linux
<Daneel> but i would like to run it under windows
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
Guest60828 has joined #ruby
antgel has quit [Ping timeout: 272 seconds]
Wildfyr has quit [Ping timeout: 240 seconds]
<gizmore> Daneel: find . -iname "*passwd*" | wc -l
<Daneel> gizmore, my question is not to do in in bash underlinux but with ruby under windows
mikecmpb_ has quit [Ping timeout: 252 seconds]
isberg has quit [Read error: Connection reset by peer]
<gizmore> i made a package in ruby that would work like this: Filewalker.traverse_files("which_dir", "passwd") do |file|; count += 1; end;
rodfersou|lunch is now known as rodfersou
<lupine> last I checked, windows *would* take /
aibot has quit [Ping timeout: 272 seconds]
nb_bez___ has joined #ruby
SCHAAP137 has joined #ruby
Miron has joined #ruby
aazsdk has joined #ruby
Ishido has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
_djbkd has joined #ruby
Coldblackice has joined #ruby
drale2k has quit [Excess Flood]
LuckyABA has joined #ruby
drale2k has joined #ruby
SilverKey has quit [Quit: Halted.]
whathappens has quit [Remote host closed the connection]
d5sx43 has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
jakkn has joined #ruby
d5sx43 has joined #ruby
drewo has joined #ruby
ramfjord has joined #ruby
conta has quit [Ping timeout: 272 seconds]
JimK_ has joined #ruby
JimK_ is now known as JimK01
Elvin has joined #ruby
drewo has quit [Ping timeout: 246 seconds]
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
freerobby has quit [Quit: Leaving.]
smathy has joined #ruby
sumobob has joined #ruby
nettoweb has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
d5sx43_ has joined #ruby
LoneHermit has joined #ruby
d5sx43 has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 258 seconds]
JimK01 has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
atom_ has quit [Ping timeout: 246 seconds]
tristanp has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
burgestrand has joined #ruby
queequeg1 has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
roamingdog has quit []
Klumben has quit [Ping timeout: 250 seconds]
gregf has joined #ruby
alem0lars has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 272 seconds]
queequeg1 has joined #ruby
c0mrad3 has joined #ruby
<drbrain> Daneel: it should work on Windows
firstdayonthejob has joined #ruby
<drbrain> so long as you have a /tmp on the current drive
CybrGhost has joined #ruby
SilverKey has joined #ruby
JimK has joined #ruby
Miron has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
xaxisx has joined #ruby
JimK is now known as JimK12
<lupine> Might want Dir::tmpdir as well
yardenbar has joined #ruby
mrmargolis has quit []
codecop has joined #ruby
JimK12 has left #ruby [#ruby]
queequeg1 has quit [Ping timeout: 258 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Miron has joined #ruby
zenlot has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
zenlot has joined #ruby
Dimik has joined #ruby
JakFrist has joined #ruby
arooni_________ has joined #ruby
queequeg1 has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni_________ has left #ruby [#ruby]
drewo has joined #ruby
drewo has quit [Client Quit]
burgestrand has joined #ruby
arooni_______ has quit [Remote host closed the connection]
drewo has joined #ruby
CybrGhost has quit [Ping timeout: 258 seconds]
CybrGhost has joined #ruby
astrobun_ has joined #ruby
gloscombe has quit [Quit: gloscombe]
burgestrand has quit [Client Quit]
finnnnnnnnnnn has joined #ruby
arooni_______ has joined #ruby
arooni_______ has quit [Client Quit]
queequeg1 has quit [Ping timeout: 250 seconds]
isjaylee has left #ruby [#ruby]
xaxisx has quit [Read error: Connection reset by peer]
xaxisx_ has joined #ruby
d5sx43_ has quit [Read error: Connection reset by peer]
finnnnnnnnnnn has quit [Client Quit]
d5sx43 has joined #ruby
xaxisx_ has quit [Client Quit]
SilverKey has quit [Quit: Halted.]
queequeg1 has joined #ruby
SilverKey has joined #ruby
astrobun_ has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
stan has quit [Remote host closed the connection]
yadobujo_ is now known as yadobujo
stephenmac7 has quit [Quit: Page closed]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finnnnnnnnnnn has joined #ruby
stan has joined #ruby
Rodya_ has joined #ruby
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
smathy has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Remote host closed the connection]
smathy has joined #ruby
d5sx43 has quit []
Silthias has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
elifoster has joined #ruby
Silthias has joined #ruby
cdg has quit [Remote host closed the connection]
pard has joined #ruby
<pard> hello
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
blackmesa has quit [Ping timeout: 276 seconds]
<havenwood> pard: hi
<pard> :)
zacts has quit [Ping timeout: 258 seconds]
omphe has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<pard> is there any reason 'print (def l() 12 end)' is a valid construct, while 'def l() 12 end; print (undef l)' is not actually?
ascarter has joined #ruby
<jhass> so you can private def foo
tristanp has quit [Ping timeout: 250 seconds]
<pard> i'm asking it because 'l = (undef l)' looks to be valid
<jhass> probably just a edgecase in the grammar
<pard> jhass, thanks :)
dopamean_ has joined #ruby
<pard> jhass, as for the answer i received, could i ask you elaborate?
k13nox has quit [Remote host closed the connection]
anisha_ has joined #ruby
<pard> i mean
<jhass> the value of a method definition expression is the name of the method as symbol
<pard> thanks
<jhass> private is a method that takes a method name as symbol and marks the corresponding method as private
<pard> thanks a lot :) so undef is not an expression?
<jhass> it is
Oclair_ has joined #ruby
<jhass> everything is
<jhass> I think __END__ was the only one without value
<pard> even aliat?
<pard> *alias
<jhass> yes
<pard> wow
<pard> thanks!
<pard> >> l = def e() 12 end; print l
<ruby[bot]> pard: # => enil (https://eval.in/605470)
<pard> thanks
polysics has quit []
<jhass> btw use p, not print or puts for debug printing
<pard> i though the 'def' thing returns 'nil'
<pard> jhass, apologies
<jhass> it did until ruby 2.0
<pard> i'm way behind others then
<pard> :\
tristanp has joined #ruby
Silthias has quit [Quit: Leaving.]
Oclair has quit [Ping timeout: 260 seconds]
<pard> jhass, could we say that 'print (undef l)' not parsing is an inconsistency? specially because the '(undef l)' thing looks to be correct?
<jhass> I'd argue so
<jhass> hence I called it edgecase
<pard> thanks :)
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> thing is I can't imagine any real world usecase ;)
<pard> there :)
<pard> i'm writing a parser
<jhass> for ruby?
<pard> yes
AngryBuzzy has joined #ruby
<jhass> for fun or...?
<pard> jhass, that is what i actually asked on this channel last week :\
<umdstu> i recently updated to rest-client 2.0 and response.cookies isn’t being populated by the cookie field in the response headers for some reason. anyone run across this?
<pard> jhass, i'm really eager to find a real-world usage for it though; it is a recursive descent parser, and i could say it is arguably simpler
aazsdk has quit [Quit: aazsdk]
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
LBRapid has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
bb010g has joined #ruby
johnbat26 has quit [Ping timeout: 250 seconds]
zekriad has joined #ruby
pard has quit [Quit: Leaving]
eizua has quit [Remote host closed the connection]
replay has joined #ruby
replay has quit [Max SendQ exceeded]
zacts has joined #ruby
hipertracker has joined #ruby
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wixad_ has joined #ruby
replay has joined #ruby
replay has quit [Max SendQ exceeded]
replay has joined #ruby
Klumben has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
naftilos76 has joined #ruby
LBRapid has joined #ruby
JeanCarloMachado has joined #ruby
last_staff has joined #ruby
dfinninger has quit []
skweek has joined #ruby
xall_ has joined #ruby
jmarinelli has joined #ruby
jmarinelli is now known as yuung
alem0lars has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
AngryBuzzy has quit [Quit: This computer has gone to sleep]
smathy has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
sneakers has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
banisterfiend has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
whathappens has quit [Ping timeout: 276 seconds]
aryaching has quit [Ping timeout: 276 seconds]
astrobun_ has joined #ruby
minimalism has quit [Quit: minimalism]
k13nox has joined #ruby
conta has joined #ruby
jaruga___ has quit [Quit: jaruga___]
lkb_ has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
blackmesa has joined #ruby
spider-mario has joined #ruby
lkb has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
LoneHermit has quit [Remote host closed the connection]
jakkn has quit [Ping timeout: 244 seconds]
SilverKey has quit [Quit: Halted.]
hutch34 has quit [Ping timeout: 264 seconds]
zacts has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
augcesar has joined #ruby
SilverKey has joined #ruby
nankyokusei has joined #ruby
rcvalle has joined #ruby
marxarelli has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
umdstu has quit [Quit: umdstu]
dionysus69 has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
swills has quit [Remote host closed the connection]
<wixad_> hi all
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<havenwood> wixad_: hi
omphe has joined #ruby
jakkn has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
mistergibson has joined #ruby
omphe has quit [Client Quit]
<wixad_> how can i write a DiceSet class that an instance of is not nil and can call a method roll(n) on it
<jhass> what did you try so far?
aryaching has joined #ruby
<wixad_> create the class then a method roll with an array
<jhass> ?code
<ruby[bot]> We can't help you without your code, please post it to https://gist.github.com
Es0teric has quit [Quit: Computer has gone to sleep.]
<wixad_> class DiceSet def roll(n) res = [] co=rand(1..6) n.times do res << co end; end;
tristanp has quit [Ping timeout: 250 seconds]
nemish has joined #ruby
swills has joined #ruby
aep-shoutlet has joined #ruby
gizmore has quit [Ping timeout: 276 seconds]
<nemish> I have probably a simple question... I have a server that I did a "gem install FOO" on and it went and installed the gem and it's dependencies... now few months later when i do a "gem install FOO" it downloads newer versions of the dependencies even though it's same version of the FOO gem but some of those children require ruby 2.2 :(
<wixad_> my problem is that i cant access the array from outside
<nemish> is there a way I can use a Gemfile or something to install system gems instead of bundled gems
whathappens has joined #ruby
<jhass> wixad_: you need to return it from the method
Gooer has joined #ruby
<wixad_> and the array is being filled with the same number
gizmore has joined #ruby
<jhass> or store it in an instance variable and provide further methods to operate on it
<jhass> well yes, you only generate one random number and add it n times
catphish has joined #ruby
aibot has joined #ruby
cschnei__ has quit [Ping timeout: 272 seconds]
<catphish> is "#read_nonblock(9999999)" a reasonable way to throw away all data in an IO buffer?
<jhass> I'd question the need to do any such thing in the first place
<wixad_> n is suposed to be the number of rolls and the array should store the number
smathy_ has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
flashpoint9 has joined #ruby
<catphish> jhass: how so?
smathy has quit [Ping timeout: 240 seconds]
finisherr has joined #ruby
Mirubiri has joined #ruby
<jakkn> I'm working on a Rakefile where I would like to transform files from .yml to whatever the old extension was. I don't care what the old extension was, could be foo.bar.yml or foo.baz.yml, I just want to apply the tranformation to the files and create foo.bar and foo.baz. I've been wringing my brain but can't come up with a clever way to do this..
tristanp has joined #ruby
aakira616 has joined #ruby
swills has quit [Ping timeout: 258 seconds]
JeanCarloMachado has joined #ruby
<jhass> catphish: not knowing how much data you need to discard is kinda weird
aakira616 has left #ruby [#ruby]
k13nox has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
johnmilton has quit [Remote host closed the connection]
yfeldblum has joined #ruby
marr has quit [Remote host closed the connection]
akira616 has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
<catphish> jhass: well sometimes things send data during their boot which you arent interested in, but don't know its quantity, so you just want to empty the rx buffer before sending your first command
Mirubiri has quit [Quit: WeeChat 1.5]
freerobby has joined #ruby
<catphish> it's not an ideal situation certainly, but with serial connections, sometimes junk just ends up in the buffer before you get started
<jhass> never seen any where you wouldn't be able to properly figure out how much that was
<jakkn> does anyone have any clues on how to accomplish what I described above? I thought about having a rule where the name came from a lambda function, but that failed and I guess reasonably so.
djbkd_ has joined #ruby
<catphish> anyway, that aside, any idea what the best way might be to discard the entire rx buffer?
flughafen_ has quit [Ping timeout: 246 seconds]
huyderman has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
chip_ has joined #ruby
Tachikomas has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
Gooer has quit [Ping timeout: 240 seconds]
bmurt has quit [Max SendQ exceeded]
firstdayonthejob has quit [Quit: WeeChat 1.5]
Mirubiri has joined #ruby
bmurt has joined #ruby
yadobujo_ has joined #ruby
xall_ has joined #ruby
Mirubiri has left #ruby [#ruby]
kirun has joined #ruby
u235psycho has joined #ruby
vuoto has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
yadobujo has quit [Ping timeout: 258 seconds]
<al2o3-cr> catphish: #nread will tell you how many bytes can be read
elaptics is now known as elaptics`away
yadobujo_ is now known as yadobujo
weaksauce has quit [Ping timeout: 272 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vuoto has quit [Read error: Connection reset by peer]
k13nox has joined #ruby
vuoto has joined #ruby
JakFrist has joined #ruby
JakFrist has quit [Client Quit]
nofxx has joined #ruby
astrobun_ has joined #ruby
<nofxx> [:foo, :bar].is_there_something_for_this(1, 2) => { foo: 1, bar: 2 } ?
symm- has quit [Ping timeout: 258 seconds]
<nofxx> hsh_maker heh
Madplatypus has joined #ruby
spudowiar has joined #ruby
<havenwood> >> [:foo, :bar].zip([1, 2]).to_h
<ruby[bot]> havenwood: # => {:foo=>1, :bar=>2} (https://eval.in/605476)
<nofxx> havenwood, my crazy oneliner is saved! ty
<havenwood> >> [:foo, :bar].map.with_index(1).to_h
<ruby[bot]> havenwood: # => {:foo=>1, :bar=>2} (https://eval.in/605477)
<havenwood> nofxx: de nada
replay has quit [Ping timeout: 240 seconds]
Mirubiri has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
Mirubiri has quit [Max SendQ exceeded]
astrobun_ has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nofxx> havenwood, não há de quê... in old, formal portuguese =) or just 'disponha'
helpa has quit [Remote host closed the connection]
nando293921 has joined #ruby
<al2o3-cr> >> [[:foo, :bar],[1,2]].transpose.to_h
<ruby[bot]> al2o3-cr: # => {:foo=>1, :bar=>2} (https://eval.in/605478)
helpa has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nofxx> or de nada too, spanish?
mikecmpbll has joined #ruby
Mirubiri has joined #ruby
<nofxx> al2o3-cr, thanks again...how dumb,I was trying transpose, totally forgot [:a, 1].to_h
cdg has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
Nawn has joined #ruby
Nawn has left #ruby [#ruby]
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k13nox has quit [Remote host closed the connection]
<al2o3-cr> word
dionysus69 has joined #ruby
freerobby has quit [Quit: Leaving.]
k13nox has joined #ruby
nando293921 has quit [Ping timeout: 272 seconds]
AndrewIsHere has joined #ruby
troulouliou_div2 has joined #ruby
flughafen_ has joined #ruby
SilverKey has quit [Quit: Halted.]
diegoviola has quit [Ping timeout: 272 seconds]
nekomune has quit [Ping timeout: 272 seconds]
Mirubiri has quit [Quit: -]
jakkn has quit [Quit: leaving]
singalaut has joined #ruby
Synthead has quit [Read error: Connection reset by peer]
yqt has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
pawnbox_ has joined #ruby
Synthead has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
flughafen_ has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
VerrNum has joined #ruby
mistermocha has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
tristanp has quit [Ping timeout: 264 seconds]
isberg has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
whathappens has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
spudowiar has quit [Quit: biab]
nekomune has joined #ruby
burgestrand has joined #ruby
Nawn has joined #ruby
conta has quit [Ping timeout: 244 seconds]
VerrNum has quit [Quit: Page closed]
al2o3-cr has quit [Quit: WeeChat 1.5]
Es0teric has joined #ruby
SilverKey has joined #ruby
Ishido has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
Tachikomas has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
eljimmy has quit [Quit: This computer has gone to sleep]
Ishido has joined #ruby
Nawn has quit [Remote host closed the connection]
yuung has quit [Ping timeout: 264 seconds]
tristanp has quit [Ping timeout: 258 seconds]
<l4v2> What does the * and & mean in the docs that say this for create create(*args, &block)
<l4v2> is that the splat?
<l4v2> and block address>
centrx has quit []
naftilos76 has quit [Quit: Αποχώρησε]
kavanagh has joined #ruby
diegoviola has joined #ruby
<havenwood> l4v2: that signifies that the parameter is being passed as a block
weaksauce has joined #ruby
Nawn has joined #ruby
mistermocha has joined #ruby
firstdayonthejob has joined #ruby
Nawn has quit [Remote host closed the connection]
<l4v2> havenwood thank you. Hey do you get paid to do this lol
postmodern has joined #ruby
<jhass> yes, I handle the transactions, that'll be $30
<dminuoso> So I was actually going to say "One dereferneces, one takes the address - duh". Good thing I wasn't so quick.
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
<havenwood> l4v2: We unfortunately don't get paid for answering questions on irc. :-)
djbkd_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
tristanp has joined #ruby
_djbkd has joined #ruby
<l4v2> Trying to learn how to read the docs
DoubleMalt has joined #ruby
blackgoat has joined #ruby
kavanagh has quit [Quit: That's all folks!]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
burgestrand has joined #ruby
jenrzzz has joined #ruby
<shevy> l4v2 many similar questions are asked, the more common ones are simpler to answer. I guess * is within the top 20, aka people don't know that it is called "splat" and if they don't know that, they can not too easily google/search for it (it's mostly advanced users who can search for * as the token)
_djbkd has quit [Ping timeout: 240 seconds]
<l4v2> So when I see that in a doc it jsut means any number of args right?
xall_ has quit [Ping timeout: 244 seconds]
<havenwood> l4v2: the parameter with the * is a catch-all argument and the parameter with the & is a block
flashpoint9 has quit [Remote host closed the connection]
<l4v2> how would those be used in ActiveRecords Create class?
<l4v2> method
burgestrand has quit [Client Quit]
<havenwood> l4v2: Link to the docs for the method you're talking about?
<l4v2> create method ^
xall_ has joined #ruby
spudowiar has joined #ruby
<catphish> al2o3-cr: cool! i'll try that, thanks
zeroDi has joined #ruby
<al2o3-cr> sure, np
<shevy> l4v2 this page may have a nice example, look at the second one with & http://mudge.name/2011/01/26/passing-blocks-in-ruby-without-block.html
AlexRussia has quit [Ping timeout: 272 seconds]
astrobun_ has joined #ruby
yuung has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
pocketprotector has quit [Ping timeout: 258 seconds]
codecop has quit [Remote host closed the connection]
pocketprotector has joined #ruby
astrobun_ has quit [Ping timeout: 258 seconds]
Meow-J has quit [Quit: Connection closed for inactivity]
yuung has quit [Ping timeout: 252 seconds]
Mirubiri has joined #ruby
_djbkd has joined #ruby
pontiki has quit [Quit: Lost terminal]
bruce_lee has quit [Read error: Connection reset by peer]
shum has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
sdothum has quit [Read error: Connection reset by peer]
tvw has joined #ruby
pawnbox has joined #ruby
Mirubiri has quit [Quit: Mirubiri]
ramfjord has joined #ruby
nankyokusei has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
lkb_ has quit [Quit: Wychodzi]
cschnei__ has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
synthroid has quit []
JeanCarloMachado has joined #ruby
replay has joined #ruby
akira616` has joined #ruby
eljimmy has joined #ruby
whathappens has joined #ruby
jetpackjoe has joined #ruby
hipertracker has quit [Quit: hipertracker]
tristanp has quit [Ping timeout: 258 seconds]
hahuang61 has joined #ruby
tristanp has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
rodfersou has quit [Quit: leaving]
akira616 has quit [Ping timeout: 272 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
akira616 has joined #ruby
aupadhye has joined #ruby
akira616` has quit [Ping timeout: 250 seconds]
JeanCarloMachado has quit [Ping timeout: 264 seconds]
yuung has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: Halted.]
flashpoint9 has joined #ruby
Mirubiri has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
Mirubiri has quit [Client Quit]
aupadhye has quit [Ping timeout: 276 seconds]
dvinciguerra_ has quit [Ping timeout: 240 seconds]
Parko has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
finnnnnnnnnnn has joined #ruby
hipertracker has joined #ruby
ldnunes has quit [Quit: Leaving]
finnnnnnnnnnn has quit [Client Quit]
akira616 has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
AlexRussia has joined #ruby
modin has quit [Ping timeout: 264 seconds]
aupadhye has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
yardenbar has quit [Ping timeout: 258 seconds]
k13nox has quit [Remote host closed the connection]
akira616 has joined #ruby
symm- has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
sepp2k has quit [Quit: Leaving.]
Rodya_ has joined #ruby
akira616 has quit [Ping timeout: 250 seconds]
LoneHerm_ has joined #ruby
ta_ has joined #ruby
whathappens has quit [Remote host closed the connection]
<flashpoint9> Hey, are symbols used as hash keys because they dont change? Why do I see symbols used as hash keys so often?
minimalism has joined #ruby
<jhass> Symbol#== is a simple identity check, Symbol#hash is simply based on their object id, Symbol's are globally (per process) unique
<jhass> :foo and :foo is always the same object
Es0teric has quit [Remote host closed the connection]
<jhass> so it's faster and requires less storage
<drbrain> there have been improvements to ruby to make String keys behave like symbols when frozen
<jhass> and less to type
<eam> jhass: is that true given symbol gc?
<drbrain> if your input data is strings (like HTTP uploads) use strings
<jhass> yes, I should mention in doubt use strings
<jhass> eam: what do you mean?
<drbrain> if your input data is static (built into the program) use symbols
<eam> jhass: I mean post 2.2 a symbol can be gc'd, so :foo might not be :foo at a later point in time
catphish has left #ruby ["Leaving"]
<drbrain> converting one key type to the other will always be slower
<lupine> I model symbols as erlang atoms, myself. anywhere I'd use an atom, I use a symbol
<drbrain> eam: if there's a :foo it can't be GC'd
<lupine> I guess that's not much help if you've never erlanged
<drbrain> so a = :foo; a = nil; [GC runs]; b = :foo may have different IDs
<eam> drbrain: yeah
<drbrain> lupine: yes, a symbol is like an atom (in many languages)
astrobun_ has joined #ruby
<jhass> pretty sure [gets.to_sym, gets.to_sym] for the same input will return the same objects too
<eam> jhass: yeah but not if you GC.start in between
<eam> (on ruby 2.2 or newer)
<jhass> eh I guess
mdw has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
<jhass> but then if you store the .object_id only or so, any problem is just your stupidity IMO
<eam> hey no argument there
<jhass> so conceptually the statement holds
aupadhye has quit [Ping timeout: 272 seconds]
<jhass> as long as you have a symbol compare to and another, if they're equal they're the same object
Ishido has quit [Remote host closed the connection]
<eam> remember that bug where comparing symbols was slower than comparing strings?
<shevy> a feature!
<jhass> uh, no :P
yuung has quit [Quit: leaving]
astrobun_ has quit [Ping timeout: 250 seconds]
<flashpoint9> Awesome listening to you guys discuss this, learning a ton thanks
<drbrain> flashpoint9: also, frozen strings have most of the properties of symbols
<drbrain> and using a string as a hash key means the string gets frozen automatically
lacce has quit [Quit: Leaving]
yfeldblum has joined #ruby
<drbrain> >> a = 'a'; pre_frozen = a.frozen?; h = {a => true}; [pre_frozen, h.keys.first.frozen?]
<ruby[bot]> drbrain: # => [false, true] (https://eval.in/605508)
<flashpoint9> drbrain: So are frozen strings meant to replace symbols in a hash or is it just a boost for cases where you have/want to use a string as a key in a hash
tristanp has joined #ruby
<drbrain> flashpoint9: frozen strings are not meant to replace symbols
<eam> due to optomization for certain key class types
<drbrain> they may be a boost for use as hash keys, and may improve memory efficiency if you have lots of tiny strings
<eam> optimization, even
<flashpoint9> so in general stick with symbols for hash keys
<drbrain> flashpoint9: use what's "natural"
xall_ has quit [Ping timeout: 260 seconds]
<drbrain> if you're using hashes in your program and don't accept user input to reference the hash keys, symbols are great
<drbrain> if you use user input to pick values out of a hash, use strings
<flashpoint9> ok, and sorry if this is a nub question, what makes a symbol "natural" in a case vs a string for hash keys?
<flashpoint9> ahhhh
<flashpoint9> ok
<flashpoint9> sorry hadnt scrolled down
<flashpoint9> thanks!
akira616 has joined #ruby
<drbrain> maybe you have a drawing API with a constant COLORS = { red: '#ff0000;', … }
<drbrain> then you could have pen.color :red
<drbrain> so symbols would be natural because it's all code
<drbrain> but if it was: puts "what color do you want to draw with?"; color = gets.strip
<drbrain> then you would want to use strings
tvw has quit [Remote host closed the connection]
<eam> you can conceptually replace the gets() with "data from json" for example
<eam> json doesn't have a Symbol type
<drbrain> or data from an HTTP form field
nankyokusei has joined #ruby
<flashpoint9> thanks again
solars has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
chip_ has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
SilverKey has joined #ruby
jetpackjoe has quit [Quit: WeeChat 1.5]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
xall_ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 276 seconds]
_djbkd has quit [Ping timeout: 240 seconds]
babblebre has joined #ruby
spudowiar has quit [Quit: Leaving.]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
solars has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
replay has quit [Ping timeout: 250 seconds]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
[Muslim] has joined #ruby
SilverKey has quit [Quit: Halted.]
_djbkd has quit [Remote host closed the connection]
mattwashere has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
drewo has quit [Quit: WeeChat 1.4]
drew has joined #ruby
drew is now known as Guest39441
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
xall_ has quit [Ping timeout: 258 seconds]
SilverKey has joined #ruby
postmodern has quit [Quit: Leaving]
kirun has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
yadobujo has quit [Remote host closed the connection]
biberu has quit [Read error: Connection reset by peer]
troulouliou_div2 has quit [Quit: Leaving]
dhollinger has quit [Quit: WeeChat 1.5]
hipertracker has quit [Quit: hipertracker]
SHyx0rmZ has quit [Ping timeout: 276 seconds]
whathappens has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
gizless has joined #ruby
whathappens has quit [Client Quit]
k13nox has joined #ruby
Oclair_ has quit [Ping timeout: 244 seconds]
pontiki has joined #ruby
<shortdudey123> anyone have a suggestions for a gem that will be faster than Zlib::GzipReader?
[Muslim] has left #ruby [#ruby]
ta_ has quit [Remote host closed the connection]
neohunter has joined #ruby
LoneHerm_ has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
<jhass> your bottleneck probably is Ruby there tbh
<jhass> it just binds libz already
zenlot6 has joined #ruby
moeabdol has joined #ruby
<flashpoint9> jhass: should he use a different language?
astrobun_ has joined #ruby
<jhass> perhaps, it depends on what's actually done
hipertracker has joined #ruby
aredridel has quit [Ping timeout: 258 seconds]
<jhass> there might be a faster implementation thereof in Ruby too
nb_bez___ has quit [Quit: Connection closed for inactivity]
<jhass> so that was actually going to be my next question, what are you doing and how?
flashpoint9 has quit [Remote host closed the connection]
zenlot has quit [Ping timeout: 272 seconds]
flashpoint9 has joined #ruby
dopamean_ has quit [Ping timeout: 246 seconds]
LoneHerm_ has quit [Ping timeout: 250 seconds]
aredridel has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
mistermocha has quit [Remote host closed the connection]
<bougyman> w/44
flashpoint9 has quit [Ping timeout: 276 seconds]
mistermocha has joined #ruby
gizmore has joined #ruby
gizless has quit [Ping timeout: 250 seconds]
tristanp has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
sung has joined #ruby
polishdub has quit [Quit: Leaving]
AndrewIsHere has quit []
dminuoso has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
firstdayonthejob has quit [Ping timeout: 272 seconds]
postmodern has joined #ruby
djbkd_ has joined #ruby
dvinciguerra_ has joined #ruby
SilverKey has quit [Quit: Halted.]
Guest60828 has quit [Ping timeout: 258 seconds]
Mimorial has quit [Ping timeout: 276 seconds]
cschnei__ has quit [Remote host closed the connection]
SilverKey has joined #ruby
mistermocha has joined #ruby
Guest60828 has joined #ruby
CloCkWeRX has joined #ruby
yfeldblum has quit [Remote host closed the connection]
finnnnnnnnnnn has joined #ruby
memorasus1 has joined #ruby
hipertracker has quit [Quit: hipertracker]
memorasus has quit [Ping timeout: 240 seconds]
memorasus1 is now known as memorasus
edwardly has quit [Ping timeout: 272 seconds]
cd-rum has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
hipertracker has joined #ruby
pwnd_nsfw` has joined #ruby
cd-rum_ has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
Mirubiri has joined #ruby
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
cd-rum has quit [Ping timeout: 264 seconds]
pontiki has quit [Quit: Lost terminal]
pwnd_nsfw has quit [Ping timeout: 250 seconds]
saneax_AFK is now known as saneax
tristanp has joined #ruby
<shortdudey123> jhass: taking a gz file, reading a line at a time, and doing something with the line
Dimik has quit [Ping timeout: 276 seconds]
RushPL has quit [Ping timeout: 264 seconds]
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
c0mrad3 has quit [Quit: Connection closed for inactivity]
<shortdudey123> Zlib::GzipReader.new(open(filename)).each_line do |line|
flashpoint9 has quit [Remote host closed the connection]
wrkrcoop has joined #ruby
<wrkrcoop> anyone know how to stub a class method?
<wrkrcoop> not an instance of a class
flashpoint9 has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hipertracker has quit [Quit: hipertracker]
singalaut has quit [Quit: WeeChat 1.6-dev]
singalaut has joined #ruby
hipertracker has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
RushPL has joined #ruby
last_staff has quit [Quit: last_staff]
smathy_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 246 seconds]
Nawn has joined #ruby
Nawn has quit [Remote host closed the connection]
Nawn has joined #ruby
Guest39441 has quit [Ping timeout: 258 seconds]
mattwashere has joined #ruby
finisherr has quit [Quit: finisherr]
wixad_ has quit [Quit: Leaving]
<Nawn> ^_^
astrobun_ has joined #ruby
Nawn has quit [Remote host closed the connection]
leea has joined #ruby
djbkd_ has quit [Remote host closed the connection]
_djbkd has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
Guest60828 has quit [Ping timeout: 244 seconds]
agent_white has quit [Quit: bbl]
_djbkd has joined #ruby
astrobun_ has quit [Ping timeout: 264 seconds]
dvinciguerra_ has quit [Ping timeout: 276 seconds]
rcvalle has quit [Quit: rcvalle]
mattwashere has quit [Read error: Connection reset by peer]
mattwashere has joined #ruby
dminuoso has joined #ruby
Guest60828 has joined #ruby
xall_ has joined #ruby
unreal_ has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
dopamean_ has joined #ruby
unreal has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
dminuoso has quit [Ping timeout: 252 seconds]
gregf has quit [Quit: WeeChat 1.5]
nankyokusei has quit [Ping timeout: 244 seconds]
dopamean_ has quit [Ping timeout: 250 seconds]
gregf has joined #ruby
mattwashere has quit [Remote host closed the connection]
Oclair has joined #ruby
yeticry has quit [Ping timeout: 276 seconds]
mattwashere has joined #ruby
jsaak has quit [Ping timeout: 240 seconds]
dopamean_ has joined #ruby
dopamean_ has quit [Client Quit]
SilverKe_ has joined #ruby
SilverKey has quit [Ping timeout: 276 seconds]
cdg has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yeticry has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
cdg has joined #ruby
scorphus has quit [Ping timeout: 240 seconds]
l4v2 has quit [Quit: l4v2]
mattwashere has quit [Ping timeout: 240 seconds]