apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<a_> tmoore: yes but that's another question entirely
FooMunki has quit [Quit: FooMunki]
<a_> tmoore: each service could feasibly have a REST API, and a pool of blocking connections that it can have open to other services, I guess
DLSteve has quit [Quit: Leaving]
<tmoore> so maybe the reason Ruby doesn't have micro SOA frameworks is that Ruby devs prefer simple solutions and decided they don't need one! ;-)
SilkFox has joined #ruby
<a_> tmoore: that sounds like a really satisfying answer
nonks has joined #ruby
<tmoore> there are a few gems that might come in handy
timonv_ has joined #ruby
emmesswhy has joined #ruby
<havenwood> speaking of celluloid: https://github.com/tarcieri/http#readme
<volty> hmmmm, abstract talker, patterned by micro notions // somebody here said that perfection is an enemy of done // we can paraphrase and say that talking (too much) is an enemy of coding
<tmoore> and there was a recent Ruby Rogues podcast episode about this http://rubyrogues.com/176-rr-rails-as-an-soa-client-with-pete-hodgson/
<volty> (go on, I just felt I had to say mine ...)
<havenwood> a_: Don't write off DRb. :)
<tmoore> lol fair enough I should probably be working instead of typing on IRC :-P
jcdesimp has quit [Remote host closed the connection]
jcdesimp has joined #ruby
<a_> havenwood: I'll continue to look into it :)
<volty> tmoore: no :P / i just can't stand those abstract notion-based micros
Spami has quit [Quit: This computer has gone to sleep]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
asteros has joined #ruby
<a_> volty: enemy of premature coding :)
AmBienCeD has quit [Read error: Connection reset by peer]
<volty> last evening here came a guy asking about what we think about the bosses that give too little time for preparing app docs (same type)
doodlehaus has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
SilkFox has quit [Ping timeout: 272 seconds]
Synthbread has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 265 seconds]
melik has quit [Quit: (null)]
Avahey has quit [Quit: Connection closed for inactivity]
phutchins has joined #ruby
<volty> a_: they say honestly that you have to make clear your ideas, your, and just ideas. I bet you'll get it clearer if you start writing the list of services etc etc
tier has joined #ruby
<volty> s/they/then/
graydot has quit [Quit: graydot]
mistermocha has quit [Remote host closed the connection]
musicmatze1 has quit [Ping timeout: 260 seconds]
<a_> havenwood: 0_o trying to work out how that isn't sinatra!
Mia has quit [Ping timeout: 246 seconds]
robustus has quit [Ping timeout: 250 seconds]
musicmatze1 has joined #ruby
linojon has joined #ruby
<havenwood> a_: More minimalist than Sinatra. Defers to Rack for stuff that Rack does well enough. Here's https://github.com/luislavena/bench-micro#readme
graydot has joined #ruby
<havenwood> some folk like Grape for APIs
<Sou|cutter> I have worked with a system that had several small sinatra-based services. It was ok (shrug)
bbloom has quit [Ping timeout: 250 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
marr has quit []
<havenwood> a bunch of little sinatra apps behind padrino or mixing and matching various rack adapter apps or even rack apps is pretty common
sepp2k1 has joined #ruby
bbloom has joined #ruby
eka has quit [Remote host closed the connection]
ki0 has quit [Remote host closed the connection]
j_mcnally has joined #ruby
einarj has quit [Remote host closed the connection]
asteros has quit [Ping timeout: 272 seconds]
cmckee has joined #ruby
<a_> Sou|cutter: "ok" with a "shrug" - I am sold! Can not wait to start going down the same path! (shrug :)
shosti has quit [Ping timeout: 258 seconds]
cjk101010_ has joined #ruby
<Sou|cutter> a_: I'm not trying to sell you on it
BadQuanta has quit [Ping timeout: 265 seconds]
<a_> Sou|cutter: I know :)
<a_> (I really hope you wasn't, at least - otherwise don't quit your dayjob! ha)
<Sou|cutter> haha
jdj_dk has quit [Read error: Connection reset by peer]
* havenwood coughs *DRb*
eka has joined #ruby
graydot has quit [Ping timeout: 265 seconds]
ghostmoth has quit [Quit: ghostmoth]
davidhq has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
<a_> havenwood: do I detect a conflict of interest? :P
Sp4rKy__ has joined #ruby
iamjarvo has quit [*.net *.split]
volty has quit [*.net *.split]
mleone has quit [*.net *.split]
charliesome has quit [*.net *.split]
sepp2k has quit [*.net *.split]
WormDrink has quit [*.net *.split]
Nahra has quit [*.net *.split]
Jarboe has quit [*.net *.split]
apxm has quit [*.net *.split]
t_mmyv has quit [*.net *.split]
nuck has quit [*.net *.split]
QKO has quit [*.net *.split]
hackeron has quit [*.net *.split]
lsmola has quit [*.net *.split]
monsieurp has quit [*.net *.split]
Xiti has quit [*.net *.split]
baordog has quit [*.net *.split]
parduse has quit [*.net *.split]
wang has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
existensil has quit [*.net *.split]
Roa has quit [*.net *.split]
Stuffness has quit [*.net *.split]
Akuma has quit [*.net *.split]
aep has quit [*.net *.split]
drager has quit [*.net *.split]
matled has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
gizmore has quit [*.net *.split]
dr_toboggan has quit [*.net *.split]
JStoker has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
BombStrike has quit [*.net *.split]
TTilus has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
linduxed has quit [*.net *.split]
bauruine has quit [*.net *.split]
aspiers has quit [*.net *.split]
ramfjord has quit [*.net *.split]
ta has quit [*.net *.split]
Lewix has quit [*.net *.split]
mengu has quit [*.net *.split]
p8952 has quit [*.net *.split]
yetanotherdave has quit [*.net *.split]
troyready has quit [*.net *.split]
sjohnsen has quit [*.net *.split]
huddy has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
PierreRambaud has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
Synthead has quit [*.net *.split]
KC9YDN has quit [*.net *.split]
poguez has quit [*.net *.split]
majoh has quit [*.net *.split]
ckrailo has quit [*.net *.split]
marlonandrade has quit [*.net *.split]
mclee has quit [*.net *.split]
charles81 has quit [*.net *.split]
pmarreck has quit [*.net *.split]
virtualize has quit [*.net *.split]
haroldwu has quit [*.net *.split]
ruisantos has quit [*.net *.split]
riceandbeans has quit [*.net *.split]
ewilliam has quit [*.net *.split]
Sammael has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
ujjain has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
jeregrine has quit [*.net *.split]
frankS2 has quit [*.net *.split]
heyimwill has quit [*.net *.split]
akkad has quit [*.net *.split]
Doc_X has quit [*.net *.split]
csmrfx has quit [*.net *.split]
DefV has quit [*.net *.split]
go|dfish has quit [*.net *.split]
mnms_ has quit [*.net *.split]
bascht has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
Adran has quit [*.net *.split]
okic has quit [*.net *.split]
matti has quit [*.net *.split]
shaman42 has quit [*.net *.split]
Morrolan has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
ghormoon has quit [*.net *.split]
mbr has quit [*.net *.split]
preller has quit [*.net *.split]
jxport has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
jeekl has quit [*.net *.split]
gogiel has quit [*.net *.split]
oddraisin has quit [*.net *.split]
soahccc has quit [*.net *.split]
nevans has quit [*.net *.split]
s_e has quit [*.net *.split]
Rydekull has quit [*.net *.split]
Andriamanitra has quit [*.net *.split]
matrixise has quit [*.net *.split]
Xiti has joined #ruby
i_s has quit [Remote host closed the connection]
Adran has joined #ruby
Spami has joined #ruby
weemsledeux has joined #ruby
<havenwood> a_: i haven't contributed to DRb or anything. it's just a nice tool in Ruby's stdlib.
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
parduse has joined #ruby
cmckee has quit [Ping timeout: 260 seconds]
narcan has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
sailias has joined #ruby
oo_ has joined #ruby
graydot has joined #ruby
bauruine has joined #ruby
aspiers has joined #ruby
ramfjord has joined #ruby
ta has joined #ruby
Lewix has joined #ruby
mengu has joined #ruby
p8952 has joined #ruby
yetanotherdave has joined #ruby
troyready has joined #ruby
sjohnsen has joined #ruby
huddy has joined #ruby
vlad_starkov has joined #ruby
tobiasvl has joined #ruby
poguez has joined #ruby
PierreRambaud has joined #ruby
Synthead has joined #ruby
KC9YDN has joined #ruby
majoh has joined #ruby
ckrailo has joined #ruby
marlonandrade has joined #ruby
mclee has joined #ruby
charles81 has joined #ruby
pmarreck has joined #ruby
virtualize has joined #ruby
haroldwu has joined #ruby
ruisantos has joined #ruby
riceandbeans has joined #ruby
csmrfx has joined #ruby
ewilliam has joined #ruby
Sammael has joined #ruby
nemesit|znc has joined #ruby
jeregrine has joined #ruby
ujjain has joined #ruby
incomprehensibly has joined #ruby
frankS2 has joined #ruby
heyimwill has joined #ruby
akkad has joined #ruby
go|dfish has joined #ruby
mbr has joined #ruby
ghormoon has joined #ruby
DefV has joined #ruby
mnms_ has joined #ruby
okic has joined #ruby
matti has joined #ruby
bascht has joined #ruby
shaman42 has joined #ruby
Doc_X has joined #ruby
Morrolan has joined #ruby
preller has joined #ruby
jxport has joined #ruby
elaptics`away has joined #ruby
jeekl has joined #ruby
gogiel has joined #ruby
oddraisin has joined #ruby
soahccc has joined #ruby
nevans has joined #ruby
s_e has joined #ruby
Andriamanitra has joined #ruby
matrixise has joined #ruby
Rydekull has joined #ruby
axl__ has joined #ruby
go|dfish has quit [Max SendQ exceeded]
frankS2 has quit [Max SendQ exceeded]
akkad has quit [Max SendQ exceeded]
volty has joined #ruby
mleone has joined #ruby
Nahra has joined #ruby
WormDrink has joined #ruby
t_mmyv has joined #ruby
Roa has joined #ruby
monsieurp has joined #ruby
existensil has joined #ruby
charliesome has joined #ruby
PaulePanter has joined #ruby
apxm has joined #ruby
alexherbo2 has joined #ruby
QKO has joined #ruby
BombStrike has joined #ruby
dr_toboggan has joined #ruby
Akuma has joined #ruby
billy_ran_away has joined #ruby
lsmola has joined #ruby
hackeron has joined #ruby
JStoker has joined #ruby
linduxed has joined #ruby
kaichanvong has joined #ruby
nuck has joined #ruby
Jarboe has joined #ruby
aep has joined #ruby
baordog has joined #ruby
gizmore has joined #ruby
wang has joined #ruby
matled has joined #ruby
drager has joined #ruby
Stuffness has joined #ruby
TTilus has joined #ruby
frankS2 has joined #ruby
go|dfish has joined #ruby
PaulePanter has quit [Max SendQ exceeded]
JStoker has quit [Max SendQ exceeded]
Nahra has quit [Max SendQ exceeded]
WormDrink has quit [Max SendQ exceeded]
BombStrike has quit [Max SendQ exceeded]
JStoker has joined #ruby
Nahra has joined #ruby
PaulePanter has joined #ruby
<havenwood> a Ruby Rogues episode about DRb too: http://rubyrogues.com/098-rr-drb-with-davy-stevenson/
WormDrink has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neoxquick has quit [Ping timeout: 260 seconds]
BombStrike has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
cmckee has joined #ruby
zhigang1992 has joined #ruby
akkad_ has joined #ruby
axl__ has quit [Client Quit]
iteratorP has joined #ruby
arescorpio has joined #ruby
thagomizer has quit [Quit: Leaving.]
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf|offline is now known as benzrf
RichardLitt has joined #ruby
nonks has joined #ruby
zhigang1992 has quit [Ping timeout: 260 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
haroldwu has quit [Ping timeout: 260 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
linojon has quit [Quit: linojon]
freerobby has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman has joined #ruby
tonybird has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nichtdiebohne1 has quit [Ping timeout: 258 seconds]
maestrojed has joined #ruby
IceDragon has quit [Ping timeout: 258 seconds]
maestrojed has quit [Client Quit]
IceDragon has joined #ruby
devdazed has joined #ruby
nichtdiebohne1 has joined #ruby
iteratorP has quit [Quit: Leaving...]
bauruine has quit [Ping timeout: 260 seconds]
iteratorP has joined #ruby
tier has quit [Remote host closed the connection]
jdj_dk has joined #ruby
bauruine has joined #ruby
supersym has quit [Ping timeout: 240 seconds]
linojon has joined #ruby
Hobogrammer has joined #ruby
Alina-malina has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
brainspoil has quit [Quit: Leaving]
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
starkhalo has joined #ruby
tier has joined #ruby
supersym has joined #ruby
graydot has quit [Quit: graydot]
tier has quit [Remote host closed the connection]
sevenseacat has joined #ruby
zaid_h has joined #ruby
SilkFox has joined #ruby
cmckee has quit [Ping timeout: 246 seconds]
mengu has quit [Remote host closed the connection]
mferrier has quit []
zhigang1992 has joined #ruby
renderful has joined #ruby
lolmaus has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has joined #ruby
fuhgeddaboudit has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
maxmachine has joined #ruby
maxmachine has left #ruby [#ruby]
reinaldob has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 260 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
zaid_h has quit [Quit: ZZZzzz…]
cmckee has joined #ruby
infinmed has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 272 seconds]
apxm has quit [Quit: Textual IRC Client: www.textualapp.com]
jdj_dk has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
a13x212 has joined #ruby
tkuchiki has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
jimbach has quit [Remote host closed the connection]
reinaldob has joined #ruby
bricker`work has quit [Ping timeout: 265 seconds]
cmckee has quit [Ping timeout: 256 seconds]
Wolland has joined #ruby
cleopatra has joined #ruby
<a13x212> running into this issue with osx, ruby, libyajl2: https://gist.github.com/a13x212/38ecf343dd2fd156dbd9
<a13x212> how would i begin to troubleshoot this?
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Ping timeout: 256 seconds]
infinmed has quit [Quit: finishes his blk and sips his yuengling; http://atlantic.xyz/Adventure_Club-Need_Your_Heart-Feat_Kai.mp3]
tokik has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
patrick99e99 has quit [Ping timeout: 250 seconds]
IceDragon has joined #ruby
cmckee has joined #ruby
reset has quit [Quit: Linkinus - http://linkinus.com]
cndiv has joined #ruby
volty has quit [Quit: Konversation terminated!]
icarus has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<havenwood> a13x212: Do you have the latest Xcode with Command Line Tools installed?
<a13x212> i have xcode installed, probably not the latest
gaboesquivel has quit [Remote host closed the connection]
<cleopatra> O.o
<havenwood> a13x212: what do you get for?; xcode-select --install
spastorino has quit [Quit: Connection closed for inactivity]
<havenwood> a13x212: dunno
<a13x212> looks like i don't have xcode installed
Takle has quit [Remote host closed the connection]
cmckee has quit [Ping timeout: 245 seconds]
hobodave has joined #ruby
tonybird has joined #ruby
jcdesimp has quit [Remote host closed the connection]
mengu has joined #ruby
Ankhers has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ankhers has quit [Remote host closed the connection]
skolman has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 245 seconds]
skolman_ has joined #ruby
cmckee has joined #ruby
oo_ has joined #ruby
rockdon_ has joined #ruby
bricker`work has joined #ruby
skolman_ has quit [Ping timeout: 260 seconds]
qmfnp has joined #ruby
cmckee has quit [Ping timeout: 265 seconds]
jdj_dk has joined #ruby
ValicekB has joined #ruby
jimbach has joined #ruby
doodlehaus has quit [Remote host closed the connection]
starkhalo has quit [Ping timeout: 258 seconds]
spastorino has joined #ruby
jcdesimp has joined #ruby
jcdesimp has quit [Remote host closed the connection]
jcdesimp has joined #ruby
virtualize has quit []
timonv_ has joined #ruby
jack_rabbit has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
cmckee has joined #ruby
aspires has joined #ruby
virtualize has joined #ruby
axl__ has joined #ruby
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 260 seconds]
manzo has quit [Ping timeout: 245 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
maxmachine has joined #ruby
maxmachine has left #ruby [#ruby]
jaequery has joined #ruby
gsd has joined #ruby
a_ has quit [Ping timeout: 265 seconds]
lw has joined #ruby
wallerdev has quit [Quit: wallerdev]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yetanotherdave has quit [Ping timeout: 260 seconds]
revoohc has quit [Quit: revoohc]
rockdon_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
SilkFox has joined #ruby
Jet4Fire has quit [Ping timeout: 272 seconds]
oo__ has joined #ruby
zaid_h has joined #ruby
tyll has quit [Ping timeout: 265 seconds]
<shevy> don't let that stop you!
<shevy> come to linux!!!!
oo_ has quit [Ping timeout: 256 seconds]
tyll has joined #ruby
reinaldob has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
fabrice31 has joined #ruby
SilkFox has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
Jet4Fire has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
cmckee has quit [Quit: cmckee]
bricker`work has quit [Ping timeout: 255 seconds]
j_mcnally has quit [Quit: さよなら]
j_mcnally has joined #ruby
goshdarnyou has joined #ruby
jimbach has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
troyready has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
yfeldblum has quit [Remote host closed the connection]
havenwood has joined #ruby
_2_makayla has joined #ruby
starkhalo has joined #ruby
<_2_makayla> hi
<_2_makayla> wsup
phutchins has joined #ruby
mistermocha has quit [Remote host closed the connection]
bricker`work has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
lolmaus has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sirene has joined #ruby
lolmaus has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
lw has quit [Quit: s]
_2_makayla has quit [Remote host closed the connection]
skolman_ has joined #ruby
<benzrf> nmu
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchin1 has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
qmfnp has joined #ruby
aspires has quit []
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parabolize has joined #ruby
chrishough has joined #ruby
gaboesquivel has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
bricker`work has quit [Ping timeout: 245 seconds]
dermothaughey has joined #ruby
<dermothaughey> how strange. This channel has a ruby icon in it in this irc client
djbkd has joined #ruby
skolman_ has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
skolman_ has joined #ruby
gsd has joined #ruby
dermothaughey has quit [Remote host closed the connection]
zzach has quit [Ping timeout: 246 seconds]
zzach has joined #ruby
rcs has quit [Excess Flood]
Takle has joined #ruby
dermothaughey has joined #ruby
nobitanobi has joined #ruby
hobodave has quit [Ping timeout: 272 seconds]
fandi has joined #ruby
Scotteh has joined #ruby
zaid_h has quit [Quit: ZZZzzz…]
Takle has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Client Quit]
rcs has joined #ruby
Asher has quit [Quit: Leaving.]
Scotteh__ has quit [Ping timeout: 246 seconds]
NoNMaDDeN has joined #ruby
hobodave has joined #ruby
hellangel7 has joined #ruby
chrishough has quit [Ping timeout: 260 seconds]
infinmed has joined #ruby
chrishough has joined #ruby
hobodave has quit [Client Quit]
hobodave has joined #ruby
zaid_h has joined #ruby
thisguy123 has joined #ruby
chishiki has joined #ruby
djbkd has quit [Quit: My people need me...]
fandi has quit [Remote host closed the connection]
phutchins has joined #ruby
Asher has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchin1 has quit [Ping timeout: 265 seconds]
SilkFox has joined #ruby
Hanmac has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
carlosipe has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincra- has quit [Quit: bye bye]
carlosipe has left #ruby [#ruby]
krz has joined #ruby
SilkFox has quit [Ping timeout: 265 seconds]
braincrash has joined #ruby
administrator has joined #ruby
axl__ has quit [Quit: axl__]
kenneth has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
kedare has quit [Remote host closed the connection]
administrator has left #ruby ["Leaving"]
snath has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
yetanoth1rdave has joined #ruby
Altonymous has joined #ruby
<Altonymous> Anyone use the PG directly without ActiveRecord that has used the transaction method? I have some code where most of it runs in <10ms except the transaction method.. It’s taking upwards of 500ms+
sailias has quit [Quit: Leaving.]
yetanotherdave has quit [Ping timeout: 272 seconds]
Channel6 has joined #ruby
rubie has joined #ruby
<rubie> hi all: anyone know why this doesn't break out of the while loop? https://gist.github.com/gabrie30/9d2f700169c6acf71f68
arup_r has quit [Quit: Leaving.]
omosoj has joined #ruby
<sevenseacat> becuase you're comparing a string and a fixnum?
dermothaughey has quit [Read error: Connection reset by peer]
dermothaughey has joined #ruby
zaid_h has quit [Quit: ZZZzzz…]
Anarch has quit [Ping timeout: 245 seconds]
Anarch has joined #ruby
lw has joined #ruby
cmxu has joined #ruby
northfurr has joined #ruby
<rubie> thanks
toordog has joined #ruby
<northfurr> is it necessary to preface rake with bin/?
<northfurr> it seems like they do the same thing
Photism has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
LoBoGoL has quit [Ping timeout: 250 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
timonv_ has joined #ruby
charliesome has quit [Quit: zzz]
benzrf is now known as benzrf|offline
phutchins has quit [Ping timeout: 250 seconds]
chrisja has quit [Quit: leaving]
arescorpio has quit [Excess Flood]
<j_mcnally> northfurr no
<j_mcnally> northfurr: rake typically gets installed to the ruby bin path when you install the gem, so as long as your gem/bin folder is in path you dont need to run the local one in the rails project
<j_mcnally> northfurr you can also run "bundle exec rake" if you use bundler
timonv_ has quit [Ping timeout: 265 seconds]
<northfurr> ah good to know
<northfurr> thanks j_mcnally
thomasfedb has quit [Disconnected by services]
thomasfedb has joined #ruby
cmckee has joined #ruby
thomasfedb has quit [Disconnected by services]
jdj_dk has joined #ruby
thomasfedb has joined #ruby
narcan has joined #ruby
jhass is now known as jhass|off
jdj_dk has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
Nilium has quit [Read error: Connection reset by peer]
LoBoGoL has joined #ruby
charliesome has joined #ruby
TroyBolton has joined #ruby
<TroyBolton> hi folks if I want do find a process number say a rails running process nr what do i append to ps aux?
<DmitryM> ps auxw|grep rails
arup_r has joined #ruby
<gizmore> there are not much more params that ps accepts
<DmitryM> or grep ruby perhaps
cndiv has quit [Ping timeout: 260 seconds]
reinaldob has joined #ruby
<gizmore> Process.pid
Juanchito has quit [Quit: Connection closed for inactivity]
NoNMaDDeN has quit [Remote host closed the connection]
fabrice31 has joined #ruby
dermothaughey has quit [Remote host closed the connection]
dermothaughey has joined #ruby
<TroyBolton> done
rubie has quit [Ping timeout: 246 seconds]
reinaldob has quit [Ping timeout: 255 seconds]
<gizmore> >> %(\\o/)
<eval-in__> gizmore => "\\o/" (https://eval.in/208594)
fabrice31 has quit [Ping timeout: 255 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
srnty has joined #ruby
dermothaughey has quit [Ping timeout: 250 seconds]
tokik has quit [Quit: leaving]
tokik has joined #ruby
SilkFox has joined #ruby
Techguy305 has quit [Ping timeout: 246 seconds]
hellangel7 has quit [Remote host closed the connection]
i_s has joined #ruby
IrishGringo has quit [Ping timeout: 255 seconds]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
maxmachine has joined #ruby
maxmachine has joined #ruby
maxmachine has quit [Client Quit]
maxmachine has joined #ruby
skolman_ has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
maxmachine has quit [Read error: Connection reset by peer]
maxmachine has joined #ruby
maxmachine has quit [Client Quit]
skolman has joined #ruby
SilkFox has quit [Ping timeout: 244 seconds]
maxmachine has joined #ruby
maxmachine has quit [Client Quit]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
maxmachine has joined #ruby
maxmachine has quit [Client Quit]
maxmachine has joined #ruby
maxmachine has quit [Client Quit]
skolman__ has joined #ruby
skolman has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
skolman__ has quit [Remote host closed the connection]
skolman_ has joined #ruby
sinequanon has joined #ruby
NoNMaDDeN has joined #ruby
jdj_dk has joined #ruby
oo_ has joined #ruby
oo_ has quit [Client Quit]
jaequery has joined #ruby
nonks has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
bricker`work has joined #ruby
srnty has quit [Quit: srnty]
spastorino has quit [Quit: Connection closed for inactivity]
fuhgeddaboudit has quit [Quit: Ex-Chat]
fuhgeddaboudit has joined #ruby
ARCADIVS has joined #ruby
jcdesimp has quit [Remote host closed the connection]
jY has joined #ruby
twoshot_ has quit [Quit: Leaving]
narcan has joined #ruby
<jY> wondering if this is possible.. is there a 1 liner to return all characters before a number in a string like given host-master01 return host-master
TroyBolton has left #ruby [#ruby]
ndrei has joined #ruby
jcdesimp_ has joined #ruby
LoBoGoL has quit [Ping timeout: 250 seconds]
mercwithamouth has joined #ruby
supersym has quit [Ping timeout: 255 seconds]
arup_r has quit [Quit: Leaving.]
TheRinger_ has joined #ruby
<TheRinger_> I've been learning ruby on codecademy and it's really been a gem
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Blizzy has joined #ruby
kyb3r_ has joined #ruby
VBlizzard has quit [Ping timeout: 265 seconds]
mengu has quit [Ping timeout: 250 seconds]
bluehavana has quit [Quit: Connection closed for inactivity]
pyon has joined #ruby
LoBoGoL has joined #ruby
robbyoconnor has joined #ruby
carraroj has joined #ruby
<parabolize> jY: "the number is 42"[/[^0-9]+/]
<parabolize> stolen from the koans
<jY> nice.. better then what i just came up with .match(/^.*[0-9]/)[0].gsub(/(\W-|\d)/, "")
reinaldob has joined #ruby
Channel6 has quit [Quit: Leaving]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Jet4Fire has quit [Ping timeout: 260 seconds]
vt102 has quit [Ping timeout: 244 seconds]
Nilium has joined #ruby
aspires has joined #ruby
sinkensabe has joined #ruby
godd2 has quit [Ping timeout: 250 seconds]
reinaldob has quit [Ping timeout: 260 seconds]
rbrs has joined #ruby
Jarboe has quit []
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
sinequanon has quit []
Morkel has joined #ruby
Spami has joined #ruby
Jet4Fire has joined #ruby
SilkFox has joined #ruby
BTRE has quit [Quit: Leaving]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
aspires has quit []
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 260 seconds]
chipotle_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
lw has quit [Quit: s]
tonybird has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patric100e99 has joined #ruby
patric100e99 has quit [Ping timeout: 246 seconds]
iamdoo2 has joined #ruby
omosoj has quit [Ping timeout: 244 seconds]
jdj_dk has quit [Ping timeout: 245 seconds]
codeurge has joined #ruby
freerobby has quit [Quit: Leaving.]
IceDragon has quit [Quit: Space~~~]
shock_one has joined #ruby
mistermocha has joined #ruby
codeurge has quit [Client Quit]
codeurge has joined #ruby
timonv_ has joined #ruby
hanmac1 has joined #ruby
emanu has joined #ruby
jcdesimp_ has quit [Quit: Leaving...]
mistermocha has quit [Ping timeout: 260 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
timonv_ has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 265 seconds]
<bricker`work> even better: /^\d+/
<bricker`work> oops
<bricker`work> /[^\d]+/
yfeldblum has quit [Ping timeout: 265 seconds]
<parabolize> "the number is 42"[/\D+/]
hamakn has quit [Remote host closed the connection]
keen__ has joined #ruby
<bricker`work> winner
hamakn has joined #ruby
tagrudev has joined #ruby
keen_ has quit [Ping timeout: 246 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oleo has quit [Quit: Verlassend]
linojon has quit [Quit: linojon]
starkhalo has quit [Ping timeout: 246 seconds]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
Morkel_ has joined #ruby
charliesome has quit [Quit: zzz]
AlexRussia has joined #ruby
codecop has joined #ruby
doodlehaus has joined #ruby
hellangel7 has joined #ruby
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
kp666 has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
masak has joined #ruby
jdj_dk_ has joined #ruby
masak is now known as Guest62323
mengu has joined #ruby
Guest62323 is now known as masak_grr
doodlehaus has quit [Ping timeout: 245 seconds]
testcore has joined #ruby
bluehavana has joined #ruby
iteratorP has quit [Quit: Leaving...]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
kp666 has quit [Quit: Konversation terminated!]
kp666 has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
jacobat has joined #ruby
rbrs has quit [Quit: Leaving]
sinequanon has joined #ruby
NoNMaDDeN has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
kamil has joined #ruby
baordog has quit [Ping timeout: 272 seconds]
SilkFox has joined #ruby
jacobat has quit [Ping timeout: 265 seconds]
jimbach has joined #ruby
codeurge has quit [Ping timeout: 250 seconds]
relix has joined #ruby
grzywacz has joined #ruby
SilkFox has quit [Ping timeout: 255 seconds]
jimbach has quit [Ping timeout: 265 seconds]
sandelius has joined #ruby
Sammael has quit [Ping timeout: 260 seconds]
bricker`work has quit [Ping timeout: 255 seconds]
hamakn has joined #ruby
sinequanon has quit [Remote host closed the connection]
ylluminarious has quit [Quit: Leaving...]
NoNMaDDeN has joined #ruby
sinequanon has joined #ruby
bal has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kovensky has quit [Quit: ZNC - http://znc.in]
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tokik_ has joined #ruby
kamil has quit [Quit: Leaving...]
klmlfl has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has quit [Ping timeout: 265 seconds]
Kovensky has joined #ruby
chipotle has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
chipotle has joined #ruby
jgrevich has quit [Quit: jgrevich]
hamakn has quit [Read error: Connection reset by peer]
andikr has joined #ruby
hamakn has joined #ruby
wildroman2 has joined #ruby
uber has quit [Ping timeout: 258 seconds]
aganov has joined #ruby
klmlfl has left #ruby [#ruby]
otakbeku has joined #ruby
fabrice31 has joined #ruby
uber has joined #ruby
a_ has joined #ruby
bigkevmcd has joined #ruby
yetanoth1rdave has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Remote host closed the connection]
GreatSUN has joined #ruby
amundj has joined #ruby
HelperW has joined #ruby
zhigang1992 has quit [Ping timeout: 245 seconds]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
iamdoo2_ has joined #ruby
<GreatSUN> hi all
byprdct has joined #ruby
<GreatSUN> short question: if I open a file with r+ mode
mkaesz has joined #ruby
<GreatSUN> how can I delete everything after current position?
NoNMaDDeN has quit [Remote host closed the connection]
byprdct has quit [Client Quit]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
iamdoo2 has quit [Ping timeout: 258 seconds]
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
helpa has joined #ruby
byprdct has quit [Max SendQ exceeded]
ta has quit [Remote host closed the connection]
doev has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
chipotle_ has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
jdj_dk_ has quit [Ping timeout: 250 seconds]
byprdct has quit [Max SendQ exceeded]
byprdct has joined #ruby
reinaldob has joined #ruby
techsethi has joined #ruby
jack_rabbit has quit [Ping timeout: 272 seconds]
grzywacz has quit [Ping timeout: 272 seconds]
kamil has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
thisguy123 has quit [Ping timeout: 256 seconds]
NoNMaDDeN has joined #ruby
reinaldob has quit [Ping timeout: 244 seconds]
byprdct has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
existensil has joined #ruby
HelperW has quit [Read error: Connection reset by peer]
terlar has joined #ruby
segmond has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
terlar has quit [Client Quit]
narcan has joined #ruby
<eam> GreatSUN: position = fd.tell; fd.truncate(position)
cjk101010_ is now known as cjk101010
<GreatSUN> eam: thanks :-)
emanu has quit [Quit: emanu]
emanu has joined #ruby
ta has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
otakbeku has quit [Ping timeout: 244 seconds]
qba73 has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sethen has quit [Read error: Connection reset by peer]
jheg has joined #ruby
sethen has joined #ruby
a_ has quit [Ping timeout: 244 seconds]
HelperW has joined #ruby
HelperW has quit [Client Quit]
HelperW has joined #ruby
klaut has joined #ruby
echooo has joined #ruby
coderhs has joined #ruby
terlar has joined #ruby
cmckee has quit [Quit: cmckee]
Axy has quit [Read error: Connection reset by peer]
eka has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
i_s has quit [Remote host closed the connection]
eka has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
segmond has joined #ruby
sandelius has joined #ruby
SilkFox has joined #ruby
wildroman3 has joined #ruby
renderful has joined #ruby
Sp4rKy__ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
yfeldblum has joined #ruby
narcan has quit [Ping timeout: 256 seconds]
jdj_dk_ has joined #ruby
wildroman2 has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tredstone has joined #ruby
SilkFox has quit [Ping timeout: 250 seconds]
hellangel7 has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 272 seconds]
tokik_ has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
hellangel7 has joined #ruby
gauke has joined #ruby
tylersmith has joined #ruby
tokik has joined #ruby
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
oponder has quit [Remote host closed the connection]
Altonymous has quit [Quit: Altonymous]
timonv_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
Kislik has joined #ruby
shock_one has quit [Quit: Be back later ...]
timonv_ has quit [Ping timeout: 272 seconds]
weaksauce has quit [Ping timeout: 255 seconds]
hellangel7 has quit [Ping timeout: 272 seconds]
iwishiwerearobot has joined #ruby
nichtdiebohne has joined #ruby
ta has joined #ruby
shortCircuit__ has joined #ruby
nichtdiebohne1 has quit [Ping timeout: 250 seconds]
tredstone has quit [Quit: Leaving.]
flughafen has quit [Read error: Connection reset by peer]
yetanotherdave has joined #ruby
charliesome has joined #ruby
it0a has quit [Ping timeout: 245 seconds]
nonks has joined #ruby
Dude007 has quit [Ping timeout: 258 seconds]
emanu has quit [Quit: emanu]
ta_ has joined #ruby
kenneth has quit [Ping timeout: 260 seconds]
BradPitt_ has quit [Ping timeout: 255 seconds]
wpp has joined #ruby
kenneth has joined #ruby
BradPitt_ has joined #ruby
shredding has joined #ruby
ta has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
jvv has quit [Ping timeout: 250 seconds]
dumdedum_ has joined #ruby
hellangel7 has joined #ruby
jheg has quit [Quit: jheg]
yetanotherdave has quit [Ping timeout: 256 seconds]
sinequanon has quit []
wildroman3 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
kaspergrubbe has joined #ruby
Sammael has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
lkba has joined #ruby
jdj_dk_ has quit [Ping timeout: 244 seconds]
testcore has quit [Ping timeout: 246 seconds]
nonks has quit [Ping timeout: 256 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheRinger_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
HelperW has quit [Ping timeout: 255 seconds]
lolmaus has quit [Quit: Konversation terminated!]
yfeldblum has quit [Ping timeout: 272 seconds]
nfk has joined #ruby
mikecmpbll has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
BradPitt_ has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
BraddPitt has joined #ruby
wildroman2 has quit [Ping timeout: 240 seconds]
doodlehaus has joined #ruby
rbrs has joined #ruby
wildroman2 has joined #ruby
<hanmac1> ping shevy
kaspergrubbe has quit [Ping timeout: 244 seconds]
crazydiamond has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
doodlehaus has quit [Ping timeout: 244 seconds]
wildroman2 has quit [Client Quit]
danijoo has quit [Read error: Connection reset by peer]
lkba has quit [Quit: Bye]
VanillaGoat has joined #ruby
danijoo has joined #ruby
agjacome has quit [Quit: leaving]
skolman_ has quit [Remote host closed the connection]
<VanillaGoat> Could someone help me out with sprintf/printf formatting? I want 17.2550 to be displayed as "0017.2" -- four digits of precision on the pre-decimal part, one after it.
carraroj has quit [Quit: Konversation terminated!]
<VanillaGoat> But "%04.1f" doesn't work.
Xeago has joined #ruby
atmosx_ has joined #ruby
rbrs has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
<VanillaGoat> "%04d" works for just 17, "%.01f" works for 17.2, but I can't combine them.
atmosx_ has quit [Client Quit]
oponder has joined #ruby
<sevenseacat> one says .1, one says .01
<atmosx> ping shevy
<VanillaGoat> Just a typo in explaining it, %.1f has the same effect
grzywacz has joined #ruby
chinaski has joined #ruby
shock_one has joined #ruby
sk87 has joined #ruby
SouL has joined #ruby
matchaw has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
SouL__ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<tmoore> VanillaGoat: the width includes the decimal part and decimal point, so add two
<tmoore> >> sprintf "%06.1f", 17.2550
<eval-in__> tmoore => "0017.3" (https://eval.in/208610)
<VanillaGoat> tmoore: ahh, perfect. didn't think of that at all, makes sense. thanks a ton
<tmoore> also it seems to round up instead of truncate :-)
SilkFox has joined #ruby
jdj_dk_ has joined #ruby
Juanchito has joined #ruby
jheg has joined #ruby
roolo has joined #ruby
SilkFox has quit [Ping timeout: 255 seconds]
shock_one_ has joined #ruby
shock_one has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
Takle has joined #ruby
ki0 has joined #ruby
SouL has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
dangerousdave has joined #ruby
zhigang1992 has joined #ruby
SouL has joined #ruby
timonv_ has joined #ruby
WormDrink has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 256 seconds]
riton has joined #ruby
Jet4Fire has quit []
timonv_ has quit [Ping timeout: 260 seconds]
<riton> Hi guys, can someone explain me what's really happening in this code (https://gist.github.com/riton/9b52b4283243d93fe145) when I use an implicit *return* statement from a "block" VS. when I use an explicit return ? Thanks
ephemerian has joined #ruby
rbrs has joined #ruby
<sevenseacat> someone's a python programmer lol
<riton> sevenseacat: me :-), yes :-)
<hanmac1> riton: for blocks and procs use break/next instead of return
queequeg2 has quit [Ping timeout: 245 seconds]
crazydiamond has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<riton> ok, so "implicit" return and "explicit" return are not *always* the same as I could read on the Internet
<riton> I read that they were syntaxically equivalent
Dude007 has joined #ruby
<riton> *syntactically
olivier_bK has joined #ruby
<jokke> ok i'm still stuck with treetop
<jokke> i'm starting to fear that reverse polish notation shouldnt be parsed with a PEG
queequeg1 has joined #ruby
yetanotherdave has joined #ruby
elaptics`away is now known as elaptics
reinaldob has joined #ruby
zeusmns has joined #ruby
zarubin has joined #ruby
Darryl has joined #ruby
WormDrink has joined #ruby
<jokke> this: "+ 5 10 - 2" is totally easy to parse
<jokke> but this: "5 10 + 2 -" is not
relix has joined #ruby
<shevy> hey atmosx
Squarepy has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Changing host]
<shevy> riton they are somewhat similar - explicit return allows you to return at any one time though, "implicit" return as such does not exist per se because whatever is "returned" last in a method becomes what is returned anyway; in these cases you can omit the explicit return statement there
goshdarnyou has quit [Quit: Connection closed for inactivity]
lolmaus has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
<hanmac1> shevy: \o/
jdj_dk_ has quit [Ping timeout: 255 seconds]
hellangel7 has quit [Read error: Connection reset by peer]
yetanotherdave has quit [Ping timeout: 260 seconds]
<shevy> what is that?
<ddv> shevy: that is a lot of text to explain how returning works
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ddv> shevy: did you do that on purpose?
<shevy> ddv I typed the above on purpose
<shevy> ddv do you type accidentally?
<ddv> always
<shevy> I let my cat do the latter
<riton> shevy: yes, this was what I understood, but what I don't "really" understand is why using explicit *return* from a block does not propagate the returned value to the "wrapper" function
<hanmac1> shevy i let my ruby part of rwx scan with codeclimate
<shevy> riton well a block must return something, but it can be discarded; if you need the value, you can check in that method (we say method and not function btw) through: result = yield if block_given?
mmochan_ has joined #ruby
<shevy> foo { '42' }
fandi has joined #ruby
lemur has quit [Ping timeout: 244 seconds]
FooMunki has joined #ruby
Scotteh has quit [Quit: Later, folks]
zarubin has quit [Quit: Leaving.]
chipotle has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
einarj has joined #ruby
zarubin has quit [Client Quit]
chipotle has joined #ruby
sk87 has joined #ruby
gauke has quit [Quit: gauke]
HelperW has joined #ruby
bayed has joined #ruby
M3M0CooL has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
rdark has joined #ruby
PeterBoy has joined #ruby
agjacome has joined #ruby
ELLIOTTCABLE has joined #ruby
<riton> shevy: thanks for your patience / time. My question could be formulated as "where did my *returned* value went when I use explicit return as it's not returned to the wrapper() method ? I understood that within a block, I should use break/next and implicit return but still, being unable to use *return* from a block is disturbing.
<riton> Perl has the same thing with implicit return "If a subroutine “falls off the end” without ever encountering an explicit return, the value of the last expression evaluated in a subroutine is returned." but using an explicit return has the same behavior
unshadow has joined #ruby
pedromoreira has joined #ruby
<riton> this is this difference of behavior in ruby between "explicit return from a block" VS "implicit return from a block" that disturbs me
<riton> even if I can "admit" this is the way it works :-)
<zhigang1992> fddd
<atmosx> shevy: should I let the user define his own stop codons? hm
<jheg> o/
Lewix has quit [Remote host closed the connection]
<jheg> is it only classes that create objects in ruby?
yfeldblum has joined #ruby
zhigang1992 has quit [Quit: leaving]
<jheg> jus trying to understand things a little clearer and wondered about the fact that if everything in ruby is an object and lets say a method returns an integer for example then hasnt the method created an object?
<atmosx> and a good question is how to do that from the user interface since these are hard-coded in the library shit..
<unshadow> Can I control the SSL parameter in OpenSSL::SSL::SSLSocket ? for example change ciphers chosen and SSL\TLS protocols used , maybe as a value change in ssl context ? I can seems to find any documentation on the subject
<unshadow> *can't
yfeldblu_ has quit [Ping timeout: 246 seconds]
timonv_ has joined #ruby
<atmosx> unshadow: you can yes, but there's not documentation on the subject, true.
pedromoreira has quit [Quit: WeeChat 1.0]
<atmosx> generally speaking everyone avoids messing with SSL
timonv^ has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
<unshadow> atmox: Ok, I need to, sadly, mess with SSL for security reasons (the SSL default options are terrible), do you have some experience with the subject ? or at lest show me the right direction ?
gauke has joined #ruby
FooMunki has quit [Quit: FooMunki]
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<unshadow> * atmosx
TPBallbag has joined #ruby
iamdoo2_ has quit []
<atmosx> unshadow: ah sorry, not really. I messed with SSL some time ago trying to pass some options, remember finding some random examples on some github support posting... Tried to ask/etc no one *knew*
jdj_dk_ has joined #ruby
<unshadow> Well... ok :(
ELLIOTTCABLE has quit [Quit: Lost terminal]
<atmosx> wait
marr has joined #ruby
<atmosx> let me try to take a look at the code, might give you an idea on how to pass arguments
joonty has joined #ruby
shredding has quit [Quit: shredding]
<shevy> atmosx yes you must, some organelles etc.. use different stop codons
<atmosx> oh shit, lol. Sorry man, in the end I used Faraday to load ca_cert ... I remember messing with SSL directly at some point but I don't have the code anymore.
<atmosx> shevy: and how can I do that :-/ since these are kinda hard-coded there.
<atmosx> shevy: it's for bacterial DNA/RNA only
hiyosi_ has joined #ruby
ELLIOTTCABLE has joined #ruby
<atmosx> 10 => %w(taa tag) ... there are the predefined bacterial stop codons
SilkFox has joined #ruby
brushdemon has joined #ruby
sevenseacat has quit [Quit: Leaving.]
poulet_a has joined #ruby
kedare has joined #ruby
<shevy> good question hehehehe
tvw has quit []
hiyosi has quit [Ping timeout: 260 seconds]
<shevy> where are they applied?
bitonic has joined #ruby
<shevy> I mean there must be some area in the code that uses TABLES
<bitonic> I'm trying to install `atomic' on linux (I need it for travis), I get this bizarre configure error "checking for libkern/OSAtomic.h... *** extconf.rb failed ***"
<bitonic> apparently the configure file thinks I'm on Mac OS X
brushdemon has quit [Client Quit]
brushdemon has joined #ruby
kedare has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 272 seconds]
SilkFox has quit [Ping timeout: 255 seconds]
kedare has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bitonic> I don't know anything about ruby or gems, how do I debug this?
ctp has joined #ruby
matchaw has quit [Ping timeout: 244 seconds]
carraroj has joined #ruby
patric100e99 has joined #ruby
<hanmac1> bitonic: when you try to install it it should print more output
<hanmac1> maybe a path to a *.out file or similar
oo_ has joined #ruby
<bitonic> hanmac1: <http://pastebin.com/qWDSpnrE>
<bitonic> this is as part of installing travis
User458764 has quit [Ping timeout: 244 seconds]
<ctp> hi folks. i have a hash like this: {"cat1"=>["foo","bar"],"cat2"=>["bla","fa"],"cat3"=>["baz","foobar"]} and wanna return a random pair of catX and the appropriate element of its value array. {"cat1"=>["foo","bar"],"cat2"=>["bla","fa"],"cat3"=>["baz","foobar"]}.values.flatten.sample retrieves a random key and fetches e.g. "baz" but how to lookup then for the corresponding key? like {"cat3"=>"baz"}
HelperW_ has joined #ruby
HelperW_ has quit [Client Quit]
HelperW_ has joined #ruby
<hanmac1> bitonic: there is /home/bitonic/src/travis/travis-worker/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0/atomic-1.1.16/gem_make.out which might be interesting if it does have more input
<ctp> s/retrieves a random key/retrieves a random value
zarubin has joined #ruby
<bitonic> the <mkmf.log> contains, another error, <http://pastebin.com/K5SANkue>. I think that flag is available only in gcc 4.9
<ctp> the values are unique btw
zarubin has quit [Client Quit]
<bitonic> hanmac1: right, that file contains what I posted in the first pastebin
HelperW has quit [Ping timeout: 258 seconds]
Takle has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe_ has joined #ruby
<hanmac1> hm i dont know where the flag is coming from, and i currently cant debug it myself
patric100e99 has quit [Ping timeout: 250 seconds]
<bitonic> hanmac1: well, I also tried to set CC=ghc-4.9 but it doesn't seem to honour it
relix has joined #ruby
davidhq has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
TPBallbag has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
<hanmac1> hm bitonic how did you build ruby?
FooMunki has joined #ruby
<bitonic> hanmac1: through apt on debian jessie
User458764 has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
GeorgesLeYeti has joined #ruby
<hanmac1> hm ah ok i was wondering because its confusing where that flag does come from ... :/
fabrice31 has quit [Read error: No route to host]
unshadow has quit [Quit: leaving]
fabrice31 has joined #ruby
<hanmac1> bitonic: you did CC=gcc-4.9 too right and not CC=ghc-4.9 ?
<bitonic> hanmac1: yep
<ctp> hm, anyone here can explain me why the key by value lookup doesnt work in this snippet?
<ctp> 2.1.3 :012 > h = {"cat1"=>["foo","bar"],"cat2"=>["bla","fa"],"cat3"=>["baz","foobar"]}
<ctp> => {"cat1"=>["foo", "bar"], "cat2"=>["bla", "fa"], "cat3"=>["baz", "foobar"]}
<ctp> 2.1.3 :013 > v = h.values.flatten.sample
<ctp> => "foobar"
<ctp> 2.1.3 :014 > h.key(val)
<ctp> => nil
<hanmac1> ctp because "foobar" is not a DIRECT value in that hash
<ctp> oh, ok. makes sense. any idea how to match for it as part of the array value?
blackmesa has joined #ruby
poulet_a has quit [Quit: Quitte]
<bitonic> hanmac1: gotta go for lunch but please write if you have tips!
chinaski has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
<atmosx> shevy: in translation
<atmosx> hm the translation methods must be using them, maybe accepts args let's see
<hanmac1> ctp: h.select{|_,vals| vals.include?(v) }
rbrs has quit [Ping timeout: 245 seconds]
<ctp> hanmac1: ok, got it. thx!
Soda has joined #ruby
brushdemon has quit [Disconnected by services]
brushdemon_ has joined #ruby
M3M0CooL has quit []
jdj_dk_ has quit [Ping timeout: 260 seconds]
matcouto has joined #ruby
yetanotherdave has joined #ruby
lemur has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noop has joined #ruby
matcouto has quit [Client Quit]
niklasb has joined #ruby
Spami has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
timonv^ has quit [Remote host closed the connection]
<atmosx> wesome got it, it's possible to edit the table!
BLuEGoD has quit [Remote host closed the connection]
lnong has quit [Remote host closed the connection]
BLuEGoD has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
yokel has joined #ruby
PeterBoy has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 265 seconds]
PeterBoy has joined #ruby
PeterBoy has quit [Remote host closed the connection]
TPBallbag has joined #ruby
PeterBoy has joined #ruby
carraroj has joined #ruby
masak_grr is now known as masak
PeterBoy has quit [Client Quit]
TPBallbag has quit [Remote host closed the connection]
masak is now known as Guest98996
Guest98996 is now known as masak_grr
doodlehaus has joined #ruby
<shevy> atmosx cool
nonks has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
gyre007_ has joined #ruby
<gyre007_> anyone here using vim-ruby plugin ?
jimbach has joined #ruby
mengu has joined #ruby
raldu has quit [Ping timeout: 245 seconds]
matchaw has joined #ruby
raldu has joined #ruby
tvw has joined #ruby
timonv_ has joined #ruby
Timgauthier has joined #ruby
jdj_dk_ has joined #ruby
shredding has joined #ruby
jimbach has quit [Ping timeout: 260 seconds]
Takle_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
supersym has joined #ruby
brushdemon_ is now known as brushdemon
reinaldob has joined #ruby
BTRE has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
mengu has quit [Ping timeout: 256 seconds]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
ctp has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
SilkFox has joined #ruby
Takle has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Soda has quit [Remote host closed the connection]
SilkFox has quit [Ping timeout: 245 seconds]
ixti has joined #ruby
<hanmac1> apeiros: look what i have done ;P https://codeclimate.com/github/Hanmac/rwx
TPBallbag has joined #ruby
kaspergrubbe_ has quit [Read error: No route to host]
kaspergrubbe has joined #ruby
yvemath has joined #ruby
yvemath is now known as Guest33740
drakezhard has joined #ruby
drawingthesun has joined #ruby
drakezhard has left #ruby [#ruby]
<elaptics> gyre007_: yes
<gyre007_> I've just set it up
<gyre007_> but it's not doing ruby indentation at all
<gyre007_> like wat
<gyre007_> instead of 2 space indent it does 4 or something like that
ixti has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
<gyre007_> I'm not a ruby dev, but ruby guys would kill me if I pushed code without 2 space indent :-D
fsapo has joined #ruby
yfeldblum has joined #ruby
<elaptics> gyre007_: I don't think that plugin does indentation - it just modifies how you can do indenting
rdark has quit [Ping timeout: 244 seconds]
<gyre007_> really ?
<gyre007_> I thought it would do file detect and indent based on filedetect?
<gyre007_> it does filedetect pretty well...it rcognises Rakefiles and all of the ruby stuff...
<gyre007_> my vimrc is pretty simple http://pastie.org/9667284
<ddv> vim defaults are horrible
luckyruby has quit [Ping timeout: 255 seconds]
rdark has joined #ruby
<Mattias> I usually just use a premade vimrc, like spf13. Then go from there
<gyre007_> well, all works for me quite well with this config
<gyre007_> except for ruby :-)
<gyre007_> I figured vim-ruby would do the job
<gyre007_> but it doesnt seem to be
<Mattias> Although, recently, I've started using the JetBrains IDEs
<gyre007_> hence I came here to ask for some info from the wizzards....
<elaptics> I just have my tabstop set to 2 anyway by default
lw has joined #ruby
rodfersou has joined #ruby
<elaptics> so maybe why I've never noticed
<elaptics> maybe just add an autocmd for ruby files for it to your config?
<gyre007_> I do mostly Python and Go these days...so having this set to 2 spaces would be like shooting myself in a foot
<gyre007_> ...
<gyre007_> yeah I can hack around this, but I thought vim-ruby plugin would do this for me...
<ddv> you shouldn't expect all vim plugins to be of high quality
<ddv> even highly used ones
RyanV has joined #ruby
workmad3 has joined #ruby
<gyre007_> haha yeah....but this one has been around for like ages...
skolman has joined #ruby
rdark has quit [Quit: leaving]
<gyre007_> but yeah we can talk about open source software and its quality here too for hours
<gyre007_> thats not the point ;-)
rdark has joined #ruby
roolo_ has quit [Remote host closed the connection]
<gyre007_> I just thought someone in #ruby room would be using vim-ruby plugin
<gyre007_> thats all :)
<gyre007_> now that I see no one really is, I"m done asking question :-)
roolo has joined #ruby
sepp2k has joined #ruby
<canton7> gyre007_, parts of the US haven't woken up yet - give them a chance :P
<gyre007_> yeah might pop in later I geuss canton7
jottr has joined #ruby
<elaptics> gyre007_: what version of vim are you using?
skolman has quit [Ping timeout: 240 seconds]
shock_one_ has quit [Quit: Be back later ...]
doodlehaus has joined #ruby
<elaptics> gyre007_: if it's remotely recent this suggests that indenting,etc should "just work" https://github.com/vim-ruby/vim-ruby/wiki/VimRubySupport
roolo has quit [Ping timeout: 260 seconds]
mkaesz has quit [Ping timeout: 272 seconds]
<gyre007_> I'm on 7.3
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
ldnunes has joined #ruby
<gyre007_> in fact I'm gonna install later one
Timgauthier has joined #ruby
gaganjyot has joined #ruby
shock_one_ has joined #ruby
ixti has joined #ruby
yetanotherdave has joined #ruby
lessless has joined #ruby
<lessless> folks, help me please with https://gist.github.com/lessless/0f04d83dd555ab63618f
oponder has quit []
<lessless> should validation_strategies be a class method?
<gyre007_> elaptics: yeah I read that link, and that was the reason I assumed that indenting should just work
jdj_dk_ has quit [Ping timeout: 245 seconds]
<elaptics> gyre007_: so do you have this file? $VIMRUNTIME/indent/ruby.vim
<hanmac1> lessless hm imo validation_strategies does need to be a class method otherwise it might not work as you want
<gyre007_> elaptics: indeed
<hanmac1> lessless: or you need an extra module that you can extend into the class you include your module inside
techsethi has quit [Quit: techsethi]
<lessless> hanmac1: it looks like so... but in that case how to implement valid? method
<lessless> or #valid - it should have access to the @validation_strategies variable
shock_one_ has quit [Ping timeout: 272 seconds]
<elaptics> gyre007_: weird then, as far as I can see then it should be working for you. You have filetype indent on in your vimrc
<gyre007_> yeah
<gyre007_> exactly
<gyre007_> im installing latest vim
<elaptics> gyre007_: ¯\_(ツ)_/¯
reinaldob has joined #ruby
Takle has quit [Remote host closed the connection]
<gyre007_> :-)
yetanotherdave has quit [Ping timeout: 256 seconds]
shock_one_ has joined #ruby
<hanmac1> lessless: nope valid? is outside of ClassMethods
puppeh has joined #ruby
<puppeh> can a ruby server built with async. in mind be compatible with Rack?
techsethi has joined #ruby
gaganjyot has quit [Ping timeout: 245 seconds]
kamil has quit [Quit: Leaving...]
cek has joined #ruby
<cek> anyone using rack/sinatra? Having trouble with setting rack.errors IO
manzo has joined #ruby
<gyre007_> elaptics: nope, vim upgrade didnt help...
ARCADIVS has quit [Quit: ARCADIVS]
* gyre007_ giving up on vim-ruby
gaganjyot has joined #ruby
<lessless> hanmac1: I still do not get how it is possible https://gist.github.com/lessless/0f04d83dd555ab63618f :(
robbyoconnor has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
rodfersou has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
mkaesz has joined #ruby
hamakn has quit [Remote host closed the connection]
jhass|off is now known as jhass
<hanmac1> lessless: self.class.validation_strategies
hamakn has joined #ruby
codecop has quit [Remote host closed the connection]
himsin has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
agjacome has quit [Quit: leaving]
tokik has quit [Ping timeout: 255 seconds]
max96at|off is now known as max96at
zaid_h has joined #ruby
fandi has quit [Remote host closed the connection]
shock_one_ has quit [Quit: Be back later ...]
<lessless> hanmac1: is this a decent design? :\
SouL has quit [Ping timeout: 265 seconds]
jdj_dk_ has joined #ruby
SilkFox has joined #ruby
SouL has joined #ruby
iwishiwerearobot has quit [Remote host closed the connection]
<lessless> I read ActiveModel::Validations but do not see a whole picture at the moment and thus can't grasp its architecture
Spami has quit [Quit: This computer has gone to sleep]
bitonic has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
toretore has joined #ruby
nrsk has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
SilkFox has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
nonks has quit [Ping timeout: 244 seconds]
roolo has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
tadayoshi has joined #ruby
Xeago_ has quit [Ping timeout: 260 seconds]
Timgauthier is now known as timgauthier_away
patric100e99 has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bal has quit [Quit: bal]
Timgauthier has joined #ruby
<lessless> is it ok for class and instance context to intersect at all?
bal has joined #ruby
tadayoshi has quit [Client Quit]
rossgeesman has joined #ruby
Takle has joined #ruby
phutchins has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
puppeh has left #ruby ["Leaving..."]
patric100e99 has quit [Ping timeout: 272 seconds]
rossgeesman has quit [Remote host closed the connection]
lw has quit [Quit: s]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
ad_boot has joined #ruby
Macaveli has joined #ruby
pyon has quit [Quit: "work"]
Macaveli has quit [Client Quit]
Deejay_ has joined #ruby
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
doev has quit [Ping timeout: 244 seconds]
doev has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Deejay_ has quit [Client Quit]
HelperW_ has quit [Ping timeout: 250 seconds]
aspiers has joined #ruby
jdj_dk_ has quit [Ping timeout: 272 seconds]
supersym has quit [Ping timeout: 256 seconds]
spyderman4g63 has joined #ruby
<shevy> what does intersect mean
<csmrfx> where sets contain same?
hellangel7 has joined #ruby
<shevy> I am still not smarter than before
hobodave has joined #ruby
mmochan_ has quit [Quit: Connection closed for inactivity]
himsin has quit [Quit: himsin]
yetanotherdave has joined #ruby
lessless has quit [Ping timeout: 272 seconds]
jimbach has joined #ruby
<jheg> Will an object’s class check if a method exists within itself first and then check the subclass?
sigurding has joined #ruby
agjacome has joined #ruby
<tmoore> jheg: checks itself and then the superclass
<gregf_> it should go from specific to generic class
<shevy> should the 80 characters limit be honoured in comments as well? or should it only apply to code elements
<gregf_> >> class Parent; def hey; puts "parent";end;end; class Child < Parent ; def hey; puts "child";end; end; c = Child.new; c.hey
<eval-in__> gregf_ => child ... (https://eval.in/208683)
<gregf_> >> class Parent; def hey; puts "parent";end;end; class Child < Parent ; end; c = Child.new; c.hey
<eval-in__> gregf_ => parent ... (https://eval.in/208684)
<gregf_> shevy: sorry for interrupting :/
jimbach has quit [Ping timeout: 265 seconds]
<jheg> tmoore: thanks. I dont quite understand though … https://gist.github.com/jheg/959bba09235c2a8e104d
<jheg> take that gist for example. Animal is a subclass of GoodDog I think?
<shevy> gregf_ I don't feel in any particular way whether you interrupt or not, it's all good for me
supersym has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
<gregf_> jheg: nope, animal is the superclass :/
<jheg> so when I init an instance of GoodDog I thought it will use its own speak method and if it isnt there (like in the Cat class) it then uses the mthod defined in the subclass
<jheg> ah!
<shevy> jheg the subclass will look for the parent
<jheg> Gotcha that explains it then ha thank you
<shevy> "mother, has this method? if yes, run that method"
<jheg> So GoodDog < Animal
<shevy> my english just downgraded towards japanese english
<jheg> GoodDog subclass - Animal Superclass
<jheg> ?
<gregf_> the superclass should'nt be instantiated(it can be abstract). thats the whole reason for inheritance :/ OOPS
hobodave has quit [Quit: Computer has gone to sleep.]
<shevy> jheg yes
<jheg> ta
<shevy> you can memorize this super easy - in ruby there is the method called super() which you can use in your subclass, to call the super-class (method)
<shevy> def foo
masak_grr is now known as masak
AndChat|80625 has joined #ruby
<shevy> super('hey there these arguments will be passed to the parent method')
<shevy> I use this sometimes for when my objects have a reset() method
<shevy> this I use to reset a default / clean state. sometimes subclasses need slightly adapted reset methods yet still have to tap towards the original parent method
ad_boot has quit [Quit: ad_boot]
<shevy> gregf_ what do you do when you have to rewrite something
<shevy> but you lost your motivation along the way
<jheg> thanks shevy
<shevy> \o/
<gregf_> shevy: sorry din get you
<gregf_> rewrite as in refactor?
<shevy> since some days I have not continued on an important project
<shevy> so my main way to compile and install programs is broken
<shevy> I have a second smaller project, with less code and less features that still works
<shevy> well yeah gregf_ but massive refactoring
<shevy> basically you'd end up rewriting just about everything (potentially)
robbyoconnor has joined #ruby
jimbach has joined #ruby
mengu has quit [Remote host closed the connection]
<gregf_> shevy: well if the design is right the rest will follow. its not difficult to write bad code and feel good about it :/.
<shevy> the original design kinda stinks
<jhass> gregf_: not quite true. Where you use abstract classes, in ruby you would use modules
nonks has joined #ruby
<shevy> which is why I had to rewrite :(
<shevy> for some reason, big projects suck away a lot of time
devdazed has quit [Quit: Computer has gone to sleep.]
jdj_dk_ has joined #ruby
<ddv> I wanted to read some silly xml for an app, I endedup creating an activerecord like abstraction to read xml
HelperW has joined #ruby
techsethi has quit [Quit: techsethi]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
robbyoconnor has quit [Client Quit]
<jhass> arel for xpath? :P
volty has joined #ruby
<shevy> yum
<shevy> xml
<volty> hi, trying to go speedy, haml, let's say I have a string containing haml source, how can I invoke haml, from inside a ruby script, to convert to html ?
decoponio has joined #ruby
<ddv> you need a phd to understand arel but something close to that
rdark has quit [Ping timeout: 272 seconds]
<gregf_> jhass: true in ruby. but yeah, in java/PHP/Perl(Moo(se)?) you would usually implement an interface/Role or extend from an abstract class
rdark has joined #ruby
bal has quit [Quit: bal]
<volty> found, ignore
shock_one_ has joined #ruby
<jhass> I disagree that all classes you want to instantiate are always the leaves of the inheritance tree, it's just the more common case
<shevy> well
<shevy> try to model the "tree of life"
nonks has quit [Ping timeout: 265 seconds]
<shevy> when it was supposed to be "one common ancestor", it is all fine, but the moment it was realized that you can have "multiple inheritance" in reallife when DNA is exchanged freely especially among "lower" organisms, a strict single-parent hierarchy will fail hence why modules really are so much nicer
<gregf_> yeah, you can have layers of abstraction where every class in the hierarcy can be instantiated
SilkFox has joined #ruby
<shevy> I sometimes want my modules to be instantiatable too!
<gregf_> i prefer mixins tbh :/ less code duplication
krz has quit [Quit: WeeChat 1.0.1]
<shevy> but I can only instantiate classes... and when I am there, I can no longer use a class as mixin
<gregf_> true
twistedpixels is now known as zz_twistedpixels
<volty> shevy, you can, though it's tricky and must convention based
artmann has quit [Quit: No Ping reply in 180 seconds.]
<volty> s/must/has to be/
<shevy> I can include a class?
artmann has joined #ruby
<volty> no, the modules, you were talking about instantiating modules
<shevy> I am talking about both actually - instantiating a module and including a class :)
weemsledeux has joined #ruby
weemsledeux has joined #ruby
bal has joined #ruby
techsethi has joined #ruby
<shevy> though how do you instantiate a module volty?
<volty> intercepting new
lw has joined #ruby
alex88 has joined #ruby
alex88 has quit [Client Quit]
rotor has quit [Ping timeout: 272 seconds]
alex88 has joined #ruby
shock_one_ has quit [Ping timeout: 260 seconds]
ixti has joined #ruby
<volty> and including with another include, e.g. qinclude
SilkFox has quit [Ping timeout: 246 seconds]
<volty> tricky but suited my need for extension-like initializers
JohnBat26 has joined #ruby
<shevy> huh
<shevy> you can intercept new?
Deejay_ has joined #ruby
<shevy> I need to test this
<volty> of course, redefine, aliasing
aclearman037 has joined #ruby
<volty> you know haml?
<shevy> only from the name
<shevy> and it looked complicated!
<volty> i like what I see, just started
sigurding has quit [Quit: sigurding]
<volty> but do not realize yet where from the data gets pulled
RyanV has quit [Quit: (null)]
likemike has joined #ruby
chipotle has quit [Remote host closed the connection]
<likemike> in ARGV.each do |a| how do i check if a is empty ?
lw has quit [Quit: s]
tokik has joined #ruby
<volty> cannot be empty
chipotle has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<volty> anyway a.emtpy?
<volty> a.empty?
jottr has quit [Ping timeout: 256 seconds]
dangerousdave has joined #ruby
<volty> >> "".empty?
<eval-in__> volty => true (https://eval.in/208691)
haroldwu has joined #ruby
<likemike> volty: i mean when you do pass a commandline argument so you check for it and display an error
IrishGringo has joined #ruby
<volty> ah, with OPTS
blackmesa has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Client Quit]
<volty> optparse, .e.g. ?
dangerousdave has joined #ruby
alex88 has quit []
<volty> but I think that optparse already handles that for you
<volty> anyway: if you do it manually you cannot check that way
<likemike> volty: so without optparse i cannot check it ?
<volty> not that way
<likemike> how then ? :-)
<volty> you have to check if there is a right param next to the option
doev has quit [Ping timeout: 272 seconds]
<volty> rewriting the optparse :)
<likemike> :D
doev has joined #ruby
alex88 has joined #ruby
NoNMaDDeN has quit [Quit: Leaving...]
<volty> but writing, yourself, such a thing, you learn a lot
rossgeesman has joined #ruby
shredding has quit [Quit: shredding]
NoNMaDDeN has joined #ruby
gaboesquivel has joined #ruby
<volty> basically you have to convert an array into hash where the keys are the options
jottr has joined #ruby
jdj_dk_ has quit [Read error: Connection reset by peer]
doev has quit [Read error: Connection reset by peer]
jdj_dk_ has joined #ruby
whowantstolivefo has joined #ruby
zaid_h has quit [Quit: ZZZzzz…]
rotor has joined #ruby
benzrf|offline is now known as benzrf
<shevy> likemike basic things first
<shevy> likemike anything you pass from the commandline to a ruby .rb script, is stored in ARGV
<shevy> that means when you do this:
<shevy> ruby testing.rb --help
<shevy> then ARGV will be exactly this:
<shevy> ["--help"]
<shevy> now there are several ways to check this information
jheg has quit [Quit: jheg]
<shevy> as it is an Array, you can manually act on the information passed there, using .each for instance
<shevy> I often do something like this:
<shevy> foo = MyClass.new
<shevy> foo.menu(ARGV) unless ARGV.empty?
AlSquire has joined #ruby
spastorino has joined #ruby
<shevy> where menu is the menu-interface I use to handle stuff. I can optionally connect this with optparse if I need to act on things like "--set-base_directory=/tmp"
<shevy> for things like -- combined with a value, optparse is indeed simpler than writing the code all by yourself
jdj_dk_ has quit [Ping timeout: 255 seconds]
<shevy> likemike this is an optparse-skeleton I often use: http://pastie.org/9667489
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doev has joined #ruby
Timgauthier has joined #ruby
nateberkopec has joined #ruby
rdark has quit [Quit: leaving]
rdark has joined #ruby
Liendre has joined #ruby
<Liendre> Hello ^^
tvw has quit []
abuzze_ has quit [Ping timeout: 244 seconds]
Deejay_ has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
whowantstolivefo has left #ruby ["gone with the wind"]
tonybird has joined #ruby
codecop has joined #ruby
<chipotle> anyone use atom as their text editor? how do i set it up for the two space convention with ruby?
Soda has joined #ruby
abuzze has joined #ruby
AndChat-80625 has joined #ruby
qmfnp has joined #ruby
Guest3814 is now known as pasv
pasv has quit [Changing host]
pasv has joined #ruby
jheg has joined #ruby
rossgeesman has quit [Ping timeout: 265 seconds]
thoolihan has quit [Ping timeout: 244 seconds]
AndChat|80625 has quit [Ping timeout: 272 seconds]
himsin has joined #ruby
thoolihan has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
kamil has joined #ruby
yetanotherdave has joined #ruby
lessless has joined #ruby
tkuchiki has joined #ruby
sevenseacat has joined #ruby
tier has joined #ruby
willywos has joined #ruby
<ddv> chipotle: atom is slow
sigurding has joined #ruby
AndChat-80625 has quit [Ping timeout: 250 seconds]
tier_ has joined #ruby
<chipotle> ddv: what do you use instead? sublime?
<ddv> chipotle: I use atom but it's slow still :'(
<ddv> chipotle: also have ST3, way faster obviously
<chipotle> why don't you like st3?
<chipotle> i stopped using it since the dev doesn't listen to the community and it's been dormant for awhile
Dmr has joined #ruby
Dmr has quit [Client Quit]
Takle has quit [Remote host closed the connection]
<ddv> chipotle: well i'm not sure why, I tend to switch editors a lot, I want an OSX editor
marr has quit [Ping timeout: 256 seconds]
<ddv> chipotle: chocolat is really bad, you can literaly see syntax coloring being applied
<chipotle> indeed
<chipotle> i think atom is pretty nice; what do you mean by it's slow?
<chipotle> just between typing and it showing up on the screen?
<ddv> chipotle: reading large files, search/replace
jdj_dk_ has joined #ruby
<chipotle> ah
tier has quit [Ping timeout: 255 seconds]
<chipotle> have you ever tried an IDE?
<ddv> chipotle: it's understandable because of the dom, not sure how they are going to solve that problem
Takle has joined #ruby
* hanmac1 uses eclipse for very large projects ...
yetanotherdave has quit [Ping timeout: 258 seconds]
<ddv> chipotle: I have intellij ultimate installed, the visual debugger is nice and some other stuff but still a gigantic IDE is not my thing
<chipotle> yeah
<chipotle> but it's faster?
sysTemz- has joined #ruby
<ddv> also intellij feelds really odd on a Mac
<ddv> feels*
<ddv> ST3 is pretty feature full chipotle
<ddv> not sure why it matters if the dev listens or not
<ddv> also feels very fluid
tier_ has quit [Remote host closed the connection]
tier has joined #ruby
<shevy> notepad 4ever
charliesome has quit [Quit: zzz]
<shevy> hanmac1 do you use eclipse for rwx?
himsin has quit [Ping timeout: 245 seconds]
<ddv> I have used vim for many years, but when my vimrc was lost I decided to abandon it
<shevy> lol
<hanmac1> shevy yes but only the editing, not the other stuff like comiling
<shevy> ddv I feel about 99% the same as you do there
<ddv> most editors have pretty good vim keybinding support
<shevy> I had a huge vimrc ... then I decided to clean it up one day
manzo has quit [Ping timeout: 255 seconds]
<shevy> when I reached 10% of the rewrite, I asked myself "wtf why am I doing this"
himsin has joined #ruby
<ddv> also I don't want to install 20 plugins to make it usuable
tadayoshi has joined #ruby
tadayoshi has quit [Client Quit]
<ddv> if you want to go the ide route intellij with the ruby plugin is probably the best
tadayoshi has joined #ruby
shredding has joined #ruby
grzywacz has quit [Ping timeout: 246 seconds]
<shevy> well
<shevy> a vim would be nice that could be extended by ruby code alone
shazaum has joined #ruby
roolo has quit [Ping timeout: 250 seconds]
eikood_ has joined #ruby
eikood_ has quit [Remote host closed the connection]
<ddv> well not sure why I would want to extend my editor
<hanmac1> shevy the last 5 commits with rwx i did with github as editor ;P
<shevy> I could reuse all my stuff without having to cater towards the ugly vim-language
eikood has joined #ruby
eikood has quit [Client Quit]
<shevy> ddv I use tons of custom things; for instance, "rubygen foo.rb" generates a default ruby skeleton for a class for me
<rpag> vim embeds ruby but honestly the api is so bad VimL is probably better
eikood has joined #ruby
<ddv> shevy: well most editors have snippets for that
<shevy> vim has everything!
<shevy> I just can not torment my brain to have to cater to ugly syntax, after having worked with ruby for so long
eikood has quit [Client Quit]
tvw has joined #ruby
eikood has joined #ruby
kaspertidemann has joined #ruby
linojon has joined #ruby
<shevy> function! wtf()
<shevy> if &filetype == 'html'
NoNMaDDeN has joined #ruby
<shevy> endif
<shevy> endfunction
himsin has quit [Ping timeout: 244 seconds]
<shevy> thanks, I'll pass
sprihodko has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
renderful has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
taptapdan has quit [Quit: taptapdan]
<hanmac1> shevy: emacs now has a html browser ... now it only needs a nice editor to be a great OS ;P
NoNMaDDeN has joined #ruby
<shevy> GNU hurd
SilkFox has joined #ruby
qmfnp has quit [Remote host closed the connection]
himsin has joined #ruby
baordog has joined #ruby
qmfnp has joined #ruby
jerius has quit []
NoNMaDDeN has quit [Read error: Connection reset by peer]
<ddv> when I was my emacs phase I tried running as emacs a window manger
workmad3 has quit [Ping timeout: 250 seconds]
NoNMaDDeN has joined #ruby
<csmrfx> hey, maybe we can use ruby to put vim in emacs?
<csmrfx> or perhaps a ruby dsl that compiles to emacslispese
<wasamasa> why
<csmrfx> /riot
<rpag> elisp > VimL
<wasamasa> besides "Because ruby is so much purtier!!!"
rossgeesman has joined #ruby
volty has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 265 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Spami has joined #ruby
lessless has quit [Read error: Connection reset by peer]
SilkFox has quit [Ping timeout: 244 seconds]
doodlehaus has joined #ruby
dblessing has joined #ruby
<csmrfx> good thing you can script vim with ruby
agjacome has quit [Ping timeout: 272 seconds]
FooMunki has quit [Quit: FooMunki]
agjacome has joined #ruby
sk87 has joined #ruby
<shevy> <rpag> vim embeds ruby but honestly the api is so bad VimL is probably better
hellangel7 has quit [Remote host closed the connection]
<ddv> maybe neovim will be better
hanmac1 has quit [Read error: Connection reset by peer]
gaganjyot has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Ping timeout: 256 seconds]
hanmac1 has joined #ruby
<shevy> the vim in the matrix?
sambao21 has joined #ruby
devdazed has joined #ruby
jdj_dk_ has quit [Ping timeout: 246 seconds]
lessless has joined #ruby
<lessless> how to surpress warnings https://gist.github.com/lessless/b28e62a42b0dfea02383 ?
Avahey has joined #ruby
<jhass> they should be off by default
zaid_h has joined #ruby
<jhass> do you have a .rspec or so that enables them?
northfurr has joined #ruby
FooMunki has joined #ruby
Xeago_ has joined #ruby
thsig has joined #ruby
andikr has quit [Remote host closed the connection]
<jheg> I have 3 subclasses and a superclass. The subclasses are MyBoat, MyCar & MyTruck and the superclass is Vehicle. Each time I initiate a new class object (boat1 = MyBoat.new) I want the Vehicle class to keep a tally of the total number of vehicles.
<wasamasa> csmrfx: I don't get why you'd want ruby to compile to elisp
<wasamasa> csmrfx: the programmer has still to know the emacs internals, elisp and additionally to that ruby and your dsl
<wasamasa> csmrfx: so the gains are negative
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jheg> it only seems to be counting the MyBoat and MyTruck
<jheg> is it something to do with the initialize method in MyCar ?
<lessless> jhass: oh my,... it was a rspec who enabled them! thank you
eikood has quit [Quit: Leaving]
<ddv> I feel like we are doing your homework, jheg
<csmrfx> wasamasa: but you understand why I would want to embed vim in emacs? 8D
chipotle has quit [Read error: Connection reset by peer]
GPH|work has joined #ruby
chipotle_ has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
<jhass> jheg: well you override the method and don't call the one that does the tracking
<wasamasa> csmrfx: I don't get that either
oleo has joined #ruby
<wasamasa> csmrfx: because that would be slow, error-prone and not inspectible or extensible
<wasamasa> csmrfx: you'd rely on an external program for all the work
<wasamasa> csmrfx: besides, there's already an excellent package that gives you the editing model
<jheg> jhass: is the overide from me initializing within MyCar?
<csmrfx> wasamasa: indeed, it is just humor
<jhass> jheg: you override the initialize method in MyCar, yes
<wasamasa> csmrfx: I'm just sort of horrified the question keeps popping up regularly
<csmrfx> 16:10 < hanmac1> shevy: emacs now has a html browser ... now it only needs a nice editor to be a great OS ;P
techsethi has quit [Quit: techsethi]
rbrs has joined #ruby
lkba has joined #ruby
agjacome has quit [Ping timeout: 260 seconds]
Squarepy has quit [Quit: Leaving]
<jheg> Thank you jhass - I added the class variable from the superclass into the initialize method and it seems to work
yfeldblum has joined #ruby
<shevy> csmrfx but hanmac1 is not joking :)
northfurr has quit [Quit: northfurr]
likemike has quit [Quit: Lost terminal]
<jheg> ddv sorry but this chan has been really usefull. I am new and OOP is quite overwhelming as a newcomer so if I seem like I am asking you to do my homework I can assure you that it is not the intention
sprihodko has quit [Quit: (null)]
qwyeth has joined #ruby
noop has quit [Ping timeout: 260 seconds]
<shevy> ddv wash my pants!
<shevy> ddv take my dogs out for a walk!
<shevy> ddv cook something now!
<jhass> jheg: how about calling the original method instead?
<ddv> ok
lxsameer has quit [Quit: Leaving]
narph has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
<jheg> sorry I don’t understand jhass
<jhass> you can call the parent class method with the same name with supoer
<jhass> *super
<jheg> do you mean creating a method to store the number of vehicles?
<jheg> ah ok
yfeldblum has quit [Ping timeout: 246 seconds]
rkalfane has joined #ruby
msmith has joined #ruby
mary5030 has joined #ruby
msmith_ has joined #ruby
hanmac1 has quit [Quit: Leaving.]
slester has joined #ruby
msmith has quit [Read error: Connection reset by peer]
Akagi201 has quit []
<TheBrayn> which yaml edition does the yaml parser for ruby 1.8.7 support?
<rpag> sync engine afaik
<rpag> oops
<rpag> syck*
<TheBrayn> so the first edition
<TheBrayn> thanks
<jhass> TheBrayn: note that 1.8.7 is EOL
<shevy> LONG LIVE 1.8.x!!!
<shevy> TheBrayn for past 1.8.x you can use the syck gem still, if you do not want to switch to psych
Guest41318 has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
niklasb has joined #ruby
lukeholder has joined #ruby
jdj_dk has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
<ddv> get rid of 1.8 :P
baordog has quit [Ping timeout: 250 seconds]
beef-wellington has joined #ruby
<shevy> I can't compile it anymore, anyway
<Nilium> GET RID OF 1.8 ಠ_ಠ
<shevy> I think they must have sneakily slipped in some bug
shazaum has quit [Quit: This computer has gone to sleep]
definity_ has joined #ruby
sailias has joined #ruby
enebo has joined #ruby
<definity_> :)
yetanotherdave has joined #ruby
<jheg> jhass: that seemed to work but only when the initialize methods both had the same amount of arguments
siwica1 has joined #ruby
<jhass> definity_: let me put some parens: Hash.new().[](:foo => :bar) #=> nil
siwica has quit [Ping timeout: 265 seconds]
<jhass> that's what your first line is doing
NoNMaDDeN has quit [Ping timeout: 260 seconds]
ixti has quit [Ping timeout: 245 seconds]
<jhass> jheg: if they don't add them explicitly, empty parens for none: super()
<apeiros> rpag: syck was 1.8
<apeiros> ah
<apeiros> he asked for 1.8 :D
paulfm has joined #ruby
tadayoshi has quit []
<apeiros> sry, nvm then :)
<jheg> jhass: YES!! thanks
<apeiros> jheg: note that even with empty parens, a block is still passed on
<apeiros> e.g. def foo; super(); end; … foo do … end # this will still pass on the block
<apeiros> super(&nil) if you want to suppress block-passing.
<definity_> jhass: whats the dirrence int he syntax? was the way I am doing it an old way?
Takle has quit [Remote host closed the connection]
<definity_> int the*
xymbol has joined #ruby
<apeiros> definity_: no, it's a nonsensical way
shock_one_ has joined #ruby
<apeiros> `myHash = Hash.new["key1" => "value1", "key2" => "value2", "key3" => "value3"]` is the same as `myHash = Hash.new; myHash["key1" => "value1", "key2" => "value2", "key3" => "value3"]`
techsethi has joined #ruby
<definity_> apeiros: Thanks :) and is the way that jhass showed me the most appropriate way to assign a new hash?
<alex88> someone knows a library that parse dates in foreign languages?
<apeiros> definity_: just `myHash = {"key1" => "value1", "key2" => "value2", "key3" => "value3"}`
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
dermothaughey has joined #ruby
yetanotherdave has quit [Ping timeout: 246 seconds]
<jheg> cheers apeiros
<apeiros> definity_: also `puts "#{myHash}"` is the same as `puts myHash`. but you probably should use `p myHash` instead (or require 'pp' and use pp myHash`
<definity_> apeiros: Okay thanks :), My second stab at Ruby it is intresting compared to Perl.
<apeiros> definity_: also [] is for arrays. so your second one (`["key1" => "value1", "key2" => "value2", "key3" => "value3"]`) is defining an array with a hash inside
jfran has joined #ruby
<jhass> definity_: "my way" is just an expanded version of "your first way"
Takle has joined #ruby
<jhass> it's equivalent
<apeiros> definity_: note that `puts obj` calls obj.to_s, while `p obj` calls obj.inspect. and inspect is almost always what you want for debugging.
Aaaal has joined #ruby
troulouliou_dev has joined #ruby
shock_one_ has quit [Ping timeout: 244 seconds]
* apeiros off, laters
apeiros has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
apeiros has joined #ruby
weemsledeux has joined #ruby
jheg has quit [Quit: jheg]
workmad3 has joined #ruby
marcel has joined #ruby
joonty has quit [Quit: Leaving]
<definity_> Ahh I see, so puts is only really good for non debugging purposes, but for the writting fo the code you would use p becuase it has diffrent instance methods?
<definity_> like inspect
ixti has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 250 seconds]
mengu has quit []
gregf has quit [Quit: WeeChat 1.0.1]
<jhass> definity_: it _uses_ a different method to get a string representation of the object
jobewan has joined #ruby
phantummm has joined #ruby
<waxjar> all objects have an inspect method and a to_s method. inspect is useful for developers, to_s is useful for everyone
<waxjar> but the most important reason to use p over puts is that it's three characters shorter :P
rylev has joined #ruby
<jhass> also it returns the first argument, which makes it handy to arbitrarily insert into any expression
sk87 has joined #ruby
SilkFox has joined #ruby
siwica has joined #ruby
sevenseacat has left #ruby [#ruby]
<shevy> waxjar well you can do this: alias e puts
siwica1 has quit [Ping timeout: 255 seconds]
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jheg has joined #ruby
<Liendre> are any of you hacking my pc?
siwica1 has joined #ruby
nateberkopec has quit [Read error: Connection reset by peer]
<ddv> Liendre: shevy probably
paulfm_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Liendre> my codecademy is not working properly
<Liendre> see
<Liendre> now is better
<definity_> Is there a way to specifi a range in ruby like 1..10?
<definity_> specify*
siwica has quit [Ping timeout: 244 seconds]
<workmad3> definity_: yes... '1..10
SilkFox has quit [Ping timeout: 245 seconds]
<workmad3> >> 1..10
<eval-in__> workmad3 => 1..10 (https://eval.in/208728)
<workmad3> >> (1..10).to_a
<eval-in__> workmad3 => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] (https://eval.in/208729)
carraroj has quit [Ping timeout: 240 seconds]
<ddv> :P
techsethi has quit [Quit: techsethi]
paulfm has quit [Ping timeout: 256 seconds]
<rpag> >> (1...10).to_a
<eval-in__> rpag => [1, 2, 3, 4, 5, 6, 7, 8, 9] (https://eval.in/208730)
drkyro has joined #ruby
Mia has joined #ruby
<shevy> ddv hey I have no time to hack anything
jdj_dk has quit [Ping timeout: 245 seconds]
<ddv> >> loop { puts 'hacking shevy' }
Macaveli has quit [Ping timeout: 245 seconds]
<workmad3> ddv: don't break eval :(
ylluminarious has joined #ruby
<ddv> ;(
<ddv> Time limit exceeded (wall clock)
<workmad3> ddv: well, you did try to do an infinite loop :P
kaspertidemann has quit []
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddv> True that
freerobby has joined #ruby
djstorm has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
ylluminarious has quit [Ping timeout: 246 seconds]
siwica1 has quit [Ping timeout: 244 seconds]
snath has quit [Ping timeout: 240 seconds]
rossgeesman has quit [Remote host closed the connection]
gaganjyot has joined #ruby
gaganjyot has quit [Read error: Connection reset by peer]
gaganjyot has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
it0a has joined #ruby
mary5030 has joined #ruby
valeriansaliou has joined #ruby
mary5030 has quit [Remote host closed the connection]
linguini has joined #ruby
tagrudev has quit [Remote host closed the connection]
apeiros has joined #ruby
mary5030 has joined #ruby
Techguy305 has joined #ruby
gsd has joined #ruby
Techguy305 has quit [Client Quit]
<shevy> why is my nick used so often with eval
Snickers has quit [Ping timeout: 260 seconds]
siwica has joined #ruby
<workmad3> shevy: because you're the person least associated with finding out who unnecessarily hilighted them in IRC and visiting the person's house with a baseball bat late at night?
paulfm_ has quit []
paulfm has joined #ruby
<shevy> hey
<shevy> I don't have a baseball bat
<shevy> but I would come
aclearman037 has quit [Ping timeout: 255 seconds]
jxf has joined #ruby
agjacome has joined #ruby
rossgeesman has joined #ruby
<apeiros> hm, rubycaribe is quite a bit expensive
paulfm has quit [Client Quit]
* apeiros pondered going, but at that price… probably not
aclearman037 has joined #ruby
fsapo has quit [Remote host closed the connection]
marr has joined #ruby
siwica has quit [Ping timeout: 255 seconds]
<shevy> how much does it cost?
<ddv> 1599
codeurge has joined #ruby
allcentury has joined #ruby
nateberkopec has joined #ruby
<apeiros> $1599 the ticket, $269/night the hotel (you need at least 4 nights) and for me about $800 the flight
agjacome has quit [Ping timeout: 255 seconds]
<apeiros> so with $200 early booking rebate, it's at least $3300 just to cover the basic costs
renderful has joined #ruby
<linguini> Is there a way to call the "super" of another method, something like http://ix.io/eSz ?
mistermocha has joined #ruby
<apeiros> linguini: if you want to do that, you're doing it wrong.
siwica has joined #ruby
blackmesa has joined #ruby
<apeiros> linguini: but yes, there is a way: A.instance_method(:f).bind(self).call
<linguini> apeiros: Yes, perhaps. The problem is that B::f is so big that I wanted to break it down into smaller methods. But when I attempted to do that, calls to super broke.
jheg has quit [Read error: Connection reset by peer]
jheg_ has joined #ruby
<apeiros> linguini: so you indeed did it wrong :-)
<apeiros> but can't help you with the wrongdoing with the given information
<linguini> apeiros: Thanks. I'll think about this. I don't really want A.instance_method(:f).bind(self).call ...
kobain has joined #ruby
ctp has joined #ruby
supersym has quit [Ping timeout: 255 seconds]
definity_ has quit [Quit: Lost terminal]
jdj_dk has joined #ruby
taptapdan has joined #ruby
ivmx has joined #ruby
shazaum has joined #ruby
doev has quit [Ping timeout: 272 seconds]
spider-mario has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
qmfnp has joined #ruby
jaequery has joined #ruby
DrShoggoth has joined #ruby
stunder has joined #ruby
cajone has joined #ruby
IceDragon has joined #ruby
timonv_ has quit [Remote host closed the connection]
jaequery has quit [Client Quit]
livingstn has joined #ruby
treehug88 has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
tuti has joined #ruby
yetanotherdave has joined #ruby
jxf has quit [Quit: Leaving]
jxf has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
sharms has joined #ruby
qmfnp has joined #ruby
bal has quit [Quit: bal]
treehug88 has quit [Client Quit]
ta_ has quit [Remote host closed the connection]
shock_one_ has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
thisguy123 has joined #ruby
mistermocha has quit [Remote host closed the connection]
treehug88 has joined #ruby
<shevy> hahaha
<shevy> Cat.instance_method(:meow).bind(self).call
<shevy> the universe will collapse if you use that
carraroj has joined #ruby
matchaw has quit [Ping timeout: 265 seconds]
shock_one_ has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
Ankhers has joined #ruby
VanillaGoat_ has joined #ruby
tkuchiki has joined #ruby
ctp has joined #ruby
hobodave has joined #ruby
mityaz has quit [Quit: Leaving]
<TheBrayn> I wrote this abomination: https://gist.github.com/mmerfort/c8ec6c4fc0660e779dee how can I get it to output the rendered template?
yetanotherdave has quit [Ping timeout: 245 seconds]
zaid_h has quit [Quit: ZZZzzz…]
chipotle_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
<apeiros> TheBrayn: you're on 1.8.7?
<TheBrayn> nah
VanillaGoat has quit [Ping timeout: 265 seconds]
<TheBrayn> 2.0.0
<apeiros> then: `p = class << params; self; end` --> `p = params.singleton_class`
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
siwica has quit [Ping timeout: 245 seconds]
<TheBrayn> I'm not sure if that's even required
<apeiros> also, readConfig (should name it read_config): def read_config; @hosts = File.readlines(@config); end
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 255 seconds]
<apeiros> yeah, reading the next line you actually just want params.define_singleton_method. but that method looks horribly wrong.
<apeiros> $1 is a not-really-global which depends on a previously run regex matching operation
<shevy> hehehe
sk87 has joined #ruby
mikecmpbll has joined #ruby
PierreRambaud has quit [Ping timeout: 260 seconds]
cmckee has joined #ruby
sk87 has quit [Client Quit]
<apeiros> TheBrayn: and to actually answer your question: you forgot to call render after params.new(@hosts
reinaldob has joined #ruby
SilkFox has joined #ruby
havenwood has joined #ruby
sk87 has joined #ruby
ylluminarious has joined #ruby
Timgauthier has joined #ruby
<TheBrayn> but how can I pass arguments to a method which has been defined with define_singleton_method?
sigurding has quit [Quit: sigurding]
dermothaughey has quit []
shock_one_ has joined #ruby
yfeldblum has joined #ruby
volty has joined #ruby
dermothaughey has joined #ruby
sigurding has joined #ruby
SilkFox has quit [Ping timeout: 255 seconds]
dumdedum_ has quit [Quit: foo]
jdj_dk has quit [Ping timeout: 265 seconds]
aclearman037 has quit []
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
aclearman037 has joined #ruby
thisguy123 has quit [Ping timeout: 244 seconds]
Macaveli has joined #ruby
fabrice31 has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
weemsledeux has quit [Read error: Connection reset by peer]
kaspergrubbe_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
weemsledeux has quit [Client Quit]
aclearman037 has joined #ruby
rossgeesman has quit [Remote host closed the connection]
patric100e99 has joined #ruby
Takle has quit [Remote host closed the connection]
rossgeesman has joined #ruby
shredding has joined #ruby
<rpag> define_singleton_method(:foo) { |arg1| }
einarj has quit [Remote host closed the connection]
weemsledeux has joined #ruby
iamjarvo has joined #ruby
PierreRambaud has joined #ruby
GreatSUN has quit [Ping timeout: 246 seconds]
gauke has quit [Quit: gauke]
bbloom has quit [Ping timeout: 246 seconds]
<banisterfiend> rpag hey bro what's up
mikecmpbll has quit [Quit: ciao.]
anarang has joined #ruby
timonv_ has joined #ruby
mikecmpbll has joined #ruby
Takle has joined #ruby
patric100e99 has quit [Ping timeout: 246 seconds]
rossgeesman has quit [Remote host closed the connection]
HelperW has quit [Quit: (null)]
testcore has joined #ruby
bbloom has joined #ruby
<Hanmac> banisterfiend: look https://codeclimate.com/github/Hanmac/rwx i added something to make my samples better in the process ;P (in addition to specs and other tests)
Guest41318 has quit [Remote host closed the connection]
<linguini> FWIW, an attempt at avoiding A.instance_method(:f).bind(self).call : http://ix.io/eSB -> http://ix.io/eSC . :-/ I'm sure there's a better design pattern here I have yet to identify.
zaid_h has joined #ruby
renderful has quit [Remote host closed the connection]
<apeiros> linguini: on a glance, that looks *horrible*
juglx has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
<apeiros> but since it's 100% abstract - again: can't help with that little information.
lessless has quit [Remote host closed the connection]
phutchins has joined #ruby
msmith__ has joined #ruby
Timgauthier has joined #ruby
rossgeesman has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
sysTemz- has quit [Quit: oooooh]
msmith__ has quit [Client Quit]
valeriansaliou has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
treehug8_ has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
sdwrage has joined #ruby
rippa has joined #ruby
Kricir has joined #ruby
aganov has quit [Quit: Leaving]
Kricir has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 255 seconds]
sharms has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
juglx has quit [Quit: juglx]
Takle has quit [Ping timeout: 265 seconds]
Spami has quit [Quit: This computer has gone to sleep]
wpp has quit [Quit: ZZZzzz…]
rossgeesman has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
renderful has joined #ruby
geoextra has joined #ruby
Spami has joined #ruby
<shevy> it is as horrible as A.instance_method(:f).bind(self).call
gsd has joined #ruby
Kricir has quit [Ping timeout: 244 seconds]
<linguini> I can't disagree. :-/
<linguini> Unfortunately, the concrete version is rather long, and full of business-specific terminology, and I suspect harder to understand.
cmckee has quit [Quit: cmckee]
Loplin has joined #ruby
matchaw has joined #ruby
snath has joined #ruby
renderful has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
jheg_ has quit [Quit: jheg_]
itspots has joined #ruby
<linguini> I basically want to override a single method for one wonky-ish business case. But wonky business case is so wonky, I want to break it down into multiple methods.
<linguini> Here's another (abstract) attempt that allows me to refactor messy code into another method: http://ix.io/eSE
cmckee has joined #ruby
jdj_dk has joined #ruby
renderful has joined #ruby
beneggett has joined #ruby
aspires has joined #ruby
claw has quit [Ping timeout: 245 seconds]
claw_ has joined #ruby
<gyre007_> I was here earlier asking about vim-ruby plugin, but the room was fairly empty so im giving this a shot again
<shevy> DIE VIM!!!
<gyre007_> anyone here uses vim-ruby plugin ?
<gyre007_> lol
Xeago_ has quit [Ping timeout: 272 seconds]
<rpag> i used it a long time ago, it's weird to use
doev has joined #ruby
<shevy> I am not even sure how many people still use vim here
Loplin has quit [Ping timeout: 272 seconds]
<rpag> i progressed from vim to emacs
sdwrage has joined #ruby
<shevy> I dunno
<shevy> sounds like a downgrade
<shevy> both ways too, btw :)
<rpag> lol
<shevy> from vim to emacs or emacs to vim
thisguy123 has joined #ruby
<shevy> jhass used to be a vimster
<shevy> or a hamster
<gyre007_> ok :-)
<eam> emacs in viper-mode is a better vi than vim
<shevy> then he picked sublime
<rpag> im use to emacs by now
<gyre007_> got my answer then - as like I wont get it here haha
<shevy> so you are like matz
<shevy> gyre007_ nah, you only need to wait until a vimster shows up
<jhass> shevy: where did I say so?
<gyre007_> and ask again haha
<rpag> i answered your question
<shevy> jhass years ago
<rpag> is there a more specific one?
cmckee has left #ruby [#ruby]
DrCode has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
<jhass> shevy: it's simply untrue
<shevy> you never used vim?
<jhass> not as my main editor
omosoj has joined #ruby
<jhass> gedit -> scribes -> sublime
jonr22 has quit [Ping timeout: 272 seconds]
<shevy> see gyre007_ now that is a sane transition
<gyre007_> haha
sharms has joined #ruby
testcore has quit [Ping timeout: 246 seconds]
doev has quit [Read error: Connection reset by peer]
raldu has quit [Changing host]
raldu has joined #ruby
sigurding has quit [Quit: sigurding]
raldu has left #ruby [#ruby]
az7ar_away is now known as az7ar
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
DrCode has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
beneggett has joined #ruby
ndrei has joined #ruby
cherwin has joined #ruby
cmckee has joined #ruby
techsethi has joined #ruby
havenwood has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
multi_io has joined #ruby
codeurge has quit [Ping timeout: 246 seconds]
stunder has quit [Ping timeout: 258 seconds]
geoextra has quit [Remote host closed the connection]
renderful has joined #ruby
geoextra has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niklasb has quit [Quit: WeeChat 1.0.1]
multi_io_ has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
t_mmyv has joined #ruby
volty has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
Loplin has joined #ruby
NoNMaDDeN has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
Loplin has quit [Max SendQ exceeded]
SCHAAP137 has joined #ruby
mkaesz has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
SCHAAP137 has quit [Excess Flood]
spyderman4g63 has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
spyderman4g63 has joined #ruby
Loplin has joined #ruby
havenwood has joined #ruby
Loplin has quit [Max SendQ exceeded]
cmckee has quit [Quit: cmckee]
Spami has quit [Quit: This computer has gone to sleep]
cmckee has joined #ruby
Dude007 has quit [Remote host closed the connection]
Loplin has joined #ruby
az7ar is now known as az7ar_away
Loplin has quit [Max SendQ exceeded]
Loplin has joined #ruby
sdwrage has joined #ruby
Loplin has quit [Max SendQ exceeded]
chipotle has quit [Read error: Connection reset by peer]
az7ar_away is now known as az7ar
lw has joined #ruby
Loplin has joined #ruby
tier_ has joined #ruby
chipotle has joined #ruby
Loplin has quit [Max SendQ exceeded]
troulouliou_dev has quit [Ping timeout: 258 seconds]
carraroj has quit [Ping timeout: 240 seconds]
Loplin has joined #ruby
jonr22 has joined #ruby
Loplin has quit [Max SendQ exceeded]
timonv_ has quit [Remote host closed the connection]
jdj_dk has quit [Read error: Connection reset by peer]
spyderman4g63 has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
skolman has joined #ruby
tonini has joined #ruby
Loplin has joined #ruby
Loplin has quit [Max SendQ exceeded]
Xeago_ has joined #ruby
Loplin has joined #ruby
rkalfane has joined #ruby
lw has quit [Read error: Connection reset by peer]
Loplin has quit [Max SendQ exceeded]
skolman has quit [Remote host closed the connection]
bricker`work has joined #ruby
Loplin has joined #ruby
lw has joined #ruby
Loplin has quit [Max SendQ exceeded]
jottr has quit [Ping timeout: 245 seconds]
GPH|work has quit [Ping timeout: 272 seconds]
rossgeesman has joined #ruby
tier has quit [Ping timeout: 265 seconds]
benzrf is now known as benzrf|offline
skolman_ has joined #ruby
Akagi201 has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
Loplin has joined #ruby
Loplin has quit [Max SendQ exceeded]
Loplin has joined #ruby
vauwo has joined #ruby
Loplin has quit [Max SendQ exceeded]
Loplin has joined #ruby
yfeldblum has joined #ruby
<vauwo> Hello, I have experience with C previously and I would love to learn Ruby. What is the most recommended book/tutorial?
Loplin has quit [Max SendQ exceeded]
<rpag> The Ruby Programming Language co-authored by the author of ruby is probably a good one
benzrf|offline is now known as benzrf
<vauwo> Thanks.
<vauwo> I'll see it
Xeago has quit [Ping timeout: 272 seconds]
<crome> as far as tutorials go just pick something
<epitron> vauwo: the ruby quickref by zenspider is a good place to get an overview of everything :)
<havenwood> rpag: great book!
graydot has joined #ruby
<epitron> if you already know how to program, that's a nice shortcut
Loplin has joined #ruby
olivier_bK has quit [Ping timeout: 244 seconds]
i_s has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
Loplin has quit [Max SendQ exceeded]
<havenwood> "The Sparrow"
<epitron> (and if you're like me, and don't like reading books)
tuti has left #ruby [#ruby]
Loplin has joined #ruby
<vauwo> epitron: the quickref is a reference, I don't know what most of these methods mean!
<rpag> is there a book that covers 2.0+ features?
Loplin has quit [Max SendQ exceeded]
<havenwood> rpag: The Second Edition of Well-Grounded Rubyist
<workmad3> rpag: the latest edition of the pickax book is 1.9 and 2.0
<epitron> vauwo: methods aren't really in the quickref -- that's mostly language features. methods are here: http://ruby-doc.org/core-2.1.3/
<rpag> so at least two, impressive
<Hanmac> hm what do you guys think, i want to make a ticket request that somehow for gem install or gem update when it does to try to "Building native extensions. This could take a while..." it should try to show a progressbar or something similar ... because sometimes you really dont know how much long it will take ... and while you cant calc the time it might still need, it might show the procentual part of the objects how much are already build
SilkFox has joined #ruby
Loplin has joined #ruby
<workmad3> rpag: 2.0 has been around for a while now, so not that surprising IMO ;)
* epitron learned ruby by reading the quickref and the API docs
<epitron> ^_^
Loplin has quit [Max SendQ exceeded]
<rpag> i havent seen any 2.0 features used in the wild
<epitron> oh yeah, and other ruby code
<rpag> but maybe that's because i dont use em myself
<vauwo> havenwood: it looks nice, thanks
<Hanmac> vauwo the good thing when you know C/C++ is that you can write ruby extensions if you want
Loplin has joined #ruby
<vauwo> i hate when people say "C/C++"
<epitron> rpag: ruby 2 is mostly performance features. :) there's named arguments though, and refinements
<vauwo> they assume that it's similar
<epitron> i don't use either of them though, for 1.9 compatability
<havenwood> vauwo: the diff is just "++" right? :P
<vauwo> yeah
<vauwo> you got += tho
yfeldblum has quit [Ping timeout: 250 seconds]
rossgeesman has quit [Ping timeout: 260 seconds]
<rpag> epitron, yeah, i haven't used either
tokik has quit [Ping timeout: 255 seconds]
<Hanmac> vauwo: hm yes they are not so much similar, but you can use C++ for ruby extensions too
<epitron> i tried named arguments a couple times. i just felt guilty, because i knew it would break someone's 1.9
matchaw has quit [Read error: Connection reset by peer]
thoolihan has quit [Ping timeout: 258 seconds]
<havenwood> epitron: eol in feb!
matchaw has joined #ruby
niklasb has joined #ruby
<epitron> yay!!!
* epitron gets ready for LESS GUILT
Loplin has left #ruby [#ruby]
ephemerian has quit [Quit: Leaving.]
emmesswhy has joined #ruby
<epitron> i'm going to keep monkeypatching everything though. i never feel guilty about that :)
<havenwood> freedom patching, mmm
Cheezebox has joined #ruby
<epitron> hahaha
fsapo has joined #ruby
<epitron> yes, that's what i meant
<rpag> goes well with freedom fries and freedom cola
jonr22 has quit [Remote host closed the connection]
<eam> don't worry soon everyone will say "use rust" instead of "use c/c++"
<epitron> and freedom freedom
<rpag> eam, nah they'll say, "use go instead of C" :-P
stunder has joined #ruby
<workmad3> epitron: you can worry about breaking people's 2.0 with 2.1s required named args instead then ;)
<eam> rpag: unlikely, go is not a systems programming language
<rpag> its suppose to be
<epitron> workmad3: lol, they didn't add that in 2.0?
<eam> rpag: no it's not
tier_ has quit [Remote host closed the connection]
<epitron> wtg
<eam> go is java lite
zaid_h has quit [Quit: ZZZzzz…]
<epitron> haha
<workmad3> epitron: no, annoyingly
NoNMaDDeN has quit [Remote host closed the connection]
thoolihan has joined #ruby
<epitron> eam: if you consider 9 megs of stuff appended to your binary "lite"
nrsk has joined #ruby
<eam> go cannot produce arbitrary machine code, cannot even call all the basic POSIX functions
SilkFox has quit [Ping timeout: 265 seconds]
<eam> epitron: compared to java that is stupidly lite
<epitron> fair enough!
tier has joined #ruby
<havenwood> Nim?
<epitron> still fits in CPU cache too! :D
ta has joined #ruby
Kislik has quit [Quit: (null)]
Fire-Dragon-DoL has joined #ruby
<workmad3> epitron: 'def foo(bar:, baz: "quizz")' <-- 2.1+ only
<epitron> yeah, i remember.. i just didn't realize ruby 2.0 didn't support that
<epitron> that's kinda ridiculous
<rpag> i haven't needed named args yet, and i doubt i will :P
<benzrf> rpag: use them instead of options hashes
<workmad3> rpag: I quite like them for smalltalk-style method names
<benzrf> they are basically hash unpacking in the arg list
<epitron> i used to use named arguments all the time in python. they were great
<epitron> never had to remember the order of the arguments
<workmad3> without going through the hassle of options hashes, setting up a default_options.merge(options), or checking for unknown options, etc...
<eam> named args are great, even without them I'd just require a hash for every arg
cleopatra has quit [Ping timeout: 246 seconds]
zaid_h has joined #ruby
cherwin has quit [Ping timeout: 265 seconds]
<epitron> workmad3: ruby 2.2 should add type-checked named arguments...
<workmad3> epitron: ewww, type checking :(
<epitron> just to make sure that there's 3 different kinds of named arguments to worry about :D
Morkel has quit [Quit: Morkel]
<epitron> type-checking can be nicer than duck typing sometimes
shock_one_ has quit [Quit: Be back later ...]
<epitron> eg: "undefined method method_missing on nil"
<epitron> that's not a very nice error :)
Tricon has quit [Ping timeout: 244 seconds]
<workmad3> epitron: I'd quite like it if there was a way to declare the method(s) an argument needed to respond to in syntax
troyready has joined #ruby
ki0 has quit [Ping timeout: 255 seconds]
<epitron> ...types? ^_^
<epitron> jk jk
sdwrage has quit [Quit: This computer has gone to sleep]
<epitron> you know, that's a good example of runtime analysis
<epitron> keeping track of what the most frequently used methods on a variable are across all codepaths
cndiv has joined #ruby
<epitron> you'd have a list of those generated automatically
ghostmoth has joined #ruby
valeriansaliou has joined #ruby
<epitron> store all that data in "sane_behaviour.dat"
<epitron> maybe run some checks at runtime every once in a while
gnephiak has joined #ruby
Baluse has joined #ruby
<rpag> run em every minute of every day
<epitron> twice per every often
Pupeno has joined #ruby
cmckee_ has joined #ruby
<Baluse> hello which channel is for rails
cherwin has joined #ruby
<cmckee_> Im using Colloquy
<rpag> #rubyonwhales
<havenwood> Baluse: #rubyonrails
<rpag> #rubyonrails *
<Baluse> thanks
cmckee has quit [Ping timeout: 255 seconds]
cmckee_ is now known as cmckee
thisguy123 has quit [Read error: Connection reset by peer]
<rpag> havenwood, have you used crystal for anything yet
Tricon has joined #ruby
<havenwood> nope
thisguy123 has joined #ruby
neoxquick has joined #ruby
<rpag> yeah nor me, because of lack of ideas :<
treehug8_ has quit []
luriv has joined #ruby
<Liendre> hellp
<Liendre> hello*
<rpag> hey
<havenwood> Liendre: hey
<Liendre> where can I test ruby code online quickly?
<rpag> tryruby.org
<cmckee> repl.it
<rpag> eval.in
<havenwood> Liendre: https://eval.in
maestrojed has joined #ruby
<rpag> >> 2*2*2*2
<eval-in__> rpag => 16 (https://eval.in/208768)
Cheezebox has quit [Remote host closed the connection]
<Liendre> yay eval is good thanks ^^
<cmckee> Server is being weird. Did anybody see my issue
lw has quit [Read error: Connection reset by peer]
<rpag> i saw "I'm using Colloquy"
<rpag> and nothing else..
lw has joined #ruby
iamjarvo has joined #ruby
<cmckee> Thought so.
<cmckee> trying to join the #rubyonrails channel but it keeps telling me I need to register. After a few google searches I havent gotten anywhere. Anybody know what might be going on?
<rpag> /msg chanserv help register
<cmckee> From any channel?
techsethi has quit [Quit: techsethi]
<havenwood> yup
<cmckee> Because when joining rails it doesnt even get to that point
patrick99e99 has joined #ruby
<cmckee> Oh. Nice
<havenwood> cmckee: register your nick
<vauwo> where do i learn how to use the socket library
<cmckee> Thanks rpag and haven
beneggett has quit [Ping timeout: 240 seconds]
lw has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
treehug88 has joined #ruby
tvw has quit []
lw has joined #ruby
sinkensabe has quit [Remote host closed the connection]
timonv_ has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matchaw has quit [Remote host closed the connection]
matchaw has joined #ruby
tvw has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
TPBallbag has quit [Remote host closed the connection]
jdj_dk has joined #ruby
gauke has joined #ruby
mityaz has joined #ruby
<rpag> hah @ perl
mikecmpbll has quit [Ping timeout: 260 seconds]
<rpag> emacs is better than vim
<havenwood> ^X^Cquit^\[ESC][ESC]^C
<rpag> hahaha
az7ar is now known as az7ar_away
Soda has quit [Remote host closed the connection]
<vauwo> is codecademy a good ruby guide?
niklasb has quit [Ping timeout: 272 seconds]
<cmckee> I really like rubymonk
cleopatra has joined #ruby
shock_one_ has joined #ruby
agjacome has joined #ruby
GPH|work has joined #ruby
<vauwo> cmckee: the person who wrote it is a wise man with a white beard, i just know it
shock_one_ has quit [Client Quit]
<epitron> vauwo: ruby-doc.org and pry are indispensable
<cmckee> Theres also rubykoans and learnrubythehardway
Xeago_ has quit [Remote host closed the connection]
<epitron> and reading other people's code
lmickh has joined #ruby
<cmckee> Yes. Documentation, Read it. And Pry is my savior
<epitron> also good
<vauwo> cmckee: the guide says that everything is an object
linojon has quit [Quit: linojon]
<vauwo> in ruby
<vauwo> I thought everything was a method
niklasb has joined #ruby
shock_one_ has joined #ruby
agjacome has quit [Client Quit]
geoextra has quit [Remote host closed the connection]
az7ar_away is now known as az7ar
<epitron> it's great documentation. I recommend "Object", "Class", "Module", "Enumerable", etc.
geoextra has joined #ruby
<havenwood> vauwo: everything isn't a method
spyderman4g63 has joined #ruby
<epitron> even lisp has some built ins.. like (, and )
siwica has joined #ruby
geoextra has quit [Remote host closed the connection]
<epitron> factor actually managed to make those language extensions though
<epitron> that's one sneaky language
tonini has quit [Ping timeout: 250 seconds]
<vauwo> I use picolisp
jottr has joined #ruby
geoextra has joined #ruby
Cheezebox has joined #ruby
<epitron> is that good?
<havenwood> vauwo: try asking a thing if it is a Method or Object
<havenwood> >> ["".is_a?(Method), "".is_a?(Object)]
<eval-in__> havenwood => [false, true] (https://eval.in/208800)
<vauwo> "" is a string
<epitron> >> "".is_a? String
<eval-in__> epitron => true (https://eval.in/208801)
<epitron> you are correct sir!
* epitron hands vauwo a kewpie doll
<havenwood> whew, sanity preserved :)
<rpag> >> String === "wiggle-wiggle"
<eval-in__> rpag => true (https://eval.in/208802)
<havenwood> "wiggle-wiggle", the ONE TRUE STRING
<epitron> hahah
<rpag> i prefer #=== because it doesn't break on BasicObject
KC9YDN has quit [Ping timeout: 260 seconds]
az7ar is now known as az7ar_away
<havenwood> >> "wiggle-wiggle".freeze
<eval-in__> havenwood => "wiggle-wiggle" (https://eval.in/208803)
<epitron> === is backwards though
<havenwood> preserved for eternity
<epitron> >> "wiggle-wiggle" === String
<eval-in__> epitron => false (https://eval.in/208804)
davidhq has joined #ruby
<epitron> they should've really used a different symbol for that
<epitron> one that's directional
<epitron> String <=== "wiggle-wiggle"
<havenwood> have you guys seen the new fourquals and fivequals in Ruby 2.2? #==== #=====
lw_ has joined #ruby
<rpag> nope
tylersmith has joined #ruby
<havenwood> i jest
<rpag> what for?
<epitron> haha
<havenwood> just fibbing
<csmrfx> wait, it is not april?
<epitron> a ======================= b #=> maybe
<csmrfx> havenwood: you do realize that ruby 1.6 has those?
ndrei has quit [Ping timeout: 255 seconds]
<epitron> lol wat
<havenwood> csmrfx: i... did not.
<epitron> 1.6>> 1 ==== 2
msmith_ has quit [Remote host closed the connection]
kaspergrubbe_ has quit [Remote host closed the connection]
<rpag> good ideas never survive
<csmrfx> yeah, they are used for method comparison
<havenwood> 1.6>> 1 ==== 2
<epitron> try harder
lw has quit [Read error: Connection reset by peer]
* csmrfx may also be jesting with havenwood
<rpag> 1.0>> "hi"
<havenwood> csmrfx: you!!
<rpag> 1.8>> "hi"
<epitron> you've reavealed a critical issue though
<epitron> the bot doesn't support 1.6
<havenwood> oh noes!
msmith_ has joined #ruby
<csmrfx> lol
<rpag> or 1.8?
<epitron> or 1.0
allcentury has joined #ruby
<rpag> 1.9>> "legacy"
KC9YDN has joined #ruby
<epitron> which is weird, because http://eval.in supports 1.0
<rpag> i think my syntax is just wrong?
ArchBeOS-cloud is now known as ArchBeOS
<rpag> 19>> "hi"
<eval-in__> rpag => "hi" (https://eval.in/208809)
<havenwood> 19>> "legacy"
<eval-in__> havenwood => "legacy" (https://eval.in/208810)
<rpag> 16>> "hi"
<havenwood> 16> 1 ==== 2
<epitron> 10>> "wiggle-wiggle"
<eval-in__> epitron => "wiggle-wiggle" (https://eval.in/208811)
<vauwo> >> ''.methods.length
<eval-in__> vauwo => 164 (https://eval.in/208812)
lw_ has quit [Client Quit]
<epitron> ahh.. eval-in__ is just not very friendly with the verison numbers
<havenwood> so there's 1.0 and 1.8 but not 1.6
<rpag> 17>> "orly"
<vauwo> don't blame the poor bot
<rpag> 10>> RUBY_DESCRIPTION
<eval-in__> rpag => /tmp/execpad-7963a9beb9ae/source-7963a9beb9ae:4: TypeError: can't modify frozen string (https://eval.in/208813)
<vauwo> blame the nutty developer
<epitron> lol wat
<vauwo> :D
<rpag> ruby 1.0 was the best ruby
<epitron> 10>> RUBY_VERSION
<eval-in__> epitron => /tmp/execpad-c5e087de4890/source-c5e087de4890:4: TypeError: can't modify frozen string (https://eval.in/208814)
<epitron> that looks like an eval.in bug
<rpag> 10>> "it works?!"
<eval-in__> rpag => "it works?!" (https://eval.in/208815)
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<epitron> 10>> s = "it works?!"; s.freeze; s
<eval-in__> epitron => "it works?!" (https://eval.in/208816)
msmith__ has joined #ruby
msmith_ has quit [Read error: Connection reset by peer]
<epitron> hmm
<epitron> can't explain the RUBY_VERSION issue
<havenwood> 10>> RUBY_VERSION == RUBY_VERSION
<eval-in__> havenwood => /tmp/execpad-ea82e66892a0/source-ea82e66892a0:4: TypeError: can't modify frozen string (https://eval.in/208818)
JohnBat26 has joined #ruby
<havenwood> nope
<havenwood> dunno
<epitron> maybe eval.in has a ruby shim
<vauwo> i assume there is a letitgo method
<epitron> and it's doing something weird to RUBY_VERSION
<epitron> .unfreeze?
<epitron> .thaw? :D
<havenwood> it doesn't exist?
<vauwo> .heat
<vauwo> ?
linojon has joined #ruby
niklasb has quit [Ping timeout: 255 seconds]
<rpag> 10>> X = Class.new {}; X
<eval-in__> rpag => X (https://eval.in/208828)
klaut has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
<rpag> 10>> RUBY_VERSION.dup
<eval-in__> rpag => /tmp/execpad-4651d2034a24/source-4651d2034a24:4: TypeError: can't modify frozen string (https://eval.in/208830)
<havenwood> 10>> p defined? RUBY_VERSION
<eval-in__> havenwood => FALSE ... (https://eval.in/208832)
flagg0204_ has quit [Ping timeout: 245 seconds]
<rpag> 10>> NoSuchConstant
<eval-in__> rpag => /tmp/execpad-fa679fe25267/source-fa679fe25267:4: TypeError: can't modify frozen string (https://eval.in/208833)
<rpag> there we go
<havenwood> ^
TPBallbag has joined #ruby
thagomizer has joined #ruby
arup_r has joined #ruby
<rpag> 10>> [1,2,3,4].map(&:to_s)
<eval-in__> rpag => /tmp/execpad-1f1024e54955/source-1f1024e54955:2: syntax error ... (https://eval.in/208836)
kamil has quit [Quit: Leaving...]
qba73 has quit []
agrinb has joined #ruby
techsethi has joined #ruby
shredding has quit [Quit: shredding]
TPBallbag has quit [Remote host closed the connection]
jdj_dk has quit [Remote host closed the connection]
<epitron> wow, weird
jdj_dk has joined #ruby
geoextra has quit [Remote host closed the connection]
flagg0204 has joined #ruby
geoextra has joined #ruby
asmodlol has joined #ruby
<epitron> 10>> Object.constants
<eval-in__> epitron => /tmp/execpad-547ae846ea06/source-547ae846ea06:4: TypeError: can't modify frozen string (https://eval.in/208838)
<eam> what is the recommended way to escape a URI?
<rpag> 10>> Object
<eval-in__> rpag => Object (https://eval.in/208840)
<eam> CGI.escape is apparently buggy (uses + for space)
sonOfRa has quit [Quit: Bye!]
<epitron> rpag: i still have a feeling that eval.in has added a shim for printing the output or something
shredding has joined #ruby
<epitron> and the shim has a bug
<vauwo> where are pointers?
emmesswhy has quit [Quit: Leaving]
<rpag> ruby doesn't have pointers
<vauwo> why not
<havenwood> vauwo: variables point
msmith__ has quit [Remote host closed the connection]
<vauwo> oh
<eam> vauwo: you can get pointers with FFI
<havenwood> Fiddle::Pointer
NoNMaDDeN has joined #ruby
<vauwo> is it good?
<eam> yeah works fine
<vauwo> ty
msmith_ has joined #ruby
sonOfRa has joined #ruby
agrinb has quit [Remote host closed the connection]
<epitron> you could think of it like "ruby doesn't have pointers", or "everything is a pointer" :)
<epitron> techincally they're called "references"
jimmyhoughjr has joined #ruby
<vauwo> cool
<vauwo> also, I found this cool thing
<vauwo> I split a string by spaces and it didn't use the extra ones
<vauwo> for instance: "hello there" still returns 2
<vauwo> ( incrementing a variable )
<epitron> (difference between pointer and reference: you can do &pointer + 1 and change what it points at; references can only be assigned to objects)
SiliconDon has joined #ruby
<havenwood> >> $; = 'o'; 'xoxo'.split
<eval-in__> havenwood => ["x", "x"] (https://eval.in/208852)
geoextra has quit [Remote host closed the connection]
GeorgesLeYeti has quit [Quit: Leaving]
<epitron> vauwo: what did you wanna do?
geoextra has joined #ruby
zaid_h has quit [Quit: ZZZzzz…]
coderhs has joined #ruby
<epitron> split at the edge of every space?
<vauwo> >> text = "hello there" text.split(" ")
<eval-in__> vauwo => /tmp/execpad-f2ce0ec4ece4/source-f2ce0ec4ece4:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... (https://eval.in/208853)
yetanotherdave has joined #ruby
koderok has joined #ruby
<epitron> >> "hello there".split(/\b\s/)
<eval-in__> epitron => ["hello", " there"] (https://eval.in/208854)
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
koderok has quit [Remote host closed the connection]
<epitron> err...
weaksauce has joined #ruby
<vauwo> yes but
<vauwo> >> "helo there".split(" ")
<eval-in__> vauwo => ["helo", "there"] (https://eval.in/208856)
shock_one_ has quit [Remote host closed the connection]
<vauwo> see, didn't use those extra ones
<vauwo> which is good
<epitron> >> "hello there".split(/( )/)
<eval-in__> epitron => ["hello", " ", "", " ", "", " ", "", " ", "", " ", "", " ", "", " ", "", " ", "", " ", "there"] (https://eval.in/208858)
<epitron> there you go :D
rkalfane has joined #ruby
<vauwo> :O
ramfjord has joined #ruby
sinkensabe has joined #ruby
<epitron> oh wait, that's spaces AND the spaces in between the sapces
<havenwood> compared with
<havenwood> >> "hello there".split(/ /)
<eval-in__> havenwood => ["hello", "", "", "", "", "", "", "", "there"] (https://eval.in/208861)
<epitron> *spaces
GPH|work has quit [Ping timeout: 260 seconds]
altamic has joined #ruby
<rpag> >> "hello there".split(" ").reject(&:empty?)
<eval-in__> rpag => ["hello", "there"] (https://eval.in/208862)
<havenwood> rpag: there weren't any empty
wallerdev has joined #ruby
<rpag> 10>> "hello there".split(" ").reject { |s| s.empty? }
<eval-in__> rpag => /tmp/execpad-203219c690f2/source-203219c690f2:4: TypeError: can't modify frozen string (https://eval.in/208863)
<epitron> that poor 1.0
<epitron> why must you make it feel so inadequate
geoextra has quit [Remote host closed the connection]
geoextra has joined #ruby
diegoviola has quit [Remote host closed the connection]
beneggett has quit [Read error: Connection reset by peer]
gaboesquivel has quit []
beneggett has joined #ruby
<rpag> havenwood, o right, gotta use a regexp for that
yetanotherdave has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
luriv has quit [Ping timeout: 244 seconds]
rkalfane has quit [Client Quit]
<epitron> hmm.. i'm curious.. is there a way to split on the edge between two things?
<epitron> like, if i wanted to split "hello" into "hel" and "lo"
gauke has quit [Quit: gauke]
geoextra has quit [Remote host closed the connection]
<epitron> (using a regexp)
NoNMaDDeN has quit [Remote host closed the connection]
<tercenya> alright I give up, need a sanity check here. when redefining an existing method using define_method, super() only works if the method was actually on the parent class, not in the current class? example: https://gist.github.com/tercenya/e96abfff66a2fa5cdc46 do you have to use alias_method instead?
thisguy123 has quit [Ping timeout: 255 seconds]
geoextra has joined #ruby
phantummm_ has joined #ruby
phantummm_ has quit [Remote host closed the connection]
phantummm has quit [Ping timeout: 240 seconds]
vt102 has joined #ruby
tyll has quit [Ping timeout: 272 seconds]
az7ar_away is now known as az7ar
SilkFox has joined #ruby
tyll has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jimbach has quit [Remote host closed the connection]
gauke has joined #ruby
geoextra has quit [Remote host closed the connection]
geoextra has joined #ruby
<vauwo> What is the difference between private and protected?
Hobogrammer has quit [Ping timeout: 265 seconds]
timonv_ has quit [Read error: Connection reset by peer]
thisguy123 has joined #ruby
qwyeth has quit [Remote host closed the connection]
<epitron> private means you have to call object.send(:methodname) all the time
luriv has joined #ruby
asmodlol has quit [Read error: Connection reset by peer]
weaksauce has quit [Ping timeout: 244 seconds]
SilkFox has quit [Ping timeout: 244 seconds]
jimbach has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
<tercenya> vauwo: calls to private methods are restricted to that object, protected methods can be called from that class or any subclass thereof. but ruby you can violate these rules with send(:method) if need be.
az7ar is now known as az7ar_away
<vauwo> oh thanks
Aaaal has quit [Quit: Aaaal]
<epitron> the best reason to use private/protected, imo, is for autogenerated documentation
thisguy123 has quit [Read error: Connection reset by peer]
<epitron> i've never really needed to use 'em for anything besides that
<rpag> there's always # :nodoc:
<epitron> i guess rails uses them to restrict access in controllers
asmodlol has joined #ruby
<epitron> rpag: ughh :)
<epitron> so much work
<epitron> why don't i just carve out the docs on stone tablets
<rpag> worked for jesus
<tercenya> it's also a clear way to identify what parts of class's public interface can freely change. when refactoring, private methods are all fair game. public methods aren't, and protected methods might cause unintended side effects
<epitron> yeah
<epitron> it's best as a way of communicating things to other coders
jimbach has quit [Ping timeout: 255 seconds]
jimbach has joined #ruby
weemsledeux has joined #ruby
<rpag> i've never had a need for the distinction protected provides, so i just use 'private'
<tercenya> you can promote a private method to protected when you see the need to create class hierarchy
jimbach has quit [Remote host closed the connection]
az7ar_away is now known as az7ar
djbkd has joined #ruby
<tercenya> overloaded initializers are good candidates to be protected
<rpag> thats how communism started
ctp has quit [Ping timeout: 256 seconds]
<gyre007_> anyone idea why is bundler failing here ? http://pastie.org/9668256
jimbach has joined #ruby
<gyre007_> I mean it's looking into some /usr/lib directory for some cache stuff?
<gyre007_> it shold really be installing all gems into .bundle....
<rpag> try --path=.bundle
<gyre007_> why is it looking into dirs which it does not have permissions to read from ?
riton has quit [Ping timeout: 258 seconds]
<rpag> it's trying to sudo for some reason, haven't seen that before
wallerdev has quit [Quit: wallerdev]
<gyre007_> yeah
f0ster has joined #ruby
<gyre007_> totally weird
<gyre007_> this is jenkins btw
<havenwood> gyre007_: binstubs != path
<gyre007_> havenwood: bundle can generate binstubs right ?
shredding has quit [Quit: shredding]
<gyre007_> and I want them in .bundle/binstubs
<gyre007_> this works on my box like charm
techsethi has quit [Ping timeout: 250 seconds]
rkalfane has joined #ruby
<havenwood> gyre007_: set --path like rpag suggested
<gyre007_> jenkins no like somehow
<tercenya> gyre: I think you mean bundle --path vendor/bundle, if you want your gems installed locally. you can still put your binstubs where you like
TPBallbag has joined #ruby
techsethi has joined #ruby
riton has joined #ruby
<havenwood> gyre007_: --path=<path> The location to install the gems in the bundle to. This defaults to Rubygems' gem home, which is also the default location where gem install installs gems. This means that, by default, gems installed without a --path setting will show up in gem list. This setting is a remembered option.
rylev has quit []
wallerdev has joined #ruby
<tercenya> gyre: after the first time you add --path to the bundle install, you'll see a BUNDLE_PATH entry in your .bundle/config. if you blow away your workspace in jenkins, you'll need to pass --path every time, otherwise not
cndiv is now known as cndiv_afk
rdark has quit [Quit: leaving]
<havenwood> gyre007_: if you just want to install gems locally change gem home to be user local
SiliconDon has quit []
<cmckee> Haven or rpag. Still having troubles with registering for Rubyonrails channel. Haha. Im missing something here. \msg rubyonrails REGISTER #rubyonrails
<cmckee> Or something similar right?
<gyre007_> Ill try the --path vendor/bundle
<tercenya> you could --path .bundle/gems or whatever you like. it should put your installed gems in that folder, instead of /usr/...
<havenwood> cmckee: /msg NickServ REGISTER bar foo@bar.com
m8 has joined #ruby
<havenwood> cmckee: bar is your password, foo@bar.com is your email, check your email
tier_ has joined #ruby
<cmckee> Excellent. Thanks
<havenwood> gyre007_: you can always change your RubyGems to install --user-install, which bundler would follow - your choice
<havenwood> gyre007_: the gem needs to be somewhere you can read it ;)
<cmckee> Nickserv thats my name to be registered, correct?
<havenwood> no
<havenwood> cmckee: only change foo and bar, otherwise paste as is
weaksauce has joined #ruby
<havenwood> cmckee: read more at: /msg NickServ HELP REGISTER
niklasb has joined #ruby
tier_ has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
oddover has joined #ruby
<gyre007_> thanks havenwood & tercenya
tier has quit [Ping timeout: 255 seconds]
omosoj has quit [Ping timeout: 255 seconds]
kirun has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
tier has joined #ruby
<oddover> anyone know how to convert a string like '-1-3' to a range (-1..3)?
<cmckee> Haven: Got it now. Thanks. I did that before but I was doing something wrong. Fat fingers or who knows?
AlSquire has quit [Quit: This computer has gone to sleep]
jottr has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
TPBallbag has quit [Ping timeout: 255 seconds]
cmckee has quit [Quit: cmckee]
<havenwood> >> Range.new *'-1-3'.scan(/-?\d+/).map(&:to_i)
<eval-in__> havenwood => -1..-3 (https://eval.in/208869)
geoextra has quit [Remote host closed the connection]
cmckee has joined #ruby
<havenwood> oddover: first stab at it^
geoextra has joined #ruby
paulfm has joined #ruby
<havenwood> oddover: that doesn't make much sense though, unless they're always negative?
gyre007_ has quit [Remote host closed the connection]
Kricir has joined #ruby
<havenwood> oddover: how are you delimiting between the first and second number?
<havenwood> oddover: is it always one digit? must be more to this?
<oddover> havenwood: delimiter is a simple dash. Numbers are not always negative. The answer you sent doesn't do it quite right
ramfjord has quit [Ping timeout: 260 seconds]
<oddover> havenwood: it should range from negative one to positive threee
<havenwood> i assumed the `-` was a negative sign
<oddover> three*
pyon has joined #ruby
<havenwood> oddover: soo?: '3--3' #=> 3..-3
geoextra has quit [Remote host closed the connection]
<havenwood> a shame you delimit with a negative sign :P
<oddover> :P I agree
geoextra has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<oddover> but not my data
<oddover> but yes, 3--3 would turn into what you said
<oddover> although that's invalid
<oddover> although I guess ruby doesn't care about the direction of the range
emanu has joined #ruby
geoextra has quit [Remote host closed the connection]
geoextra has joined #ruby
<rpag> it does, descending ranges just no-op
<oddover> rpag: what do you mean by that?
sirene has quit [Excess Flood]
<rpag> like
djbkd has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<rpag> >> (10..1).to_a
<eval-in__> rpag => [] (https://eval.in/208873)
mkaesz has joined #ruby
<rpag> each doesn't yield anything, etc
thumpba_ has joined #ruby
Kricir has joined #ruby
havenwood has quit [Remote host closed the connection]
whatasunnyday has joined #ruby
<oddover> ah, yep
lolmaus has quit [Quit: Konversation terminated!]
<oddover> rpag: I just did:
<oddover> >> (3..-3)
<eval-in__> oddover => 3..-3 (https://eval.in/208874)
neoxquick has quit [Ping timeout: 260 seconds]
<whatasunnyday> Hey, anyone have any experience with using auto_discover_link_tag? Not sure if I'm following the docs wrong: http://stackoverflow.com/questions/26513739/auto-discover-link-tag-ignores-url-options
cleopatra has quit [Ping timeout: 272 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
thumpba has quit [Ping timeout: 246 seconds]
kaspergrubbe has joined #ruby
geoextra has quit [Remote host closed the connection]
weeb1e has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
geoextra has joined #ruby
geoextra has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
<oddover> so, anyone else have an idea of how to convert '-3--1' to (-3..-1)?
mikecmpbll has joined #ruby
sirene has joined #ruby
djbkd has joined #ruby
robbyoconnor has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
tonini has joined #ruby
cleopatra has joined #ruby
thumpba has joined #ruby
<tercenya> oddover, havenwood got it right Range.new(*'-3--1'.scan(/-?\d+/).map(&:to_i))
alex88 has quit []
<max96at> tercenya: nope, that will treat -3-1 the same as -3--1
<oddover> max96at: yep
<tercenya> ah, right, you'll need to check for the extra -
weeb1e has joined #ruby
thumpba_ has quit [Ping timeout: 255 seconds]
yetanotherdave has quit [Ping timeout: 246 seconds]
tonini has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Ping timeout: 245 seconds]
niklasb has quit [Ping timeout: 272 seconds]
<max96at> >> Range.new *'-3--1'.scan(/(-?\d+)-(-?\d+)/).flatten.map(&:to_i)
<eval-in__> max96at => -3..-1 (https://eval.in/208891)
<max96at> oddover: ^
weemsledeux has joined #ruby
fartface has joined #ruby
<tercenya> Range.new(*'-3-1'.match(/(\-?\d+)\-(\-?\d+).*/)[1..2].map(&:to_i))
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisja has joined #ruby
nonks has joined #ruby
testcore has joined #ruby
testcore has quit [Quit: [BX] This BitchX's for you]
<oddover> yep, both of those work
<oddover> thanks guys
<max96at> np
<fartface> http://pastebin.com/xWxvG5Ku -- I'm trying to solve a pretty simple problem of converting integers into their english equivalents (ie 23 into 'Twenty Three'), and it's all working well for values below 100, but for integers greater than 100 I'm getting an error that my stack level is too deep. As far as I can tell from looking at the places that are calling recursively, they should really only ever be one level deeper, and can't see where I'm going wron
<fartface> g.
yfeldblum has joined #ruby
Cheezebox has quit [Remote host closed the connection]
<tercenya> alright lunch calls, then I'll bug you guys about why I think super() does the wrong thing again.
sigurding has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fartface> Oh... Oh I see. Nevermind lol.
testcore has joined #ruby
kamil has joined #ruby
<waxjar> fartface: a case statement with ranges might clean up your code nicely
havenwood has joined #ruby
<fartface> Yeah, that's stage 2. Right now I see my glaring math issue, gonna tackle that fitst
<fartface> first*
nonks has quit [Ping timeout: 256 seconds]
FooMunki has quit [Quit: FooMunki]
Cheezebox has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
cleopatra has quit [Ping timeout: 244 seconds]
zaid_h has joined #ruby
gaganjyot has quit [Remote host closed the connection]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Timgauthier has quit [Read error: Connection reset by peer]
tyll has quit [Ping timeout: 256 seconds]
benzrf is now known as benzrf|offline
cleopatra has joined #ruby
jheg has joined #ruby
<whatasunnyday> Would anyone mind explaining to me how I can get a url_helper for a route? get "/archives/public" => 'home#public_archives'
<matt_d> fartface: Check out the Linguistics gem. It has a method that does just that.
oddover has left #ruby [#ruby]
tyll has joined #ruby
vauwo has quit [Quit: leaving]
ivmx has left #ruby [#ruby]
<whatasunnyday> It is just archives_public_url?
Timgauthier has joined #ruby
kaspertidemann has joined #ruby
<jhass> whatasunnyday: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<fartface> matt_d: I'm doing it to learn Ruby--I know there's probably a gem that already does it, just trying to learn programming, haha
<matt_d> fartface: Was just going to ask... Unless you're doing it as a leaning project :)
neoxquick has joined #ruby
sdwrage has joined #ruby
<fartface> ԅ(≖‿≖ԅ)
bluenemo has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 272 seconds]
omosoj has joined #ruby
Timgauthier has joined #ruby
sirene has quit [Read error: Connection timed out]
cleopatra has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
ramfjord has joined #ruby
sinkensabe has joined #ruby
carraroj has joined #ruby
Timgauthier has quit [Read error: Connection reset by peer]
SilkFox has joined #ruby
Timgauthier has joined #ruby
cocotton has joined #ruby
Timgauthier has quit [Client Quit]
einarj has joined #ruby
cleopatra has joined #ruby
<fartface> Got it! Had to do with PEMDAS in my scientific notation, and doing /= instead of -=. Fixed version is http://pastebin.com/i2ygzMtu if anyone was curious
Xeago has joined #ruby
havenwood has quit [Remote host closed the connection]
<cajone> Guys, I'm trying to understand a little more about threading, different sources give different takes as usual, is there any difference between "Thread.new do ; command ; end" and "Thread.new{ command}" or is this just a different syntax ie 1 line block against multi line block?
tonini has joined #ruby
melik has joined #ruby
<jhass> cajone: first of all let's take out the threading out of your question, since it's completely irrelevant
<crome> cajone: you are right, that's just syntactic difference
<rpag> in that case there's no difference, but the precendence of "do; end" and "{ }" is different
kireevco has joined #ruby
<rpag> {} binds to the last method call
SilkFox has quit [Ping timeout: 265 seconds]
noop has joined #ruby
<rpag> you only really need to be aware of that in cases like: foo [1,2,3].map { |x| x.to_s }
<crome> cajone: btw, you can enclose a multi line block in curly braces as well
az7ar is now known as az7ar_away
ramfjord has quit [Ping timeout: 272 seconds]
abuzze has quit [Read error: Connection reset by peer]
cleopatra has quit [Ping timeout: 255 seconds]
abuzze has joined #ruby
<cajone> ok, thanks guys!
beneggett has quit [Max SendQ exceeded]
abuzze_ has joined #ruby
az7ar_away is now known as az7ar
tyll_ has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 265 seconds]
Xiti has quit [Quit: Leaving]
jheg has quit [Quit: jheg]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
tyll has quit [Ping timeout: 255 seconds]
beneggett has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
yetanotherdave has joined #ruby
JBreit has joined #ruby
beneggett has quit [Client Quit]
JBreit has left #ruby [#ruby]
kenneth__ has joined #ruby
cleopatra has joined #ruby
sirene has joined #ruby
Xiti has joined #ruby
sirene has quit [Client Quit]
beneggett has joined #ruby
cj has joined #ruby
<cj> hi folks
<cj> what does the : in front of a symbol indicate?
Cheezebox has quit [Remote host closed the connection]
<wasamasa> it's a symbol!
<cj> I've got a line 'erb :some_symbol'
<cj> I want to have that :some_symbol be replaced with a variable
<rpag> cj, well its syntax to identify a symbol literal
shevy has quit [Ping timeout: 245 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
<rpag> you can do that
<wasamasa> cj: just like capitalizing indicates a class
abuzze_ has quit [Ping timeout: 260 seconds]
<jhass> some_variable = :some_symbol; erb some_variable
<cj> rpag: okay, can that symbol literal be stored to a variable? @foo = :some_symbol ; erb @foo
<jhass> more just like " indicates a string
<wasamasa> it's just yet another value
<rpag> yup, see jhass answer
<cj> but I guess @ is a maybe a global or lexical?
<rpag> @ denotes instance variable
<cj> how is @foo different than foo, and should I prefer one over the other?
<cj> something like my in perl and var in javascript?
<crome> wasamasa: capitalization indicates a constant
beneggett has quit [Client Quit]
<wasamasa> *allcapsization
<jimbach> $ is global, @ is instance
whatasunnyday has quit [Quit: Leaving]
fartface has quit [Quit: Leaving]
niklasb has joined #ruby
<rpag> @foo = 'blah' creates an instance variable that belongs to whatever 'self' is at the time of assignment, its not like "my" in perl or "var" in javascript
<crome> cj: you can only use foo if there is a method or accessor defined with that name. if you want to reference the instance variable directly, you have to use @foo
Kricir has joined #ruby
mikecmpb_ has joined #ruby
<jhass> crome: he's creating a variable, not accessing it
<crome> ah
mikecmpb_ has quit [Client Quit]
<toretore> how about just reading http://ruby-doc.com/docs/ProgrammingRuby/
<cj> okay, I'll do that. thanks for the help folks.
arup_r has quit [Quit: Leaving.]
olivier_bK has joined #ruby
skolman_ has quit [Remote host closed the connection]
rdark has joined #ruby
skolman_ has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
yokel has quit [Ping timeout: 244 seconds]
rdark has quit [Client Quit]
himsin has quit [Quit: himsin]
beneggett has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
gauke has quit [Quit: gauke]
wallerdev has quit [Quit: wallerdev]
ramfjord has joined #ruby
gauke has joined #ruby
skolman_ has quit [Ping timeout: 258 seconds]
maletor has joined #ruby
shevy has joined #ruby
treehug88 has quit []
shazaum has quit [Quit: This computer has gone to sleep]
maletor has quit [Client Quit]
ghormoon has quit [Remote host closed the connection]
BTRE has joined #ruby
maletor has joined #ruby
ghormoon has joined #ruby
wallerdev has joined #ruby
aspires has quit []
treehug88 has joined #ruby
yfeldblum has joined #ruby
yokel has joined #ruby
havenwood has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
Cheezebox has joined #ruby
az7ar is now known as az7ar_away
robbyoconnor has quit [Ping timeout: 244 seconds]
cr3 has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cr3> is there a way to get junit formatted output from tests run with Rake::TestTask?
az7ar_away is now known as az7ar
ramfjord has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
JohnBat26 has joined #ruby
claymore has joined #ruby
orionstein has quit [Quit: ZNC - http://znc.in]
jheg has joined #ruby
beneggett has joined #ruby
anarang has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
robustus has quit [Ping timeout: 255 seconds]
narph has quit [Quit: Connection closed for inactivity]
icarus has joined #ruby
bauruine_ has joined #ruby
klaut has joined #ruby
chrishough has quit [Ping timeout: 265 seconds]
thsig has quit [Remote host closed the connection]
AmBienCeD has joined #ruby
AmBienCeD has joined #ruby
sepp2k has joined #ruby
altamic has quit [Quit: altamic]
sigurding has joined #ruby
orionstein has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
chrishough has joined #ruby
SuperrMann has joined #ruby
jshultz_ has joined #ruby
itspots has quit [Ping timeout: 250 seconds]
<dr_toboggan> any ideas about what's going on here?
jshultz_ is now known as jshultz
az7ar is now known as az7ar_away
RichardLitt has joined #ruby
sdwrage has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
Kricir has quit [Remote host closed the connection]
SilkFox has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Kricir has joined #ruby
banister has joined #ruby
skolman has joined #ruby
banister has quit [Max SendQ exceeded]
dermothaughey has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<havenwood> dr_toboggan: compare `Person.instance_variables` and `Person.new.instance_variables` with `Programmer.instance_variables` and `Programmer.new.instance_variables`.
banister has joined #ruby
banister has quit [Max SendQ exceeded]
noop has quit [Quit: Leaving]
<havenwood> dr_toboggan: the outcome would be different if you declared Person @smart inside #initialize
<dr_toboggan> hmm
<eam> the instance of person never sets a value for @smart
gregf has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<dr_toboggan> right, well, i'm wondering what the purpose of "@variable = value" means outside of a method
<eam> dr_toboggan: it's an instance variable for the class itself
SilkFox has quit [Ping timeout: 255 seconds]
Kricir has quit [Ping timeout: 245 seconds]
<dr_toboggan> huh. i see
<apeiros> it sets the value of the instance variable @variable. everywhere.
<eam> Person is an instance of Class
<dr_toboggan> right
<apeiros> dr_toboggan: all you have to figure out is which instance.
<eam> Person.instance_eval { @smart }
<dr_toboggan> how does that relate to @@variable ?
anarang has quit [Quit: Leaving]
<apeiros> dr_toboggan: the same as @vars relate to $vars
<apeiros> different type of variable
<dr_toboggan> oh
jottr_ has joined #ruby
<eam> @@var is visable to all instances of the class
Kricir has joined #ruby
<apeiros> all @variables are instance variables
mityaz has quit [Quit: See ya!]
oleo has quit [Read error: Connection reset by peer]
shazaum has joined #ruby
<eam> Person's @smart isn't visible to Person.new
<apeiros> all instance variables belong to a single object. the object which can also be identified by `self` in the same context.
skolman has quit [Ping timeout: 265 seconds]
<apeiros> @@class_variables have a different set of scoping rules
AlexRussia has joined #ruby
<Hanmac> class_variables does follow rules? i thought that they are some kind of punks that does shit on rules ;P
<dr_toboggan> @smart means different things inside class ClassName ... end
<dr_toboggan> than inside a method?
jottr has quit [Disconnected by services]
jottr_ is now known as jottr
<apeiros> dr_toboggan: no.
mskaesz has joined #ruby
<apeiros> dr_toboggan: and I told you that just a few lines ago.
<apeiros> 21:21 apeiros: all instance variables belong to a single object. the object which can also be identified by `self` in the same context.
<apeiros> same rules. everywhere.
Ankhers has quit [Remote host closed the connection]
<apeiros> outside a method is still inside an object. no special rules needed.
<dr_toboggan> yeah, i know that, but
<eam> apeiros: but what he's saying is correct too
<eam> because self changes
<dr_toboggan> yeah, there you go
<shevy> dr_toboggan yes, it is different - the scope is another one
<eam> so yes, self inside and outside a method is a different object
<apeiros> eam: yes. but it doesn't mean a different thing.
Liendre has quit [Read error: Connection reset by peer]
<apeiros> it's associated with a different object
<eam> apeiros: right, just trying to translate
ghostmoth has joined #ruby
<apeiros> ok
<eam> the difference is not in the semantics, it's in the value of self
lw has joined #ruby
<shevy> dr_toboggan you can still access those variables even outside of a method, let me find an example
Wolland_ has joined #ruby
<dr_toboggan> well, i'm basically just wanting to set a default value
<dr_toboggan> and have classes that inherit from a given class change it only if they need to
<apeiros> there are various gems which try to give you that one way or another
<jheg> don’t suppose anyone here uses Sublime Text 2 and knows the keyboard shortcut for getting out of distraction free mode do they?
<apeiros> instance variables themselves won't give you that
<havenwood> >> class String; def initialize; puts "pumpkin!" end end; String.new
<eval-in__> havenwood => pumpkin! ... (https://eval.in/208913)
<shevy> dr_toboggan http://pastie.org/9668620 <- there you can see that it is accessible or at least registered through .instance_methods
<jheg> ^ SHIFT OPTION F11 doesnt seem to work
theotherstupidgu has joined #ruby
mkaesz has quit [Ping timeout: 260 seconds]
theotherstupidgu has quit [Quit: leaving]
einarj has quit [Remote host closed the connection]
<shevy> dr_toboggan if all you want is a default value, you can use a CONSTANT in the parent class, store it in an @ivar, and overrule it for your subclass
tvw has quit []
lw has quit [Client Quit]
<dr_toboggan> shevy: not sure i follow, could i see an example?
mrmargolis has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
neoxquick has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
<dr_toboggan> i might be able to have the base class do its own version of initialize, but that's not as good as just having an inherent default, because i might want to write another initialize somewhere between the two classes in a hierarchy
Avahey has joined #ruby
theotherstupidgu has joined #ruby
<theotherstupidgu> hi all
<havenwood> dr_toboggan: instanciate instance_variablies in initialize. class constants cabalism cabbaged cabinets.
nateberkopec has joined #ruby
Deejay_ has joined #ruby
theotherstupidgu has quit [Client Quit]
akkad_ is now known as AKKAD
<dr_toboggan> word salad
Kricir has quit [Remote host closed the connection]
mkaesz has joined #ruby
DmitryM has left #ruby [#ruby]
theotherstupidgu has joined #ruby
<theotherstupidgu> hi
cleopatra has quit [Ping timeout: 260 seconds]
<havenwood> theotherstupidgu: hi
ramfjord has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
mskaesz has quit [Read error: Connection reset by peer]
amitchellbullard has quit [Read error: Connection reset by peer]
<shevy> dr_toboggan the example was there above; as you said you don't understand the difference between: class Foo; @foo = 5; end compared to class Foo; def initialize; @foo = 5; end; end
amitchellbullard has joined #ruby
<havenwood> dr_toboggan: if you create the reference when the instance of the class is initialized, put it in initialize. if you want a constant available to all instances of your class use a constant.
<dr_toboggan> shevy: oh no, i got that. @foo in the class isn't the same @foo in a method in a class
skolman_ has joined #ruby
<dr_toboggan> hmm, can classes have constants? like: class Foo ; SMART = true ; end
az7ar_away is now known as az7ar
<theotherstupidgu> ofcourse
<dr_toboggan> and can classes that inherit from them override the constants?
<theotherstupidgu> class name itslef is a constant
<dr_toboggan> without warnings
<theotherstupidgu> Foo is constant
<havenwood> dr_toboggan: why did you make an #initialize method in Programmer but not in Person? maybe try to think of an example where there's a class-wide constant but also unique values that are constant.
<havenwood> err
<havenwood> i said that wrong
<dr_toboggan> havenwood: well with other situations, it might not be a constant. i might just want to have a default value
<dr_toboggan> for an instance variable
<havenwood> dr_toboggan: give to Caesar what is Ceasar's
<theotherstupidgu> the ape?
<dr_toboggan> or c-czar?
<theotherstupidgu> dr_toboggan, u got a gist for this?
bauruine_ has quit [Quit: ZNC - http://znc.in]
alvaro_o has joined #ruby
BBBThunda has quit [Remote host closed the connection]
<shevy> dr_toboggan well you could override all constants, ruby only gives a warning
<havenwood> but don't
jdj_dk has quit [Remote host closed the connection]
<shevy> dr_toboggan but if you already use a subclass, why not use default values for your @ivars?
banister has joined #ruby
<dr_toboggan> shevy: ah, ok, that's what i'm wanting to figure out, how would i pull that off?
<theotherstupidgu> it would be a bad design, seek better alternatives via patterns
<shevy> dr_toboggan def foo(i = DEFAULT_CONSTANT_HERE)
<shevy> and if you really have to, you could even use an object for the default there
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
<dr_toboggan> hmm, i think i'm seeing that slots just default to nil by design
<dr_toboggan> instance variables, that is
<theotherstupidgu> dr_toboggan, gist please, i might be able to help?
<dr_toboggan> theotherstupidgu: ok, hang on
<shevy> dr_toboggan here is an example where I abuse that: http://pastie.org/9668649
elaptics is now known as elaptics`away
<shevy> dr_toboggan @ivars that have not been used yet are not even nil
Kricir has joined #ruby
<dr_toboggan> theotherstupidgu: https://gist.github.com/anonymous/942386cf60acb6fcf625 i want this without the initialize in Person
bauruine_ has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
<dr_toboggan> shevy: well, with attr_accessor, it gives me nil. so i don't know how that behavior is implemented, but nil's what i get
<shevy> see
<shevy> attr_accessor :foo is the same as this
<apeiros> >> @unassigned_ivar
<eval-in__> apeiros => nil (https://eval.in/208914)
<apeiros> dr_toboggan: nil is the default value for ivars which have not been assigned
mskaesz has joined #ruby
<dr_toboggan> apeiros: right. i'm wanting to have a different default value somehow
<apeiros> and attr_reader :foo just defines `def foo; return @foo; end`
cndiv_afk is now known as cndiv
<dr_toboggan> it's looking like i can't do that though
<dr_toboggan> apeiros: yeah, i figured
<apeiros> dr_toboggan: either the solution you don't want (initialize) or use one of the gems. I think one is by ara t howard, "fattr" iirc.
<dr_toboggan> yeah, maybe. i might just go with using initialize (and i'll try not to screw it up)
<dr_toboggan> thanks
<apeiros> or as always: roll your own :)
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
kedare has quit [Remote host closed the connection]
<omosoj> how do i get good at testing?
waltertv has joined #ruby
wallerdev has quit [Quit: wallerdev]
mkaesz has quit [Ping timeout: 255 seconds]
<dr_toboggan> hmm, inside initialize, can i call the superclass initialize? like: self.superclass.initialize
dermothaughey has joined #ruby
<dr_toboggan> that would make things easier
<apeiros> omosoj: practice
<shevy> omosoj by writing code that sucks so much that you no longer want to continue working without testing
<theotherstupidgu> i don't think using a gem helps, this should either make sense on its own or not at all
reinaldob has quit [Remote host closed the connection]
<omosoj> lol shevy
<apeiros> dr_toboggan: `super`
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dr_toboggan> ok
<shevy> alternative - when you are to rewrite or refactor, and you notice that you lost features
sdwrage has quit [Quit: This computer has gone to sleep]
<apeiros> dr_toboggan: note that `super` calls super with all arguments as passed, `super()` calls super without any arguments. super is special that way.
<omosoj> apeiros, no magical way to skip that step? :)
<shevy> which, when you have a test spec, could also be used to assure that the rewrite would functionally be equivalent
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<dr_toboggan> ok
<theotherstupidgu> apeiros, good point
<apeiros> omosoj: get yourself frozen. wake up in ~107 years, get the knowledge & experience transferred directly into your brain.
weemsled_ has joined #ruby
chrishou_ has joined #ruby
<omosoj> maybe i start with refactoring instead of tdd. tdd is intimidating to start out with
<omosoj> *goes to cryogenics channel*
<apeiros> omosoj: refactoring without tests is intimidating
weemsledeux has quit [Disconnected by services]
<apeiros> omosoj: how do you know you didn't break anything?
<theotherstupidgu> dr_toboggan, i am sorry i am abit late, but you don't want the initialize?
<havenwood> omosoj: you could write some code, write some tests, then refactor
<apeiros> omosoj: also, refactoring is an excellent opportunity to start testing. write tests for the method you want to refactor.
<omosoj> apeiros, yeah that's what i'm saying. i wrote an app and there are no tests. i'll write tests to capture behavior then refactor
wallerdev has joined #ruby
chrishou_ has quit [Client Quit]
<dr_toboggan> theotherstupidgu: no, because i use initialize elsewhere, and i'm worrying about intervening initialize calls not getting called
<dr_toboggan> and not initializing stuff properly
weemsled_ is now known as weemsledeux
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
<omosoj> cool, thanks guys
chrishou_ has joined #ruby
<dr_toboggan> if i could have defaults for instance variables, that'd be ideal (but that doesn't look easy to pull off without a gem)
chrishough has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
<theotherstupidgu> dr_toboggan well, what about a factory pattern?
<theotherstupidgu> that could help you be specific about what class you want to use
NovapaX has joined #ruby
mskaesz has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
Kricir has quit [Remote host closed the connection]
<dr_toboggan> well, the problem is that when i do .new , there are things in multiple initialize calls that i want to use
<dr_toboggan> but yeah, nah, i'm just going to move stuff out of my initialize call
<dr_toboggan> it doesn't need to be there
Kricir has joined #ruby
<dr_toboggan> i think i got my answers, thanks
blackmesa has joined #ruby
Wolland has joined #ruby
thsig has joined #ruby
tonini has quit [Ping timeout: 250 seconds]
DLSteve has joined #ruby
awarner has quit [Remote host closed the connection]
AlexRussia has joined #ruby
nonks has joined #ruby
mozzarella is now known as MOZZARELLA
<theotherstupidgu> ofcourse you could take the attr_accessor :smart
<theotherstupidgu> and put it in a parent class for both, etc.
<dr_toboggan> theotherstupidgu: heh, well, my problem is that i wanted both initialization to happen. both the specific one, Programmer, and the generic one, Person
Wolland_ has quit [Ping timeout: 265 seconds]
Wolland__ has joined #ruby
<dr_toboggan> i wanted the option to override individual defaults, but still let some go to default
<dr_toboggan> but, i can split that up into other methods
<theotherstupidgu> design wise, you are missing somthing
Kricir has quit [Ping timeout: 245 seconds]
<dr_toboggan> let me come up with another example
nateberkopec has quit [Quit: Leaving...]
awarner_ has joined #ruby
<msmith_> http://pastie.org/9668701 In general how would I go about writing an rspec test for something like this without duplicating all the logic after the initial 'unless'?
cleopatra has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
<dr_toboggan> well, i don't know about another example. i think i know what i'm doing, i'm gonna go back to work
<dr_toboggan> thanks for the help
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
zaid_h has quit [Quit: peace out...]
<theotherstupidgu> dr_toboggan, pleasure
kamil has quit [Quit: Linkinus - http://linkinus.com]
diimdeep has joined #ruby
diimdeep has quit [Max SendQ exceeded]
sigurding has quit [Quit: sigurding]
AlexRussia has quit [Ping timeout: 240 seconds]
diimdeep has joined #ruby
diimdeep has quit [Client Quit]
AlexRussia has joined #ruby
oleo has joined #ruby
mkaesz has joined #ruby
Wolland has joined #ruby
enebo has quit [Quit: enebo]
Deejay_ has quit [Quit: Computer has gone to sleep.]
shazaum has quit [Quit: Leaving]
<jheg> getting a unitialized constant error when my program runs ...
renderful has quit [Remote host closed the connection]
<jheg> Can I call a constant into a class via a module (mixin?)
devdazed has joined #ruby
renderful has joined #ruby
<jheg> I’m including the module into my class and then calling the method on the object and it throws the error
rkalfane has joined #ruby
<apeiros> all constants of a module are added when you include
<apeiros> s/throws/raises/. throw has a different meaning in ruby.
<jheg> the constant is declared in the class
<jheg> and the method within the module references the constant
<apeiros> then you need to reference it appropriately
djbkd has quit [Remote host closed the connection]
sdwrage has joined #ruby
<jheg> ok so it is possible to call it the way i want I need to just figure out how to call it correctly yes?
<apeiros> >> module Foo; def bar; self.class::Demo; end; end; class Baz; Demo = "DEMOOO!"; include Foo; end; Baz.new.bar
<eval-in__> apeiros => "DEMOOO!" (https://eval.in/208929)
<apeiros> jheg: ^
Wolland__ has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
skolman_ has quit [Remote host closed the connection]
fsapo has quit [Ping timeout: 240 seconds]
thsig has quit [Remote host closed the connection]
skolman has joined #ruby
rodfersou has quit [Quit: leaving]
tvw has joined #ruby
jdj_dk has joined #ruby
rbrs has quit [Quit: Leaving]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
rkalfane_ has joined #ruby
rkalfane has joined #ruby
Dude007 has joined #ruby
AndChat| has joined #ruby
skolman has quit [Remote host closed the connection]
thsig has joined #ruby
skolman_ has joined #ruby
tier_ has joined #ruby
zlude has quit [Quit: Leaving]
starkhalo has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
omosoj has quit [Ping timeout: 255 seconds]
Asher has joined #ruby
Wolland_ has joined #ruby
jdj_dk has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
DLSteve_ has joined #ruby
omosoj has joined #ruby
Xeago has quit [Remote host closed the connection]
tier has quit [Ping timeout: 244 seconds]
Dreamer3 has quit [Quit: Leaving...]
tier_ has quit [Remote host closed the connection]
beneggett has quit [Read error: Connection reset by peer]
digital-ghost has joined #ruby
tier has joined #ruby
beneggett has joined #ruby
<jheg> thanks apeiros trying to get it working now
Wolland has quit [Ping timeout: 265 seconds]
SilkFox has joined #ruby
ldnunes has quit [Quit: Leaving]
DLSteve has quit [Ping timeout: 272 seconds]
<eam> It would be nice if constants in ruby were actually constant
Dude007 has quit [Remote host closed the connection]
<twohlix> eam: why not just make some observer for a constant and whenever anything changes the constant's value, change it back to normal? bit convoluted
SilkFox has quit [Ping timeout: 246 seconds]
<eam> uhhhh
renderful has quit [Remote host closed the connection]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
rkalfane has joined #ruby
<twohlix> eam: it would be heavy as shit
renderfu_ has joined #ruby
<twohlix> just joking around
<eam> that's a rad idea though
thsig has quit [Remote host closed the connection]
<twohlix> well just call it something like an enforcer pattern
<mary5030> so this i have [1,2,3,4,5] and [5,3,4,2,1,9,7,5,3] how can i return an array of numbers that both a and b shares
<twohlix> since you have the enforcer chaning shit back.
<mary5030> an elegant way
matchaw has quit [Remote host closed the connection]
mkaesz has quit [Remote host closed the connection]
shemerey has joined #ruby
<apeiros> eam: I'd like it if reassigning a constant raised instead of printing a warning
<apeiros> other than that, I'm ok with how they currently work
dangerousdave has joined #ruby
<eam> raised and didn't change, yeah?
DrShoggoth has quit [Quit: Leaving]
<eam> that's what I want (and, is what constant usually means)
omosoj has quit [Ping timeout: 240 seconds]
<apeiros> eam: yes
slester has quit [Remote host closed the connection]
<apeiros> I'm fine with being able to use a method to force replace a constant
<eam> >> String, Array = Array, String; String.new
<eval-in__> eam => /tmp/execpad-6a6b3ddcf982/source-6a6b3ddcf982:2: warning: already initialized constant String ... (https://eval.in/208931)
<apeiros> ah, right, that'd be a second requirement. atomic replace of a constant
<mary5030> yes thanks
<mary5030> found it
<mary5030> it is a | b
dermothaughey has quit []
blackmesa has quit [Quit: WeeChat 1.0.1]
ndrei has joined #ruby
<apeiros> mary5030: a | b is union. it does not return the numbers both share.
<apeiros> it returns the combined numbers of a and b.
<mary5030> never mind yes
<mary5030> so just -
<apeiros> you want a & b (that's intersect)
valeriansaliou has quit [Quit: Be back later ...]
<apeiros> no, - is different too
<mary5030> i only want what a and b shares s yes using &
failshell has joined #ruby
failshell has quit [Client Quit]
<mary5030> sorry for confusion
willywos has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<jheg> c = (a & b).each{|num| num}
<jheg> like that mary5030 ?
tier_ has joined #ruby
djbkd has joined #ruby
Fusl is now known as fusl
Takle has joined #ruby
FooMunki has joined #ruby
luckyruby has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusl is now known as Fusl
<mary5030> thanks guys so much yes something like that :)
jottr_ has joined #ruby
tonybird has quit [Ping timeout: 265 seconds]
tier has quit [Ping timeout: 272 seconds]
jdj_dk has joined #ruby
nateberkopec has joined #ruby
_chs_ is now known as chs
djbkd has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 244 seconds]
kristofferR has joined #ruby
tier_ has quit [Remote host closed the connection]
chs is now known as _chs_
tier has joined #ruby
decoponio has quit [Quit: Leaving...]
_chs_ is now known as chs
tesaf has joined #ruby
spider-mario has quit [Remote host closed the connection]
tejas-manohar has joined #ruby
yalue has quit [Read error: Connection reset by peer]
Aaaal has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ptrrr has quit [Quit: ptrrr]
davidhq has joined #ruby
chipotle has quit [Quit: cya]
maletor has joined #ruby
chs is now known as _chs_
<tejas-manohar> https://github.com/tejas-manohar/quiztionary/blob/master/app.rb how do i check if @results contains anything? im using erb as templating as well... can i check this in templating without making a new @ var in app.rb https://github.com/tejas-manohar/quiztionary/blob/master/views/search.erb - i only want to run that loop if the @results actually contains stuff
_chs_ is now known as chs
<tejas-manohar> here's a sample output from the puts @results line - http://pastebin.com/WPgwvavN
davidhq has quit [Client Quit]
skiabox has joined #ruby
axl__ has joined #ruby
JaMz has joined #ruby
skiabox has quit [Client Quit]
xymbol has quit [Quit: Be back later ...]
chs is now known as _chs_
cherwin has joined #ruby
davidhq has joined #ruby
axl_ has quit [Ping timeout: 272 seconds]
axl__ is now known as axl_
davidhq has quit [Client Quit]
aspires has joined #ruby
skiabox has joined #ruby
omosoj has joined #ruby
skiabox has quit [Client Quit]
aspires has quit [Client Quit]
tejas-manohar has quit [Quit: Page closed]
kireevco has quit [Ping timeout: 240 seconds]
waltertv has quit [Quit: Leaving...]
thsig has joined #ruby
thsig has quit [Remote host closed the connection]
aspires has joined #ruby
thsig has joined #ruby
CriusXII has joined #ruby
benzrf|offline is now known as benzrf
djbkd has joined #ruby
chrishou_ has quit [Ping timeout: 265 seconds]
gauke has quit [Quit: gauke]
CriusXII has left #ruby ["Leaving"]
Vile` has quit [Ping timeout: 250 seconds]
paulfm has quit []
<theotherstupidgu> tejas_monahr def get_entries(word)
<theotherstupidgu> tejas-manohar, get_entries returns an array?
thsig_ has joined #ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FDj has quit [Read error: Connection reset by peer]
FDj has joined #ruby
SCHAAP137 has quit [Ping timeout: 250 seconds]
SCHAPiE_ has joined #ruby
SCHAPiE_ has quit [Excess Flood]
shemerey has joined #ruby
Vile` has joined #ruby
tier has quit [Remote host closed the connection]
machete has quit [Ping timeout: 265 seconds]
linojon has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RichardLitt has joined #ruby
linojon has joined #ruby
<theotherstupidgu> i think its a hash, so if !@results.empty? then erb :search; end
WormDrink has quit [Ping timeout: 245 seconds]
thsig has quit [Ping timeout: 255 seconds]
riceandbeans has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
<jhass> theotherstupidgu: he had 5 minutes of patience and is gone
treehug88 has quit []
chrishough has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
<theotherstupidgu> jhass, its all right
jottr_ is now known as jottr
<atmosx> hello
<theotherstupidgu> hi
beneggett has joined #ruby
sambao21 has joined #ruby
emmesswhy has joined #ruby
NovapaX has quit [Quit: Textual IRC Client: www.textualapp.com]
niklasb has quit [Ping timeout: 246 seconds]
machete has joined #ruby
patrick99e99 has quit [Quit: Lost terminal]
tesaf has quit [Quit: Lost terminal]
djbkd has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 255 seconds]
AKKAD is now known as akkad
nfk has quit [Quit: yawn]
max96at is now known as max96at|off
jack_rabbit has joined #ruby
davidhq has joined #ruby
djbkd has joined #ruby
benzrf is now known as benzrf|offline
renderfu_ has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
az7ar is now known as az7ar_away
davidhq has quit [Client Quit]
emanu has quit [Quit: emanu]
mijicd has joined #ruby
mijicd has quit [Client Quit]
shemerey has quit [Read error: Connection reset by peer]
shemerey has joined #ruby
nateberkopec has quit [Quit: Leaving...]
SilkFox has joined #ruby
Pupeno_ has joined #ruby
cr3 has quit [Quit: leaving]
mijicd has joined #ruby
mijicd has quit [Client Quit]
machete has quit [Quit: don't panic]
shemerey has quit [Client Quit]
jdj_dk has quit [Ping timeout: 272 seconds]
JohnBat26 has quit [Ping timeout: 265 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
himsin has joined #ruby
himsin has quit [Client Quit]
boombadaroomba has joined #ruby
mijicd has joined #ruby
mijicd has quit [Client Quit]
definity_ has joined #ruby
mijicd has joined #ruby
mijicd has quit [Client Quit]
Kricir has joined #ruby
SilkFox has quit [Ping timeout: 260 seconds]
<definity_> What does |x| mean? It looks like it should be set theory, as in the cardinality of x??
machete has joined #ruby
mijicd has joined #ruby
mijicd has quit [Client Quit]
<wasamasa> nope
<theotherstupidgu> you might mean |x| as an iteration variable
benzrf|offline is now known as benzrf
omosoj has quit [Ping timeout: 260 seconds]
<wasamasa> "Use these variables I locked behind bars for the following construct"
<definity_> yeah, like if x was 6 would the loop it was used in be iterated 6 times?
<wasamasa> nope
<theotherstupidgu> [1,2,3].each {|x| p x}
<apeiros> definity_: they are the arguments taken by the block
<cajone> +1 ^ wasamasa :)
<wasamasa> >> %w[1 2 3].map { |e| e.to_i }
<eval-in__> wasamasa => [1, 2, 3] (https://eval.in/209042)
<apeiros> definity_: similar to `def foo(x)`
<definity_> Intresting. Does this |var| have a name?
ndrei has quit [Ping timeout: 265 seconds]
<apeiros> "argument list"?
<apeiros> "parameter list"?
<wasamasa> block-local variables?
<apeiros> "block params"?
claymore has quit [Quit: Leaving]
<definity_> Okay thank for the help guys! im gonna google it :)
<apeiros> wasamasa: no, those are different
<apeiros> wasamasa: all variables not defined prior to the block are block local. and all variables after ; are block-local.
melik has quit [Quit: (null)]
<definity_> 22:25 | theotherstupidgu > [1,2,3].each {|x| p x}
<definity_> 22:25 | apeiros > definity_: they are the arguments taken by the block
<definity_> 22:25 | cajone > +1 ^ wasamasa :)
<definity_> 22:25 | theotherstupidgu > [1,2,3].each {|x| p x}
<theotherstupidgu> apeiros, well said
mijicd has joined #ruby
<definity_> whops sorry
<wasamasa> definity_: ruby is that nice and let's you choose the name of the variable(s) your block is using
kaspertidemann has quit []
<wasamasa> definity_: this is done by that rather peculiar syntax
linojon has quit [Quit: linojon]
ht__th has quit [Remote host closed the connection]
kireevco has joined #ruby
<definity_> The only thing I can really relate to ruby is perl, and it is rather diffrent so some of the ideas have thrown me a bit
<wasamasa> >> {a: 1, b: 2}.map { |k, v| [v, k] }.to_h
<eval-in__> wasamasa => {1=>:a, 2=>:b} (https://eval.in/209043)
mijicd has quit [Client Quit]
Dude007 has joined #ruby
<apeiros> but after wasamasa's remark - definity_, you'll not often see it in the wild, but e.g. in `array.each do |x; t1, t2, …|` the part after ; are not params of the block, but block-local local variables.
mijicd has joined #ruby
mijicd has quit [Client Quit]
<apeiros> ie || can delimit more than just its params
memph1s has joined #ruby
<wasamasa> ^ another contrived example that swaps keys and values of a hash
jerius has quit []
awarner_ has quit [Remote host closed the connection]
niklasb has joined #ruby
skolman_ has quit [Remote host closed the connection]
memph1s has quit [Client Quit]
skolman has joined #ruby
<wasamasa> apeiros: hmk
<wasamasa> apeiros: reminds me of `let' in lisp
dermot has quit [Quit: Lost terminal]
<apeiros> not a lisper :(
<wasamasa> apeiros: where you can use a form that introduces empty variables in the block you have to set yourself in it
RichardLitt has quit [Quit: RichardLitt]
<wasamasa> I wish matz stole more from lisp than the implementation of his beloved text editor
mijicd has joined #ruby
<atmosx> night all
mijicd has quit [Client Quit]
melik has joined #ruby
riceandbeans has joined #ruby
mijicd has joined #ruby
riceandbeans has quit [Changing host]
riceandbeans has joined #ruby
Dude007 has quit [Ping timeout: 265 seconds]
Pupeno has joined #ruby
mijicd has quit [Client Quit]
<wasamasa> then there would be no scoping gotchas
allcentury has quit [Ping timeout: 244 seconds]
thsig_ has quit [Remote host closed the connection]
<wasamasa> though, I'm not sure whether to prefer syntax rules and code walkers over instance_eval and ruthless monkeypatching
Pupeno_ has quit [Ping timeout: 260 seconds]
niklasb has quit [Ping timeout: 255 seconds]
skolman has quit [Ping timeout: 265 seconds]
<theotherstupidgu> any ideas on aliasing nested methods? https://gist.github.com/theotherstupidguy/6fc079bfda97e8f08404
RichardLitt has joined #ruby
techsethi has quit [Quit: techsethi]
riceandbeans has quit [Client Quit]
riceandbeans has joined #ruby
<apeiros> theotherstupidgu: nesting methods does probably not work the way you think it does
mijicd has joined #ruby
<apeiros> a "nested" method will simply become defined at the same level as the outer method when the outer method is called
<jhass> in other words the def keyword changes self but not the definee
<apeiros> and with the same visibility
kenneth__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Avahey has quit [Quit: Connection closed for inactivity]
riceandbeans has quit [Client Quit]
riceandbeans has joined #ruby
<theotherstupidgu> apeiros, jhass, awesome to knw, but how i can manipulate this and get somthing like level_d work as an alias for level_b, etc.
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mijicd has quit [Client Quit]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
<apeiros> theotherstupidgu: I don't quite understand what you try to solve, sorry
bluenemo has quit [Quit: Verlassend]
<jhass> yeah, show real problem
nateberkopec has joined #ruby
RichardLitt has quit [Ping timeout: 265 seconds]
mijicd has joined #ruby
mijicd has quit [Client Quit]
<theotherstupidgu> user gets a dsl with 3 constructs [level_a,level_b,level_c], if use wants to add his own constructs, i want them to act the same mannger as the original dsl
emmesswhy has joined #ruby
sinkensabe has quit [Remote host closed the connection]
RichardLitt has joined #ruby
testcore has left #ruby ["#archlinux"]
<theotherstupidgu> clear??
mikeg has joined #ruby
valeriansaliou has joined #ruby
chipotle has joined #ruby
jheg has quit [Quit: jheg]
gyre007_ has joined #ruby
mijicd has joined #ruby
mijicd has quit [Client Quit]
<theotherstupidgu> in other words, a way to change the constrcuts of a ruby dsl done via yield
chrishough has quit [Ping timeout: 260 seconds]
omosoj has joined #ruby
<apeiros> still not sure what you want. but there's alias_method
jdj_dk has joined #ruby
<theotherstupidgu> i tried alias and alias_method, i can't get the constructs as variables inside the nested methods
<apeiros> again, there's no such thing as nested methods
<theotherstupidgu> you got a reference for this info?
it0a has quit [Quit: WeeChat 1.0.1]
<theotherstupidgu> somthing i can read on my own.
i_s has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 244 seconds]
i_s has joined #ruby
asmodlol has quit [Read error: Connection reset by peer]
leslie has joined #ruby
<theotherstupidgu> "and with the same visibility" i have to disagree, as if I try to alias level_b I get error
sambao21 has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
awarner has joined #ruby
<apeiros> theotherstupidgu: did you run the outer method?
<apeiros> because if you didn't, the method did not get defined. and then there's nothing to alias.
<apeiros> same thing as if you'd done `if false then def foo; end; end`
beneggett has joined #ruby
<theotherstupidgu> apeiros, thats interesting and true, difficult to work with if aliasing is the way
<apeiros> theotherstupidgu: I don't see a reason to nest them
i_s has quit [Ping timeout: 246 seconds]
mrmargolis has quit []
<theotherstupidgu> apeiros, thats a good point, but a dsl should be a bit strict, don't you think?
<theotherstupidgu> less error prone
spyderma_ has quit [Remote host closed the connection]
<apeiros> and why do you believe it is more strict if you nest the methods?
spyderman4g63 has joined #ruby
<theotherstupidgu> as u can't use level_c unless you got level_b, etc.
<apeiros> all you do is defer the definition of the method, and redefine the method on *every* call (instead of just defining it once)
doodlehaus has quit [Remote host closed the connection]
<apeiros> theotherstupidgu: only true on the first try
<theotherstupidgu> apeiros :)
<theotherstupidgu> I never thought of that
TripTastic has joined #ruby
<theotherstupidgu> apeiros thnx
<apeiros> call level_a once, and you can call level_b without calling level_a.
Soda has joined #ruby
<apeiros> if you want to ensure that level_b is called only within level_a, you need another device.
msmith_ has quit [Remote host closed the connection]
livingstn has quit []
TripTastic has left #ruby [#ruby]
<theotherstupidgu> what are my options?
<apeiros> but IMO if it isn't a natural thing coming with your DSL, then you're trying to hold developers hands. and that's - just my opinion - stupid.
tjbiddle has joined #ruby
<apeiros> a) instance_eval into an object which defines the method, b) keep track of the call-stack (remember concurrency, though)
Deejay has joined #ruby
Deejay is now known as Guest15201
Guest15201 has quit [Client Quit]
<apeiros> but - both introduce complexity and make things potentially more brittle. I'd really ask myself if it's necessary.
sailias has quit [Quit: Leaving.]
spyderman4g63 has quit [Ping timeout: 255 seconds]
chrishough has quit [Ping timeout: 240 seconds]
<theotherstupidgu> call-stack?
<theotherstupidgu> example?
poguez has quit [Quit: Connection closed for inactivity]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
renderful has joined #ruby
<theotherstupidgu> apeiros thank you very much
<apeiros> def outer; @stack << :outer; yield; ensure @stack.pop; end; def inner; raise "Must be called within outer" unless @stack.last == :outer; …; end
lw has joined #ruby
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
Wolland has joined #ruby
skolman_ has joined #ruby
<theotherstupidgu> is this somthing like http://ruby-doc.org/stdlib-2.0/libdoc/ripper/rdoc/Ripper.html
robbyoconnor has quit [Ping timeout: 258 seconds]
SuperrMann has quit [Quit: Computer has gone to sleep.]
Wolland_ has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
mary5030 has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RichardLitt has quit [Quit: RichardLitt]
soulcake has quit [Quit: Quack.]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soulcake has joined #ruby
<eam> theotherstupidgu: no, ripper is an interface into the parser. The call stack is where function call history is tracked (to know where you will return to)
lmickh has quit [Remote host closed the connection]
kenneth has joined #ruby
testcore has joined #ruby
<theotherstupidgu> eam, thanx, i am experimenting with call stack now thans to apeiros
centrx has joined #ruby
omosoj has quit [Ping timeout: 258 seconds]
grzywacz has joined #ruby
omosoj has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
jhass is now known as jhass|off
Dalajin has joined #ruby
codecop has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
emanu has joined #ruby
davidhq has joined #ruby
davidhq has quit [Client Quit]
<gyre007_> will I find any ruby vim users here now ? :-)
renderful has quit [Remote host closed the connection]
<centrx> they are a mysterious group
tier has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
xymbol has joined #ruby
<gyre007_> hahha
renderfu_ has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
SilkFox has joined #ruby
jhass|off is now known as jhass
hobodave has joined #ruby
Pupeno_ has joined #ruby
pskosinski has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
Pupeno has quit [Ping timeout: 256 seconds]
Dalajin has left #ruby [#ruby]
volty has joined #ruby
qmfnp has joined #ruby
m8 has quit [Quit: Sto andando via]
SilkFox has quit [Ping timeout: 260 seconds]
hobodave has quit [Ping timeout: 245 seconds]
<theotherstupidgu> i use vim, and the only reason why i want to switch to emacs is because it was Jim(RIP) favourite
testcore has quit [Ping timeout: 246 seconds]
<pipework> Jesus uses VisualStudio.
<theotherstupidgu> lol
cmckee has quit [Ping timeout: 260 seconds]
cmckee has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
linduxed has quit [Ping timeout: 272 seconds]
linojon has joined #ruby
<apeiros> Nietzsche used a fountain-pen
sambao21 has joined #ruby
diegoviola has quit [Ping timeout: 255 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c107 has joined #ruby
<theotherstupidgu> plato used kalamos? :)
emmesswhy has joined #ruby
cocotton has quit [Ping timeout: 244 seconds]
cocotton has joined #ruby
tier has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
<apeiros> theotherstupidgu: sad you didn't use his teacher, then I could have said "pfff… that guy? he knew nothing."
diegoviola has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
volty has quit [Ping timeout: 265 seconds]
cmckee has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
Paradox has quit [Quit: off to herp the derps]
<shevy> ohhh
<shevy> is File.readlines() actually IO.readlines() ?
<apeiros> shevy: yes
<apeiros> >> File.method(:readlines).owner
<eval-in__> apeiros => #<Class:IO> (https://eval.in/209140)
<shevy> ok
<shevy> I could replace all File.readlines with IO.readlines :D
<shevy> to save 2 chars!
<shevy> apeiros, do you prefer File.readlines or IO.readlines in your own code?
Paradox has joined #ruby
<apeiros> File.readlines
poweratom_ has joined #ruby
maestrojed has joined #ruby
<theotherstupidgu> aristotle?
axl_ has quit [Quit: axl_]
vsipuli has joined #ruby
vsipuli has quit [Client Quit]
reinaldob has quit [Ping timeout: 256 seconds]
cmckee has joined #ruby
kirun has quit [Quit: Client exiting]
linduxed has joined #ruby
<shevy> he was greek
<shevy> like atmosx here
t_mmyv has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
chrishough has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
arrubin has quit []
jdj_dk has joined #ruby
i_s has joined #ruby
omosoj has quit [Quit: leaving]
nateberkopec has quit [Quit: Leaving...]
renderfu_ has quit [Remote host closed the connection]
cocotton has quit [Ping timeout: 250 seconds]
s00pcan has quit [Remote host closed the connection]
poweratom_ has quit [Quit: poweratom_]
i_s has quit [Ping timeout: 246 seconds]
klaut has quit [Remote host closed the connection]
skinny_much has quit [Quit: Ruh Roh...]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
maestrojed has joined #ruby
mikeg has quit [Remote host closed the connection]
charliesome has joined #ruby
davidhq has joined #ruby
<apeiros> theotherstupidgu: socrates
jenrzzz has quit [Client Quit]
phutchins has quit [Ping timeout: 260 seconds]
<apeiros> he's attributed for "scio nescio"
jenrzzz has joined #ruby
djstorm has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
cajone has left #ruby [#ruby]
thsig has joined #ruby
agjacome has joined #ruby
JaMz has quit [Remote host closed the connection]
skinny_much has joined #ruby
snath has quit [Ping timeout: 246 seconds]
qmfnp is now known as qmfndinner
diegoviola has quit [Remote host closed the connection]
cajone has joined #ruby
lampd1 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
manzo has joined #ruby
diegoviola has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
Pupeno_ has quit [Remote host closed the connection]
Photism has joined #ruby
jdj_dk has quit [Read error: No route to host]
cocotton has joined #ruby
Pupeno has joined #ruby
linojon has quit [Quit: linojon]
n_blownapart has joined #ruby
Kricir has joined #ruby
jdj_dk has joined #ruby
kingman has quit [Read error: Connection reset by peer]
aspires has quit []
kingman has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
aspires has joined #ruby
Lewix has joined #ruby
diegoviola has quit [Ping timeout: 256 seconds]
cocotton has quit [Ping timeout: 244 seconds]
graft has joined #ruby
<graft> hey anyone ever drawn any svgs with ruby?
aspires has quit [Client Quit]
Channel6 has joined #ruby
spyderman4g63 has joined #ruby
charliesome has quit [Quit: zzz]
sepp2k has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
Kricir has quit [Remote host closed the connection]
SilkFox has joined #ruby
aspires has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
tier has joined #ruby
Kricir has joined #ruby
n_blownapart has quit []
jdj_dk has quit [Ping timeout: 258 seconds]
qmfndinner is now known as qmfnp
aspires has quit [Client Quit]
marr has quit [Ping timeout: 260 seconds]
Kricir has quit [Read error: Connection reset by peer]
Avahey has joined #ruby
Kricir has joined #ruby
SilkFox has quit [Ping timeout: 246 seconds]
diegoviola has joined #ruby
<gkra> ugh, this sucks... I'm trying to use Open4.popen4 with three threads (one to push stderr to a Queue, one to push stdout to a Queue, and one to pop off the Queue and write to a file)
<gkra> The writer keeps exiting before it's consumed the whole queue.
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
manzo has quit [Remote host closed the connection]
Pupeno_ has joined #ruby
nonks has quit [Ping timeout: 265 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has quit [Ping timeout: 256 seconds]
Mia has quit [Ping timeout: 258 seconds]
aspires has quit [Client Quit]
SilkFox has joined #ruby
valeriansaliou has joined #ruby
Tricon has quit [Quit: Lost terminal]
ixti has quit [Ping timeout: 245 seconds]
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland_ has joined #ruby
aspires has joined #ruby
<zenspider> gkra: is there a question in there?
Kricir has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 265 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
spyderman4g63 has quit []
Kricir has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
JaMz has joined #ruby
skolman_ has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
skolman_ has joined #ruby
arescorpio has joined #ruby
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Tricon has joined #ruby
Mia has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
<graft> gkra: why do you need threads for that?
<graft> gkra: also, won't it exit right away because when the thread starts the queue is empty?
<gkra> There was going to be a question there, but I got interrupted...
hobodave has joined #ruby
kristofferR has joined #ruby
<graft> threading just seems like the wrong way to handle this
kristofferR has quit [Remote host closed the connection]
<graft> since the writing thread has no idea when the stderr thread is done consuming stderr, etc.
<gkra> that's what I'm coming to..
<graft> of course it'll exit early
<gkra> well, I fixed that by forcing to writing thread to keep running while either the stderr or stdout thread are alive.
arrubin has joined #ruby
<graft> you still haven't explained why you think threads are important here
skolman_ has quit [Ping timeout: 272 seconds]
zz_jrhorn424 is now known as jrhorn424
<gkra> but yes, the closer I get to making this work, the more I'm thinking I'm travelling down the wrong road.
<graft> you want each line of stderr and stdout to go to a separate file or something?
<gkra> I'm trying to wrap another process in my ruby code, and want to capture this tool's stdout and stderr and write it to a file.
larissa has joined #ruby
<gkra> and I've ended up at Open4::popen4, which looks really neat, and found an example somewhere where they use threads to do all the reading & subsequent writing.
Takle has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
<gkra> What's the "easy way" for this? just system("#{command} 2>&1 > #{file}") ? :)
<gkra> I think I have been trying to be too computer-sciency.
jdj_dk has joined #ruby
chipotle has quit [Quit: cya]
<graft> gkra: is this a continuous process? are you waiting for it to finish running?
<gkra> it's a potentially long-running processes (5-15 minutes)
jrhorn424 is now known as zz_jrhorn424
i_s has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<graft> you can just do stderr.read and stdout.read from popen4 and dump them to a file, it'll just take until the process exits
jrhorn424 is now known as zz_jrhorn424
<graft> if you want to dump it into another thread, just start popen4 in one thread and do all the reading/writing there - ruby won't have to wait, the thread can exit when it likes
sirene has joined #ruby
Aaaal has quit [Quit: Aaaal]
<zenspider> do you actually need to separate stderr from stdout? you lose context that way
<zenspider> yeah. system("#{cmd} 2>&1 >> #{logpath}") will do most of what you want
<graft> even if you want stderr and stdout in their own threads, they can do their own writing, still don't need a third thread
<zenspider> tack on a & if you want the system call to background
SilkFox has quit [Ping timeout: 256 seconds]
linojon has joined #ruby
<zenspider> this is also what tee is for
i_s has quit [Ping timeout: 258 seconds]
snath has joined #ruby
nonks has joined #ruby
jimbach has quit [Remote host closed the connection]
mary5030 has joined #ruby
<gkra> was trying to parse this: https://www.ruby-forum.com/topic/158476
JaMz has quit [Read error: Connection reset by peer]
DLSteve_ has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
EasyCo has joined #ruby
nonks has quit [Ping timeout: 245 seconds]
icarus has quit [Remote host closed the connection]
ramfjord has quit [Read error: Connection reset by peer]