jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
mistralcontrasti has quit [Client Quit]
dc2 has joined #ruby
htmldrum_ has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 244 seconds]
vdamewood has quit [Ping timeout: 240 seconds]
dling has joined #ruby
Azure has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has quit [Ping timeout: 260 seconds]
moeabdol1 has joined #ruby
Asher has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
<shevy> anyone knows what happened to pontiki?
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Queitsch has quit [Quit: queitsch]
tubuliferous_ has joined #ruby
Balzrael has joined #ruby
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
Balzrael has quit [Client Quit]
mistralcontrasti has joined #ruby
rcvalle has quit [Quit: rcvalle]
drewbro has quit [Ping timeout: 260 seconds]
Inside has quit [Ping timeout: 248 seconds]
cpup has quit [Ping timeout: 268 seconds]
cpup has joined #ruby
mjuszczak has quit []
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
Citoplasma-PC2 has joined #ruby
_blizzy_ has quit [Quit: Leaving]
p0wn3d has joined #ruby
<Citoplasma-PC2> Hola
Citoplasma-PC2 has left #ruby [#ruby]
htmldrum has quit [Ping timeout: 240 seconds]
htmldrum_ has quit [Ping timeout: 250 seconds]
fexilal has quit [Ping timeout: 240 seconds]
felixal has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
mjuszczak has quit [Client Quit]
xlegoman has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rolha_ has joined #ruby
firstdayonthejob has quit [Ping timeout: 252 seconds]
agentmeerkat has quit [Ping timeout: 276 seconds]
drewbro has joined #ruby
htmldrum has quit [Ping timeout: 248 seconds]
rolha has quit [Ping timeout: 276 seconds]
saneax is now known as saneax_AFK
mistralcontrasti is now known as madgen_
htmldrum_ has quit [Ping timeout: 268 seconds]
swills has joined #ruby
pawnbox has joined #ruby
shellie_ has quit [Quit: leaving]
hahuang61 has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
djbkd has quit [Quit: My people need me...]
sudoubuntu has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
BTRE has quit [Ping timeout: 244 seconds]
gokulnath has joined #ruby
rattatmatt has joined #ruby
<Aviio> hmm.. would Dir.glob("#{ROOT_DIR}/modules/build/**/**/*.pp") only get .pp files on a certain level? or will it search recursively
fullofcaffeine has quit [Remote host closed the connection]
<apeiros> **/** is redundant
<apeiros> it'll search every level below build
<Aviio> hmm that's not what I really want :/
<Aviio> Is there any way to be able to do a search such as the one above?
dc2 has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Ping timeout: 276 seconds]
Cohedrin has joined #ruby
<apeiros> come again?
<Ox0dea> Aviio: Swap the **s for *s?
<Aviio> Ox0dea : heh, as soon as I asked the question I thought it would be that
nighttime has quit [Quit: <uptime> >quotes himself in his quit message]
drewbro has quit [Ping timeout: 240 seconds]
matthin has joined #ruby
Gasher^ has joined #ruby
Gasher has quit [Ping timeout: 244 seconds]
sneakerhax has quit [Ping timeout: 260 seconds]
<Aviio> Thanks for the help, aperios + Ox0dea
<Ox0dea> Sure thing.
<apeiros> ?tabnick Aviio
<ruby[bot]> Aviio: pro-tip - use tab completion for nicks. avoids typos in nicks.
<Aviio> heh
<Ox0dea> In Aviio's defense, "apeiros" alternates hands and is thus amenable to being typed quite quickly.
<shevy> you mean apieros?
nighttime has joined #ruby
<shevy> best tab completer is benzrf still
<shevy> <benzrf> shevy: sadly i appear to be completely incapable of growing facial hairyhenderson
<shevy> <benzrf> *hair
<benzrf> hmm
<benzrf> i dont do that so much anymore :D
<shevy> :(
<shevy> I want the younger benzrf back!
Gasher^ has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
thomashaw has joined #ruby
paulgrmn1 has joined #ruby
paulgrmn1 has quit [Quit: WeeChat 1.3]
SCHAAP137 has joined #ruby
hxegon is now known as hxegon_AFK
paulgrmn has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
fullofca_ has joined #ruby
rolha_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
crowell has quit [Ping timeout: 244 seconds]
stannard has joined #ruby
cwenner has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
stannard has quit [Ping timeout: 244 seconds]
chris2 has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
matthin has quit [Ping timeout: 248 seconds]
decoponio has quit [Quit: Leaving...]
matthin has joined #ruby
arescorpio has joined #ruby
dnewkerk has joined #ruby
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
marr has quit [Ping timeout: 276 seconds]
davedev24 has quit []
drewbro has joined #ruby
hxegon_AFK is now known as hxegon
nettoweb has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
dnewkerk has quit [Quit: dnewkerk]
drewbro has quit [Ping timeout: 244 seconds]
chris2 has joined #ruby
ixti has joined #ruby
crowell has joined #ruby
hightower3 has quit [Ping timeout: 264 seconds]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
hays has joined #ruby
griffindy has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
amclain has quit [Quit: Leaving]
matthin has quit [Ping timeout: 240 seconds]
mondok has quit [Ping timeout: 276 seconds]
thomashaw has quit [Quit: thomashaw]
Guest45 has joined #ruby
htmldrum_ has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 244 seconds]
rkazak has joined #ruby
x77686d has quit [Quit: x77686d]
Guest45 has quit [Max SendQ exceeded]
Guest45 has joined #ruby
Guest45 has quit [Max SendQ exceeded]
Azure has joined #ruby
nerium has joined #ruby
gokulnath has quit [Ping timeout: 252 seconds]
bkxd has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
ramfjord has joined #ruby
hays has quit [Read error: Connection reset by peer]
hays_ has joined #ruby
Musashi007 has joined #ruby
bronson has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
blackmesa has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
nickolaj__ has joined #ruby
gokulnath has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
x77686d has joined #ruby
meatchicken has quit [Quit: Leaving]
Snowy is now known as SnowyZZZ
mary5030 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hxegon has quit [Ping timeout: 244 seconds]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
dtzuzu has joined #ruby
rubie has quit [Remote host closed the connection]
ixti has quit [Quit: WeeChat 1.4]
patrick_star_3 has joined #ruby
dvinciguerra has quit [Ping timeout: 244 seconds]
griffindy has quit [Ping timeout: 248 seconds]
kobain has joined #ruby
Musashi007 has quit [Quit: Musashi007]
patrick_star_2 has quit [Ping timeout: 264 seconds]
uglybandersnatch has joined #ruby
rmulligan has joined #ruby
bronson has quit [Remote host closed the connection]
bkxd has joined #ruby
nickolaj__ has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
PlasmaStar has quit [Ping timeout: 264 seconds]
SnowyZZZ has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
araujo_ has joined #ruby
rmulligan has quit [Ping timeout: 248 seconds]
edwinvdgraaf has joined #ruby
ensyde__ has joined #ruby
araujo has quit [Ping timeout: 268 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
crdpink2 has quit [Quit: q term]
<Dimik> "Rails is a web application framework designed to work with the Ruby programming language. Sound like mumbo jumbo?! I know!"
<Dimik> yet i can't run my .rb scripts from rails
<Dimik> total fail.
<mozzarella> ?
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moosashi has quit [Quit: Moosashi]
<mozzarella> rails is in ruby, if you're running rails you're running ruby scripts
edwinvdgraaf has quit [Ping timeout: 264 seconds]
ebbflowgo has joined #ruby
ebbflowgo has quit [Client Quit]
<RickHull> Dimik: rails doesn't involve itself with "scripts" generally
<RickHull> it's not clear what you mean by "run my .rb scripts from rails"
<shevy> the commandline rails IN PURE ASCII ***NEW IN 2017***
moei has quit [Quit: Leaving...]
<RickHull> i'll settle for UTF-8
crdpink has joined #ruby
<Dimik> well i built an app that solves some math related stuff
<Dimik> and the idea was with rails to have user give it data, let it do the solving and then it'd output the answer back to user via html page
<RickHull> i like that
<RickHull> a good approach, architecturally
<RickHull> is to solve the math problems in a library, totally unrelated to rails
<RickHull> you can put that in your load path, or make a gem out of it
<RickHull> and then rails can make library calls
moei has joined #ruby
<RickHull> (not "execute scripts")
preyalone has joined #ruby
<Dimik> hmph
<Dimik> library calls
<Dimik> got it!
<RickHull> make a class or a module, basically
<RickHull> outside of rails
<RickHull> make sure it's in your load path, so that you can `require` it
<RickHull> and then MyLib.do_math(stuff)
rubie has joined #ruby
<Dimik> sounds like a plan
<Dimik> thanks a bunch
<RickHull> the load path part might be tricky, or maybe trivial. haven't done rails stuff in a while
<RickHull> check with #rubyonrails too
<havenwood> Dimik: And if you ask the same question in both channels let both channels know you've asked in the other channel.
avenj has quit [Changing host]
avenj has joined #ruby
x77686d has quit [Quit: x77686d]
bkxd has quit [Ping timeout: 264 seconds]
Moosashi has joined #ruby
yfeldblum has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
uglybandersnatch has quit [Ping timeout: 264 seconds]
cdg_ has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
htmldrum_ has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
x77686d has joined #ruby
pawnbox has joined #ruby
Aviio has quit [Remote host closed the connection]
yfeldblum has joined #ruby
QualityAddict has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
chouhoulis has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
chop1n has joined #ruby
Aviio has joined #ruby
Moosashi has quit [Quit: Moosashi]
chop1n has joined #ruby
TheGreatGudsby is now known as LazyNerd
fullofca_ has quit [Remote host closed the connection]
chop1n has left #ruby [#ruby]
fullofcaffeine has joined #ruby
ejnahc has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
jcdesimp has joined #ruby
symm- has quit [Ping timeout: 246 seconds]
daguilaraguilar has quit [Ping timeout: 240 seconds]
fullofca_ has joined #ruby
daguilaraguilar has joined #ruby
kam270 has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 248 seconds]
Moosashi has joined #ruby
johnmilton has quit [Ping timeout: 248 seconds]
graffix has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Contigi has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
<Ox0dea> havenwood: Locked and loaded if you're game.
mistermocha has quit [Ping timeout: 250 seconds]
safe has joined #ruby
Musashi007 has joined #ruby
zast has joined #ruby
nerium has quit [Quit: nerium]
felixal has quit [Ping timeout: 276 seconds]
Musashi007 has quit [Client Quit]
graffix has joined #ruby
Moosashi has quit [Quit: Moosashi]
tubuliferous_ has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
djbkd has joined #ruby
symm- has joined #ruby
Moosashi has quit [Quit: Moosashi]
rkazak has joined #ruby
rubie has quit [Remote host closed the connection]
qhp has quit [Quit: Leaving]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
qhp has joined #ruby
valetudo has quit [Ping timeout: 268 seconds]
fullofcaffeine has joined #ruby
<zacts> hi rubyists
fullofca_ has quit [Ping timeout: 244 seconds]
rubie has joined #ruby
fullofca_ has joined #ruby
znz_jp has joined #ruby
BTRE has quit [Ping timeout: 244 seconds]
kuroro has joined #ruby
fullofcaffeine has quit [Ping timeout: 276 seconds]
dc2 has joined #ruby
User458764 has joined #ruby
Moosashi has joined #ruby
dtzuzu has quit [Ping timeout: 260 seconds]
IrishGringo has joined #ruby
cabargas has joined #ruby
symm- has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
DonOtreply has joined #ruby
pawnbox has joined #ruby
dc2 has quit [Ping timeout: 260 seconds]
akkad has joined #ruby
BTRE has joined #ruby
madgen_ has quit [Ping timeout: 240 seconds]
rattatmatt has quit []
Mattx has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
<Mattx> Hey guys, I'm getting a conflict error wirh rake. My project uses rake 10.x, but I also have version 11.x installed. The error message is this: Gem::ConflictError: Unable to activate standalone_migrations-4.0.2, because rake-11.1.1 conflicts with rake (~> 10.0)
griffindy has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
<Mattx> Why does ruby care if I have more than one version installed if I only need v10 here?
<Mattx> Any fix?
youch has joined #ruby
Moosashi has quit [Quit: Moosashi]
fullofca_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
bkxd has joined #ruby
_blizzy_ has joined #ruby
ensyde__ has quit [Ping timeout: 260 seconds]
coffeecupp has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
cdg_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
ejnahc has quit [Quit: Lost terminal]
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
coffeecupp has quit [Client Quit]
tubuliferous_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
braincra- has quit [Quit: bye bye]
dikaio has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: My people need me...]
nofxx has quit [Ping timeout: 268 seconds]
merida has joined #ruby
graffix has left #ruby [#ruby]
LazyNerd has quit [Quit: You had my curiosity. But now you have my attention]
LazyNerd has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
daguilaraguilar has quit [Remote host closed the connection]
braincrash has joined #ruby
djbkd has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 246 seconds]
Mattx has quit [Quit: Leaving]
treaki_ has joined #ruby
gokulnath has quit [Ping timeout: 244 seconds]
cpup has quit [Ping timeout: 250 seconds]
treaki has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
cpup has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<shevy> random passerby!
tvon has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
gokulnath has joined #ruby
merida has quit [Remote host closed the connection]
merida has joined #ruby
freerobby has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
bkxd has quit [Ping timeout: 260 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
hackerdude has quit [Quit: Bye, everyone]
yqt has quit [Ping timeout: 260 seconds]
dtzuzu has joined #ruby
mclong has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
gokul_ has joined #ruby
Olipro_ has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Olipro_ is now known as Guest50706
ramfjord has quit [Ping timeout: 244 seconds]
gokulnath has quit [Ping timeout: 276 seconds]
dtzuzu has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
gix- has quit [Ping timeout: 244 seconds]
krz has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
blackmesa has joined #ruby
gix has joined #ruby
pawnbox has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
<RickHull> RIP Mattx
<RickHull> the answer probably is: don't specify a rake version in your gemspec
<RickHull> just a guess
dc2 has joined #ruby
Moosashi has joined #ruby
<Ox0dea> RickHull: Have you learned nothing from the left-pad debacle? :P
Moosashi has quit [Client Quit]
snath has joined #ruby
snath has left #ruby [#ruby]
sudoubuntu has joined #ruby
jcdesimp has quit [Ping timeout: 268 seconds]
tristanp has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
toretore has joined #ruby
arescorpio has quit [Quit: Leaving.]
<RickHull> here is what i have learned: code sharing++ dependencies--
<toretore> cake++
<Ox0dea> ?cake
<ruby[bot]> here's your cake:
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jcdesimp has joined #ruby
sdothum has joined #ruby
GnuYawk has joined #ruby
youch has quit [Ping timeout: 244 seconds]
fullofcaffeine has joined #ruby
dc2 has quit [Ping timeout: 244 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Read error: Connection reset by peer]
kfpratt has quit [Remote host closed the connection]
queequeg1 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
queequeg1 has joined #ruby
krz has quit [Read error: Connection reset by peer]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xiti has quit [Quit: Xiti]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
matp has quit [Remote host closed the connection]
Es0teric has joined #ruby
aryaching has joined #ruby
sdothum has joined #ruby
yatish27 has joined #ruby
kfpratt has joined #ruby
Kruppe has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
fexilal has joined #ruby
Yzguy has joined #ruby
Kruppe has joined #ruby
mic_e has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
kfpratt has quit [Ping timeout: 248 seconds]
hk238 has joined #ruby
crowell has quit [Remote host closed the connection]
Cohedrin has joined #ruby
gokul_ has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 260 seconds]
queequeg1 has quit [Ping timeout: 268 seconds]
edwinvdgraaf has joined #ruby
Es0teric has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Remote host closed the connection]
dc2 has joined #ruby
Es0teric has joined #ruby
PaulCape_ has joined #ruby
hahuang61 has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
aryaching has quit []
edwinvdgraaf has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
pawnbox has quit [Remote host closed the connection]
queequeg1 has joined #ruby
pawnbox has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
binaryplease2 has joined #ruby
crowell has joined #ruby
mtkd has quit [Ping timeout: 244 seconds]
binaryplease1 has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
Guest35913 has joined #ruby
mtkd has joined #ruby
sudoubuntu has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jgt1 has joined #ruby
siaw has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
mondok has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
jgt1 has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
domgetter has joined #ruby
Yzguy has quit [Quit: Zzz...]
abhishek has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
jcdesimp has quit [Remote host closed the connection]
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
saneax_AFK is now known as saneax
uglybandersnatch has joined #ruby
Es0teric has joined #ruby
Guest35913 has quit [Read error: Connection timed out]
djbkd has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
Guest35913 has joined #ruby
jenrzzz has joined #ruby
diegoaguilar has quit [Ping timeout: 276 seconds]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
htmldrum_ has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 248 seconds]
cabargas has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sudoubuntu has joined #ruby
sudoubuntu has quit [Client Quit]
uglybandersnatch has quit [Ping timeout: 252 seconds]
Guest35913 has quit [Ping timeout: 244 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
tvon has quit [Ping timeout: 248 seconds]
tvon has joined #ruby
freerobby has joined #ruby
mic_e has joined #ruby
User458764 has joined #ruby
freerobby has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
jero__ has joined #ruby
rippa has joined #ruby
dagda1_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aviio has quit [Remote host closed the connection]
mary5030 has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
valetudo has joined #ruby
tubuliferous_ has joined #ruby
tjbiddle has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 268 seconds]
merida has quit [Remote host closed the connection]
merida has joined #ruby
Aviio has joined #ruby
merida has quit [Read error: Connection reset by peer]
valetudo has quit [Ping timeout: 244 seconds]
tvon has quit [Remote host closed the connection]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tvon has joined #ruby
jgt1 has joined #ruby
Es0teric has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
jgt1 has quit [Ping timeout: 244 seconds]
hightower3 has joined #ruby
x77686d has quit [Quit: x77686d]
yfeldblu_ has joined #ruby
bronson has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
yfeldblu_ has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 264 seconds]
saneax is now known as saneax_AFK
p0wn3d has quit [Quit: WeeChat 1.2]
tjbiddle has quit [Quit: tjbiddle]
Don_John has quit [Ping timeout: 268 seconds]
freerobby has joined #ruby
ych has joined #ruby
ur5us has joined #ruby
freerobby has quit [Ping timeout: 268 seconds]
LoneHermit has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
safe has quit [Read error: Connection reset by peer]
LoneHermit has quit [Ping timeout: 252 seconds]
dc2 has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
sandstrom has joined #ruby
jenrzzz has joined #ruby
blackmesa has joined #ruby
dc2 has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
MrSamuel has quit [Quit: Leaving]
Aviio has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
astrobun_ has joined #ruby
ur5us has quit [Remote host closed the connection]
bkxd has joined #ruby
spuk has quit [Ping timeout: 252 seconds]
matp has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kkkay has joined #ruby
edwinvdgraaf has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
p0wn3d has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
Es0teric has joined #ruby
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
nobitanobi has joined #ruby
ych has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
freerobby has joined #ruby
roshanavand has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
Gasher has joined #ruby
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
Gasher has quit [Client Quit]
Gasher has joined #ruby
freerobby has quit [Ping timeout: 250 seconds]
htmldrum has quit [Ping timeout: 264 seconds]
htmldrum_ has quit [Ping timeout: 252 seconds]
jgt1 has joined #ruby
pawnbox has joined #ruby
b|ackwolf has joined #ruby
Timba-as has joined #ruby
<b|ackwolf> require_relative doesn't work unless I shuffle the current directory path into $LOAD_PATH
jgt1 has quit [Ping timeout: 260 seconds]
<b|ackwolf> *why
roshanavand has quit [Quit: This computer has gone to sleep]
devbug has quit [Ping timeout: 268 seconds]
ytti has joined #ruby
blackmesa has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
devbug has joined #ruby
Timba-as has joined #ruby
mistermocha has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
rubie has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
pawnbox has quit [Remote host closed the connection]
<hanmac> shevy & apeiros & adaedra: i don't know if you follow the changelog, but "[x, y].max" and "[x, y].min" are now optimized so they do not generate an Array anymore ;P
tubuliferous_ has quit [Ping timeout: 244 seconds]
tvon has quit [Remote host closed the connection]
ytti has joined #ruby
rubie has quit [Ping timeout: 252 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
mondok has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 252 seconds]
uglybandersnatch has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
Tempesta has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
ytti has joined #ruby
dgncn has quit [Excess Flood]
Timba-as has joined #ruby
bronson has joined #ruby
dgncn has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
bronson has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
roshanavand has joined #ruby
robbyoconnor has joined #ruby
LoneHermit has joined #ruby
sepp2k has joined #ruby
Balzrael has joined #ruby
tildes has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
LoneHermit has quit [Ping timeout: 252 seconds]
superfox_il_volp has joined #ruby
ytti has quit [*.net *.split]
madgen_ has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
infernix has quit [Ping timeout: 252 seconds]
etehtsea has joined #ruby
pawnbox_ has joined #ruby
lxsameer has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
uglybandersnatch has quit [Ping timeout: 244 seconds]
ytti has joined #ruby
Timba-as has joined #ruby
s2013 has joined #ruby
sandstrom has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
ytti has quit [Ping timeout: 240 seconds]
infernix has joined #ruby
ytti has joined #ruby
dc2 has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
blackmesa has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
Ropeney has joined #ruby
kkkay has quit [Ping timeout: 250 seconds]
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
etehtsea has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
tvon has joined #ruby
Musashi007 has joined #ruby
<Musashi007> can i ask you guys a git question regarding my ruby project?
<Ropeney> ask away
roshanavand has joined #ruby
mclong has quit [Remote host closed the connection]
User458764 has joined #ruby
roshanavand has quit [Client Quit]
ytti has quit [*.net *.split]
<Musashi007> ty. I have a project whose pointer is pointing to “b” and I want it to be pointing to “p” while keeping all the current changes. is that possible?
<Musashi007> i was looking and it looks like i need to do a hard reset which is kind of scary to me
<Musashi007> is it posible that’s the only way?
<Ropeney> im hoping p and b have meanings in your head
<Ropeney> is b and p branches, commits, tags ?
ytti has joined #ruby
<Musashi007> they are both branches
<Musashi007> I’d like to cause the current version to be called master
pandaant has joined #ruby
<Ropeney> why not merge it into masteR?
Timba-as has quit [Read error: Connection reset by peer]
tvon has quit [Ping timeout: 260 seconds]
<Musashi007> can’t think of a reason not to
<Musashi007> although the master is a previous version from this
ytti has quit [Ping timeout: 240 seconds]
<Ropeney> previous version, as in completely new code base?
<Ropeney> or previous version, as in a new feature?
<Musashi007> I’m not sure if I’m understanding your question but it should be
<Musashi007> the latter.
<Ropeney> so you want to merge it into master then
<Musashi007> new features have been added and it’s now on a different branch
<Musashi007> ok let me try to formulate the command
<Musashi007> current branch is b
ytti has joined #ruby
<Musashi007> so i would just write git merge master?
<Musashi007> on it
SnowyZZZ has joined #ruby
mozzarella has quit [Quit: WeeChat 1.4]
Timba-as has joined #ruby
Snowy has quit [Remote host closed the connection]
mozzarella has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
pawnbox has quit [Ping timeout: 252 seconds]
ytti has quit [Ping timeout: 240 seconds]
<Musashi007> gah - i don’t get it; when you check something out does it change the code at all?
<Ropeney> it changes it, to the changes in the commit you checked out too
<Musashi007> copy that
etehtsea has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
LazyNerd is now known as GitGud
Spami_ has joined #ruby
Timba-as has joined #ruby
Spami has quit [Ping timeout: 240 seconds]
superfox_il_volp has quit [Quit: Nettalk6 - www.ntalk.de]
Spami has joined #ruby
ytti has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
LoneHermit has joined #ruby
devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Es0teric has quit [Quit: Computer has gone to sleep.]
Spami_ has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
blackmesa has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
krz has joined #ruby
nobitanobi has joined #ruby
A124 has quit [Quit: '']
Ishido has joined #ruby
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has joined #ruby
ytti has joined #ruby
A124 has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
Musashi007 has quit [Client Quit]
sergey_makagon has joined #ruby
Moosashi has joined #ruby
heinrich5991 has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 248 seconds]
Moosashi has quit [Client Quit]
Snowy has joined #ruby
Moosashi has joined #ruby
jgt1 has joined #ruby
kith_ has joined #ruby
mdw has joined #ruby
pawnbox has joined #ruby
Timba-as has joined #ruby
madgen_ has quit [Ping timeout: 246 seconds]
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
kith has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
heinrich5991 has joined #ruby
pawnbox has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
jgt1 has quit [Ping timeout: 268 seconds]
Moosashi has quit [Quit: Moosashi]
blackmesa has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
s2013 has joined #ruby
c355e3b has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
Timba-as has joined #ruby
Snowy has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
mdw has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
tristanp has joined #ruby
nobitanobi has quit [Remote host closed the connection]
symm- has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
bkxd_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
kith_ is now known as kith
tvon has joined #ruby
mdw has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermocha has quit [Ping timeout: 250 seconds]
edwinvdgraaf has quit [Ping timeout: 252 seconds]
tristanp has quit [Ping timeout: 252 seconds]
Timba-as has quit [Read error: Connection reset by peer]
tvon has quit [Ping timeout: 246 seconds]
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
ytti has quit [Ping timeout: 240 seconds]
Timba-as has joined #ruby
treaki_ has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
s2013 has joined #ruby
drptbl has joined #ruby
solocshaw has quit [Ping timeout: 252 seconds]
infernix has quit [Ping timeout: 248 seconds]
DominicBurford has joined #ruby
ytti has joined #ruby
bronson has joined #ruby
SCHAAP137 has joined #ruby
mdw has quit [Ping timeout: 246 seconds]
DominicBurford has left #ruby [#ruby]
valetudo has joined #ruby
sergey_makagon has quit [Remote host closed the connection]
s2013 has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has quit [Ping timeout: 252 seconds]
rikkipitt has joined #ruby
infernix has joined #ruby
LoneHerm_ has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
rolha has joined #ruby
moos3 has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
lxsameer has joined #ruby
Timba-as has joined #ruby
freerobby has quit [Ping timeout: 244 seconds]
jgt1 has joined #ruby
spider-mario has joined #ruby
toretore has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
blackmesa has joined #ruby
rikkipitt has quit [Remote host closed the connection]
Aviio has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
saneax is now known as saneax_AFK
saneax_AFK is now known as saneax
icey has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
decoponio has joined #ruby
darkf has quit [Quit: Leaving]
_blizzy_ has quit [Quit: Leaving]
icey has joined #ruby
edwinvdgraaf has joined #ruby
LoneHerm_ has joined #ruby
gmas has quit [Ping timeout: 264 seconds]
krz has quit [Read error: Connection reset by peer]
rkoller has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
LoneHerm_ has quit [Remote host closed the connection]
madgen_ has joined #ruby
rolha has quit [Remote host closed the connection]
rolha has joined #ruby
hays has joined #ruby
rolha has quit [Client Quit]
yfeldblum has quit [Ping timeout: 268 seconds]
mondok has joined #ruby
hays_ has quit [Ping timeout: 248 seconds]
Aviio has quit [Remote host closed the connection]
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
dmr8 has joined #ruby
Timba-as has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
dmr8 has quit [Client Quit]
dmr8 has joined #ruby
superfox_il_volp has joined #ruby
Timba-as has joined #ruby
tvon has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
rolha has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
rikkipitt has joined #ruby
Timba-as has quit [Client Quit]
lxsameer has quit [Ping timeout: 276 seconds]
hays has quit [Ping timeout: 240 seconds]
tvon has quit [Ping timeout: 252 seconds]
hays has joined #ruby
hays_ has joined #ruby
gmas has joined #ruby
hays has quit [Ping timeout: 240 seconds]
Jackneill has joined #ruby
pawnbox has joined #ruby
rubie has joined #ruby
s2013 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
moeabdol1 has quit [Ping timeout: 248 seconds]
LoneHerm_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
Riviera- has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
uglybandersnatch has joined #ruby
saneax is now known as saneax_AFK
intrigueD has joined #ruby
killerbunny has joined #ruby
saneax_AFK is now known as saneax
<killerbunny> Was wondering, if i want to create a REST api which framework is the goto framework?
<Papierkorb> killerbunny: At this point, your question could be rephrased as: "I want to create a REST API, what programming language should I use?"
<Papierkorb> killerbunny: What I want to say is that you need to be more precise what you actually want.
<Papierkorb> killerbunny: Using Rails for a REST API is in itself perfectly fine. Many people are doing that in fact. If you have no idea what frameworks there are, take a look at it. Rails heavily relies on the MVC pattern though.
<killerbunny> Ah okey so its to broad... What im really asking is a REST api without any gui. I tried using Rails, but i found my self disabling and removing alot of what it offers
<Papierkorb> killerbunny: So, if you hate MVC, or it really is a bad fit for your API, Sinatra is the next most popular web framework as far I can tell
<Papierkorb> killerbunny: Then try Sinatra. If you would like to try something even smaller or just "different", have a look at Roda.
<killerbunny> Papierkorb: i dont have MVC, i just hating trying to push a squire block through a triangled hole :)
<Papierkorb> killerbunny: Yeah that's fine, MVC is great for some things and bad at others :)
<Papierkorb> E.g. I like to have some kind of "Controllers", in terms of having classes provide parts of the API (As in UsersController, SearchController, ...). Sinatra is a bad fit for me, too fiddly to get it to work for me. Roda works great for me though.
<Papierkorb> But Roda is much less commonly used, so if you need help, you're either off to read the documentation (Which is fine for the most part), or the source code itself
<Papierkorb> killerbunny: Do you know or like Sequel (ORM gem)?
<killerbunny> Papierkorb: No, but i will look into it
<Papierkorb> killerbunny: Just asking, as the maintainer and creator of Sequel is the same one behind Roda, so if you like one, you may like the other ;)
<killerbunny> Papierkorb: Again while trying rails i used active record, which is fine but again i think does way to much
freerobby has joined #ruby
<Papierkorb> Sequel is modeled after the ActiveRecord-pattern too, but is much more modular. It can do a lot and I really like it because of it, as I really hate cluttering my application with (partial) SQL statements
<killerbunny> Papierkorb: I will look into it.
<killerbunny> Papierkorb: I have not programmed that much in Ruby, but looking more and more into it. Im a iOS developer and everything in the iOS eco system which is not iOS is usually coded in Ruby.
<Papierkorb> Okay, that's interesting to hear
<killerbunny> Guess its easier, because you can assume some version of ruby installed on every mac.
freerobby has quit [Ping timeout: 248 seconds]
User458764 has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
<atmosx> Do I need to worry about mutex when using threads for a simple REST API json fetch loop? Data is processed and added to a hash.
<atmosx> but it's all in memory
<adaedra> A mutex is here to protect shared access to the same instance.
<adaedra> Are you in this case?
Balzrael has quit [Remote host closed the connection]
codecop has joined #ruby
rikkipitt has quit [Remote host closed the connection]
<atmosx> adaedra: depends how a share instance is defined I guess. Every threads must push the JSON object to the same Hash, isn't that hash a shared object?
sandstrom has quit [Quit: My computer has gone to sleep.]
<adaedra> well you tell me.
<atmosx> I think it is
<adaedra> Then you should protect your access to this hash.
<atmosx> so I need mutex
<atmosx> okay ty
uglybandersnatch has quit [Ping timeout: 248 seconds]
GitGud is now known as sendpass
biberu has joined #ruby
biberu has quit [Remote host closed the connection]
biberu has joined #ruby
freerobby has joined #ruby
rikkipitt has joined #ruby
sendpass is now known as TheGreatGudsby
JFlash has joined #ruby
<JFlash> hello
mistermocha has joined #ruby
<JFlash> what's the equivalend to Python's Celery and python-RQ in ruby land?
tristanp has joined #ruby
pawnbox has joined #ruby
<JFlash> ie, what are the most popular libs (gems?) to work with messaging/queueing sofware such as Redis and rabbitMQ?
<ytti> maybe sidekiq or resque for celery
<Papierkorb> JFlash: for rabbitMQ (Or AMQP in general?) there's "bunny"
tvon has joined #ruby
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Papierkorb> (But never really used it beyond connecting to a local rabbit mq)
<ytti> i've only used rabbitmq as mqtt
<ytti> with gem called 'mqtt' :/
<atmosx> adaedra: the mutex version is even slower than the simple iteration version
Aviio has joined #ruby
<JFlash> is there a channel whre i can find out more options
<atmosx> hm
<JFlash> like ruby-web
<JFlash> maybe #sinatra
mistermocha has quit [Ping timeout: 250 seconds]
<Papierkorb> JFlash: For rails, #RubyOnRails
tristanp has quit [Ping timeout: 252 seconds]
madgen_ has quit [Ping timeout: 248 seconds]
<JFlash> thanks guys, I will take a look at resque and bunny
<JFlash> ttygl
JFlash has left #ruby ["Leaving"]
pawnbox has quit [Ping timeout: 252 seconds]
tvon has quit [Ping timeout: 252 seconds]
<Papierkorb> Isn't resque found more in old applications and sidekiq in newer ones..? Whatever.
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
bkxd_ has quit [Ping timeout: 264 seconds]
Timba-as has joined #ruby
pandaant has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
peteykun has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
LoneHermit has joined #ruby
krz has joined #ruby
bronson has joined #ruby
sergey_makagon has joined #ruby
madgen_ has joined #ruby
bkxd has joined #ruby
Snowy has joined #ruby
Snowy has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 246 seconds]
tvon has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
killerbunny has quit []
bkxd has joined #ruby
TheGreatGudsby is now known as RajaGanesh
RajaGanesh is now known as TheGreatGutsby
pawnbox has joined #ruby
<hanmac> ast>> x=1; [x, 2].max
QualityAddict has joined #ruby
<ruby[bot]> hanmac: I have parsed your code, the result is at https://eval.in/542556
rubie has joined #ruby
superfox_il_volp has quit [Quit: Nettalk6 - www.ntalk.de]
Xiti has joined #ruby
jgt1 has joined #ruby
rikkipitt has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 276 seconds]
tildes has joined #ruby
freerobby has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
Aviio has quit [Remote host closed the connection]
freerobby1 has joined #ruby
futilegames has joined #ruby
nobitanobi has joined #ruby
sandstrom has joined #ruby
SenpaiSilver has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
Aviio has joined #ruby
dmr8 has quit [Ping timeout: 268 seconds]
rikkipitt has joined #ruby
Freed-Millionair has joined #ruby
<Freed-Millionair> Earn Money with your shit ! Now this is possible 5 dollars per hours
<Freed-Millionair> Visit this website = http://tinyurl.com/j269lc8
<apeiros> !spam Freed-Millionair
Freed-Millionair was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
sandstro_ has joined #ruby
sandstrom has quit [Ping timeout: 240 seconds]
nanoz has joined #ruby
futilegames has quit [Quit: futilegames]
dmr8 has joined #ruby
pandaant has joined #ruby
idle_task has joined #ruby
idletask has quit [Ping timeout: 260 seconds]
pandaant has quit [Remote host closed the connection]
yatish27 has joined #ruby
P4Titan has joined #ruby
P4Titan has left #ruby [#ruby]
Aviio has quit [Remote host closed the connection]
Timba-as has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 248 seconds]
Timba-as has joined #ruby
sergey_makagon has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
chipotle has joined #ruby
Aviio has joined #ruby
sergey_makagon has joined #ruby
astrobun_ has joined #ruby
Aviio has quit [Read error: No route to host]
Aviio has joined #ruby
User458764 has joined #ruby
astrobun_ has quit [Ping timeout: 248 seconds]
sergey_makagon has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
rbennacer has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
LoneHermit has joined #ruby
fullofcaffeine has quit [Ping timeout: 268 seconds]
rikkipitt has joined #ruby
fullofcaffeine has joined #ruby
idle_task is now known as idletask
arlek has quit [Ping timeout: 240 seconds]
intrigueD has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Remote host closed the connection]
tvon has quit [Remote host closed the connection]
rikkipitt has quit [Remote host closed the connection]
tvon has joined #ruby
tvon has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
tvon has joined #ruby
mary5030 has joined #ruby
futilegames has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
futilegames has quit [Client Quit]
diegoaguilar has joined #ruby
mondok has quit [Ping timeout: 276 seconds]
smathy has joined #ruby
u404 has joined #ruby
TheGreatGutsby is now known as TheGreatGudsby
Shidash has joined #ruby
statelesscode has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
sergey_makagon has joined #ruby
threh has joined #ruby
sergey_makagon has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
mistermocha has joined #ruby
pawnbox has joined #ruby
tristanp has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
bkxd has quit [Client Quit]
fullofca_ has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
yatish27 has joined #ruby
fullofcaffeine has quit [Ping timeout: 244 seconds]
arlek has joined #ruby
howdoi has joined #ruby
bbb has joined #ruby
bbb has left #ruby [#ruby]
hxegon has joined #ruby
yatish27 has quit [Ping timeout: 260 seconds]
drptbl has quit [Quit: See you later!]
drptbl has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
yatish27 has joined #ruby
bronson has joined #ruby
sdothum has joined #ruby
lxsameer has joined #ruby
fullofca_ has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
rikkipitt has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
dc2 has joined #ruby
Shidash has quit [Remote host closed the connection]
freerobby1 has quit [Quit: Leaving.]
Cohedrin has joined #ruby
roshanavand has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cabargas has joined #ruby
drptbl has quit [Quit: See you later!]
Regulati_ has joined #ruby
yatish27 has quit [Remote host closed the connection]
Anderson69s has joined #ruby
drptbl has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
drptbl has quit [Client Quit]
drptbl has joined #ruby
drptbl has quit [Client Quit]
sandstro_ has quit [Quit: My computer has gone to sleep.]
camilasann has joined #ruby
DoubleMalt has joined #ruby
hiyosi has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
dtzuzu has joined #ruby
drewbro has joined #ruby
nocontrol has joined #ruby
Timba-as has quit [Quit: Be back later ...]
threh has quit [Ping timeout: 250 seconds]
drewbro has quit [Quit: WeeChat 1.2]
snoobydoo has joined #ruby
GnuYawk has quit [Read error: Connection reset by peer]
hxegon has quit [Quit: BRB]
rikkipitt has quit [Remote host closed the connection]
mhib has joined #ruby
ebbflowgo has joined #ruby
glcx has quit [Quit: ITS NOT FUNNYYYY]
mhib has quit [Client Quit]
mhib has joined #ruby
mhib has quit [Client Quit]
mhib has joined #ruby
mhib has quit [Client Quit]
mhib has joined #ruby
camilasan has joined #ruby
mhib has quit [Client Quit]
mhib has joined #ruby
roshanavand has joined #ruby
camilasann has quit [Ping timeout: 252 seconds]
threh has joined #ruby
yatish27 has joined #ruby
mhib has quit [Client Quit]
blaxter has joined #ruby
mhib has joined #ruby
rikkipitt has joined #ruby
slackbotgz has joined #ruby
mhib has quit [Client Quit]
d0nn1e has quit [Ping timeout: 244 seconds]
mhib has joined #ruby
superfox_il_volp has joined #ruby
mhib has quit [Client Quit]
mhib has joined #ruby
x77686d has joined #ruby
d0nn1e has joined #ruby
superfox_il_volp has quit [Client Quit]
cdg has joined #ruby
superfox_il_volp has joined #ruby
superfox_il_volp has quit [Client Quit]
Gasher^ has joined #ruby
User458764 has joined #ruby
superfox_il_volp has joined #ruby
rikkipitt has quit [Remote host closed the connection]
<superfox_il_volp> hello
Gasher has quit [Ping timeout: 248 seconds]
yatish27 has quit [Remote host closed the connection]
dikaio has joined #ruby
futilegames has joined #ruby
Gasher^ has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
yatish27 has joined #ruby
nocontrol has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby
LoneHerm_ has joined #ruby
astrobun_ has joined #ruby
threh has quit [Ping timeout: 248 seconds]
statelesscode has quit [Quit: statelesscode]
ruby-lang159 has joined #ruby
LoneHerm_ has quit [Ping timeout: 248 seconds]
<n1colas> Hello
rkazak has joined #ruby
astrobun_ has quit [Ping timeout: 276 seconds]
Node_556 has joined #ruby
Node_556 has quit [Client Quit]
mark____ has joined #ruby
tvon has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
tvon has joined #ruby
threh has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<shevy> yo n1colas
nocontrol has joined #ruby
<hanmac> shevy did you see that [x, y].min got optimized? XD
<Ox0dea> hanmac: They're unifying Fixnum and Bignum as well.
<Ox0dea> And Enumerable might get #sum!
hxegon has joined #ruby
camilasann has joined #ruby
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
sdothum has joined #ruby
<hanmac> Ox0dea: yeah i was like "Woot?" xD ... Fixnum and Bignum might even get removed as class later too (because might not needed anymore)
hightower2 has joined #ruby
<Ox0dea> Aye, I'm pretty sure that's what they're going for.
<Ox0dea> It really is an implementation detail that needn't be exposed to userland.
<hanmac> yeah i am totally okay with that, (need to checkout if i use them in my binding, but that can be updated later too=
nocontrol has quit [Ping timeout: 252 seconds]
camilasan has quit [Ping timeout: 268 seconds]
nando293921 has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
camilasann has quit [Ping timeout: 248 seconds]
hightower3 has quit [Ping timeout: 244 seconds]
blaxter has quit [Quit: foo]
Caelum has joined #ruby
<Caelum> Do I have to configure ri somehow? It says 'nothing is known about <foo>' for anything, e.g. ri Array
camilasan has joined #ruby
<hanmac> Caelum: did you use rvm?
nocontrol has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
<Caelum> I might have at some point
roshanavand has joined #ruby
mark____ has quit [Ping timeout: 250 seconds]
<Caelum> nope, I'm using homebrew ruby
Es0teric has joined #ruby
<shevy> hanmac what was that?
<Caelum> I see thank you
<hanmac> shevy: they make a optimize that "[x, y].min" does not create an array anymore
nocontrol has quit [Ping timeout: 264 seconds]
<Caelum> that is an obnoxious default
<hanmac> for funny reason, "[1, 2].min" does xD
slackbotgz has quit [Remote host closed the connection]
<shevy> aha
<shevy> well it's good, they are cleaning ruby up for 3.x!
<shevy> ruby-2.3.0.tar.xz is 11MB in size
<shevy> python-3.5.1.tar.xz is 15MB in size
<shevy> hmm perl is of comparable size to ruby, but ...
<shevy> https://www.perl.org/ does not advertize perl 6 :\ :/
<Caelum> lol
diegoaguilar has quit [Remote host closed the connection]
<shevy> oh wait
<shevy> there is a link ... "Perl 6 is a sister language"
nicoulaj has joined #ruby
<shevy> that's actually an even worse split than python2 to python3
dionysus69 has quit [Remote host closed the connection]
nicoulaj has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
hotpancakes has joined #ruby
<Caelum> with the python thing, I really don't understand why they couldn't keep one source tree, just to put parens around print statements?
nicoulaj has joined #ruby
<Ox0dea> hanmac: Why does there have to be at least one non-immediate for Fixnum elements, but not String ones?
<Ox0dea> That seems like a bug.
graffix has joined #ruby
<smathy> shevy, yeah, Perl6 is a very long range troll.
<ytti> that'll happen to most language down the line
JohnBat26 has joined #ruby
fullofca_ has joined #ruby
graffix has left #ruby [#ruby]
<ytti> either you'll become obsolete as you don't stay up-to-date with market demands
<ytti> or you'll change too much and alianate your userbase, and they'll feel it's as much trouble learning some new greenfield language as the new rewrite
threh has quit [Ping timeout: 248 seconds]
<Caelum> perl is pretty dead right now, even the perl conference isn't about perl anymore
nicoulaj has quit [Max SendQ exceeded]
nicoulaj has joined #ruby
uglybandersnatch has joined #ruby
nocontrol has joined #ruby
<shevy> lol
fullofcaffeine has quit [Ping timeout: 276 seconds]
<hanmac> Ox0dea: what do you mean?
Aviio has quit [Remote host closed the connection]
<Caelum> it had a resurgence around 2008, when I got seriously into CPAN work, but now there are like 3 people maintaining all of CPAN
nicoulaj has quit [Max SendQ exceeded]
threh has joined #ruby
nicoulaj has joined #ruby
nocontrol has quit [Ping timeout: 248 seconds]
<Ox0dea> $ ruby -ve 'a = -> { ObjectSpace.count_objects[:T_ARRAY] }; p [[a[], %w[foo bar].min, a[]], [a[], [1, 2].min, a[]]]'
<Ox0dea> ruby 2.4.0dev (2016-03-26 trunk 54299) [x86_64-linux]
<Ox0dea> [[2246, "bar", 2246], [2247, 1, 2248]]
<Ox0dea> hanmac: ^
uglybandersnatch has quit [Ping timeout: 276 seconds]
fullofca_ has quit [Remote host closed the connection]
fedexo has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
<hanmac> Ox0dea: a that is what you mean ... yeah if there are only literals like 1, 2 then min should be optimized too ... maybe even directly to 1 XD
<Ox0dea> hanmac: Are strings not literals?
fullofcaffeine has joined #ruby
Aviio has joined #ruby
nicoulaj has quit [Max SendQ exceeded]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
nicoulaj has joined #ruby
<hanmac> Ox0dea: strings are literals too
<Ox0dea> hanmac: Then the NEWS comment is misleading.
nocontrol has joined #ruby
<superfox_il_volp> hey, how can we concatenate multiple statements using the syntax statement if (x) ? Something like perl does with `do { puts("x"); puts("y"); } if ( x == 1 );` ?
<apeiros> stringliterals are literals. strings - any object - can always be used in a non-literal form.
camilasan has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
sudoubuntu has joined #ruby
xlegoman has quit [Quit: xlegoman]
<apeiros> superfox_il_volp: trying to push a square form down a circular hole? :)
zast has quit [Quit: Leaving.]
<apeiros> (foo; bar) if baz # but honestly, don't do that. just use `if baz; foo; bar; end`
<Ox0dea> I think "must have at least one expression but literal" should be "at least one non-immediate expression".
edwinvdgraaf has quit [Remote host closed the connection]
<Ox0dea> Fixnums and Symbols are "immediates" in this sense, and that's the behavior Array#min currently exhibits.
rubie has quit [Remote host closed the connection]
mary5030 has joined #ruby
<superfox_il_volp> apeiros cool, thx! Am I must be missing the actual meaning of the parentheses then.
edwinvdgraaf has joined #ruby
<Ox0dea> That is, `%i[foo bar].min` creates a new Array just like `[1, 2].min` does.
<hanmac> Ox0dea: hm i will make a ticket that [1,2].min should be optimzed too (and maybe the part in the NEWS should be written more clearly)
nicoulaj has quit [Max SendQ exceeded]
<Ox0dea> hanmac: I can only imagine there was good reason for not optimizing it, but I don't know what all's going on in that CMP_OPTIMIZABLE() macro.
camilasan has joined #ruby
tvon has quit [Ping timeout: 252 seconds]
nicoulaj has joined #ruby
mistermocha has joined #ruby
nocontrol has quit [Ping timeout: 250 seconds]
jackdan has quit [Quit: Lost terminal]
rubie has joined #ruby
tristanp has joined #ruby
QualityAddict has quit [Remote host closed the connection]
QualityAddict has joined #ruby
edwinvdgraaf has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 240 seconds]
rehat has joined #ruby
futilegames has joined #ruby
jhn has joined #ruby
nicoulaj has quit [Max SendQ exceeded]
<rehat> new with ruby, If I have some instance variables like @names is there any point to defining that variable in the class? I'm guess they need to be set in the class initialize method
mistermocha has quit [Ping timeout: 250 seconds]
nicoulaj has joined #ruby
cabargas has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> rehat you have to initialize it to some value right
<rehat> https://gist.github.com/rehat/47102f23f4d3104c11bd do I need to have the @names outside of the initialize
<shevy> otherwise ruby will warn "uninitialized @foo"
<shevy> rehat no, that is another variable
tristanp has quit [Ping timeout: 252 seconds]
<rehat> oh
<shevy> just has the same name, just define it in initialize
rikkipitt has joined #ruby
<rehat> man I think I am bouncing between languages too much. I thought I saw a class file with properties defined before the initializer
camilasan has quit [Remote host closed the connection]
<rehat> ok thanks
nicoulaj has quit [Max SendQ exceeded]
<shevy> \o/
cpup has quit [Ping timeout: 240 seconds]
nicoulaj has joined #ruby
youch has joined #ruby
<Ox0dea> rehat: You might be thinking of `attr_accessor` and the like.
cpup has joined #ruby
sergey_makagon has joined #ruby
sergey_makagon has quit [Client Quit]
<rehat> Ox0dea: ahh that might be it, so if I use attr_reader I would give it the symbol version of the instance variable right?
<Ox0dea> rehat: Right, and that'll define a getter method.
<rehat> sweet thanks
<Ox0dea> Sure thing.
DoubleMalt has quit [Ping timeout: 246 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
tgandrews has joined #ruby
nicoulaj has quit [Max SendQ exceeded]
DoubleMalt has joined #ruby
threh has quit [Ping timeout: 276 seconds]
nicoulaj has joined #ruby
nocontrol has joined #ruby
tvon has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
tgandrews has quit [Remote host closed the connection]
nicoulaj has quit [Max SendQ exceeded]
hotpancakes has quit [Remote host closed the connection]
nicoulaj has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
nocontrol has quit [Ping timeout: 244 seconds]
rikkipitt has quit [Read error: Connection reset by peer]
tgandrews has joined #ruby
nicoulaj has quit [Max SendQ exceeded]
tgandrews has left #ruby [#ruby]
rikkipitt has joined #ruby
nicoulaj has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
nocontrol has joined #ruby
Mattx has joined #ruby
<Mattx> Hey there. How can I do something like this? https://gist.github.com/2ddc19080a0ab0fb3b13
shinnya has quit [Ping timeout: 260 seconds]
rikkipitt has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nicoulaj has quit [Max SendQ exceeded]
spuk has joined #ruby
<Mattx> What I'm really trying to do is calling f.foo with some "implicit" variables/methods (such as bar)
rikkipitt has joined #ruby
nicoulaj has joined #ruby
<Papierkorb> Mattx: Please elaborate. What are you trying to do?
nocontrol has quit [Ping timeout: 244 seconds]
<Mattx> I want to call a method with certain parameters, without passing them to the method
<fexilal> use class instance variables?
vdamewood has joined #ruby
A124 has quit [Read error: No route to host]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mattx> why? because this method call another, and another, and generates many nested calls. and I don't want to pass the params all over
nicoulaj has quit [Max SendQ exceeded]
<Mattx> nope, I'm looking for an instance method if that is possible, it can't be part of the class
xlegoman has joined #ruby
<Papierkorb> Mattx: then have attr_accessors, or set the variables in the public API to instance variables, or have a (e.g.) Struct object containing all of the data in a single object
nicoulaj has joined #ruby
rikkipitt has quit [Ping timeout: 276 seconds]
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
<Mattx> I know I can do all that. What about defining an instance method on the fly? is that possible?
ruby-lang159 has quit [Ping timeout: 250 seconds]
rubie has quit [Remote host closed the connection]
nicoulaj has quit [Max SendQ exceeded]
sudoubuntu has joined #ruby
nicoulaj has joined #ruby
hxegon has quit [Quit: BRB]
<Papierkorb> Yes, but why not have it in the class?
djellemah_ has joined #ruby
<tobiasvl> Mattx: of course
<Mattx> simply because the value depends on the instance, not the class
GodFather has joined #ruby
<Mattx> Papierkorb, maybe I got you wrong, show me an example just in case?
camilasan has joined #ruby
<Mattx> tobiasvl, how?
<Papierkorb> Mattx: You can either just sub-class the class and use that (Which I would recommend doing over the other:) OR you can just have a module A; ... ;end and then do: the_instance.extend A
<tobiasvl> Mattx: many ways to do that, depends what you want
<Papierkorb> Mattx: I'd only use the latter to enhance an existing object instance with (for it) unrelated information. You can also use a delegate for almost the same effect.
A124 has joined #ruby
<Ox0dea> Mattx: https://eval.in/542582
dionysus69 has joined #ruby
<tobiasvl> >> a = ""; def a.hello; "hello"; end; a.hello
<ruby[bot]> tobiasvl: # => "hello" (https://eval.in/542583)
nicoulaj has quit [Max SendQ exceeded]
djellemah has quit [Ping timeout: 276 seconds]
<Ox0dea> In `def foo.bar`, `foo` can actually be any expression, and #bar will be defined on its singleton class.
<Ox0dea> Well, any expression whose evaluation is allowed to have a singleton class.
<tobiasvl> or class << self to open the eigenclass
<tobiasvl> aka singleton class
nicoulaj has joined #ruby
<tobiasvl> Mattx: ruby 1.9 has define_singleton_method
<hanmac> also in ruby you can nearly do everything on the fly ;P
<Ox0dea> "Nearly"? :P
<tobiasvl> or you can open the singleton class and send :define_method to that
<tobiasvl> many ways
<Mattx> I'm checking all approaches, thanks!
<hanmac> Ox0dea: i think i might need to search a long time to find something what you cant do in ruby on the fly ,P
codecop has quit [Remote host closed the connection]
<Ox0dea> hanmac: Aye, nothing immediately comes to mind.
nocontrol has joined #ruby
<Ox0dea> Well, the ancestor chain is less malleable than I'd like, but that's mostly a Good Thing.
<hanmac> Ox0dea: when i want to be confusing i hide classes and other constants inside singleton classes of other objects ;P
snoobydoo has quit [Ping timeout: 244 seconds]
<Mattx> actually changing define_method for define_singleton_method in my code works pretty well!
nicoulaj has quit [Max SendQ exceeded]
smathy is now known as smathy_afk
nicoulaj has joined #ruby
GodFather has quit [Quit: Leaving]
madgen_ has quit [Ping timeout: 246 seconds]
GodFather has joined #ruby
griffindy has joined #ruby
<Ox0dea> Mattx: https://eval.in/542584
nocontrol has quit [Ping timeout: 260 seconds]
GodFoddar has joined #ruby
nicoulaj has quit [Max SendQ exceeded]
<rehat> what is a common method naming convention when a method checks something would I use 'isAvailable', is_available', or 'available?'
GodFather has quit [Client Quit]
GodFoddar has quit [Client Quit]
<Ox0dea> rehat: The last.
<rehat> ok cool
GodFather has joined #ruby
nicoulaj has joined #ruby
hotpancakes has joined #ruby
nocontrol has joined #ruby
GodFather has quit [Client Quit]
GodFather has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
nicoulaj has quit [Read error: Connection reset by peer]
GodFather has quit [Client Quit]
<hanmac> Ox0dea & Mattx for such structure you might checkout Struct or OpenStruct
Inside has joined #ruby
Inside has joined #ruby
<Ox0dea> hanmac: Or just a Hash. ;)
* Nilium built his own struct library, but it was for C structs, and because he's a jerk.
cdg has joined #ruby
<hanmac> Nilium: one of the Blogs i follow is written in C because he can ;P
madgen_ has joined #ruby
<Nilium> I've seen a wiki written in rc scripts, so eh
<Nilium> http://werc.cat-v.org ← That.
nocontrol has quit [Ping timeout: 276 seconds]
hotpancakes has quit [Ping timeout: 276 seconds]
GodFoddar has joined #ruby
rikkipitt has joined #ruby
drptbl has joined #ruby
edwinvdgraaf has joined #ruby
nocontrol has joined #ruby
mistermocha has joined #ruby
drptbl has quit [Max SendQ exceeded]
drptbl has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nocontrol has quit [Ping timeout: 240 seconds]
drptbl has quit [Client Quit]
hotpancakes has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
drptbl has joined #ruby
dc2 has quit [Ping timeout: 260 seconds]
drptbl has quit [Client Quit]
xcesariox has joined #ruby
drptbl has joined #ruby
GodFather has joined #ruby
GodFather has quit [Max SendQ exceeded]
nocontrol has joined #ruby
drptbl has quit [Client Quit]
GodFather has joined #ruby
GodFather has quit [Max SendQ exceeded]
yeticry has quit [Read error: Connection reset by peer]
saneax is now known as saneax_AFK
GodFather has joined #ruby
GodFather has quit [Max SendQ exceeded]
tvon has quit [Remote host closed the connection]
GodFather has joined #ruby
GodFather has quit [Max SendQ exceeded]
astrobun_ has joined #ruby
drptbl has joined #ruby
nocontrol has quit [Ping timeout: 248 seconds]
<Jamo__> Hey, gem update --system broke suff and I can't seem to figure out how to revert it
<Jamo__> /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:2162:in `method_missing': undefined method `this' for #<Gem::Specification:0x143fdb8 passenger-5.0.26> (NoMethodError)
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvon has joined #ruby
dionysus69 has quit [Remote host closed the connection]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
yeticry has joined #ruby
astrobun_ has quit [Ping timeout: 252 seconds]
threh has joined #ruby
futilegames has quit [Quit: futilegames]
rikkipitt has quit [Ping timeout: 248 seconds]
symm- has joined #ruby
nocontrol has joined #ruby
nocontrol has quit [Client Quit]
QualityAddict has quit [Remote host closed the connection]
QualityAddict has joined #ruby
bronson has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
peteykun has quit [Quit: Leaving]
blackmesa has joined #ruby
Timba-as has joined #ruby
mjuszczak has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
drptbl has quit [Quit: See you later!]
cdg_ has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
drptbl has joined #ruby
rehat has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
cdg_ has quit [Client Quit]
cdg has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
krz has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
drptbl has quit [Client Quit]
Dimik has joined #ruby
<shevy> hanmac are you still maintaining ruby wxwidgets bindings by the way?
tvon has quit [Remote host closed the connection]
drptbl has joined #ruby
tvon has joined #ruby
devbug has joined #ruby
jgt1 has quit [Quit: WeeChat 1.4]
<hanmac> shevy yeah, but i havent pushed my changes yet, i want to make more stuff for the specs and the samples first (because of the ratio)
freerobby has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
tvon has quit [Ping timeout: 276 seconds]
last_staff has joined #ruby
last_staff has quit [Client Quit]
hxegon has joined #ruby
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rubie has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
cdg has quit [Remote host closed the connection]
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
ljames has quit []
hotpancakes has quit [Remote host closed the connection]
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
_blizzy_ has joined #ruby
drptbl has joined #ruby
drptbl has quit [Max SendQ exceeded]
drptbl has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
Inside has quit [Disconnected by services]
Inside_ has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
jero_ has joined #ruby
kedare has joined #ruby
LoneHerm_ has joined #ruby
jero__ has quit [Ping timeout: 246 seconds]
hotpancakes has joined #ruby
freerobby has quit [Quit: Leaving.]
mistermocha has quit [Ping timeout: 250 seconds]
BTRE has quit [Quit: Leaving]
mwlang has quit [Quit: mwlang]
tubuliferous_ has joined #ruby
BTRE has joined #ruby
tvon has joined #ruby
BTRE has quit [Client Quit]
xcesariox has joined #ruby
ebbflowgo has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
Anderson69s has joined #ruby
tvon has quit [Ping timeout: 252 seconds]
jero__ has joined #ruby
lkba has joined #ruby
jero_ has quit [Ping timeout: 264 seconds]
BTRE has joined #ruby
jero__ has quit [Remote host closed the connection]
QualityAddict has quit [Remote host closed the connection]
QualityAddict has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
nando293921 has joined #ruby
drptbl has quit [Quit: See you later!]
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon has quit [Quit: BRB]
drptbl has joined #ruby
davee_ has joined #ruby
drptbl has quit [Max SendQ exceeded]
tvon has joined #ruby
drptbl has joined #ruby
hotpanca_ has joined #ruby
moeabdol1 has joined #ruby
davee_ has quit [Quit: Leaving]
hotpancakes has quit [Ping timeout: 250 seconds]
ascarter has joined #ruby
arup_r has joined #ruby
<arup_r> Why my faraday request getting 403, but Curl is working? https://gist.github.com/aruprakshit/3a6a682e87be6477b099
moeabdol2 has joined #ruby
Ox0dea has quit [Ping timeout: 244 seconds]
Inside has joined #ruby
Inside has joined #ruby
moeabdol1 has quit [Ping timeout: 244 seconds]
barajasfab has joined #ruby
Inside_ has quit [Ping timeout: 246 seconds]
arup___ has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
<arup___> any hints to my problem
codecop has joined #ruby
smathy_afk is now known as smathy
unreal_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<smathy> arup___, you should change your key, you included it in the error.txt in your gist.
<arup___> what key smathy?
<smathy> arup___, your auth key that you 'xxx'ed elsewhere.
hotpanca_ has quit []
ramfjord has joined #ruby
unreal has quit [Ping timeout: 240 seconds]
<arup___> thanks.. forgot to remove it
griffindy has joined #ruby
gizmore has joined #ruby
ss_much has joined #ruby
diegoviola has joined #ruby
blackmesa has joined #ruby
astrobun_ has joined #ruby
youch has quit [Ping timeout: 244 seconds]
threh has quit [Ping timeout: 244 seconds]
tvon has quit [Ping timeout: 252 seconds]
AndyBotwin has joined #ruby
Aviio has quit [Remote host closed the connection]
crank1988 has quit [Max SendQ exceeded]
gregf has quit [Quit: WeeChat 1.4]
astrobun_ has quit [Ping timeout: 246 seconds]
crank1988 has joined #ruby
e4xit has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvon has joined #ruby
sneakerhax has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
jcdesimp has joined #ruby
mjuszczak has quit []
<Papierkorb> Is there something faster do sort in descending fashion other than doing the_array.sort_by(&:foo).reverse ?
<Papierkorb> faster as in 'takes less time'.
Synthead has quit [Ping timeout: 252 seconds]
rehat has joined #ruby
tubuliferous_ has joined #ruby
<yxhuvud> Papierkorb, how many elements are there?
dvinciguerra has joined #ruby
freerobby has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Papierkorb> yxhuvud: Around 1k atm, expected to rise. But I'm also interested if there's simply a better solution to that line
lkkjhg has joined #ruby
rubie has quit [Remote host closed the connection]
GodFodder has joined #ruby
GodFodder has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
rubie has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
dvinciguerra has quit [Ping timeout: 248 seconds]
Synthead has joined #ruby
tenderlove has quit [Remote host closed the connection]
<rehat> anyone know how to fix this error with making http "openssl::ssl::sslerror: ssl_connect returned=1 errno=0 state=sslv3 read server certificate b: certificate verify failed"
tenderlove has joined #ruby
jaruga has joined #ruby
freerobby has quit [Quit: Leaving.]
lkkjhg has quit [Read error: Connection reset by peer]
Aviio has joined #ruby
<Papierkorb> rehat: quick guess: the connection is trying to use SSLv3 which is no longer supported by your OpenSSL installation (As it should be the case).
<rehat> ahh ok so I just need to update that gem?
<Papierkorb> No, if that is the case, you need to update the server.
Aviio has quit [Client Quit]
<Papierkorb> SSLv3 is dead and must be kept dead. It's broken by design.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Papierkorb> rehat: Please try doing a random HTTPS request, like https://google.com/ and see, if it works or has validation errors too.
<rehat> oh the server is "https://itunes.apple.com/search?"
<rehat> ok
bronson has joined #ruby
sdothum has joined #ruby
<rehat> yeah I get the same thing with https://google.com/
<Papierkorb> Would really surprise me if Apple would even allow SSLv3 connections
<Papierkorb> rehat: then my wild guess was wrong ;)
davedev24 has quit []
<Papierkorb> rehat: Does HTTPS work when you do the same request using curl on the CLI?
BSaboia has joined #ruby
<rehat> have not tried that
yqt has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<rehat> yeah curl works, idk maybe I should try a different machine lol
<Papierkorb> rehat: Please paste your code on gist.github.com or pastie.net
rgtk has joined #ruby
<Papierkorb> rehat: Works on my machine™
Anderson69s has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
<rehat> yeah it might be my machine. Maybe I need to update my gems, kinda new with ruby so I probably messed something up with rvm
<rehat> is there a update all installed gems command?
<Papierkorb> Yes: $ gem update
<rehat> thanks
<Papierkorb> If you're using the user local installed gems for your project, if you're using bundler, do $ bundle update
JohnBat26 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bb010g has joined #ruby
<Papierkorb> rehat: what's your ruby version and platform?
<rehat> ruby 2.2.1 OSX
youch has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
<Papierkorb> Shouldn't be an issue if nothing is ancient though. Make sure your firewalls and proxy is correct set up (if applicable)
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rehat> I'm just at a coffee shop lol
<Papierkorb> rehat: No idea how OSX handles things, but that ruby version is easily recent enough
drptbl_ has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Es0teric_ has joined #ruby
Es0teric has quit [Ping timeout: 252 seconds]
valetudo has quit [Ping timeout: 268 seconds]
JohnBat26 has quit [Read error: Connection reset by peer]
drptbl has quit [Ping timeout: 276 seconds]
threh has joined #ruby
JohnBat26 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<rehat> haha it works in python. is there a way to remove rvm completely? I think it is messing shit up
<Papierkorb> I don't use RVM, but iirc they do have a uninstall guide in their readme or something
<rehat> ok
<rehat> what do you use
<Papierkorb> The systems' ruby @ 2.3.0
<rehat> ahh
<Papierkorb> chruby works ok @work though
<Papierkorb> It's also less magic than rvm
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
postmodern has quit [Quit: Leaving]
GodFodder has joined #ruby
brt has joined #ruby
valetudo has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
Yzguy has joined #ruby
<rehat> yeah rvm was the problem for some reason, Going to try chruby thanks
<havenwood> rehat: rvm implode
<havenwood> rehat: ^ to remove it
<rehat> havenwood: yeah I did that thanks :)
rubie has quit [Remote host closed the connection]
rehat has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
darkf has joined #ruby
icbm has joined #ruby
David27 has joined #ruby
icbm has quit [Client Quit]
Ox0dea has joined #ruby
troulouliou_div2 has joined #ruby
hxegon has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
ascarter has joined #ruby
GodFoddar has quit [Quit: Leaving]
mistermocha has joined #ruby
a11_ has joined #ruby
tristanp has joined #ruby
JohnBat26 has quit [Ping timeout: 250 seconds]
tristanp has quit [Ping timeout: 252 seconds]
mistermocha has quit [Ping timeout: 276 seconds]
a11_ has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
tubuliferous_ has joined #ruby
Timba-as has quit [Quit: Be back later ...]
Timba-as has joined #ruby
_blizzy_ has quit [Quit: Leaving]
moeabdol2 has quit [Ping timeout: 276 seconds]
hxegon has quit [Quit: PEACE OUT]
arup___ has quit []
last_staff has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
Timba-as has quit [Ping timeout: 276 seconds]
barajasfab has quit [Quit: Leaving]
Mattx has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
dvinciguerra has joined #ruby
Don_John has joined #ruby
duncannz has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
ytti has quit [Ping timeout: 240 seconds]
rehat has joined #ruby
ytti has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
ascarter has quit [Ping timeout: 276 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
Swappticon has joined #ruby
Inside has quit [Ping timeout: 244 seconds]
trinaldi has joined #ruby
devbug_ has joined #ruby
Inside has joined #ruby
smathy has joined #ruby
jnj has joined #ruby
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
<jnj> I think I might be using private wrong in Ruby, I'm not entirely sure. I have a class that messes around with hashes, the initialize method creates the hash and then fills it using build_hash(), and I want build_hash private but I keep on getting the error `initialize': private method `build_hash' called for #<Inventory:0x007f41eff0fcc0> (NoMethodError)
nando293921 has joined #ruby
<Ox0dea> jnj: That means you're invoking #build_hash with an explicit receiver, which is precisely what privatization prevents.
<Ox0dea> You're not even allowed to say `self.private_method` (yet).
htmldrum has joined #ruby
htmldrum_ has joined #ruby
<shevy> rehat have you been programming before? you don't seem to be the average ruby newcomer
last_staff has quit [Quit: last_staff]
devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Inside has quit [Disconnected by services]
Inside_ has joined #ruby
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
<jnj> Ox0dea: Ah, ok - so would the explicit receiver in this case would be calling new? And when you say yet, does that mean that it's in the works? Also, what would be the best way to get around this?
<smathy> Deja vu.
threh has quit [Ping timeout: 250 seconds]
tvon has quit [Remote host closed the connection]
tvon has joined #ruby
<smathy> jnj, probably in your initialize you're doing something like: foo = self.new ...; foo.build_hash; foo
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
<smathy> Not self.new - but the `.build_hash` bit is what's important.
<Ox0dea> jnj: Are you familiar with Ruby's notion of implicit `self`?
<jnj> Ox0dea: somewhat, but honestly I really just skimmed through that part in The Well Grounded Rubyist, I'll pull up that section now
<jnj> smathy: Yeah, I'm doing exactly that
cdg has joined #ruby
Yzguy has quit [Quit: Zzz...]
<smathy> jnj, right, the left hand side of the . is an explicit receiver, that's what Ox0dea is telling you that you can't do with private. That's actually what private specifically (and only) prevents.
astrobun_ has joined #ruby
<smathy> jnj, the good news is that you don't have to do that, `initialize` is an instance method, your object is already instantiated - just call the private methods with an implicit receiver.
<rehat> shevy: yeah mainly iOS
tesuji has joined #ruby
Musashi007 has joined #ruby
<Musashi007> @ropeney thank you for the help last night; i worked it out
ascarter has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
<jnj> smathy: oh duh, and the implicit reciever is self whenever a method is called! I fixed my issue, I just had to turn the call from self.build_hash in init to build_hash
jcdesimp_ has joined #ruby
<smathy> jnj, bingo!
djbkd has joined #ruby
<smathy> jnj, anyone is forgiven for stumbling with Ruby's private implementation.
djbkd has quit [Remote host closed the connection]
<smathy> (I was asking about it myself just yesterday :)
ta_ has joined #ruby
rubie has joined #ruby
Jackneill has quit [Remote host closed the connection]
astrobun_ has quit [Ping timeout: 268 seconds]
jcdesimp has quit [Ping timeout: 268 seconds]
<jnj> Yeah, it's a little bit confusing but I think I got the hang of it now
ascarter has quit [Ping timeout: 244 seconds]
fullofca_ has joined #ruby
<smathy> jnj, basically `protected` does the actual "check it's being called on me or a subclass" and `private` just prevents an explicit received no matter where you're calling it (which basically means that the method can only be called within the current lexical scope).
<Ox0dea> Or with #send. ^_^
fullofcaffeine has quit [Ping timeout: 264 seconds]
<smathy> :)
tvon has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
sudoubuntu has joined #ruby
sneakerhax has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
mhib has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 252 seconds]
hays_ has quit [Ping timeout: 240 seconds]
tvon has joined #ruby
duncannz has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
Yzguy has quit [Quit: Cya]
bronson has joined #ruby
zenlot has joined #ruby
zenlot6 has quit [Ping timeout: 260 seconds]
jaruga has quit [Quit: jaruga]
bronson has quit [Ping timeout: 252 seconds]
jnj has quit [Ping timeout: 276 seconds]
Yzguy has joined #ruby
Snowy has joined #ruby
Yzguy has quit [Client Quit]
duderonomy has quit [Ping timeout: 240 seconds]
rubie has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
Snowy has quit [Remote host closed the connection]
sneakerhax has joined #ruby
LoneHermit has joined #ruby
saneax_AFK is now known as saneax
<Musashi007> man the haml room sure is dead lol
<Musashi007> can i ask a haml question here ?
<smathy> Probably better in #rubyonrails
QualityAddict has quit [Remote host closed the connection]
QualityAddict has joined #ruby
uglybandersnatch has joined #ruby
Rutix has quit []
LoneHermit has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
rubie has joined #ruby
marcdel_ has joined #ruby
Es0teric_ has quit [Ping timeout: 268 seconds]
uglybandersnatch has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
jhn has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has quit [Ping timeout: 260 seconds]
GnuYawk has joined #ruby
Inside_ has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
mistermocha has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Rutix has joined #ruby
Rutix has joined #ruby
rgtk has quit [Remote host closed the connection]
Musashi007 has joined #ruby
kfpratt has joined #ruby
Mattx has joined #ruby
dmr8 has quit [Quit: Leaving]
mistermocha has quit [Ping timeout: 276 seconds]
dvinciguerra has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
BTRE has joined #ruby
Yzguy has quit [Client Quit]
jnj has joined #ruby
brent_ has joined #ruby
tubuliferous_ has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
gregf has joined #ruby
Mattx has quit [Quit: Leaving]
drptbl has joined #ruby
kfpratt has quit [Remote host closed the connection]
<brent_> Was having an error in my rspec test and can't seem to find out why
tubuliferous_ has quit [Ping timeout: 244 seconds]
kfpratt has joined #ruby
<brent_> would appreciate it if anyone may be able to help with it http://hastebin.com/fehogevive.vbs
Noxilex has joined #ruby
kfpratt has quit [Remote host closed the connection]
<brent_> it seems like it's treating secret_word as nil, even tough it the test says it runs #pick_secret_word, which shoudl set secret_word to a str
drptbl_ has quit [Ping timeout: 248 seconds]
rubie has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
astrobun_ has joined #ruby
_blizzy_ has joined #ruby
davee_ has joined #ruby
tvon has quit [Remote host closed the connection]
dvinciguerra has joined #ruby
BillSussman has joined #ruby
binaryplease2 has quit [Quit: WeeChat 1.4]
<Ox0dea> brent_: You're only setting a local variable in #pick_secret_word.
astrobun_ has quit [Ping timeout: 246 seconds]
<brent_> is that because :secret_word is under attr_reader?
<brent_> if it was under attr_accessor, would that change it?
<Ox0dea> I don't understand the question.
binaryplease has joined #ruby
<brent_> well i thought i defined secret_word on init
rubie has joined #ruby
<Ox0dea> `attr_accessor` would give you a writer in addition to a reader, sure, but you'd have to assign to it with `self.secret_word` to disambiguate it from a local variable assignment.
AndyBotwin has quit [Ping timeout: 260 seconds]
<Ox0dea> Better just to assign to the instance variable directly.
<havenwood> brent_: `@sekret_word` is an instance variable that can be shared between methods
<brent_> thought thats what iw as doing
<havenwood> brent_: the `attr_reader` or for the sake of the external interface to the class
<brent_> because i had secret_word = instead of @secret_word= it was considering it an instance var?
<brent_> i mean local var
sandstrom has joined #ruby
<Ox0dea> brent_: Line 18 is the problem.
<brent_> right
fullofcaffeine has joined #ruby
<brent_> so i just changed it to
<ruby[bot]> brent_: we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/452f686293305ad4cde2
<ruby[bot]> brent_: irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
rubie has quit [Remote host closed the connection]
<havenwood> brent_: How about line 4?
<Ox0dea> havenwood: Nothing wrong with it?
<brent_> sorry, not sure if ruby bot posted that
<brent_> that seems to fix it
<havenwood> Ox0dea: seems fugly to me to call the method right after using the instance variable
<smathy> And the new record holder for most distinct paste services in the shortest time is: brent_ YAY! Crowd goes wild..
<havenwood> when the instance variable suffices...
firstdayonthejob has quit [Ping timeout: 244 seconds]
jnj has quit [Ping timeout: 276 seconds]
<brent_> but why do i need to use @ in some instances and others i don't?
<havenwood> Ox0dea: I guess I'd rather say use ivars.
<Ox0dea> Disambiguation.
fullofca_ has quit [Ping timeout: 246 seconds]
<brent_> all i did was add the @ on that line, but referencing "secret_word" works fine elsewhere
Musashi007 has quit [Quit: Musashi007]
<Ox0dea> brent_: Getters and setters are different things.
<havenwood> brent_: Internally you can just use the instance variable.
<brent_> so for any setting of a the instance var, you need to keep the @
<havenwood> brent_: Try that!
<brent_> for getting you can exclude the @?
<Ox0dea> That's right.
jpfuentes2 has joined #ruby
<smathy> :)
<brent_> okay, perfect
<havenwood> brent_: Without the @ it's a method or local variable.
<brent_> I know i can get the instance variable both ways w/ or w/out the @
th0m_ has quit [Ping timeout: 248 seconds]
<havenwood> A "bareword."
<Ox0dea> brent_: `foo` on its own tries to resolve to a local variable, and if that doesn't work, it tries to be a method call on `self`.
<brent_> is it preferred?
<brent_> i mean which si preferred if you're just getting the instance variable?
<havenwood> brent_: Using the instance variable directly is the simplest, fastest, most descriptive thing - when that suffices.
<Ox0dea> And you should strive to make it suffice.
TheGreatGudsby is now known as TheRealGitGud
<shevy> brent_ using @ directly is faster
<brent_> okay
<brent_> is that what you mean in your 'foo' example 0x0dea?
<Ox0dea> brent_: `attr_reader :foo` is just shorthand for `def foo; @foo; end`. You can see how it lets you refer to instance variable without the asperand.
resin has joined #ruby
<brent_> that if you don't include the @, it will first try to use it as a local variable, then if that doesn't work look for the instance variable?
<Ox0dea> No.
resin has quit [Client Quit]
sandstrom has quit [Quit: My computer has gone to sleep.]
<brent_> sorry, just trying to understand
<havenwood> brent_: If you don't use an @ it'll first try the local variable then the method (which might get or set the instance variable). If you use the @ it's unambiguously the instance variable.
binaryplease has quit [Quit: WeeChat 1.4]
<havenwood> *unless the bareword has parens, then method only
<shevy> yeah!
<shevy> brent_ you must also include the cases with and without parens
<brent_> thans i think i get it
<brent_> i've been including @ everytime, but kept seeing no @ being used in the solutions so tried to not use them
<brent_> sounds like i should keep using them
<Ox0dea> brent_: @ is perfectly fine.
<Ox0dea> Just be wary of @@.
<havenwood> Or $.
<brent_> I understand it's a class and global
<brent_> but what do you mean by be wary of them?
<havenwood> brent_: Don't use them.
<havenwood> brent_: At least don't create them, unless you know why you must.
<epitron> I don't think I've ever needed a @@ variable
<brent_> yeah, understand that w/ global, for sure. thought there would be instances for class
<epitron> I'm hoping to find a use one day
FooMunki has quit [Quit: FooMunki]
<epitron> ^_^
<havenwood> I prefer use undiscovered!
gregf has quit [Quit: WeeChat 1.4]
FooMunki has joined #ruby
Noxilex has quit [Ping timeout: 260 seconds]
<epitron> brent_: a Singleton usually fills the role of a global better