havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
rrichard_ has joined #ruby
rrichardsr3 has quit [Ping timeout: 244 seconds]
dikaio has joined #ruby
pawnbox has joined #ruby
kareeole_ has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
rrichard_ has quit [Client Quit]
Tohuw has joined #ruby
SCHAAP137 has quit [Ping timeout: 265 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
Devalo has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
riobe_ has joined #ruby
pietr0 has quit [Quit: pietr0]
davedev2_ has quit [Ping timeout: 276 seconds]
johnmilton has joined #ruby
idefine has quit [Remote host closed the connection]
Azure has joined #ruby
hxegon is now known as hxegon_afk
riobe has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
riobe_ has quit [Ping timeout: 244 seconds]
yqt has quit [Ping timeout: 244 seconds]
idefine has quit [Remote host closed the connection]
idefine_ has joined #ruby
idefine_ has quit [Remote host closed the connection]
stardiviner has joined #ruby
davedev24 has joined #ruby
rbennacer has quit [Remote host closed the connection]
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
phredus has quit [Remote host closed the connection]
scooter_ has quit [Ping timeout: 250 seconds]
ItSANgo has quit [Quit: Leaving...]
SilverKey has joined #ruby
stardiviner has quit [Ping timeout: 276 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
frem_ has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
mistermocha has joined #ruby
idefine has quit [Read error: Connection reset by peer]
SilverKey has quit [Client Quit]
mistermocha has quit [Remote host closed the connection]
agent_white has quit [Quit: weekend]
ravishankarjha has quit [Ping timeout: 240 seconds]
xall has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
marr has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
adamhess has joined #ruby
adamhess has left #ruby [#ruby]
sp4rrow has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ledestin has joined #ruby
_blizzy_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
jenrzzz has joined #ruby
_blizzy_ has left #ruby [#ruby]
rrichardsr3 has joined #ruby
saneax is now known as saneax_AFK
SCHAAP137 has quit [Quit: Exiting...]
moeabdol has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
aldodelgado has quit [Quit: aldodelgado]
Vile` has quit [Ping timeout: 252 seconds]
moeabdol has quit [Ping timeout: 276 seconds]
dvinciguerra has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
austinprog has joined #ruby
xall has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
amclain has quit [Quit: Leaving]
millerti has joined #ruby
jgt1 has quit [Ping timeout: 260 seconds]
millerti has quit [Client Quit]
[Butch] has quit [Quit: I'm out . . .]
kies has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joneshf-laptop has quit [Ping timeout: 244 seconds]
ItSANgo has joined #ruby
ur5us has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
dikaio has joined #ruby
joneshf-laptop has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
davedev24 has quit [Remote host closed the connection]
gizless has joined #ruby
startupality has joined #ruby
jancel has joined #ruby
Vile` has joined #ruby
gizmore has quit [Ping timeout: 252 seconds]
leitz has quit [Quit: Nappy time]
papachan has joined #ruby
_blizzy_ has joined #ruby
casp has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 265 seconds]
quakephil has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
dikaio has joined #ruby
|ifei5g00d has joined #ruby
jancel has quit [Remote host closed the connection]
tatsuo has quit [Remote host closed the connection]
|ifei5good has quit [Ping timeout: 246 seconds]
davedev24 has joined #ruby
solocshaw has joined #ruby
Madplatypus has joined #ruby
roamingdog has joined #ruby
flashpoint9 has joined #ruby
_blizzy_ has left #ruby ["Leaving"]
quakephil has joined #ruby
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
flashpoint9 has quit [Ping timeout: 252 seconds]
Dimik has joined #ruby
mostlybadfly has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dikaio has joined #ruby
<zacts> yo
dikaio has quit [Max SendQ exceeded]
blaxter has quit [Read error: Connection reset by peer]
tildes has quit [Ping timeout: 265 seconds]
gnufied has quit [Quit: Leaving]
gizless has quit [Ping timeout: 240 seconds]
giz|work|2 has quit [Ping timeout: 240 seconds]
jancel has joined #ruby
startupality has quit [Quit: startupality]
gizless has joined #ruby
agent_white has joined #ruby
oetjenj has quit [Ping timeout: 246 seconds]
moeabdol has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
mooe has joined #ruby
saneax_AFK is now known as saneax
oetjenj has joined #ruby
peterhu has joined #ruby
JoshGlzBrk has joined #ruby
smathy is now known as smathy_afk
peterhu_ has quit [Quit: leaving]
moeabdol has quit [Ping timeout: 246 seconds]
peterhu has quit [Client Quit]
CloCkWeRX has joined #ruby
<diegoviola> I have 500 MB of zip files that contain XML data, I need to fetch all that and unzip/parse the xml and load the data into redis, I need to script this, but I was wondering if Ruby's net::http will do fine or I'll have to use rsync?
jimism has left #ruby ["Leaving"]
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<diegoviola> I'm undecided because I don't want to have to re-run my script if a download fails
<zacts> I would assume there would be a gem solution that is better than rsync, but I'm still a newbie
vdamewood has joined #ruby
<zacts> so I'll let others answer
<zacts> but I would avoid system() calls at least
<diegoviola> just looking for some ideas about how I can implement this
<zacts> I think there is a module for Redis
<zacts> let me find it
<zacts> s/module/gem/
<zacts> sorry
dopamean_ has joined #ruby
<diegoviola> yeah I know that part
<zacts> resque
<diegoviola> my trouble is how to handle the download bulk of data
jenrzzz has joined #ruby
<diegoviola> but I'm afraid we're getting offtopic with this
<zacts> sorry, I'll let others answer
<bazzy> i don't see how that gem has anything to do with this problem
startupality has joined #ruby
<bazzy> the general purpose redis gem is just called 'redis' IIRC
<diegoviola> I'll just do the parser and load of data in ruby and handle the download as a separate script with bash+rsync or something :)
<zacts> bazzy: sorry, my newbieness
<bazzy> oh, np
* zacts idles
<zacts> :-)
<bazzy> sounds like a plan diegoviola
rrichardsr3 has joined #ruby
<diegoviola> thanks
rrichardsr3 has quit [Max SendQ exceeded]
rrichardsr3 has joined #ruby
ur5us has quit [Remote host closed the connection]
nanoz has joined #ruby
sneakerhax has joined #ruby
startupality has quit [Ping timeout: 276 seconds]
rrichardsr3 has quit [Client Quit]
Es0teric has joined #ruby
pawnbox has joined #ruby
justbleed has joined #ruby
papachan has quit [Ping timeout: 240 seconds]
mjs2600 has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Ping timeout: 246 seconds]
quakephil has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
jolamb has quit [Ping timeout: 240 seconds]
croberts has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 250 seconds]
theRoUS has joined #ruby
jancel has quit [Remote host closed the connection]
aphprentice has quit [Quit: Connection closed for inactivity]
bruce_lee has quit [Read error: Connection reset by peer]
croberts has joined #ruby
mistermocha has joined #ruby
jolamb has joined #ruby
govg has joined #ruby
idefine has joined #ruby
quakephil has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
wilbert has joined #ruby
idefine has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
idefine has joined #ruby
dionysus69 has joined #ruby
croberts_ has joined #ruby
theRoUS` has joined #ruby
replay has quit []
wilbert has quit [Ping timeout: 246 seconds]
jolamb has quit [Ping timeout: 246 seconds]
croberts has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 265 seconds]
jancel has joined #ruby
jdm has joined #ruby
jolamb has joined #ruby
pat_ has joined #ruby
Es0teric has joined #ruby
jdm has quit [Client Quit]
jdmark has joined #ruby
roamingdog has joined #ruby
jancel has quit [Ping timeout: 250 seconds]
roamingdog has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
idefine has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
idefine has joined #ruby
jwren has quit [Quit: leaving]
jancel has joined #ruby
idefine has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 265 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
pat_ has left #ruby ["Leaving"]
pat_ has joined #ruby
johnmilton has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
<quazimodo> is it possible to subprocess out another binary, in my case phantomjs, then fork that?
roamingdog has joined #ruby
startupality has joined #ruby
roamingdog has quit [Remote host closed the connection]
idefine has joined #ruby
j_mcnally has joined #ruby
startupality has quit [Ping timeout: 260 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
jancel has quit [Remote host closed the connection]
kareeoleez has joined #ruby
<eam> quazimodo: could you explain the process you're imagining in a bit more detail?
braincras has quit [Quit: bye bye]
johnmilton has joined #ruby
<quazimodo> eam: ok so when I run my tests i use guard, each time it starts over, forking from something called zeus that preloads my rails environment. That makes the tests start almost immediately. But at some point i need phantomjs for a test, and it's not on. The test runner turns it out and sets up a socket to interact with it. That got me thinking if it's possible to preload phnatomjs like that. Ignoring the
<quazimodo> socket stuff, can it even be done?
kareeoleez has quit [Ping timeout: 244 seconds]
<eam> possibly, it depends on how phantomjs works
<eam> in the abstract, yes you can call fork and make a copy of any process. But the devil's in the details
<eam> the runtime needs to be structured with this kind of behavior in mind
jancel has joined #ruby
<eam> there are even things you can do in your rails environment which can make the zeus approach fail
vdamewood has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
gix has quit [Ping timeout: 265 seconds]
casp has quit [Remote host closed the connection]
<quazimodo> hrm
<quazimodo> can you give me an example so I get it?
<eam> of how forking like this might fail?
idefine has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> quazimodo: does zeus connect to your database in the preloaded rails environment in the pristine parent copy?
<eam> if so, something like this can occur: https://github.com/brianmario/mysql2/pull/463
ByronJohnson has quit [Quit: Restarting client]
Es0teric has joined #ruby
<eam> in general, shared file descriptors, threads, signals, and assumptions about sequencing are what will screw stuff up
gix has joined #ruby
<quazimodo> yeah ok
<quazimodo> i need to think about it more
idefine has joined #ruby
<quazimodo> i *think* zeus establishes conns after forking
<quazimodo> I see what you mean
<eam> most issues can be worked around, the real question is what phantomjs is behaving like under the hood. The details suddenly matter
<quazimodo> right
<quazimodo> i guess what I'd really like is if i could just turen on phantomjs at the start and keep it on
<quazimodo> anyway
<quazimodo> i was just curious
<eam> I don't really know phantomjs so I can't offer a real opinion about it in particular :)
idefine has quit [Remote host closed the connection]
roamingdog has joined #ruby
s2013 has joined #ruby
SilverKey has joined #ruby
ByronJohnson has joined #ruby
ByronJohnson has quit [Client Quit]
ByronJohnson has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
<quazimodo> cooly
<quazimodo> thank you
idefine has joined #ruby
arescorpio has quit [Quit: Leaving.]
charliesome has joined #ruby
charliesome has quit [Client Quit]
skolman_ has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
skolman_ has joined #ruby
idefine has joined #ruby
moeabdol has joined #ruby
RegulationD has joined #ruby
jancel has quit [Remote host closed the connection]
davedev24 has quit []
joneshf-laptop has quit [Ping timeout: 252 seconds]
moeabdol has quit [Client Quit]
skolman_ has quit [Ping timeout: 260 seconds]
safe has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
Yiota has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
zapata has quit [Quit: WeeChat 1.5]
Es0teric has quit [Quit: Computer has gone to sleep.]
zapata has joined #ruby
safe has quit [Client Quit]
safe has joined #ruby
lewis1711 has joined #ruby
<lewis1711> is there anyway to do something like "has_next?" on an enumerator?
dionysus69 has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
joneshf-laptop has joined #ruby
ramfjord has joined #ruby
moeabdol has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<lewis1711> or, I guess to re-phrase - nothing wrong with exceptions-as-control-flow in ruby, i guess? judging by the way this API has been written
ropeney has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ropeney has quit [Client Quit]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
flashpoint9 has joined #ruby
lxsameer has joined #ruby
jancel has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0lph1n98 has joined #ruby
bronson has joined #ruby
s2013 has joined #ruby
siovene has quit [Quit: Connection closed for inactivity]
crystal77 has joined #ruby
shinnya has joined #ruby
mwlang has quit [Quit: mwlang]
Es0teric has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
mwlang has joined #ruby
kgrz has joined #ruby
pawnbox has joined #ruby
pawnbox has joined #ruby
aldodelgado has joined #ruby
aldodelgado has quit [Client Quit]
Es0teric has quit [Client Quit]
bronson has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 244 seconds]
jancel has quit [Remote host closed the connection]
Caerus|Away has quit [Quit: rm -rf /* (oops!)]
xall has joined #ruby
kgrz has quit [Ping timeout: 265 seconds]
mwlang has quit [Quit: mwlang]
noService has joined #ruby
jdmark has quit [Remote host closed the connection]
mooe has quit [Quit: Connection closed for inactivity]
rbennacer has joined #ruby
sp4rrow has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdmark has joined #ruby
Caerus has joined #ruby
<Caerus> hello #ruby :)
smathy_afk has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
jdmark has quit [Remote host closed the connection]
hk238 has joined #ruby
mistermocha has quit [Remote host closed the connection]
darkxploit has joined #ruby
smathy has joined #ruby
jobewan has joined #ruby
gizless has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
wnd has quit [Excess Flood]
wnd has joined #ruby
Yiota has joined #ruby
ramfjord has joined #ruby
yfeldblum has quit [Remote host closed the connection]
xlegoman has quit [Quit: xlegoman]
yfeldblum has joined #ruby
Yeomra has joined #ruby
pawnbox has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
shinnya has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
paradisaeidae_ has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
sauvin has joined #ruby
kareeoleez has joined #ruby
bronson has joined #ruby
dopamean_ has quit [Ping timeout: 265 seconds]
roamingdog has quit []
jancel has joined #ruby
darkxploit has quit [Ping timeout: 244 seconds]
terminalrecluse has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 240 seconds]
crystal77 has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
paradisaeidae_ has quit [Remote host closed the connection]
kareeole_ has joined #ruby
safe has quit [Quit: Leaving]
d0nn1e has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
kareeol__ has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
crystal7_ has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
codecop has joined #ruby
kareeole_ has quit [Ping timeout: 252 seconds]
Vile` has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
crystal7_ has quit [Client Quit]
kareeoleez has quit [Ping timeout: 276 seconds]
darkxploit has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
df has quit [Quit: .]
darkxploit has joined #ruby
jenrzzz has joined #ruby
Es0teric has joined #ruby
kareeol__ is now known as kareeoleez
jancel has quit [Remote host closed the connection]
zast has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rbennacer has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.5]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
d0lph1n98 has quit [Ping timeout: 250 seconds]
tax has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
fantasticsid has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae has quit [Client Quit]
yfeldblum has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
jdmark has joined #ruby
Ishido has joined #ruby
Vile` has joined #ruby
jdmark has left #ruby [#ruby]
sneakerhax has quit [Quit: back later]
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
antgel has joined #ruby
tildes has joined #ruby
quazimodo has quit [Ping timeout: 276 seconds]
lewis1711 has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
janebootydoe has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
d0lph1n98 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bronson has quit [Remote host closed the connection]
mistermocha has joined #ruby
d0lph1n98 has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 265 seconds]
kareeoleez has quit [Remote host closed the connection]
czerasz has joined #ruby
czerasz has quit [Remote host closed the connection]
kareeoleez has joined #ruby
czerasz has joined #ruby
angseus has joined #ruby
<austinprog> I dont know why but I just understand ruby compared to python
czerasz has quit [Max SendQ exceeded]
angseus has quit [Client Quit]
czerasz has joined #ruby
angseus has joined #ruby
kareeoleez has quit [Ping timeout: 265 seconds]
angseus has quit [Client Quit]
angseus has joined #ruby
riddley has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
fantasticsid has quit [Remote host closed the connection]
fantasticsid has joined #ruby
fantasticsid has quit [Remote host closed the connection]
s00pcan has quit [Remote host closed the connection]
kareeoleez has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
lewis1711 has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
Yeomra has quit [Ping timeout: 265 seconds]
<bazzy> is it generally better practice to use self.instance in class methods rather than @instance ???
<bazzy> in class instance methods*
pawnbox has quit [Remote host closed the connection]
<bazzy> I assume it's better because it allows the opportunity to "API" it rather than force it to be a variable..
<lewis1711> I never thought about doing that. seems legit
ta_ has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
pawnbox has joined #ruby
sinkensabe has joined #ruby
brianpWins has joined #ruby
<bazzy> if I have a class A with @instance ... and @instance.func exists... how do I represent @instance.func as a symbol from the scope of A's definition
yfeldblum has joined #ruby
crameth has joined #ruby
zyzioziom has joined #ruby
<bazzy> forget it (seriously)
brianpWins_ has joined #ruby
brianpWins has quit [Read error: Connection reset by peer]
brianpWins_ is now known as brianpWins
angseus has quit [Quit: leaving]
angseus has joined #ruby
Yeomra has joined #ruby
jgt1 has joined #ruby
nhhc has joined #ruby
bronson has joined #ruby
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skolman_ has joined #ruby
brianpWins_ has joined #ruby
sp4rrow has joined #ruby
brianpWins has quit [Read error: Connection reset by peer]
brianpWins_ is now known as brianpWins
sp4rrow has quit [Client Quit]
riddley has joined #ruby
the_drow has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
skolman_ has quit [Ping timeout: 276 seconds]
Devalo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
yfeldblum has joined #ruby
firstdayonthejob has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
brianpWins_ has joined #ruby
brianpWins has quit [Ping timeout: 240 seconds]
brianpWins_ is now known as brianpWins
ramfjord has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
sinkensabe has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
bobbycvi has quit [Quit: ...]
the_drow has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
_biox has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pawnbox has quit [Remote host closed the connection]
blackgoat has joined #ruby
Vile` has joined #ruby
epistrephein has joined #ruby
ur5us has joined #ruby
pawnbox has joined #ruby
konsolebox has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.5]
<epistrephein> hello there, question: Regexp.union(["word1", "word2", "word3"]) conveniently returns /word1|word2|word3/
<epistrephein> is there an equally quick way to get /^word1$|^word2$|^word3$/ ?
kareeoleez has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
ramfjord has quit [Ping timeout: 250 seconds]
Vile` has quit [Ping timeout: 260 seconds]
zyzioziom has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
kareeoleez has quit [Ping timeout: 240 seconds]
<pat_> would "Regexp.union(["word1", "word2", "word3"].map { |s| "^" + s + "$" })" work?
shinnya has joined #ruby
<epistrephein> pat_ i tried, but it escapes ^ and $, so they become literal ^ and $
<epistrephein> i also tried Regexp.new(["word1", "word2", "word3"].map{|x| "^#{x}$"}.join('|')) which is close to the end result, but it doesn't do escaping
<pat_> oh replace " with '
MyMind has quit [Quit: WeeChat 1.5-dev]
<epistrephein> still escaping: Regexp.union(["word1", "word2", "word3"].map { |s| '^' + s + '$' }) => /\^word1\$|\^word2\$|\^word3\$/
<hanmac> >> /^#{Regexp.union(["word1", "word2", "word3"])}$/
<ruby[bot]> hanmac: # => /^(?-mix:word1|word2|word3)$/ (https://eval.in/571437)
the_drow has joined #ruby
<epistrephein> awesome!
xall has joined #ruby
<epistrephein> thanks, that's perfect :)
SegFaultAX has quit [K-Lined]
<pat_> >> Regexp.union(["word1", 'word2', 'word3'].map { |s| /^#{s}$/ })
<pat_> Sorry I'm new to ruby too. both seem to work
SegFaultAX has joined #ruby
<epistrephein> it does pat_ , but you should be careful on your input, because if you replace "word1" with "word$" it won't escape the $
<pat_> I see. Thanks
startupality has joined #ruby
quazimodo has joined #ruby
Vile` has joined #ruby
startupality has quit [Ping timeout: 265 seconds]
skade has joined #ruby
skade has quit [Client Quit]
janebootydoe has quit [Quit: Leaving]
ta_ has quit [Ping timeout: 240 seconds]
zyzioziom has joined #ruby
tax has quit [Ping timeout: 252 seconds]
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Dimik has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
djbkd has joined #ruby
jalnt_ has joined #ruby
jalnt_ has quit [Remote host closed the connection]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
neanderslob has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
dsea11 has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
qwkguo has joined #ruby
SCHAAP137 has joined #ruby
zyzioziom has quit [Ping timeout: 276 seconds]
dsea has quit [Ping timeout: 265 seconds]
qwkguo has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
sinkensabe has joined #ruby
blackgoat has quit [Ping timeout: 276 seconds]
neanderslob has joined #ruby
isxek has joined #ruby
detbyv has joined #ruby
hilo has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
toretore has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
detbyv has quit [Remote host closed the connection]
the_drow has joined #ruby
TheCubeLord has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 250 seconds]
<kareeoleez> Has anyone issues in OSX with rvm to make the version persistent ? I've used --default and "global" but on a new session the version is lost
sembei has joined #ruby
lyshmk has joined #ruby
tatsuo has joined #ruby
sinkensabe has joined #ruby
lyshmk has quit [Remote host closed the connection]
<Caerus> rvm --default use 2.2.5 ?
xall has joined #ruby
kgrz has joined #ruby
nhhc has quit [Ping timeout: 240 seconds]
<Caerus> does the same on linux, latches on to the latest version... although the selected defaults just appears so upon doing ruby list
neanderslob has quit [Remote host closed the connection]
the_drow has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
coffeecupp has joined #ruby
spider-mario has joined #ruby
skade has joined #ruby
<kareeoleez> Caerus: not working for some reason
<kareeoleez> works for this terminal session
<kareeoleez> If I open a new one it fails with the old version
<kareeoleez> then I must re-run --default
<Caerus> kareeoleez, tried on linux, behaves the same
sinkensabe has quit [Read error: Connection reset by peer]
<kareeoleez> it doesn't on osx
<Caerus> upon opening a new console, rvm list shows desired default marked with *
startupality has joined #ruby
<Caerus> but latests is shown as => (current)
<Caerus> so we're forced to re-run rvm use (desiredversion)
solocshaw has quit [Ping timeout: 260 seconds]
Jackneill has joined #ruby
<agent_white> a
<Caerus> my point being, it's not only on mac, maybe we're using the --default flag wrong? doubt it though, rvm doesn't complain about it :(
sinkensabe has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
neanderslob has joined #ruby
startupality has quit [Client Quit]
ferr has joined #ruby
<kareeoleez> Caerus: maybe I should add it to .profile
djbkd has joined #ruby
startupality has joined #ruby
startupality has quit [Client Quit]
djbkd has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
lewis1711 has quit [Quit: Ex-Chat]
<Caerus> kareeoleez, I suppose thats the dirty fix
troulouliou_div2 has joined #ruby
startupality has quit [Client Quit]
sdothum has joined #ruby
<Caerus> heh
coffeecupp has quit [Quit: WeeChat 1.5]
startupality has joined #ruby
startupality has quit [Client Quit]
blaxter has joined #ruby
pulkit4tech has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
<kareeoleez> :D
Devalo has quit [Remote host closed the connection]
the_drow has joined #ruby
skade has joined #ruby
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
kgrz has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
platzhirsch has joined #ruby
austinprog has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
madgen has joined #ruby
sinkensa_ has quit [Read error: Connection reset by peer]
platzhirsch has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
d0lph1n98 has joined #ruby
jinie has joined #ruby
the_drow has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
|ifei5g00d has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
millerti has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
jinie has joined #ruby
jinie has quit [Client Quit]
jinie has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
dvycuo has joined #ruby
jinie has quit [Client Quit]
lessless has joined #ruby
jinie has joined #ruby
KINGSABRI has quit [Ping timeout: 240 seconds]
KINGSABRI has joined #ruby
dvycuo has quit [Remote host closed the connection]
der-landgraf has quit [Quit: WeeChat 1.5]
djbkd has joined #ruby
der-landgraf has joined #ruby
lessless has quit [Client Quit]
the_drow has quit [Quit: This computer has gone to sleep]
czerasz has quit [Ping timeout: 276 seconds]
duncannz has quit [Remote host closed the connection]
xall has quit [Ping timeout: 260 seconds]
ropeney has joined #ruby
ykewmi has joined #ruby
ur5us has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 260 seconds]
d0lph1n98 has quit [Ping timeout: 260 seconds]
xall has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
Masonn has joined #ruby
browndawg has joined #ruby
ur5us has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
itguru has joined #ruby
ferr has joined #ruby
<browndawg> Take a look at this. https://pastee.org/m9w2x
ur5us has quit [Ping timeout: 244 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
sinkensabe has joined #ruby
<browndawg> even though I froze the instance (I know I didn't freeze the class), from the POV of the user, the instance still got "mutated", right?
jgt1 has quit [Ping timeout: 276 seconds]
<browndawg> Is there a good reason for this?
<browndawg> Like everytime I have to be reasonably sure that an object will behave, I have to freeze both the class and object...
<browndawg> The documentation is also misleading. "Prevents further modifications to an object". If I shadow a method on the class, from my POV the instance starts throwing out different output. From my POV it got mutated.
<browndawg> Any comments?
<browndawg> This is one of those things in ruby that don't 'just work'. I call freeze on a string expecting it to always print the same thing, but someone monkey patches the String class to annoy me.
d0lph1n98 has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
<browndawg> I mean, I know it's *technically* correct. I'm only freezing the instance, not the class. But I'm still able to simulate modifications by patching methods on the class...
<browndawg> DAE feel the documentation should mention this...
moeabdol1 has joined #ruby
<jhass> I feel it's pretty obvious, besides wide use of .freeze is not very common in the community IME
<jhass> but feel free to send a doc patch to point it out
moeabdol has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
<browndawg> jhass: It *is* obvious... to a rubyist.
<browndawg> but it will trip up a lot of people coming to ruby, like my friend who pointed it out 10 minutes ago
<browndawg> he comes from python
kam270 has joined #ruby
chipotle has quit [Ping timeout: 252 seconds]
Yeomra has quit [Quit: WeeChat 1.5]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
yfeldblum has quit [Ping timeout: 250 seconds]
Vile` has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
sepp2k has joined #ruby
tatsuo has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
quazimodo has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
itguru has quit [Quit: Leaving.]
hadronzoo has quit [Ping timeout: 244 seconds]
Kruppe has quit [Ping timeout: 244 seconds]
hadronzoo has joined #ruby
Kruppe has joined #ruby
agent_white has quit [Quit: Leaving]
Devalo has joined #ruby
tildes has quit [Ping timeout: 265 seconds]
Devalo has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
djbkd has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
startupality has joined #ruby
sinkensabe has joined #ruby
startupality has quit [Client Quit]
djbkd has quit [Ping timeout: 265 seconds]
leitz has joined #ruby
startupality has joined #ruby
d0lph1n98 has quit [Ping timeout: 260 seconds]
nando293921 has quit [Quit: Lost terminal]
nando293921 has joined #ruby
RegulationD has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
kam270 has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
gheegh has joined #ruby
tildes has joined #ruby
codeurge has joined #ruby
trinaldi has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
xall has quit [Ping timeout: 260 seconds]
madgen has joined #ruby
ferr has quit [Ping timeout: 260 seconds]
jancel has joined #ruby
platzhirsch has joined #ruby
codeurge has quit [Client Quit]
codeurge has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
hanmac has quit [Ping timeout: 276 seconds]
govg has quit [Quit: leaving]
d0lph1n98 has joined #ruby
|ifei5g00d has joined #ruby
|2701 has joined #ruby
lxsameer has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
noobsu has joined #ruby
kgrz has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
thesheff17 has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Todd has quit [Ping timeout: 260 seconds]
Vile` has joined #ruby
chipotle has joined #ruby
hanmac has joined #ruby
charliesome has joined #ruby
<leitz> Well, another drat. Started thinking about how to refactor a class and began with mild edits to the code. Then realized there was an older git branch where I had started the same thing.
kgrz has quit [Ping timeout: 260 seconds]
Lomex has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
epistrephein has quit [Quit: Textual IRC Client: www.textualapp.com]
nanoz has quit [Quit: <3]
sinkensabe has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
Caerus is now known as Caerus|Away
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Todd has joined #ruby
Lomex has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
<shevy> hehe
<shevy> 90% perfection is acceptable too leitz!
lgrabh has joined #ruby
<leitz> Yeah. Still, my classes are pretty messed up and I've coded to an unsure plan. Trying to fix that.
<leitz> And Good Morning shevy!
startupality has quit [Quit: startupality]
startupality has joined #ruby
ykewmi has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
startupality has quit [Client Quit]
jancel has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 252 seconds]
sinkensabe has quit [Ping timeout: 260 seconds]
sinkensabe has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
kam270 has joined #ruby
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Ping timeout: 252 seconds]
jancel has joined #ruby
Madmanden has joined #ruby
Madmanden has quit [Client Quit]
flashpoint9 has joined #ruby
rbennacer has joined #ruby
nankyokusei has joined #ruby
xall has joined #ruby
davedev24 has joined #ruby
kam270 has quit [Ping timeout: 260 seconds]
moeabdol2 has joined #ruby
dopamean_ has joined #ruby
xall has quit [Ping timeout: 246 seconds]
KINGSABRI has quit [Ping timeout: 240 seconds]
araujo_ has joined #ruby
moeabdol1 has quit [Ping timeout: 260 seconds]
moeabdol2 has quit [Client Quit]
platzhirsch has quit [Quit: WeeChat 1.4]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
tekk has quit [Ping timeout: 260 seconds]
brendan- has quit [Ping timeout: 276 seconds]
KINGSABRI_ has joined #ruby
jancel has quit [Remote host closed the connection]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 252 seconds]
jancel has joined #ruby
aries_liuxueyang has joined #ruby
kgrz has joined #ruby
<aries_liuxueyang> hello, ;-)
<aries_liuxueyang> anyone can help me with this question? http://stackoverflow.com/questions/37226521/change-rbenv-download-mirrors
<aries_liuxueyang> thank you. ;-)
oetjenj has joined #ruby
<kgrz> aries_liuxueyang: what's the value of RUBY_BUILD_SKIP_MIRROR in your env?
jancel has quit [Read error: Connection reset by peer]
pulkit4tech has quit [Ping timeout: 265 seconds]
<aries_liuxueyang> I echo that and it's in the quesion.
symm- has joined #ruby
pulkit4tech has joined #ruby
<aries_liuxueyang> Here:
<aries_liuxueyang> aries@mac-book-air: echo $RUBY_BUILD_MIRROR_URL
<aries_liuxueyang> https://ruby.taobao.org/
<shevy> leitz yeah I have that also, for big projects
<shevy> for instance, I have one subdirectory for a fairly large project that has about 30 classes or so, just in that subdirectory alone
edwinvdgraaf has quit [Remote host closed the connection]
<shevy> the classes are, counting documentation and empty newlines, about 100 lines each (so perhaps... 50 lines of code or so)
<shevy> just feels too much to check on so much code, just for one project
<shevy> I like small projects and small gems though
<leitz> shevy, I'm trying to kill a few birds with one stone; learn Ruby, make some useful tools for a game, and have fun.
<shevy> leitz you can see similar philosophies e. g. in manveru's innate https://github.com/Ramaze/innate
<shevy> games rule
<aries_liuxueyang> kgrz: seen that?
<leitz> shevy, I like the idea of rcov! Didn't know it was there.
<leitz> Testing, mostly rspec, is on my agenda as well. I've done a little but not made sure everything was there.
<leitz> The other advantage is that the game I play lends itself to small coding projects.
<leitz> The other other advantage is that Ruby is fun.
<aries_liuxueyang> hello? anyone can help me?
sergey_makagon has joined #ruby
kam270 has joined #ruby
mdw has joined #ruby
startupality has joined #ruby
sergey_makagon has quit [Remote host closed the connection]
TheCubeLord has joined #ruby
TheCubeLord has joined #ruby
Vile` has joined #ruby
<toretore> >> 'RUBY_BUILD_SKIP_MIRROR' == 'RUBY_BUILD_MIRROR_URL' # aries_liuxueyang
<ruby[bot]> toretore: # => false (https://eval.in/571556)
TheCubeLord has quit [Client Quit]
tildes has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
<aries_liuxueyang> toretore: sorry, it's a typo.. ;-( That should be RUBY_BUILD_MIRROR_URL.
<aries_liuxueyang> toretore: I updated the question.
<toretore> so what is the value of RUBY_BUILD_SKIP_MIRROR ?
djbkd has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
duoi has quit [Ping timeout: 250 seconds]
<aries_liuxueyang> toretore: it's nothing.
<aries_liuxueyang> I didn't set that variable.
<aries_liuxueyang> kgrz: sorry, I misled your question... ;-( that variable is not defined in my env.
pawnbox has quit [Remote host closed the connection]
Beast has joined #ruby
duoi has joined #ruby
<aries_liuxueyang> toretore: Should I set that?
rkoller has joined #ruby
blackmesa has joined #ruby
sinkensa_ has quit [Ping timeout: 246 seconds]
djbkd has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
<toretore> aries_liuxueyang: no
dfinninger has joined #ruby
<toretore> aries_liuxueyang: do you have the latest version of ruby-build?
konsolebox has quit [Remote host closed the connection]
<aries_liuxueyang> toretore: I installed that just now. it's the latest version.
LoneHerm_ has joined #ruby
<leitz> Any idea why Line 6 prints "edu is 0" instead of "edu is 8"? https://gist.github.com/LeamHall/3ec62cfbee9144927763b8d7ac117822#file-student-rb-L6
`tim` has joined #ruby
startupality has quit [Quit: startupality]
<jhass> >> [777787[4], 777787[4].chr, 777787[4].chr.to_i(16)]
<ruby[bot]> jhass: # => [1, "\x01", 0] (https://eval.in/571559)
<jhass> no idea why it should print 8
<jhass> @upp isn't a string
blackmesa has quit [Ping timeout: 260 seconds]
duoi has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
<toretore> aries_liuxueyang: then i don't know
<aries_liuxueyang> toretore: thank you all the same. ;-)
zyzioziom has joined #ruby
duoi has joined #ruby
lxsameer has joined #ruby
pawnbox has joined #ruby
<leitz> jhass, thanks! In my head it was a hex number but it should generally be treated as a string.
<leitz> Quotes around the declaration solved the issue.
nanoz has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
ltd_ has quit [Ping timeout: 244 seconds]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
b|ackwolf has joined #ruby
rbennace_ has joined #ruby
<b|ackwolf> would suggest a ruby web framework for a pomodoro app?
<b|ackwolf> apeiros: I did look through that.
<jhass> mh, not sure what a pomodoro app would need a backend for at all?
<jhass> for the base functionality at least
browndawg has quit [Ping timeout: 244 seconds]
<b|ackwolf> jhass: I know.
rbennacer has quit [Ping timeout: 265 seconds]
<b|ackwolf> jhass: but RoR is far from that.
<b|ackwolf> how about hanamirb?
zyzioziom has quit [Ping timeout: 240 seconds]
dfinninger has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 250 seconds]
<jhass> I still don't get what you need Ruby for here, static site and some JS should do?
<b|ackwolf> jhass: would you mind if I describe?
<jhass> that's what I'm trying to get you to do all along
<b|ackwolf> I'm going to write a pomodoro web application that has simple front-end (timer,subject, button, etc)
ltd has joined #ruby
<b|ackwolf> and in the back-end I need simple routing system to manage timestamps.
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
Yiota has joined #ruby
<jhass> elaborate on the last part please, "simple routing system to manage timestamps" means nothing to me
<b|ackwolf> sorry, I couldn't describe it well
eatsfoobars has joined #ruby
<kgrz> aries_liuxueyang: Not sure then :/ may be this might help? https://github.com/rbenv/ruby-build/issues/803
<jhass> try to describe the usecases, which usecase do you want to implement that requires any kind of client / server interaction?
madgen has quit [Ping timeout: 265 seconds]
jinie has joined #ruby
<aries_liuxueyang> kgrz: thanks, I will check that.
idle_task has joined #ruby
madgen has joined #ruby
idletask has quit [Ping timeout: 260 seconds]
adavia has joined #ruby
pawnbox has joined #ruby
<adavia> why does 100001100111.split(/1+/) returns ["", "0000", "00"] with a space in the beginning?
zyzioziom has joined #ruby
kam270 has quit [Ping timeout: 252 seconds]
<jhass> it should return a NoMethodError :P
<toretore> >> 100001100111.split(/1+/)
<ruby[bot]> toretore: # => undefined method `split' for 100001100111:Bignum (NoMethodError) ...check link for more (https://eval.in/571563)
<toretore> >> '100001100111'.split(/1+/)
<ruby[bot]> toretore: # => ["", "0000", "00"] (https://eval.in/571564)
<jhass> anyway, assuming you actually got a string there, because the first split point is the first 1 so to the left side of the first 1 is the empty string
davedev2_ has joined #ruby
bronson has joined #ruby
<jhass> >> "100001100111".scan(/0+/)
<ruby[bot]> jhass: # => ["0000", "00"] (https://eval.in/571565)
<adavia> sorry i meant "100001100111".split(/1+/)
pawnbox has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
<adavia> yeah scan is what i need
rumia has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
ta_ has quit [Ping timeout: 260 seconds]
jinie has joined #ruby
madgen has quit [Ping timeout: 276 seconds]
lax has joined #ruby
lax is now known as liulantao
wrkrcoop has joined #ruby
nanoz has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Remote host closed the connection]
tonini_ has joined #ruby
avdi_ has joined #ruby
rfv_ has joined #ruby
nyandoge_ has joined #ruby
brianpWins has quit [Ping timeout: 265 seconds]
skmp has quit [Ping timeout: 244 seconds]
chrisseaton has quit [Read error: Connection reset by peer]
mrfooo has quit [Read error: Connection reset by peer]
adambeynon has quit [Read error: Connection reset by peer]
zzak___ has quit [Read error: Connection reset by peer]
halfdan has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
davidmichaelkarr has quit [Ping timeout: 244 seconds]
tonini has quit [Ping timeout: 244 seconds]
tonini_ is now known as tonini
bcavileer has quit [Read error: Connection reset by peer]
liulantao has quit []
rfv has quit [Ping timeout: 244 seconds]
nyandoge has quit [Ping timeout: 244 seconds]
rfv_ is now known as rfv
nyandoge_ is now known as nyandoge
Liu has joined #ruby
halfdan has joined #ruby
Liu has quit [Client Quit]
avdi has quit [Ping timeout: 244 seconds]
avdi_ is now known as avdi
skmp has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bcavileer has joined #ruby
mrfooo has joined #ruby
chrisseaton has joined #ruby
adambeynon has joined #ruby
zzak___ has joined #ruby
Liu has joined #ruby
davidmichaelkarr has joined #ruby
brianpWins has joined #ruby
Liu is now known as liulantao
the_drow has joined #ruby
liulantao has quit [Client Quit]
mdw has quit [Quit: Sleeping Zzzzz]
Liu has joined #ruby
idletask has joined #ruby
idle_task has quit [Ping timeout: 276 seconds]
xall has joined #ruby
Liu has quit [Client Quit]
djbkd has quit [Ping timeout: 252 seconds]
rumia has joined #ruby
liulantao has joined #ruby
rvchangue has quit [Ping timeout: 244 seconds]
the_drow has quit [Read error: Connection reset by peer]
kgrz has quit [Ping timeout: 246 seconds]
LoneHerm_ has quit [Remote host closed the connection]
the_drow has joined #ruby
crameth has quit [Quit: crameth]
RegulationD has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
xall has quit [Ping timeout: 276 seconds]
the_drow_ has joined #ruby
the_drow has quit [Ping timeout: 244 seconds]
kgrz has joined #ruby
sauvin has joined #ruby
rvchangue has joined #ruby
foucist has joined #ruby
madgen has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
j_mcnally has joined #ruby
DuoDuo has joined #ruby
DuoDuo has quit [Client Quit]
CoderPuppy has joined #ruby
j_mcnall_ has joined #ruby
kirun has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
casp has joined #ruby
cpup has quit [Ping timeout: 246 seconds]
j_mcnally has quit [Ping timeout: 276 seconds]
madgen has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
<casp> helllo
<casp> puts 'hello'
casp has quit [Client Quit]
<shevy> he got it!
Beast has quit [Quit: Leaving]
Devalo has joined #ruby
kgrz has quit [Ping timeout: 244 seconds]
Vile` has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
davedev2_ has quit []
skingsbu has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
the_drow_ has quit [Read error: Connection reset by peer]
<b|ackwolf> how can I convert html to erb?
rbennace_ has quit [Remote host closed the connection]
<Arcaire> HTML is Erb.
jancel has joined #ruby
<Arcaire> Surprise!
nadir has joined #ruby
SilverKey has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
Devalo has quit [Remote host closed the connection]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
madgen has joined #ruby
hk238 has joined #ruby
pawnbox has joined #ruby
eatsfoobars has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
Tahr64-user has joined #ruby
jgt1 has joined #ruby
saneax_AFK is now known as saneax
Vile` has joined #ruby
houhoulis has joined #ruby
SilverKey has quit [Quit: Halted.]
mtkd has quit [Ping timeout: 246 seconds]
s00pcan has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
matp has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
djbkd has joined #ruby
SilverKey has joined #ruby
Es0teric has joined #ruby
matp has joined #ruby
Elvin has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
liulantao has quit [Remote host closed the connection]
<zacts> when should I use mixins, and when should I use inheritance? I assume the former much more than the latter.
<zacts> how should I think about this metaphorically?
djbkd has quit [Ping timeout: 260 seconds]
<zacts> I realize mixins should be named like adjectives
<|2701> you should read POODR by Sandi Metz
<|2701> a whole book about organization-related questions
<|2701> especially in OOP, it's important to get the design aspect of your application correct
<zacts> ah ok, coolio
<|2701> super especially important if other people are going to work on it also
aswen has joined #ruby
aswen has quit [Client Quit]
<zacts> thanks, I'll check it out
the_drow has joined #ruby
jancel has quit [Remote host closed the connection]
platzhirsch has joined #ruby
matp has quit [Ping timeout: 240 seconds]
platzhir1 has joined #ruby
sinkensabe has joined #ruby
alxgsv has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
mr_robot_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
kgrz has joined #ruby
ctrlrsf has joined #ruby
zyzioziom has quit [Ping timeout: 276 seconds]
kgrz has quit [Client Quit]
kgrz has joined #ruby
crameth has joined #ruby
platzhir1 has quit [Quit: WeeChat 1.4]
platzhirsch has joined #ruby
zel has joined #ruby
zel is now known as Guest55449
flopsec has joined #ruby
kgrz has quit [Client Quit]
kgrz has joined #ruby
jancel has joined #ruby
Tahr64-user has quit [Quit: Leaving]
Tahr64-user has joined #ruby
Tahr64-user has quit [Max SendQ exceeded]
Tahr64-user has joined #ruby
Tahr64-user has quit [Max SendQ exceeded]
Tahr64-user has joined #ruby
matp has joined #ruby
ponga has joined #ruby
djbkd has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
mr_robot_ has quit [Quit: Textual IRC Client: www.textualapp.com]
mr_robot_ has joined #ruby
jancel has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 276 seconds]
symm- has quit [Ping timeout: 244 seconds]
nischay1989 has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
nischay1989 has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
djbkd has quit []
the_drow has joined #ruby
pawnbox has joined #ruby
pulkit4tech has quit []
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
<foucist> any other good books on OOD or ways to practice OOD specifically?
pawnbox has quit [Ping timeout: 265 seconds]
<zacts> Is the Ruby Design Patterns book any good?
saneax is now known as saneax_AFK
<zacts> by Obie Fernandez
<zacts> oops
<zacts> by Russ Olsen
ta_ has joined #ruby
zeroDi has joined #ruby
xall has joined #ruby
<foucist> yeah i heard it is, haven't read it yet
kgrz has joined #ruby
kgrz has quit [Client Quit]
ta_ has quit [Ping timeout: 260 seconds]
kgrz has joined #ruby
firstdayonthejob has joined #ruby
leitz has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
xall has quit [Ping timeout: 260 seconds]
dmr8 has joined #ruby
laska has joined #ruby
nankyokusei has joined #ruby
noobsu has quit [Remote host closed the connection]
the_drow has quit [Read error: Connection reset by peer]
sepp2k1 has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
dualbus has quit [Quit: WeeChat 1.3]
startupality has quit [Quit: startupality]
Biopandemic has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
xall has joined #ruby
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
Biopandemic has joined #ruby
kgrz has quit [Quit: leaving]
kgrz has joined #ruby
smathy has joined #ruby
madgen has joined #ruby
madgen has quit [Client Quit]
madgen has joined #ruby
laska has quit [Quit: Lost terminal]
jaguarmagenta has joined #ruby
<shevy> zacts will end up as the one who has read the most ruby books here
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
davedev24 has joined #ruby
<ponga> hi
<ponga> that book looks good
codecop has quit [Remote host closed the connection]
kgrz has quit [Quit: leaving]
kgrz has joined #ruby
<shevy> hey ponga - long time no see
xall has quit [Ping timeout: 240 seconds]
kgrz has quit [Client Quit]
aries_liuxueyang has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
<zacts> shevy: lol
startupality has joined #ruby
<zacts> I <3 tech books (I admit it I'm a bit of a bibliophile)
pawnbox has joined #ruby
fn2187__ has quit [Read error: Connection reset by peer]
shakes has joined #ruby
rkazak has joined #ruby
Nanuq has quit [Ping timeout: 260 seconds]
<ponga> shevy: i was away from ruby these days
kgrz has joined #ruby
<ponga> means i was away from coding
skade has joined #ruby
kgrz has quit [Client Quit]
the_drow has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 276 seconds]
kgrz has joined #ruby
lxsameer has joined #ruby
Nanuq has joined #ruby
startupality has quit [Quit: startupality]
shakes has quit [Quit: Leaving]
startupality has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
<ponga> damn it , a couple month away from ruby and I already forgot how to use rbenv entirely
the_drow has joined #ruby
wigust has joined #ruby
Cohedrin has joined #ruby
shakes has joined #ruby
Cohedrin has quit [Client Quit]
giz|work has joined #ruby
Cohedrin has joined #ruby
brianpWins has quit [Ping timeout: 252 seconds]
brianpWins_ has joined #ruby
sharkman has joined #ruby
<sharkman> whats the best way to match from a group of a couple of words? right now i do =~ /((G1)|(G2))/ but i suspect there is something that looks better?
<jhass> ?fake
<ruby[bot]> Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
startupality has quit [Quit: startupality]
startupality has joined #ruby
sinkensabe has joined #ruby
bluOxigen has joined #ruby
startupality has quit [Client Quit]
QORRiE has joined #ruby
lgrabh has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 276 seconds]
kgrz has quit [Quit: leaving]
saneax_AFK is now known as saneax
zyzioziom has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
sinkensabe has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
pwnd_nsfw has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
edwinvdgraaf has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jaguarmagenta has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
adavia has quit [Quit: Leaving]
madgen has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 246 seconds]
isxek has quit [Quit: Leaving]
saneax is now known as saneax_AFK
whiteline has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 252 seconds]
whiteline has joined #ruby
renatosilva has joined #ruby
Masonn has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
vF3hNGxc47h8 has joined #ruby
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
madgen has joined #ruby
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
<zacts> ponga: I personally prefer rbenv over rvm
<ponga> everyone says that so i tried it
<zacts> ponga: what issue are you having?
<ponga> i learnt to use it, and forgot it completely
<zacts> oh, lol... yeah.
<ponga> zacts: i simply forgot the entirety of how to use it
mdw has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
<ponga> rvm is too easy for me
<zacts> I see
<ponga> back to rvm
mdw has quit [Max SendQ exceeded]
noobsu has joined #ruby
Yzguy has joined #ruby
<ponga> zacts: i even had to google search "basic vi commands'
noobsu has quit [Remote host closed the connection]
<ponga> im shit now
<shevy> hehe
bruno- has joined #ruby
<ponga> don't giggle shev
shakes has quit [Quit: Leaving]
<ponga> pity me
mdw has joined #ruby
saneax_AFK is now known as saneax
Coldblackice has joined #ruby
<shevy> I pity them all!
mercerist has joined #ruby
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
<renatosilva> patches, bug fixes and the like, please https://github.com/renatosilva/easyoptions :)
<zacts> renatosilva: that looks really cool
mtkd has quit [Ping timeout: 265 seconds]
mdw_ has joined #ruby
d0lph1n98 has quit [Ping timeout: 260 seconds]
mdw_ has quit [Client Quit]
Yzguy has quit [Quit: Zzz...]
whiteline has quit [Ping timeout: 252 seconds]
mdw has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
shakes has joined #ruby
RegulationD has joined #ruby
elomatreb has joined #ruby
terlar has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
whiteline has joined #ruby
zyzioziom has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 276 seconds]
zitruk has joined #ruby
zitruk has quit [Client Quit]
Tahr64-user has quit [Ping timeout: 276 seconds]
sharkman has quit [Quit: Leaving]
Guest55449 has quit [Ping timeout: 250 seconds]
flopsec has quit [Ping timeout: 244 seconds]
SilverKey has quit [Quit: Halted.]
b|ackwolf has quit [Quit: Leaving]
Vile` has quit [Ping timeout: 276 seconds]
alxgsv has quit [Ping timeout: 250 seconds]
ctrlrsf has quit [Ping timeout: 260 seconds]
Augustus is now known as Octavian
Axy has joined #ruby
noobsu has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Axy has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
dsea11 has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
dsea has joined #ruby
laska has joined #ruby
ferr has joined #ruby
pyramid has joined #ruby
ellistaa has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<ellistaa> when i write unit tests, do i only want to test input and output since i’m testing for behavior not implementation?
<ellistaa> so i dont really care what the internal is doing?
<jhass> most of time, sometimes side effects
<laska> is there a more convenient way to create a gui than shoes?
quazimodo has quit [Ping timeout: 276 seconds]
leitz has joined #ruby
pyramid has left #ruby [#ruby]
yfeldblum has joined #ruby
sinkensabe has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<ellistaa> jhass: was that an answer to my question? or someone elses i just came in the room.
<ellistaa> side effects?
mbreedlove has joined #ruby
<jhass> yes and yes side effects, like it added a record to some database table or so
<ellistaa> oh i see
<ellistaa> so if i had a method Person.new, i would test the incoming params, the output, and then i’d check to see if the db got a new person or something?
d0nn1e has quit [Ping timeout: 246 seconds]
<jhass> if you implemented Person.new on your own, yeah
<jhass> don't test third party libs doing what they're supposed to do
<ellistaa> cool … thank you
Yzguy has joined #ruby
sinkensabe has quit [Ping timeout: 276 seconds]
d0nn1e has joined #ruby
the_drow has joined #ruby
bronson has joined #ruby
flashpoint9 has joined #ruby
codeurge has joined #ruby
nankyokusei has joined #ruby
roamingdog has quit [Remote host closed the connection]
knaesig has joined #ruby
troulouliou_dev has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
laska has quit [Quit: Lost terminal]
cpup has joined #ruby
flashpoint9 has quit [Ping timeout: 260 seconds]
wnd has quit [Ping timeout: 250 seconds]
wnd has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Axy has joined #ruby
codecop has joined #ruby
griffindy has joined #ruby
Lomex has joined #ruby
CoderPuppy has quit [Ping timeout: 246 seconds]
alxgsv has joined #ruby
Dimik has joined #ruby
Mia has quit [Ping timeout: 265 seconds]
jhack has joined #ruby
austinprog has joined #ruby
CoderPuppy has joined #ruby
Lomex_ has joined #ruby
Lomex has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Axy has quit [Ping timeout: 265 seconds]
cpup has quit [Ping timeout: 260 seconds]
InfraRuby has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
jancel has joined #ruby
griffindy has quit [Max SendQ exceeded]
ctrlrsf has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
s00pcan has joined #ruby
rubyrubyruby has joined #ruby
the_drow has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
diegoviola has joined #ruby
jancel has quit [Ping timeout: 265 seconds]
zel has joined #ruby
the_drow has joined #ruby
zel is now known as Guest38458
flopsec has joined #ruby
Lomex_ has quit [Ping timeout: 250 seconds]
Lomex has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
rubyrubyruby has quit [Ping timeout: 250 seconds]
araujo_ has quit [Ping timeout: 260 seconds]
Mia has quit [Ping timeout: 265 seconds]
araujo_ has joined #ruby
elifoster has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
Mia has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
aphprentice has joined #ruby
mercerist has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
diego1 has joined #ruby
LoneHermit has joined #ruby
Lomex has quit [Quit: Leaving...]
the_drow has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
madgen has quit [Ping timeout: 252 seconds]
mercerist has joined #ruby
renatosilva has left #ruby ["http://renatosilva.net - Renato Silva"]
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
madgen has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
sinkensabe has joined #ruby
whiteline has quit [Ping timeout: 252 seconds]
diegoviola has quit [Ping timeout: 276 seconds]
terlar has quit [Quit: WeeChat 1.5]
Yiota has joined #ruby
diego1 has joined #ruby
sinkensabe has quit [Ping timeout: 265 seconds]
dmr8 has quit [Ping timeout: 246 seconds]
symm- has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
dmr8 has joined #ruby
foucist has quit [Ping timeout: 244 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
whiteline has joined #ruby
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
roamingdog has joined #ruby
Devalo has joined #ruby
dsea has quit [Quit: Leaving]
pwnd_nsfw has joined #ruby
<zacts> shevy: ch 10 of HF Ruby book is done \o/... Anyway, /me idles for a bit...
<zacts> 10/15
dsea has joined #ruby
brianpWins_ has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
thesheff17 has left #ruby [#ruby]
jaguarmagenta has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
bruno- has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 260 seconds]
ebbflowgo has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
rapha has joined #ruby
<rapha> Hi!
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mherold has joined #ruby
<jhass> hi
<rapha> Is there a neat way of writing `something ||= something_else` where `something` could be an empty string and still be set to `something_else`?
noobineer has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
<rapha> (`something.blank? && something = something_else` works with Rails ofc but doesn't really look pretty)
noobsu has joined #ruby
<smathy> rapha, no operator sort of thing like ||=, no. I usually use postfix conditional in this situation: something = something_else if something.blank?
blackmesa has joined #ruby
<rapha> smathy: hmm, at least that's more readable than my version :)
antgel has joined #ruby
pawnbox has quit [Remote host closed the connection]
Fridtjof has quit [Ping timeout: 276 seconds]
the_drow has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
<smathy> Yup.
the_drow has joined #ruby
beatdown has quit [Killed (orwell.freenode.net (Nickname regained by services))]
beatdown_ has joined #ruby
Devalo has quit [Remote host closed the connection]
dsea has quit [Read error: Connection reset by peer]
mherold has quit [Read error: Connection reset by peer]
mherold has joined #ruby
<jhass> if we're talking activesupport/rails another version would be something = something.presence || something_else, not sure I prefer it over the modifer-if here though
Oclair has joined #ruby
austinprog has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cheerio]
Fridtjof has joined #ruby
flashpoint9 has joined #ruby
noobineer has quit [Quit: Leaving]
astrobun_ has quit [Read error: Connection reset by peer]
ellistaa has quit [Quit: ellistaa]
astrobunny has joined #ruby
cpup has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 260 seconds]
CoderPuppy has quit [Ping timeout: 244 seconds]
roamingdog has quit [Remote host closed the connection]
rubyrubyruby has joined #ruby
<shevy> something
mtkd has joined #ruby
codeurge has joined #ruby
bhegel has joined #ruby
Devalo has joined #ruby
LoneHermit has quit [Remote host closed the connection]
wnd has quit [Excess Flood]
wnd has joined #ruby
chepoweon has joined #ruby
roamingdog has joined #ruby
mr_robot_ has joined #ruby
CoderPuppy has joined #ruby
Azure has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
madgen has joined #ruby
kirillow has joined #ruby
bhegel has quit [Quit: bhegel]
cpup has quit [Ping timeout: 260 seconds]
the_drow has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
Ocratech has joined #ruby
sinkensabe has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
yqt has joined #ruby
brianpWins_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
zyzioziom has joined #ruby
bronson has joined #ruby
<kirillow> how do I tell slim what path the template files are in?
brianpWins has quit [Ping timeout: 276 seconds]
brianpWins_ is now known as brianpWins
sinkensabe has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
edwinvdgraaf has joined #ruby
pawnbox has joined #ruby
ur5us has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
antgel has quit [Ping timeout: 265 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<smathy> kirillow, you pass a full path to the Slim::Template.new method (or to Tilt.new).
xue has joined #ruby
leitz has quit [Ping timeout: 244 seconds]
diego1 has joined #ruby
foucist has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
<kirillow> smathy, thanks! I looked in a completely wrong place
Xaitec has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
diego1 is now known as diegoviola
xall has joined #ruby
`tim` has joined #ruby
Oclair_ has joined #ruby
s00pcan has quit [Remote host closed the connection]
kirillow has quit [Quit: WeeChat 1.0.1]
bronson has quit [Remote host closed the connection]
s00pcan has joined #ruby
xall has quit [Ping timeout: 240 seconds]
Oclair has quit [Ping timeout: 250 seconds]
kirillow has joined #ruby
ramfjord has joined #ruby
vF3hNGxc47h8 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
ctp has joined #ruby
<kirillow> another question: i've got a file helpers.rb with some methods. I want those methods to be available in all *.slim files. How, roughly, do I go about doing this? This is for a static website
wigust has quit [Remote host closed the connection]
bruno- has joined #ruby
xall has joined #ruby
<kirillow> nvm
<kirillow> m*
<kirillow> m(
kirillow has quit [Quit: WeeChat 1.0.1]
czerasz has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 246 seconds]
xall has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
Mon_Ouie has joined #ruby
jancel has joined #ruby
leitz has joined #ruby
jhack has quit [Quit: jhack]
jancel has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has joined #ruby
jhack has joined #ruby
jaguarmagenta has joined #ruby
KINGSABRI_ has quit [Ping timeout: 250 seconds]
ljames has quit []
KINGSABRI_ has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
flashpoint9 has joined #ruby
jhack has quit [Client Quit]
skade has joined #ruby
futilegames has joined #ruby
LoneHerm_ has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has quit [Ping timeout: 244 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
codeurge has joined #ruby
A124 has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
mbreedlove has quit [Ping timeout: 246 seconds]
KINGSABRI_ has quit [Ping timeout: 276 seconds]
KINGSABRI has joined #ruby
foucist has quit [Quit: leaving]
DanyC has joined #ruby
futilegames has quit [Quit: futilegames]
DanyC has left #ruby [#ruby]
nofxx has quit [Ping timeout: 260 seconds]
swerwath has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
chipotle has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
mosh has joined #ruby
aries_liuxueyang has quit [Ping timeout: 276 seconds]
aries_liuxueyang has joined #ruby
swerwath has quit [Client Quit]
Azure has joined #ruby
futilegames_ has joined #ruby
moeabdol has quit [Ping timeout: 246 seconds]
giz|work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
futilegames_ has quit [Client Quit]
yaw has joined #ruby
<rapha> jhass: oops, saw your second suggestion just now. What is it you dislike about it?
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hinbody has quit [Ping timeout: 276 seconds]
noobsu has quit [Read error: Connection reset by peer]
<jhass> I think the if reads more naturally here
futilegames has joined #ruby
noobsu has joined #ruby
futilegames has quit [Client Quit]
wldcordeiro has quit [Quit: WeeChat 1.4]
roamingdog has quit [Remote host closed the connection]
bronson has joined #ruby
codeurge has joined #ruby
roamingdog has joined #ruby
<rapha> jhass: Hmm ... okay, the .presence is admittedly weird.
bronson has quit [Ping timeout: 252 seconds]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
whathappens has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
bruno- has quit [Read error: Connection reset by peer]
aeterne has joined #ruby
bruno- has joined #ruby
noobsu has joined #ruby
Xaitec has quit [Remote host closed the connection]
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaxter has joined #ruby
marr has joined #ruby
Ishido has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
SilverKey has quit [Quit: Halted.]
mosh has quit [Quit: jmIrc destroyed by the OS]
Cohedrin has quit [Ping timeout: 260 seconds]
codeurge has joined #ruby
knaesig has quit [Quit: WeeChat 1.0.1]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wigust has joined #ruby
Cohedrin has joined #ruby
LoneHerm_ has joined #ruby
austinprog has joined #ruby
greves has quit [Ping timeout: 244 seconds]
jancel has joined #ruby
yfeldblum has joined #ruby
LoneHerm_ has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby
jancel has quit [Remote host closed the connection]
noobsu has quit [Read error: Connection reset by peer]
noobsu has joined #ruby
solars has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Ping timeout: 240 seconds]
Jet4Fire has quit [Read error: Connection reset by peer]
Jet4Fire has joined #ruby
mr_robot_ has joined #ruby
sauvin has joined #ruby
ta_ has joined #ruby
nawn has joined #ruby
nankyokusei has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
nerium has joined #ruby
bruno- has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
SilverKey has joined #ruby
nawn` has joined #ruby
<nawn`> :)
elifoster has quit [Ping timeout: 240 seconds]
ruby-lang653 has joined #ruby
nawn` has quit [Client Quit]
<ruby-lang653> hey, I’m supposed to write a program that allows a user to input A, B, C, D or E as many times as they would like. If they hit any other character, the program should display the sum of the purchase. Here are the prices of the items (some have special SALE prices) A - 0.50or3 for $1.00 B - 1.25 C - 0.75or4 for $2.50 D - 1.00 E - 0.69
<ruby-lang653> I'm a beginner so any help is much appreciated
nawn` has joined #ruby
<nawn`> y
mr_robot_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mooe has joined #ruby
nawn` has quit [Remote host closed the connection]
|ifei5g00d has quit []
`tim` has joined #ruby
<nawn> What kind of code do you have so far?
noobsu has quit [Remote host closed the connection]
nawn` has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Remote host closed the connection]
<nawn`> ruby-lang653: ?
ruby-lang653 has quit [Ping timeout: 250 seconds]
<nawn`> Oh... okay, haha.
nawn has quit [Quit: Leaving]
<nawn`> : ^)
Nanuq has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
`tim` is now known as justbleed
mosh has joined #ruby
sthns has joined #ruby
sinkensabe has joined #ruby
xall has joined #ruby
zenlot has joined #ruby
zenlot6 has quit [Ping timeout: 276 seconds]
flashpoint9 has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
zyzioziom has quit [Quit: zyzioziom]
quakephil has quit [Read error: Connection reset by peer]
Devalo has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
Jackneill has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
madgen has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jancel has joined #ruby
QORRiE has quit [Quit: Leaving]
nawn` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
nawn has joined #ruby
roamingdog has quit [Remote host closed the connection]
ledestin has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 250 seconds]
Yzguy has quit [Quit: Zzz...]
nawn has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
Gasher has joined #ruby
jaguarmagenta has joined #ruby
dmr8 has quit [Quit: Leaving]
jancel has quit [Remote host closed the connection]
roamingdog has joined #ruby
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sarlalian_ has quit [Ping timeout: 252 seconds]
TomyLobo has joined #ruby
sarlalian has joined #ruby
duncannz has joined #ruby
sinkensabe has joined #ruby
diegoaguilar has joined #ruby
jancel has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
jancel has quit [Remote host closed the connection]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
skingsbu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Elvin has joined #ruby
SCHAAP137 has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
Gasher has quit [Quit: Leaving]
leitz has quit [Ping timeout: 244 seconds]
xue has quit [Ping timeout: 276 seconds]
roamingdog has quit []
skingsbu has joined #ruby
spider-mario has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 260 seconds]
SilverKey has quit [Quit: Halted.]
CloCkWeRX has joined #ruby
SCHAAP137 has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
Trynemjoel has joined #ruby
atrom has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crystal77 has joined #ruby
<atrom> df
TomyLobo has quit [Read error: Connection reset by peer]
crystal77 has quit [Client Quit]
yaw has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sarlalian has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.4]
pawnbox has joined #ruby
TomyLobo has joined #ruby
sarlalian has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
LoneHermit has joined #ruby
<rubyrubyruby> what should I use for the "platform" attribute in a gemspec for a gem that runs on all windows platforms (mswin{32,64}, mingw{32,64}, etc.)
diegoviola has joined #ruby
quazimodo has joined #ruby
kareeoleez has quit [Ping timeout: 265 seconds]
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
LoneHermit has quit [Ping timeout: 260 seconds]
bruno- has quit [Read error: Connection reset by peer]
sneakerhax has joined #ruby
grs has quit [Ping timeout: 252 seconds]
kam270 has joined #ruby
akiTendo has joined #ruby
SilverKey has joined #ruby
Azure has joined #ruby
kareeole_ has joined #ruby
ellistaa has joined #ruby
kareeoleez has quit [Ping timeout: 252 seconds]
nerium has quit [Quit: nerium]
squigz has joined #ruby
kareeoleez has joined #ruby
atrom has quit [Quit: Saindo]
kareeole_ has quit [Ping timeout: 260 seconds]
Gasher has joined #ruby