apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
andrewvos has quit [Ping timeout: 268 seconds]
apeiros has quit [Remote host closed the connection]
Markvilla has joined #ruby-lang
ioga_wrk has quit [Read error: Operation timed out]
havenwood has joined #ruby-lang
ioga_wrk has joined #ruby-lang
cjs226 has joined #ruby-lang
gregmoreno has quit [Ping timeout: 268 seconds]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
krohrbaugh has quit [Quit: Leaving.]
cored has quit [Ping timeout: 246 seconds]
tylersmith has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
Kabaka has quit [Excess Flood]
hogeo has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
Nisstyre-laptop is now known as Nisstyre
Kabaka has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 256 seconds]
GarethAdams has quit [Quit: Leaving...]
marr has quit [Ping timeout: 268 seconds]
zomgbie has joined #ruby-lang
MartynKeigher has joined #ruby-lang
breakingthings has quit [Quit: breakingthings]
krohrbaugh has joined #ruby-lang
tkuchiki has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
tylersmith has quit [Ping timeout: 246 seconds]
marcostoledo has quit [Quit: Leaving...]
marcostoledo has joined #ruby-lang
arubin has joined #ruby-lang
andrewvos has joined #ruby-lang
sepp2k1 has quit [Quit: Leaving.]
zomgbie has quit [Ping timeout: 264 seconds]
jstorimer has joined #ruby-lang
braidn_ has quit [Ping timeout: 256 seconds]
sora_h is now known as soraher
tbuehlmann has quit [Remote host closed the connection]
braidn has joined #ruby-lang
soraher has quit [Quit: Server Configuration changed; reconnect]
soraher has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 248 seconds]
jstorimer has quit [Ping timeout: 248 seconds]
_jpb_ has quit [Ping timeout: 255 seconds]
_jpb_ has joined #ruby-lang
havenwood has quit [Read error: Operation timed out]
io_syl has quit [Ping timeout: 240 seconds]
andrewvos has quit [Ping timeout: 246 seconds]
io_syl has joined #ruby-lang
zomgbie has joined #ruby-lang
gregmoreno has joined #ruby-lang
krohrbaugh has quit [Ping timeout: 264 seconds]
gregmoreno has quit [Ping timeout: 256 seconds]
zomgbie has quit [Ping timeout: 264 seconds]
publicvoid_ has quit [Ping timeout: 246 seconds]
Weems has quit [Ping timeout: 255 seconds]
jstorimer has joined #ruby-lang
arooni-mobile has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
tomzx_ has joined #ruby-lang
mdedetrich has joined #ruby-lang
jstorimer has quit [Ping timeout: 264 seconds]
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
fenicks has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
tomzx_ has left #ruby-lang [#ruby-lang]
zomgbie has joined #ruby-lang
Domon has joined #ruby-lang
havenwood has joined #ruby-lang
zomgbie has quit [Ping timeout: 240 seconds]
ffio_ has joined #ruby-lang
ffio has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
dankest has quit [Quit: Leaving...]
knu has joined #ruby-lang
bzalasky has joined #ruby-lang
tylersmith has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
jstorimer has joined #ruby-lang
Kellin has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
tylersmi_ has joined #ruby-lang
tylersmith has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 268 seconds]
Guest72090 has joined #ruby-lang
Guest72090 is now known as diegoviola
jstorimer has quit [Ping timeout: 268 seconds]
lsegal has joined #ruby-lang
dankest has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.1]
mistym has quit [Remote host closed the connection]
vivekrai_ has joined #ruby-lang
vivekrai has quit [Ping timeout: 264 seconds]
Kabaka has quit [Excess Flood]
vivekrai_ has quit [Changing host]
vivekrai_ has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
x0f has joined #ruby-lang
Kabaka has joined #ruby-lang
sebastiansier has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
x0f has quit [Ping timeout: 268 seconds]
jstorimer has joined #ruby-lang
x0f has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
jstorimer has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
tRAS has joined #ruby-lang
w1zeman1p has joined #ruby-lang
x0f has joined #ruby-lang
DomKM has quit [Quit: Leaving.]
zomgbie has joined #ruby-lang
cordax has joined #ruby-lang
DomKM has joined #ruby-lang
io_syl has quit [Ping timeout: 268 seconds]
<Kellin> need guidance please - installed ruby 2.0.0p195 with Homebrew, have updated rdoc and installed rdoc-data in an attempt to get 'ri <CLASS>' to work, still getting nothing known message
tRAS has quit [Client Quit]
kstevens715 has joined #ruby-lang
x0f has quit [Ping timeout: 248 seconds]
x0f has joined #ruby-lang
zomgbie has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby-lang
sebastiansier has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
publicvoid_ has joined #ruby-lang
tdy has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
roadt has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
mistym has joined #ruby-lang
markov_twain has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
_jpb_ has joined #ruby-lang
io_syl has joined #ruby-lang
irmbrady has joined #ruby-lang
tdy has quit [Ping timeout: 276 seconds]
krz has joined #ruby-lang
irmbrady has quit [Quit: WeeChat 0.4.0]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
irmbrady has joined #ruby-lang
postmodern has quit [Quit: Leaving]
jackhamm_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jackhammer2022 has quit [Ping timeout: 276 seconds]
zomgbie has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 246 seconds]
jackhamm_ has quit [Client Quit]
jackhammer2022 has joined #ruby-lang
andrewvos has joined #ruby-lang
zomgbie has quit [Ping timeout: 256 seconds]
cordax has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
andrewvos has quit [Ping timeout: 240 seconds]
rippa has quit [Ping timeout: 248 seconds]
rippa has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
bzalasky has joined #ruby-lang
w1zeman1p has quit [Remote host closed the connection]
josejose has joined #ruby-lang
saarinen has joined #ruby-lang
josejose has quit [Ping timeout: 250 seconds]
sush24 has joined #ruby-lang
cofin has joined #ruby-lang
fridim_ has quit [Ping timeout: 246 seconds]
marcostoledo has quit [Ping timeout: 256 seconds]
shireesh has joined #ruby-lang
publicvoid_ has quit [Ping timeout: 246 seconds]
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
saarinen has quit [Quit: saarinen]
sbpraveen34 has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
ffio_ has quit [Ping timeout: 268 seconds]
jstorimer has joined #ruby-lang
tRAS has joined #ruby-lang
jstorimer has quit [Ping timeout: 246 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
ffio has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 276 seconds]
sush24 has quit [Read error: Connection reset by peer]
Oak has joined #ruby-lang
w1zeman1p has joined #ruby-lang
jsullivandigs has joined #ruby-lang
andrewvos has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
x0f has joined #ruby-lang
zomgbie has joined #ruby-lang
hhatch has joined #ruby-lang
andrewvos has quit [Ping timeout: 246 seconds]
bzalasky has joined #ruby-lang
markov_twain has quit [Ping timeout: 246 seconds]
DomKM has quit [Quit: Leaving.]
zomgbie has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
sbpraveen34 has quit [Quit: ChatZilla 0.9.90 [Firefox 24.0a1/20130622094432]]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
mashu74 has joined #ruby-lang
ffio has joined #ruby-lang
tdy has joined #ruby-lang
jonahR has quit [Quit: jonahR]
Weems has quit [Ping timeout: 240 seconds]
GeissT has joined #ruby-lang
Weems has joined #ruby-lang
jbsan has quit [Read error: Connection reset by peer]
jbsan has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
<drbrain> did you run `rdoc-data --install`
<drbrain> ?
_jpb_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
SilverKey has joined #ruby-lang
mdedetrich has joined #ruby-lang
jstorimer has quit [Ping timeout: 256 seconds]
bakhtiyor has joined #ruby-lang
zomgbie has joined #ruby-lang
zomgbie has quit [Ping timeout: 256 seconds]
arooni-mobile has quit [Read error: Connection reset by peer]
Sambalero has quit [Remote host closed the connection]
<bakhtiyor> Hello everyone
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
w1zeman1p has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
bakhtiyor has quit [Remote host closed the connection]
bakhtiyor has joined #ruby-lang
<bakhtiyor> Are you there?!
<bakhtiyor> I have a question
andrewvos has joined #ruby-lang
bakhtiyor has quit [Ping timeout: 246 seconds]
marcostoledo has joined #ruby-lang
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
andrewvos has quit [Ping timeout: 276 seconds]
tonni has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
mytrile has joined #ruby-lang
duph has quit [Quit: Leaving.]
io_syl has quit [Quit: Computer has gone to sleep.]
_jpb_ has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
swav has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
mistym has quit [Remote host closed the connection]
tonni has joined #ruby-lang
apeiros has joined #ruby-lang
relix has joined #ruby-lang
benlovell has joined #ruby-lang
zomgbie has joined #ruby-lang
bakhtiyor has joined #ruby-lang
bakhtiyor has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
x0f has quit [Ping timeout: 256 seconds]
Wardrop has quit [Quit: Wardrop]
zomgbie has quit [Ping timeout: 255 seconds]
x0f has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Phoop has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
x0f has quit [Ping timeout: 256 seconds]
mdedetrich has joined #ruby-lang
x0f has joined #ruby-lang
publicvoid_ has joined #ruby-lang
mdedetrich has quit [Client Quit]
andrewvos has joined #ruby-lang
Zeeo has joined #ruby-lang
ebouchut_ has joined #ruby-lang
<Zeeo> Hi All!
MartynKeigher has quit [Quit: http://www.martynkeigher.com]
sush24 has joined #ruby-lang
GarethAdams has joined #ruby-lang
andrewvos has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby-lang
sush24 has quit [Client Quit]
gnufied has joined #ruby-lang
MartynKeigher has joined #ruby-lang
swav has joined #ruby-lang
solars has joined #ruby-lang
tonni has quit [Ping timeout: 264 seconds]
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
zomgbie has joined #ruby-lang
mdedetrich has joined #ruby-lang
tonni has joined #ruby-lang
mdedetrich has quit [Client Quit]
criego has quit [Ping timeout: 264 seconds]
GarethAdams has quit [Quit: Leaving...]
vlad_starkov has joined #ruby-lang
crazyhorse has joined #ruby-lang
<crazyhorse> bundle install shouldn't require root right?
<crazyhorse> it's complaining it doesn't have access to/var/lib/gems
swav has quit [Remote host closed the connection]
<gnufied> that is because bundler is trying to install to system gems.
<gnufied> it does that unless you specify —path option
barttenbrinke has joined #ruby-lang
<crazyhorse> ah ok..
<crazyhorse> but shouldn't that be in the gem path? when i do gem env?
mytrile has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
duph has joined #ruby-lang
mdedetrich has quit [Client Quit]
tbuehlmann has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
<crazyhorse> hmmm i've got no idea why it's trying to access /var/lib/gems
<crazyhorse> i don't have that setup anywhere
<crazyhorse> it's not in gem env, it's not in my path
jsullivandigs has joined #ruby-lang
<crazyhorse> looking through "man bundle install" doesn't specify anything regarding gem paths
tonni has quit [Remote host closed the connection]
skade has joined #ruby-lang
<gnufied> it is because rubygems installed via apt-get installs in that path
<gnufied> welcome to debian
<injekt> moin
<gnufied> morning injekt
judofyr has joined #ruby-lang
<injekt> howdy gnufied
jsullivandigs has quit [Ping timeout: 240 seconds]
<crazyhorse> ah.. how can i override it?
<gnufied> injekt: came back from rubyconfindia. lot of good speakers etc. but drank bit too much.
pipework has quit [Remote host closed the connection]
<injekt> gnufied: nice!
<gnufied> crazyhorse: can you not just specify —path when installing gems for that particular app?
<gnufied> I won't recommend overriding for default rubygems
<gnufied> crazyhorse: check gem env
<gnufied> "gem env"
<crazyhorse> gnufied: i have.. it's not in there
<gnufied> that should give you clearer picture of where things are going
fess has joined #ruby-lang
<gnufied> crazyhorse: and you installed rubygems via apt-get right?
<crazyhorse> gnufied: hmm yeah but i'm setting up development environments for everyone
<crazyhorse> gnufied: let me check
<gnufied> I give up.
<gnufied> let them setup their own development environment
<crazyhorse> yeah ok .. i installed rbenv first.. i installed ruby via rbenv
<crazyhorse> then i installed sudo apt-get install ruby gems and sudo apt-get install ruby-bundler
<crazyhorse> after restarting the shell
<injekt> zzak: booked my arrrrcamp ticket :)
<gnufied> crazyhorse: wtf
<gnufied> why are you installing stuff from apt-get when using rbenv?
northelks has quit [Ping timeout: 264 seconds]
<crazyhorse> because i was following the instructions
<gnufied> what instructions?
<crazyhorse> on the rbenv website
<gnufied> and which version of ruby we are talking about?
<gnufied> ruby comes with rubygems
<crazyhorse> gnufied: you ask that question like this is obvious
<gnufied> I am sorry.
<gnufied> it is just that usual practice is:
<gnufied> 1. install rbenv
<gnufied> 2. install rbenv-builder plugin
<gnufied> 3. use the plugin to install ruby
<crazyhorse> ah right.. maybe i need to uninstall rubygems
<gnufied> 4. rubygems is part of ruby, no separate installation necessary
<crazyhorse> and start over
<crazyhorse> because it's getting confused
<gnufied> can you link me to the rbenv which says after installing rbenv proceed to install ruby using apt-get?
<gnufied> rbenv page*
<injekt> ruby-build plugin*
<gnufied> yes sorry, the plugin is ruby-build not ruby-builder . thanks injekt
<injekt> (also chruby + ruby-install ftw)
publicvoid_ has quit [Read error: Operation timed out]
<gnufied> see, that is where hipsters go. avoid that route.
<gnufied> :-)
sebastiansier has joined #ruby-lang
<crazyhorse> i actually take these long installation notes, with links to all the websites i got the info from
<crazyhorse> unfortunately the apt-get install rubygems
<crazyhorse> i seem to have just made up :/
<crazyhorse> by myself lol
<crazyhorse> i just checked the 4 links.. and none of them had it
<gnufied> injekt: seriously though why chruby and ruby-install?
<injekt> gnufied: because imo they're better (no shims, ruby-install just worked for me, ruby-build didn't, plus ruby-install installs all necessary deps)
mikewintermute has joined #ruby-lang
<crazyhorse> awesome that fixed it
<crazyhorse> gnufied: thankyou :D and sorry for the mistake
<crazyhorse> i've updated my docs .. haha
dagobah has joined #ruby-lang
<bnagy> injekt: fwiw if you use jruby and want to track master rbenv is very convenient exactly because of the shims
<judofyr> gnufied: +1 chruby: no shims, no shills. just works. uses the same gem directory when I upgrade patchlevels.
<bnagy> you can just symlink the jruby dir in and create a ruby -> jruby symlink in the shim dir
<injekt> bnagy: sure no doubt. I don't, so it's not so beneficial for me
<bnagy> to save constantly typing ruby then ^ru^jru
<injekt> I mean, chruby and ruby-install kinda just follows the "*nix way" so you can do what you want with it, no magic, simplicity
<bnagy> I never use ruby-build though, the one time I played with it it was annoying
<judofyr> bnagy: seems like an easy feature to add to ruby-install
<bnagy> well rbenv is *nix as well
<injekt> well
<bnagy> shims are common
<judofyr> bnagy: chruby doesn't care how you build it as long ~/.rubies/ruby-name/bin/ruby exists
<injekt> I guess when I say "*nix way" I mean load it into your path and everything works
<bnagy> judofyr: well neither does rbenv
<judofyr> bnagy: then how is rbenv more convenient? :) seems just the same to me.
tonni has joined #ruby-lang
<bnagy> it's much of a muchness I guess, as long as your ruby symlink didn't get clobbered
<judofyr> bnagy: cd ~/.rubies; git clone git@github.com:jruby/jruby.git jruby-master; cd jruby-master; ant
<bnagy> imo there's not enough difference between rbenv and chruby to give a crap about
<judofyr> then: chruby jruby-master; ruby -v
<bnagy> at least neither of them are rvm
<judofyr> *shrugs*
<injekt> hey if I dont have to remember to rehash, I've saved a step
<bnagy> don't think I ever rehashed
<judofyr> rehashes are more annoying than shims IMO
<bnagy> it does it for you when you switch
<injekt> I dont switch that often
<bnagy> but honestly, if you want to chruby fanboy, then go for the ruby-install vs ruby-build
<injekt> lol fanboy
dankest has quit [Quit: Leaving...]
<judofyr> bnagy: I frankly don't care what you use. you mentioning that "rbenv was more convenient", and I don't think that's the case. but yeah, no need to switch if you're happy with rbenv.
<bnagy> judofyr: I said very convenient, but yeah
<judofyr> bnagy: I just know that all of my Ruby switching problems disappeared when I switched to chruby :)
<judofyr> ah
<judofyr> oh well
postmodern has joined #ruby-lang
<bnagy> I have nothing against chruby, I just have no reason to switch and I don't know any way in which it's better than rbenv
elia has joined #ruby-lang
<bnagy> ruby-install is superior to ruby-build
<judofyr> yeah, I felt like that for a long time too. rehashing switched me in the end.
<postmodern> bnagy, no worries, if RVM/rbenv suits your needs then stick with it
<injekt> +1 for me
<bnagy> mostly I recommend chruby to noobs
<postmodern> bnagy, RVM totally kicked ass in the workshop I did
<bnagy> :<
<postmodern> bnagy, people had lots of issues configuring rbenv (forgetting to add .rbenv/shims to $PATH)
<bnagy> well if you just cannot unix at all then I guess you're in good company with rvm
<bnagy> bash < curl ftw
<postmodern> while it's invasive, having rvm's install script add itself to .bash_profile is a user-friendly move
<postmodern> or having some stock configuration you can drop in
<bnagy> oh it hoses your bash profile automatically now?
<bnagy> you use to have to hose it yourself manually
<postmodern> bnagy, tries to intelligently add a . .rvm/... line
<postmodern> s/add/append/g
<gnufied> bnagy: rehash is required.
<gnufied> rvm is but huge pain. rvm use doesn't work most of the time programmatically (when invoked from shell scripts)
<bnagy> gnufied: when you install yeah
<gnufied> bnagy: nah. if your gem has a binary then you need to rehash as well, I think
<bnagy> probably
<bnagy> which always happens
<bnagy> :D
<gnufied> happens? lol
<gnufied> worth checking our chruby I guess. postmodern hangs out here to that is +1
<bnagy> because of all the tech support I'll need?
<postmodern> lol
Rizzle has quit [Read error: Connection reset by peer]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<postmodern> bnagy is self-sufficient, thegrugq on the other hand ...
<bnagy> hahah
<postmodern> can't even setup octopress :P
<bnagy> well that sounds awful to be fair
<postmodern> yeah, also why i avoid octopress
<gnufied> so you agree it complex?
<postmodern> fairly, i sort of wish we'd just use better jekyll generators
<gnufied> getting all static site generators to do your bidding is crappy.
<gnufied> we use nanoc
<bnagy> anyway, it's the same with pry. I recommend it to noobs, it might be better, I just don't use it because there's nothing that makes it worth the effort of setting up
Rizzle has joined #ruby-lang
<postmodern> instead of using multiple branches and rewriting master branch
<bnagy> I switch rubies like once a year
<gnufied> bnagy: source-location etc?
<gnufied> I wouldn't know what I would do without pry
<bnagy> not going to go and rebuild a ton of servers
<postmodern> i don't use chruby on servers
<bnagy> I can't even begin to imagine a use case for me for source-location
<postmodern> use the package managers ruby or install into /usr/local
* postmodern old skewl
<gnufied> bnagy: clearly you have never debugged a rails app.
ffio has quit [Ping timeout: 268 seconds]
<bnagy> happily, that is the case
<gnufied> a gnarly meta programmed method
<gnufied> just very hard to figure out otherwise.
<bnagy> sounds awful, and you have my condolences for working with rails
<bnagy> I don't
<gnufied> do you I have your condolences or not? I am confused.
jtoy has quit [Ping timeout: 245 seconds]
<gnufied> :-)
<bnagy> >X( not a dangling modifier!
* bnagy shakes tiny fist
<gnufied> I heard you were in Nepal. still there?
<bnagy> nope, awaiting new post
<bnagy> at this second I am in australia
<gnufied> cool.
<bnagy> most of this year we've been living in thailand
elia has quit [Ping timeout: 264 seconds]
jtoy has joined #ruby-lang
<postmodern> bnagy, how do you adjust to living upside down?
<bnagy> postmodern: hey are you doing the matasano crypto stuff?
<postmodern> bnagy, not right now, but i probably should
<bnagy> thailand is so fricking luxurious after nepal omg
<yorickpeterse> morning
swav has joined #ruby-lang
elia has joined #ruby-lang
GarethAdams has joined #ruby-lang
<postmodern> yorickpeterse, evening
sush24 has joined #ruby-lang
mdedetrich has joined #ruby-lang
GarethAdams|Work has joined #ruby-lang
GarethAdams|Work has quit [Remote host closed the connection]
GarethAdams|Work has joined #ruby-lang
GarethAdams|Work has quit [Remote host closed the connection]
GarethAdams has quit [Remote host closed the connection]
Todd has quit [Ping timeout: 268 seconds]
<crazyhorse> hey ok
<crazyhorse> i've got a a directory called /storage/gems which contains every single gem i need it's currently owned by root
<crazyhorse> i'd like to run bundle install for ruby 1.9.x using rbenv to install the gems for this particular app
postmodern_ has joined #ruby-lang
<crazyhorse> how do i make it get the gems from that location.. the gems are in the .gem format
Todd has joined #ruby-lang
sush24 has quit [Client Quit]
sebastiansier has quit [Ping timeout: 264 seconds]
postmodern has quit [Ping timeout: 246 seconds]
stamina has joined #ruby-lang
Wardrop has joined #ruby-lang
andrewvos has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mradmacher has joined #ruby-lang
postmodern_ has quit [Quit: Leaving]
postmodern has joined #ruby-lang
GarethAdams has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
andrewvos has quit [Quit: leaving]
Johz has joined #ruby-lang
Pupeno has joined #ruby-lang
Criztian has joined #ruby-lang
Pupeno has quit [Read error: Connection reset by peer]
kgrz has quit [Remote host closed the connection]
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
Pupeno has joined #ruby-lang
x0f has quit [Ping timeout: 268 seconds]
_jpb_ has quit [Ping timeout: 246 seconds]
_jpb_ has joined #ruby-lang
x0f has joined #ruby-lang
marr has joined #ruby-lang
ruurd has joined #ruby-lang
fess has quit [Quit: ..]
GarethAdams has quit [Ping timeout: 256 seconds]
northelks has joined #ruby-lang
andrewvos has joined #ruby-lang
kgrz has joined #ruby-lang
<judofyr> crazyhorse: `ls` ?
<gnufied> bnagy: how costly is thailand? per day expense approx?
andrewvos has quit [Client Quit]
<crazyhorse> judofyr: ls what?
x0f has quit [Ping timeout: 246 seconds]
<judofyr> crazyhorse: ls the directory
_jpb_ has quit [Ping timeout: 255 seconds]
<judofyr> crazyhorse: read the filenames
<crazyhorse> yeah the filenames are the gem files
_jpb_ has joined #ruby-lang
<crazyhorse> activerecord-1.8.2.gem etc
ffio has joined #ruby-lang
<crazyhorse> i'd like to tell bundler when it goes to load gems it should get them from that directory
<crazyhorse> rather than connecting to rubygems
mdedetrich has quit [Quit: Computer has gone to sleep.]
x0f has joined #ruby-lang
<judofyr> oh
<judofyr> hm
<judofyr> not sure actually
<crazyhorse> in my rails apps i massivly cheated
<crazyhorse> i symlinked /vendor/rails to that directory
<crazyhorse> and ran bundle install --no-cache --no-prune
mickey_2013 has joined #ruby-lang
<crazyhorse> sorry symlinked /vendor/cache to /storage/gems
<judofyr> hah
<judofyr> nice
<crazyhorse> then ran bundle install --local --no-cache --no-prune --gemfile Gemfile
<Zeeo> hey guys, I think I messed up something. Ruby has never worked well with sqlite3 on my system for god knows what reason, but I had managed to make it work with a package I've downloaded(from this thread https://groups.google.com/forum/#!msg/rubyinstaller/gedIaMryCFQ/99NlyvecwmAJ). Now, I did a bundle install and it has installed the default version, destroying my previous configuration. I've tried to re-install the package but something is g
lupine has quit [Read error: Connection reset by peer]
lupine has joined #ruby-lang
mickey_2013 has left #ruby-lang [#ruby-lang]
jstorimer has joined #ruby-lang
mickeyk has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
mickeyk has quit [Quit: Leaving]
Johz has quit [Ping timeout: 240 seconds]
Johz has joined #ruby-lang
charliesome has joined #ruby-lang
<judofyr> postmodern: English is hard
x0f has quit [Ping timeout: 276 seconds]
x0f has joined #ruby-lang
faces has joined #ruby-lang
<postmodern> judofyr, it is!
<postmodern> judofyr, we should switch to esparanto or ePrime
face has quit [Ping timeout: 256 seconds]
<judofyr> postmodern: or Lojban
<judofyr> huh, ePrime looks interesting
<postmodern> judofyr, oh wow there's another one
<postmodern> judofyr, ePrime just removes is
<judofyr> postmodern: http://xkcd.com/191/
<judofyr> postmodern: Lojban is pretty cool. it doesn't have a concept of verbs, nouns or adjectives
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #ruby-lang
<yorickpeterse> lol Linux: macbook fans spin up, lm_sensors reports the temp is almost 90C. Suspend, problem fixed
<judofyr> postmodern: instead it has "selbri" (relationships). so there's a word for "x1 gives x2 to x3". and then you can fill in the variables
<yorickpeterse> It's a bit sad when suspending fixes these problems
<judofyr> so "I give this to you" uses the same word as "I receive this from you"
<judofyr> (dunda is the word)
<postmodern> judofyr, sounds like STL for english
<judofyr> and "a gift" is also based on the same word
<postmodern> judofyr, or LISP macros for english
<judofyr> there's a way to turn a relationships to things
benxao has joined #ruby-lang
<judofyr> another example: "zdani" means "x1 is a home to x2". thus "ti zdani mi" means "I live here/this is my home", while "zdani mi" means "I have a home"
<judofyr> postmodern: it's very composable
<postmodern> judofyr, what happens when a new noun is defined?
<judofyr> postmodern: there's special rules for creating new selbris
<judofyr> postmodern: Lojban is completely unambiguous so you can always remove all the spaces and everything would still make sense
<postmodern> judofyr, idk i think german might have a leg up on lojban
<judofyr> postmodern: "tizdanimi" is just as "valid" as "ti zdani mi"
<postmodern> judofyr, from what i've heard, the committee that controls the modern german language has been deprecating their more confusing grammar rules
<postmodern> judofyr, only in germany do they have an organization and a specification for their language
<judofyr> postmodern: interesting
<judofyr> postmodern: this is a good tutorial to Lojban if you're interesting: https://docs.google.com/document/pub?id=19w6j6xomk_Lxv2wOP4LaaceyUhKQqlGFSaN3U0MpBpY
<judofyr> postmodern: we also have something similar in Norway: Norsk Språkråd (Norwegian Language Council?) but they're not really tweaking the rules that much. it's more about new words and different endings
benxao has quit [Remote host closed the connection]
<yorickpeterse> "We should ignore RubySpec."
GarethAdams has joined #ruby-lang
<yorickpeterse> welp
<yorickpeterse> I hope that's specific to that discussion and not in general
yxhuvud has quit [Ping timeout: 264 seconds]
<judofyr> yorickpeterse: pretty sure he means "let's ignore the RubySpec test for this case"
skade has quit [Ping timeout: 255 seconds]
<yorickpeterse> I hope so
<judofyr> I mean, he's the one that mentioned RubySpec in the first case, so I think he cares about it
<judofyr> brb
skade has joined #ruby-lang
cofin has quit [Quit: cofin]
rippa has quit [Ping timeout: 248 seconds]
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
krz has quit [Quit: krz]
barttenbrinke has quit [Ping timeout: 248 seconds]
Weems has quit [Ping timeout: 246 seconds]
srji has joined #ruby-lang
coffeeju1 has quit [Read error: Operation timed out]
coffeeju1 has joined #ruby-lang
crudson has left #ruby-lang [#ruby-lang]
barttenbrinke has joined #ruby-lang
GarethAdams|Work has joined #ruby-lang
ahf has joined #ruby-lang
ahf has joined #ruby-lang
ahf has quit [Changing host]
postmodern has quit [Quit: Leaving]
jstorimer has joined #ruby-lang
GarethAdams has quit [Ping timeout: 240 seconds]
<yorickpeterse> In unrelated news, I might be teaching at Rails girls this year
<yorickpeterse> wait, I think I already mentioned that
<yorickpeterse> ugh, my brain
<injekt> yorickpeterse: are you going to arrrrcamp?
dernise has joined #ruby-lang
<yorickpeterse> I'm contemplating going
<yorickpeterse> since I can just do Ghent by train probably
<injekt> That's what I'm doing
<yorickpeterse> wait, from fucking UK?
<injekt> yes it's only like 2.5 hours lol
<yorickpeterse> Isn't the Eurolol super expensive?
<injekt> not if you book way in advance
<injekt> and I'll book the tickets through work
<dernise> Hello ~
<judofyr> hey dernise
<yorickpeterse> ah yes, you work for a train company now
<yorickpeterse> well sort of
<injekt> yeah
jstorimer has quit [Ping timeout: 256 seconds]
mytrile has joined #ruby-lang
SilverKey has quit [Quit: Zzzzzz.]
GarethAdams|Work has quit [Remote host closed the connection]
Oak has quit [Remote host closed the connection]
GarethAdams has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
gnufied has quit [Quit: Leaving.]
jstorimer has joined #ruby-lang
vlad_starkov has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
jstorimer has joined #ruby-lang
gnufied has joined #ruby-lang
crazyhorse has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby-lang
toretore has joined #ruby-lang
jstorimer has quit [Ping timeout: 276 seconds]
linc01n has quit [Ping timeout: 264 seconds]
irmbrady has quit [Quit: WeeChat 0.4.0]
mdedetrich has quit [Quit: Computer has gone to sleep.]
duph has quit [Quit: Leaving.]
Domon has quit [Remote host closed the connection]
srji has quit [Quit: leaving]
linc01n has joined #ruby-lang
Domon has joined #ruby-lang
Domon has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
jxie has quit [Quit: leaving]
Nisstyre has quit [Quit: Leaving]
benlovell has quit [Ping timeout: 276 seconds]
zomgbie has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby-lang
Harzilein has quit [Quit: Leaving]
bossbarbie has joined #ruby-lang
ldnunes has joined #ruby-lang
kgrz has quit [Ping timeout: 276 seconds]
kgrz has joined #ruby-lang
benlovell has joined #ruby-lang
marcostoledo has quit [Ping timeout: 256 seconds]
mytrile has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 248 seconds]
kgrz has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
marcostoledo has joined #ruby-lang
mdedetrich has joined #ruby-lang
Voker57 has joined #ruby-lang
tomzx_mac has joined #ruby-lang
_jpb_ has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
<dernise> Can someone explain me this code line 71 ? https://github.com/arya/bluepill/blob/master/lib/bluepill/system.rb. why do they read rd , this pipe point to nothing, isn't it ?
<judofyr> dernise: Daemonize.safefork will fork the process
<judofyr> dernise: so one process (the parent) continues inside the `if`, while a child process runs the else branch
<judofyr> is being read at line 71
stamina has quit [Ping timeout: 248 seconds]
ia___ has quit [Quit: ia___]
cored has joined #ruby-lang
cored has joined #ruby-lang
zomgbie has quit [Ping timeout: 240 seconds]
zomgbie has joined #ruby-lang
mmhy has joined #ruby-lang
bossbarbie has quit [Read error: Connection reset by peer]
kgrz_ has joined #ruby-lang
kgrz has quit [Ping timeout: 256 seconds]
<judofyr> dernise: forks can be confusing…
<charliesome> judofyr: yup
<charliesome> don't try this at home kiddies
<charliesome> but open pry
<charliesome> type 2.times { fork }
<charliesome> and hold down ^C
<yorickpeterse> offf, that's it?
<yorickpeterse> * pfff
<charliesome> yorickpeterse: depends what you're referring to by "it"
<dernise> Ahah, ok thanks. :)
<yorickpeterse> charliesome: as in, a proper fork bomb
dhruvasagar has quit [Ping timeout: 246 seconds]
<dernise> But will the else be run ?
<charliesome> yorickpeterse: it segfaults mri
<judofyr> dernise: yes, but by a different process
<judofyr> dernise: so they will run in parllel
<dernise> Let's resume. The parent process is the application, right?
<judofyr> yes
injekt has quit [Ping timeout: 256 seconds]
<judofyr> oh
<dernise> This process will run if child = Daemonize.safefork
<judofyr> yes
<dernise> This wil invoke a child process ?
<dernise> will*
<judofyr> dernise: yes, it will start a child process, but it will be a copy of the parent
<judofyr> dernise: so it has all the same objects
<judofyr> dernise: but they're copied. so if you modify something in the child, it doesn't change the parent
<dernise> Oh I see. I didn't know that.
<dernise> And will the child run this function as well?
<judofyr> .safefork will then return "twice": once in the parent process (then it returns the child process ID) and once in the child process (returning nil)
<judofyr> so the child continues from "else"
fosky has quit [Ping timeout: 264 seconds]
<judofyr> and the parent from "if child = …"
<judofyr> dernise: it uses fork to reload the application on every request
<dernise> I see. And why is this function called as well in the child process?
tkuchiki has quit [Remote host closed the connection]
<judofyr> dernise: because the child process resumes from the same point
<judofyr> dernise: it even has the same stack
<yorickpeterse> charliesome: wait....what
LokiShar_ has joined #ruby-lang
<charliesome> yorickpeterse: true facts
<dernise> Ok. Thanks a lot. :)
<judofyr> dernise: `fork` is very powerful
<judofyr> you can do lots of cool tricks with it
<judofyr> dernise: *nix only though
philnyc has joined #ruby-lang
<charliesome> yorickpeterse http://ascii.io/a/3760
LokiShar_ has quit [Client Quit]
<yorickpeterse> y u no use that thing cirwin made
<charliesome> yorickpeterse: its playback is janky
<charliesome> this is smooth
<judofyr> smooooth
LokiSharp has joined #ruby-lang
<yorickpeterse> showterm works fine for me
<yorickpeterse> also dat $PROMPT
<yorickpeterse> hahaha wtf
<charliesome> yorickpeterse: dat prompt?
<yorickpeterse> IRB doesn't segfault
<charliesome> weird
<yorickpeterse> it just doesn't want to die after that unless you kill it
<charliesome> must be something that pry does
<charliesome> with readline funkiness
<yorickpeterse> yeah, MRI is flawless
<yorickpeterse> don't be hatin'
<charliesome> its a bug in ext/readline i'd say
kgrz_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> Allright folks, I need to grab my shit and head to the airport
<yorickpeterse> TO THE GREECE MOBILE!
<yorickpeterse> (man that one was terrible)
intellitech has quit [Quit: SMOKE BOMB!]
<dernise> I'm a *nix system. :)
scholar01 has joined #ruby-lang
scholar01 has quit [Changing host]
scholar01 has joined #ruby-lang
setmeaway has joined #ruby-lang
kgrz has joined #ruby-lang
io_syl has joined #ruby-lang
<dernise> In fact, I'm trying to run a program as a daemon and monitor it.
<dernise> Is fork a good solution?
<dernise> I looked at similar codes they all seemed to use fork.
<darix> dernise: it is normal for daemons to fork
<darix> there are some init systems which want daemons to run in foreground (daemontools/runit/systemd)
<darix> but most want the daemon to fork away
cored has quit [Ping timeout: 268 seconds]
LokiSharp has quit [Remote host closed the connection]
injekt has joined #ruby-lang
<dernise> I see
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<erikh> most have an option to turn fork off.
<erikh> what program is this?
mmhy has quit []
bossbarbie has joined #ruby-lang
<erikh> it's usually called "foreground" or "daemon no" or something like that.
<gnufied> erikh: this conversation reminds me. you were saying some supervisors can track double fork
<gnufied> (which upstart doesn't)
barttenbrinke has quit [Remote host closed the connection]
<erikh> gnufied: monit
<erikh> is the one I'm most familiar with -- smf can too.
<erikh> smf is probably the most exciting one of all the ones I've used.
<erikh> even if xml
<erikh> launchd can too.
<darix> gnufied: systemd also tries to track the pid of things started from lsb init scripts
<gnufied> I suppose they write pid of things yes
<erikh> need to get ready for work
<erikh> ttfn
<maloik_> I have an object that I want to generate a string for that is basically a config file, but it requires tons of interpolating inside that string, as well as proper formatting and some regular ruby... what is the best way to build such a method ?
<maloik_> by generate a string I mean create a method that outputs a string
<judofyr> maloik_: ERB?
<judofyr> TEMPLATE = ERB.new(<<-EOF) … EOF
<judofyr> TEMPLATE.result(binding)
<maloik_> that might work yea, lets see
barttenbrinke has joined #ruby-lang
fridim_ has joined #ruby-lang
bossbarbie has quit [Remote host closed the connection]
bossbarbie has joined #ruby-lang
skade has quit [Ping timeout: 264 seconds]
Kabaka has quit [Remote host closed the connection]
skade has joined #ruby-lang
kgrz has quit [Remote host closed the connection]
bossbarbie has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Kabaka has joined #ruby-lang
tonni has quit [Remote host closed the connection]
hashkey has quit [Ping timeout: 256 seconds]
hashkey has joined #ruby-lang
hashkey is now known as Guest15795
breakingthings has joined #ruby-lang
tkuchiki has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 276 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
fridim_ has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has joined #ruby-lang
krames has joined #ruby-lang
publicvoid_ has joined #ruby-lang
tonni has joined #ruby-lang
w00x has joined #ruby-lang
nathanstitt has joined #ruby-lang
Nisstyre-laptop has quit [Remote host closed the connection]
bgant has joined #ruby-lang
Aaaarg has quit [Quit: Aaaarg]
nathanstitt has quit [Ping timeout: 256 seconds]
<dernise> Fork is really insteresting.
tdy_ has quit [Quit: WeeChat 0.4.1]
<apeiros> the gem 'fork'?
mytrile has joined #ruby-lang
enebo has joined #ruby-lang
<gnufied> it was a shame github removed "harcode forking" message
tomzx_mac has quit [Ping timeout: 246 seconds]
<dernise> No, Process::fork :)
hogeo has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
<maloik_> judofyr: inside such an EOF 'block', is it not possible to use an if block ? oO
<dernise> On *nix systems, if I kill a parent process, will the child process be killed as well?
<maloik_> can only seem to interpolate things using #{'whatever' if true}
cjs226 has quit [Ping timeout: 264 seconds]
<gnufied> dernise: yes, mostly.
<gnufied> unless parent chose to detach itself from the child
<dernise> Like this ?
<dernise> ::Process.detach(child)
Phoop has quit [Quit: Phoop]
<injekt> zzak: hah arrrcamp and wgr are close together :D
<maloik_> internet highfive to you two for coming over to ghent though ;)
<GarethAdams> maloik_: a heredoc block is just like a double quoted string
<maloik_> yea I figured as much, that kind of sucks in this case :-)
<maloik_> trying to generate an apache config which means I need formatting to be correct while also allowing both interpolating and ruby blocks
<gnufied> dernise: yes.
cored has quit [Ping timeout: 268 seconds]
Nisstyre-laptop has joined #ruby-lang
benxao has joined #ruby-lang
cored has joined #ruby-lang
_whitelogger has joined #ruby-lang
Zeeo has quit [Quit: and then one day you'll pack up, fly down south... hide your head in the sand]
Guest15795 is now known as hashkey
tbuehlmann has quit [Remote host closed the connection]
<injekt> maloik_: it's only a couple of hours for me :)
<injekt> also +1 for use erb
atmosx has quit [Quit: And so the story goes…]
foca_ has joined #ruby-lang
adambeynon has joined #ruby-lang
bgant has quit [Ping timeout: 246 seconds]
<maloik_> I'm using ERB together with such a heredoc block, hence the problem
<maloik_> but its okay I extracted it into a new class and added a couple different methods
mistym has joined #ruby-lang
<maloik_> injekt: you're fairly young/new to development I suppose?
<maloik_> seeing as its your first conf
<ericwood> iirc injekt is pretty knowledgabe about stuff
<ericwood> he never seemed like a jr dev to me
<ericwood> he r good at computer
<maloik_> doesnt mean he can't be new though :-)
<maloik_> some people are fast learners
<ericwood> I hate those people, they make me look bad :|
<maloik_> *jealous cursing* :-)
<injekt> maloik_: na I just never really had the money
<injekt> that's why it's taken so long
<maloik_> ah ok
tRAS has quit [Quit: Mother, did it need to be so high?]
enebo has quit [Quit: enebo]
<injekt> (I own a company so not too new to development)
<ericwood> how do y'all define jr dev?
<injekt> but I'm young and have an accent that would melt your heart
<ericwood> for example, I'm pretty fresh out of school (6 months), but I've been doing web dev for as long as I can remember
<maloik_> lmao :-)
<maloik_> ericwood: I have no clue really... suppose everyone defines it another way
<ericwood> I'm biased towards considering myself a "medium-level dev"
x0f has quit [Ping timeout: 248 seconds]
<maloik_> I learned development after my day job for about 6 months (that means I was really slow and really bad) before I got this job, which I've been at for a year now
<ericwood> as in I probably shouldn't be in charge of stuff but I can make things happen :P
<maloik_> so I consider myself a junior
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
<ericwood> I guess compared to a lot of people here I'm a jr
x0f has joined #ruby-lang
<ericwood> 10+ years of experience really does make a difference compared to my 6 months of real work experience
<ericwood> (not including internships)
<gnufied> alright
<gnufied> injekt: which company?
<injekt> gnufied: allur.com but I now work at loco2.com
<gnufied> I own a company too and it seems we can some "synergy". :D
<gnufied> have*
<gnufied> allur sounds like a porn name.
<gnufied> I don't like this synergy
<injekt> that's the best kind of synergy
<gnufied> not if you are married.
<gnufied> pretty cool.
<gnufied> allur.com's design is awesome.
x0f has quit [Read error: Operation timed out]
<injekt> thanks we have a good designer
<injekt> We also built a crm for real estate developers http://www.allurspark.com/
cored has quit [Ping timeout: 240 seconds]
<gnufied> loco2 is your product again or another company?
<injekt> I work there
<gnufied> okay, cool. allur.com wasn't as successful as you hoped or something?
<gnufied> or nevermind.
lupine has quit [*.net *.split]
machuga has quit [*.net *.split]
adwhit has quit [*.net *.split]
eam has quit [*.net *.split]
foca has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
hachiya has quit [*.net *.split]
thang has quit [*.net *.split]
<gnufied> good luck. :-)
x0f has joined #ruby-lang
adwhit has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
jstorimer has joined #ruby-lang
mistym has quit [Read error: No buffer space available]
mistym has joined #ruby-lang
_carloslopes has joined #ruby-lang
atmosx has joined #ruby-lang
<injekt> no, it's somewhat complicated :)
cjs226 has joined #ruby-lang
bgant has joined #ruby-lang
<judofyr> injekt: is that seriously "all ur spark"? (as in "all your spark")
carloslopes has quit [Ping timeout: 276 seconds]
machuga has joined #ruby-lang
eam has joined #ruby-lang
thang has joined #ruby-lang
davidbalber|away has joined #ruby-lang
hachiya has joined #ruby-lang
agile has joined #ruby-lang
<injekt> judofyr: haha no
<injekt> judofyr: it's pronounced allure
<judofyr> oh
<gnufied> I knew it would be complicated.
<judofyr> consider me disappoint
<injekt> but thanks a lot now i can't unsee all ur spark
_jpb_ has quit [Remote host closed the connection]
stamina has joined #ruby-lang
_jpb_ has joined #ruby-lang
lupine has joined #ruby-lang
lupine has quit [Changing host]
lupine has joined #ruby-lang
enebo has joined #ruby-lang
verto has joined #ruby-lang
malev has joined #ruby-lang
<judofyr> you're welcome inkjet
barttenbrinke has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
lupine has quit [Excess Flood]
lupine has joined #ruby-lang
lupine has quit [Changing host]
lupine has joined #ruby-lang
<Joni_79> I hope it's ok to ask stupid newbie questions..
<ericwood> we punish newbies ruthlessly
<ericwood> why link to the raw gist?
<ericwood> just link to https://gist.github.com/vuorejo1/5858852/ instead so we get nice syntax highlighting and stuff!
<Joni_79> it happened to be the open tab I took the link from... anyway
Sambalero has joined #ruby-lang
<injekt> .uniq.size not .size.uniq
<ericwood> so, a few things: you can just do kilmio = [a,b,c] instead of doing Array.new
<injekt> also dont call uniq 3 times
<ericwood> no need to use "then"
<Joni_79> whoa
<injekt> and use a case statement
roadt has quit [Ping timeout: 246 seconds]
_jpb_ has quit [Ping timeout: 268 seconds]
<ericwood> lemme make a gist of a refactored version
_jpb_ has joined #ruby-lang
<Joni_79> I think my idea is workable, but for some reason that does not work.. (I'm doing ruby koans)
<judofyr> Joni_79: .uniq.size instead of .size.uniq (as injekt mentioned)
<Joni_79> and I'm "reasonably new to coding"
<judofyr> Joni_79: also: here's my refactoring: https://gist.github.com/vuorejo1/5858852#comment-851483
<injekt> added mine to comments
<judofyr> that splat might be a bit too much if you're new to Ruby…
pipework has joined #ruby-lang
rikai has quit [Read error: Connection reset by peer]
<injekt> possibly, I'm just writing it how I'd write it is all
<judofyr> but yeah, it's better
rikai has joined #ruby-lang
<ericwood> sorry got distracted
<Joni_79> I understand the logic here, and I can see that is clearly much more compact and elegant
<ericwood> just use injekt's refactoring
<injekt> and if you dont understand what *args does, use judofyrs
lupine has quit [*.net *.split]
machuga has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
eam has quit [*.net *.split]
hachiya has quit [*.net *.split]
thang has quit [*.net *.split]
<Joni_79> the koans template had the method defined as trianglke(a, b, c) and the tests call it like triangle(2, 2, 2), should that be a problem if you use triangle(*args) format?
<judofyr> Joni_79: nope
<judofyr> Joni_79: *args captures all arguments as an Array
barttenbrinke has quit [Ping timeout: 255 seconds]
<judofyr> >> def ex(*args) args end; ex(1, 2, 3, 4)
<eval-in> judofyr => [1, 2, 3, 4] (https://eval.in/34857)
<Joni_79> ok, cool
<judofyr> Joni_79: it's used when you support an unknown amount of parameters
<judofyr> arguments*
cored has quit [Ping timeout: 256 seconds]
<Joni_79> yeah, I've ran into it few times :)
rippa has joined #ruby-lang
ruurd has joined #ruby-lang
<judofyr> Joni_79: that's really all there is to it
<judofyr> Joni_79: you can also use it when you call a method
Squarepy has joined #ruby-lang
<judofyr> Joni_79: so: `a = [1, 2, 3]; foo(*a)` is the same as `foo(1, 2, 3)`
<Joni_79> hmm. now koans says: undefined local variable or method `args' for #<AboutTriangleProject:0x007fe023129c00>
machuga has joined #ruby-lang
eam has joined #ruby-lang
hachiya has joined #ruby-lang
thang has joined #ruby-lang
davidbalber|away has joined #ruby-lang
<Joni_79> I got some similar error before, but conserning different method..
<judofyr> Joni_79: well, that means you're using `args` somewhere, but it's never defined
<injekt> Joni_79: show us your change
<Joni_79> could it be a problem with koans not being combatible with ruby 2.0.0-p195 (which I'm using)?
<injekt> did you change (a, b, c) but use args inside the method?
<injekt> Joni_79: no
<Joni_79> oh, :D
<Joni_79> now I did ;)
<Joni_79> and it seems to work
lupine has joined #ruby-lang
lupine has joined #ruby-lang
lupine has quit [Remote host closed the connection]
<judofyr> yay
<Joni_79> I still don't quite understand why my first version did not work.. :/
mikewintermute has quit [Quit: mikewintermute]
lupine has joined #ruby-lang
<injekt> You had size.uniq instead of uniq.size
<Joni_79> Oh, there
GarethAdams has quit [Quit: Linkinus - http://linkinus.com]
<Joni_79> bugger
loincloth has joined #ruby-lang
<injekt> welcome to programming
GarethAdams has joined #ruby-lang
<Joni_79> thanks, I guess
<Joni_79> :P
Guest6500 has quit [Read error: Connection reset by peer]
atmosx_desktop has joined #ruby-lang
Guest6500 has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
s0ber_ has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
Pupeno_ has joined #ruby-lang
Criztian_ has joined #ruby-lang
<Joni_79> injekt, judofyr and ericwood: thanks, really. :)
<judofyr> Joni_79: no problem! we hang around here all the time :)
Pupeno has quit [Disconnected by services]
<Joni_79> I do too, but I've never had a nicely formulated problem / question before that I could ask. :)
imajes_ has joined #ruby-lang
DEac-_ has joined #ruby-lang
Pupeno_ has left #ruby-lang [#ruby-lang]
<judofyr> Joni_79: well, it was a decent question. would answer again. A++
tonni has quit [Read error: Connection reset by peer]
FlyingLeap_ has joined #ruby-lang
<judofyr> I'm out for today!
<judofyr> later
judofyr has quit [Remote host closed the connection]
Todd_ has joined #ruby-lang
neurodam1ge has joined #ruby-lang
dhruvasagar has joined #ruby-lang
Kabaka has joined #ruby-lang
pskosinski has joined #ruby-lang
r0bby has joined #ruby-lang
atmosx has quit [*.net *.split]
io_syl has quit [*.net *.split]
mdedetrich has quit [*.net *.split]
philnyc has quit [*.net *.split]
linc01n has quit [*.net *.split]
Criztian has quit [*.net *.split]
Todd has quit [*.net *.split]
solars has quit [*.net *.split]
DEac- has quit [*.net *.split]
s0ber has quit [*.net *.split]
imajes has quit [*.net *.split]
neurodamage has quit [*.net *.split]
Paradox has quit [*.net *.split]
FlyingLeap has quit [*.net *.split]
imajes_ is now known as imajes
mistym_ has joined #ruby-lang
s0ber_ is now known as s0ber
pbjorklund_ has joined #ruby-lang
pbjorklund has quit [Ping timeout: 264 seconds]
kuja has quit [Ping timeout: 264 seconds]
duckinator has quit [Ping timeout: 264 seconds]
mistym has quit [Read error: Connection reset by peer]
Xzyx987X_ has quit [Read error: Connection reset by peer]
dagobah_ has joined #ruby-lang
dagobah has quit [Write error: Connection reset by peer]
kuja_ has joined #ruby-lang
gnufied has quit [Ping timeout: 264 seconds]
cyndis has quit [Read error: Connection reset by peer]
Xzyx987X has joined #ruby-lang
cyndis has joined #ruby-lang
Spaceghost|work has joined #ruby-lang
roadt has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 264 seconds]
mashu74 has quit [Ping timeout: 244 seconds]
ozzloy has quit [Ping timeout: 244 seconds]
ozzloy has joined #ruby-lang
pipework has quit [Ping timeout: 273 seconds]
zmike has joined #ruby-lang
Spaceghost|work is now known as pipework
GarethAdams has quit [Ping timeout: 256 seconds]
kennyvb has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
kennyvb has joined #ruby-lang
atmosx_desktop has quit [Ping timeout: 276 seconds]
mytrile has quit [Remote host closed the connection]
mashu74 has joined #ruby-lang
bgant has quit [Quit: Leaving.]
GarethAdams has joined #ruby-lang
bgant has joined #ruby-lang
bgant has quit [Client Quit]
GeissT has quit [Quit: MillBroChat AdIRC User]
apeiros has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
stamina has quit [Ping timeout: 268 seconds]
jsullivandigs has joined #ruby-lang
criego has joined #ruby-lang
mikewintermute has joined #ruby-lang
gnufied has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
kgrz has joined #ruby-lang
DomKM has joined #ruby-lang
benxao has quit [Remote host closed the connection]
justinram has joined #ruby-lang
_carloslopes has quit [Remote host closed the connection]
atmosx has joined #ruby-lang
apeiros has joined #ruby-lang
atmosx has quit [Quit: And so the story goes…]
benlovell has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby-lang
kuja_ has quit [Ping timeout: 256 seconds]
mistym_ has quit [Ping timeout: 256 seconds]
pcboy_ has quit [Ping timeout: 256 seconds]
Smol has quit [Ping timeout: 256 seconds]
GarethAdams has quit [Ping timeout: 256 seconds]
roadt has quit [Ping timeout: 256 seconds]
pipework has quit [Ping timeout: 256 seconds]
blowmage has quit [Ping timeout: 256 seconds]
llakey has quit [Ping timeout: 256 seconds]
babinho has quit [Ping timeout: 256 seconds]
DefV_ has quit [Ping timeout: 256 seconds]
Criztian_ has quit [*.net *.split]
jstorimer has quit [*.net *.split]
adwhit has quit [*.net *.split]
agile has quit [*.net *.split]
krames has quit [*.net *.split]
publicvoid_ has quit [*.net *.split]
coffeeju1 has quit [*.net *.split]
tdy has quit [*.net *.split]
soraher has quit [*.net *.split]
kith has quit [*.net *.split]
yalue has quit [*.net *.split]
Asher has quit [*.net *.split]
jstemmer has quit [*.net *.split]
lianj has quit [*.net *.split]
shtirlic has quit [*.net *.split]
ryotarai has quit [*.net *.split]
bcardarella has quit [*.net *.split]
jroes has quit [*.net *.split]
erichmenge has quit [*.net *.split]
ryanf has quit [*.net *.split]
spectra has quit [*.net *.split]
bnagy has quit [*.net *.split]
Mellett68_ has quit [*.net *.split]
kke has quit [*.net *.split]
jMCg has quit [*.net *.split]
ericwood has quit [*.net *.split]
Muz has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
amateurhuman has quit [*.net *.split]
levicole has quit [*.net *.split]
slightair has quit [*.net *.split]
rtl has quit [*.net *.split]
jwollert- has quit [*.net *.split]
skinny_much has quit [*.net *.split]
tylergillies has quit [*.net *.split]
Raynes has quit [*.net *.split]
manveru has quit [*.net *.split]
Nisstyre has quit [*.net *.split]
Johz has quit [*.net *.split]
elia has quit [*.net *.split]
scottschecter has quit [*.net *.split]
Aww has quit [*.net *.split]
jarib has quit [*.net *.split]
Mawk has quit [*.net *.split]
dLog_ has quit [*.net *.split]
kvs has quit [*.net *.split]
brownies has quit [*.net *.split]
xsdg has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
wasnotrice has quit [*.net *.split]
wnd has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
akahn has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
Caius has quit [*.net *.split]
awkisopen has quit [*.net *.split]
nick_h has quit [*.net *.split]
mfn has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
wycats_ has quit [*.net *.split]
sindork has quit [*.net *.split]
dbussink has quit [*.net *.split]
[dmp] has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
matti has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
ged has quit [*.net *.split]
pabs has quit [*.net *.split]
hinbody has quit [*.net *.split]
FlyingLeap_ has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
DEac-_ has quit [*.net *.split]
loincloth has quit [*.net *.split]
wmoxam has quit [*.net *.split]
setmeaway has quit [*.net *.split]
dernise has quit [*.net *.split]
Voker57 has quit [*.net *.split]
marcostoledo has quit [*.net *.split]
Wardrop has quit [*.net *.split]
Rizzle has quit [*.net *.split]
hhatch has quit [*.net *.split]
Kellin has quit [*.net *.split]
spuk has quit [*.net *.split]
weeb1e has quit [*.net *.split]
Silex has quit [*.net *.split]
jperry_ has quit [*.net *.split]
ohsix has quit [*.net *.split]
erikh has quit [*.net *.split]
mbr has quit [*.net *.split]
Guest85414__ has quit [*.net *.split]
mahlon has quit [*.net *.split]
bougyman has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
nrk has quit [*.net *.split]
imajes has quit [*.net *.split]
Squarepy has quit [*.net *.split]
Guest6500 has quit [*.net *.split]
x0f has quit [*.net *.split]
breakingthings has quit [*.net *.split]
kstevens715 has quit [*.net *.split]
shireesh has quit [*.net *.split]
tylersmi_ has quit [*.net *.split]
oddmunds has quit [*.net *.split]
snarfmason has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
achiu has quit [*.net *.split]
kirin` has quit [*.net *.split]
t0h has quit [*.net *.split]
a3li has quit [*.net *.split]
bryno has quit [*.net *.split]
ihme-TTilus has quit [*.net *.split]
mame3 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
dabradley has quit [*.net *.split]
drbrain has quit [*.net *.split]
FastJack has quit [*.net *.split]
machuga has quit [*.net *.split]
eam has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
thang has quit [*.net *.split]
Kabaka has quit [*.net *.split]
pskosinski has quit [*.net *.split]
hachiya has quit [*.net *.split]
DomKM has quit [*.net *.split]
kennyvb has quit [*.net *.split]
kgrz has quit [*.net *.split]
pbjorklund_ has quit [*.net *.split]
badeball has quit [*.net *.split]
vgoff has quit [*.net *.split]
anekos has quit [*.net *.split]
meizaps has quit [*.net *.split]
doki_pen has quit [*.net *.split]
dominikh has quit [*.net *.split]
jinie_ has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
apeiros has quit [*.net *.split]
narya has quit [*.net *.split]
jsaak_ has quit [*.net *.split]
Olipro has quit [*.net *.split]
zenspider has quit [*.net *.split]
countdigi has quit [*.net *.split]
wang has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
joast has quit [*.net *.split]
threedaymonk has quit [*.net *.split]
codejury has quit [*.net *.split]
joschi has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
felipe has quit [*.net *.split]
supfoo has quit [*.net *.split]
yibe___ has quit [*.net *.split]
snafoo has quit [*.net *.split]
meise_ has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
mihar has quit [*.net *.split]
jayne has quit [*.net *.split]
_ko1 has quit [*.net *.split]
Boohbah has quit [*.net *.split]
atmosx has quit [*.net *.split]
s0ber has quit [*.net *.split]
malev has quit [*.net *.split]
adambeynon has quit [*.net *.split]
hashkey has quit [*.net *.split]
jxie has quit [*.net *.split]
skade has quit [*.net *.split]
zomgbie has quit [*.net *.split]
charliesome has quit [*.net *.split]
jbsan has quit [*.net *.split]
nazty has quit [*.net *.split]
canton7 has quit [*.net *.split]
nikky has quit [*.net *.split]
zmike has quit [*.net *.split]
neurodam1ge has quit [*.net *.split]
verto has quit [*.net *.split]
Sambalero has quit [*.net *.split]
w00x has quit [*.net *.split]
ldnunes has quit [*.net *.split]
toretore has quit [*.net *.split]
marr has quit [*.net *.split]
relix has quit [*.net *.split]
vivekrai_ has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
khaase has quit [*.net *.split]
ledestin has quit [*.net *.split]
synthetix has quit [*.net *.split]
hagabaka has quit [*.net *.split]
matthewd has quit [*.net *.split]
fbernier has quit [*.net *.split]
Rubennn has quit [*.net *.split]
crankharder has quit [*.net *.split]
eval-in has quit [*.net *.split]
Karql has quit [*.net *.split]
naquad has quit [*.net *.split]
yellow5 has quit [*.net *.split]
gnufied has quit [*.net *.split]
mikewintermute has quit [*.net *.split]
r0bby has quit [*.net *.split]
jaimef has quit [*.net *.split]
ironcamel has quit [*.net *.split]
corundum has quit [*.net *.split]
rickhull has quit [*.net *.split]
nirix has quit [*.net *.split]
znz_jp has quit [*.net *.split]
matled has quit [*.net *.split]
levifig has quit [*.net *.split]
Todd_ has quit [*.net *.split]
injekt has quit [*.net *.split]
foca_ has quit [*.net *.split]
braidn has quit [*.net *.split]
brixen has quit [*.net *.split]
benwoody has quit [*.net *.split]
mclee has quit [*.net *.split]
segy has quit [*.net *.split]
swygue has quit [*.net *.split]
dvorak has quit [*.net *.split]
FiXato has quit [*.net *.split]
gix has quit [*.net *.split]
singpolyma has quit [*.net *.split]
ddd has quit [*.net *.split]
pygmael has quit [*.net *.split]
flexd1 has quit [*.net *.split]
zzak has quit [*.net *.split]
ammar has quit [*.net *.split]
norplr_ has quit [*.net *.split]
cout has quit [*.net *.split]
bryanl has quit [*.net *.split]
perry has quit [*.net *.split]
Guest4693 has quit [*.net *.split]
jsullivandigs has quit [*.net *.split]
criego has quit [*.net *.split]
mashu74 has quit [*.net *.split]
justinram has quit [*.net *.split]
ozzloy has quit [*.net *.split]
Xzyx987X has quit [*.net *.split]
rippa has quit [*.net *.split]
ebouchut has quit [*.net *.split]
jkyle has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
vmoravec has quit [*.net *.split]
snk has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
shaman42 has quit [*.net *.split]
freedrull has quit [*.net *.split]
maloik_ has quit [*.net *.split]
fallenhitokiri has quit [*.net *.split]
rebelcan_ has quit [*.net *.split]
ruskie has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
ryez has quit [*.net *.split]
cored has quit [*.net *.split]
cjs226 has quit [*.net *.split]
faces has quit [*.net *.split]
mradmacher has quit [*.net *.split]
jtoy has quit [*.net *.split]
heftig has quit [*.net *.split]
knu has quit [*.net *.split]
firstdayonthejob has quit [*.net *.split]
stardiviner has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
lguardiola has quit [*.net *.split]
dRbiG has quit [*.net *.split]
Kero has quit [*.net *.split]
wudofyr___ has quit [*.net *.split]
znouza_ has quit [*.net *.split]
shinh has quit [*.net *.split]
franckverrot has quit [*.net *.split]
jacknagel has quit [*.net *.split]
Bwild has quit [*.net *.split]
drakkhen_ has quit [*.net *.split]
conceal_rs_____ has quit [*.net *.split]
xxaM has quit [*.net *.split]
Joni_79 has quit [*.net *.split]
chendo has quit [*.net *.split]
closer009 has quit [*.net *.split]
rikai has quit [*.net *.split]
_jpb_ has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
ahf has quit [*.net *.split]
ebouchut_ has quit [*.net *.split]
swav has quit [*.net *.split]
northelks has quit [*.net *.split]
amerine has quit [*.net *.split]
rue has quit [*.net *.split]
ndrst_ has quit [*.net *.split]
UziMonkey___ has quit [*.net *.split]
danrabinowitz has quit [*.net *.split]
eban has quit [*.net *.split]
gfarfl has quit [*.net *.split]
randym_ has quit [*.net *.split]
rondale_1c has quit [*.net *.split]
antbody has quit [*.net *.split]
matson has quit [*.net *.split]
Cope has quit [*.net *.split]
cyndis has quit [*.net *.split]
lupine has quit [*.net *.split]
MartynKeigher has quit [*.net *.split]
tarruda has quit [*.net *.split]
darix has quit [*.net *.split]
melter has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
mitchty_ has quit [*.net *.split]
egypt has quit [*.net *.split]
chris2 has quit [*.net *.split]
djinni` has quit [*.net *.split]
flori has quit [*.net *.split]
fumduq has quit [*.net *.split]
PacketMonkey has quit [*.net *.split]
sn0wb1rdz has quit [*.net *.split]
lucas__ has quit [*.net *.split]
athetius has quit [*.net *.split]
tris has quit [*.net *.split]
musl has quit [*.net *.split]
_whitelogger has joined #ruby-lang
_whitelogger has joined #ruby-lang
ffio has joined #ruby-lang
<ij> Why are there two lexxer tables in MRI implementation? Both in lex.c and parse.y.
drakkhen has joined #ruby-lang
lguardiola_ has joined #ruby-lang
mradmach1r has joined #ruby-lang
Bwild_ has joined #ruby-lang
stardiviner_ has joined #ruby-lang
shinh has quit [Ping timeout: 264 seconds]
firstdayonthejob has quit [Ping timeout: 264 seconds]
franckverrot has quit [Ping timeout: 264 seconds]
conceal_rs_____ has quit [Ping timeout: 264 seconds]
heftig has quit [Ping timeout: 264 seconds]
lguardiola has quit [Ping timeout: 264 seconds]
dRbiG has quit [Ping timeout: 264 seconds]
Kero has quit [Ping timeout: 264 seconds]
cjs226 has quit [Ping timeout: 264 seconds]
faces has quit [Ping timeout: 264 seconds]
Joni_79 has quit [Ping timeout: 264 seconds]
znouza_ has quit [Ping timeout: 264 seconds]
Bwild has quit [Ping timeout: 264 seconds]
jtoy has quit [Remote host closed the connection]
drakkhen_ has quit [Remote host closed the connection]
mradmacher has quit [Ping timeout: 264 seconds]
wudofyr___ has quit [Ping timeout: 264 seconds]
yorickpeterse has quit [Ping timeout: 264 seconds]
yorickpeterse has joined #ruby-lang
heftig has joined #ruby-lang
Squarepy has joined #ruby-lang
stardiviner has quit [Ping timeout: 264 seconds]
dRbiG has joined #ruby-lang
jstorimer has joined #ruby-lang
cjs226 has joined #ruby-lang
Joni_79 has joined #ruby-lang
mikewintermute has quit [Quit: mikewintermute]
wudofyr___ has joined #ruby-lang
dagobah_ has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
mrsolo has joined #ruby-lang
headius has joined #ruby-lang
<jMCg> Hello happy people o/~
wallerdev has joined #ruby-lang
__butch__ has joined #ruby-lang
<jMCg> I'm using 2.0.0-p195 and compiling the new passenger 4.0.5 against it, and failing. This is the Makefile that passenger generates: http://apaste.info/7eO4 and to me it's missing the baseline of declarations.
ffio has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
elia has quit [Read error: Connection reset by peer]
jstorimer has quit [Remote host closed the connection]
_elia has joined #ruby-lang
tkuchiki has joined #ruby-lang
kgrz has quit [Read error: Connection reset by peer]
__butch__ has quit [Quit: Leaving.]
rikai has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 252 seconds]
__butch__ has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
mradmach1r has quit [Quit: leaving]
Sambalero has quit [Remote host closed the connection]
oddmunds has quit [Ping timeout: 248 seconds]
oddmunds has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
ihme-TTilus is now known as TTilus
wycats_ has joined #ruby-lang
<jMCg> ohhhh.
sush24 has quit [Quit: This computer has gone to sleep]
<jMCg> it works perfectly fine, unless I use DESTDIR
ffio has joined #ruby-lang
<TTilus> ij: are they identical? if not, they might do different things, but honestly ive got no idea
sush24 has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 245 seconds]
gnufied has quit [Quit: Leaving.]
skade has joined #ruby-lang
Kero_ is now known as Kero
sush24 has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
hhatch has quit [Ping timeout: 246 seconds]
zmike has quit [Quit: ~]
zmike has joined #ruby-lang
<ij> TTilus, Content is similar, if not identical.
<ij> But it seems like this is not a very easy thing to do.
_elia has quit [Quit: Computer has gone to sleep.]
barttenbrinke has joined #ruby-lang
elia has joined #ruby-lang
MartynKeigher has joined #ruby-lang
jstorimer has joined #ruby-lang
vlad_starkov has joined #ruby-lang
havenwood has joined #ruby-lang
<TTilus> ive been told that parse.y is complicated (you hear people use profane words to describe the level of complexity)
yxhuvud has joined #ruby-lang
atmosx has quit [Quit: Computer has gone to sleep.]
mbj has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby-lang
nignaztic has joined #ruby-lang
w00x has quit [Ping timeout: 268 seconds]
zomgbie_ has joined #ruby-lang
s0ber_ has joined #ruby-lang
<ij> They're very right. I gave up rather quickly.
sepp2k has joined #ruby-lang
__butch__1 has joined #ruby-lang
io_syl_ has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
jtoy has joined #ruby-lang
babinho has joined #ruby-lang
solars has joined #ruby-lang
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DefV_ has joined #ruby-lang
<injekt> fuck parse.y
sush24_ has joined #ruby-lang
verto has joined #ruby-lang
sush24 has quit [Ping timeout: 260 seconds]
jbsan_ has joined #ruby-lang
<erikh> it's just as bad in perl
sush24_ has quit [Write error: Connection reset by peer]
zmike has quit [*.net *.split]
__butch__ has quit [*.net *.split]
wudofyr___ has quit [*.net *.split]
lguardiola_ has quit [*.net *.split]
jtoy__ has quit [*.net *.split]
io_syl has quit [*.net *.split]
DefV has quit [*.net *.split]
babinho_ has quit [*.net *.split]
s0ber has quit [*.net *.split]
malev has quit [*.net *.split]
jxie has quit [*.net *.split]
zomgbie has quit [*.net *.split]
jbsan has quit [*.net *.split]
nazty has quit [*.net *.split]
canton7 has quit [*.net *.split]
nikky has quit [*.net *.split]
jbsan_ is now known as jbsan
s0ber_ is now known as s0ber
<zzak> jMCg: there was a bug with DESTDIR recently
symm- has joined #ruby-lang
<injekt> erikh: but that's wonderful
<erikh> ha yes
Nisstyre has quit [Quit: Leaving]
<injekt> sweet it took less than 3 weeks for me to break everything at loco2
jxie has joined #ruby-lang
lguardiola has joined #ruby-lang
stamina has joined #ruby-lang
tonni has joined #ruby-lang
<jMCg> zzak: this seems to be a regression. DESTDIR should be prepended in install: not to the base-line defintion of $(prefix)
dhruvasagar has joined #ruby-lang
malev has joined #ruby-lang
saarinen has quit [Quit: saarinen]
zmike has joined #ruby-lang
jstorimer has quit [Ping timeout: 252 seconds]
elia has joined #ruby-lang
zmike has quit [Max SendQ exceeded]
ffio has quit [Quit: WeeChat 0.4.1]
zmike has joined #ruby-lang
swav has quit [Remote host closed the connection]
spacesuit has joined #ruby-lang
elia has quit [Client Quit]
GarethAdams has quit [Quit: Leaving...]
rsl has joined #ruby-lang
<jMCg> zzak: that pull is closed - eta for release?
saarinen has joined #ruby-lang
nikky has joined #ruby-lang
<dernise> Is there a good lib to handle events and, for example , call an event every x minutes. (such as check if the ping between 2 servers is less than 100ms)
<zzak> jMCg: next patch level release, idk when
<TTilus> dernise: scheduling?
<TTilus> dernise: google for ruby scheduling
ij has left #ruby-lang ["WeeChat 0.3.9.2"]
barttenbrinke has quit [Remote host closed the connection]
fenicks has joined #ruby-lang
barttenbrinke has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
saarinen has quit [Quit: saarinen]
bcardarella has joined #ruby-lang
menghon has joined #ruby-lang
jacknagel has joined #ruby-lang
elia has joined #ruby-lang
Mawk has quit [Ping timeout: 240 seconds]
norplr_ has joined #ruby-lang
ledestin has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
mbj has joined #ruby-lang
elia has quit [Ping timeout: 256 seconds]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
stamina has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
jerrytgarcia has joined #ruby-lang
jerrytgarcia has quit [Remote host closed the connection]
publicvoid_ has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
Sambalero has joined #ruby-lang
<jMCg> wow.. I.. hate Ubuntu's ruby.
lucas__ has left #ruby-lang [#ruby-lang]
<matti> jMCg: system one?
lucas has joined #ruby-lang
<matti> zzak: Back from JP?
spacesuit has quit [Quit: spacesuit]
<jMCg> matti: yeah.
<matti> jMCg: 1.8.7 yeah...
<matti> jMCg: Brightbox have some nice decent packages if you want to replace it.
<matti> There is super old 1.9.x in Ubuntu to IIRC.
lucas has quit [Changing host]
lucas has joined #ruby-lang
adambeynon has joined #ruby-lang
<jMCg> matti: http://apaste.info/II4x << I just built a gem with this ruby -- and this is the result: http://apaste.info/3a0Y
<jMCg> matti: at $bigCo we're using the system one because most of our infrastructure depends on ruby (foreman, puppet, mcollective, etc..)
<lucas> jMCg: could you please file a bug, being slightly more specific, preferably?
<jMCg> matti: at $smallCo, I'm building/packaging it myself, sooooo much less pain.
<jMCg> lucas: I'm generally assuming that I'm doing something wrong, so I'll first try to find out and fix that, for one, for the other: bug against 1.8.7? Isn't that rather.. dead?
canton7 has joined #ruby-lang
<jMCg> hrm.. found the issue.
beiter has joined #ruby-lang
<lucas> you are using an ubuntu release that is more than a year old. why do you assume that you get a ruby that is more recent than that?
<jMCg> lucas: I'm not making any such ass-umptions. Anyway, I found the issue: It's mix-up with the chroots during the build process.
jstorimer has joined #ruby-lang
cofin has quit [Read error: Connection reset by peer]
<lucas> heh, so at least it confirms I was right to stop working on ruby for debian. having people always blame the distro first was so not fun.
<jMCg> lucas: that's the problem with packaging, you can never ever satisfy everyone, you can at best satify 10-15% - but you'll straight off piss off the rest.
<zzak> matti: yessir
cofin has joined #ruby-lang
<lucas> jMCg: the ruby community is the only one that thinks that if you ruby version is > 2 weeks old, it's completely obsolete, though
<jMCg> lucas: I'm packaging PHP and ruby for my devs, because that's what we're working with. If we were working with Python and/or Perl, I'd be packaging those too.
atmosx has joined #ruby-lang
<matti> zzak: Enjoyed it?
<matti> zzak: I am back in August.
<matti> jMCg: It seems about right on Debian-ish -- this paste.
w00x has joined #ruby-lang
<matti> lucas: You should be glad you are not responsible for anything on CentOS.
<matti> lucas: People would go after you with pitchforks ;p
<lucas> what's the status on centos?
<matti> Not only old as hell, but also people go "meh".
<matti> But, everything is old as hell on CentOS / RHEL.
<matti> But, there is some light -- recently RH promised updated packages.
<jMCg> matti: isn't that why they brought out that package with all the new stuff?
<lucas> the problem with distros is that we need to ensure consistency distro-wide. we can't just upgrade ruby and hope everything will be fine
<lucas> the high number of crappy gems make it very hard to switch from 1.8 to 1.9
barttenbrinke has quit [Remote host closed the connection]
<matti> lucas: We do two things -- have stable ish 1.9.3 as our system Ruby built to replace default one -- compliant to Debian policies.
<matti> lucas: For use with Chef etc.
<jMCg> lucas: as you've said yourself already, 1.9 is already obsolete..
<lucas> we made the switch in Debian wheezy, but we know it broke lots of things
<matti> lucas: And each of our projects can boundle its own Ruby under /opt.
jstorimer has quit [Remote host closed the connection]
<matti> lucas: We also do not care about fiddlign with rbenv / rvm.
havenwood has quit [Read error: Connection reset by peer]
<lucas> matti: have you considered contributing your packaging to Debian?
<matti> lucas: Is there anyone whom would accept?
justinram has joined #ruby-lang
<matti> lucas: Brightbox tried and they got told to GTFO.
<jMCg> matti: I've found rbenv/rvm to be extremely not so good on servers
<matti> jMCg: Indeed.
<lucas> we now have infrastructure for having several co-existing ruby installs (1.8/1.9/2.0), and switching between them
<matti> lucas: I'd love to get Debian up-to-speed with Ruby :)
<matti> lucas: Ubuntu et al
<lucas> matti: talk to debian-ruby@lists.debian.org
<matti> lucas: There is no need for people to bitch about it.
<lucas> Ubuntu just takes Debian packages
<matti> I know
<matti> lucas: We have some custom patches, though.
<matti> lucas: Like lutimes support which is yet to be added in 2.0.x
<matti> zzak: Is it still the case? Will they include my patch? ;p
* matti hugs zzak
krohrbaugh1 has joined #ruby-lang
<matti> lucas: Let me think about it -- as getting into help with package maintenance is a lot of work later on (which you know yourself very well), and I do not want to not have the time later on.
<matti> lucas: :)
krohrbaugh has quit [Read error: Operation timed out]
<jMCg> matti: what's lutimes?
<lucas> matti: it's team-maintained, you don't need to promise you will maintain it for the next 10 years
jonahR has quit [Quit: jonahR]
<lucas> matti: AFAIK (as I'm not involved in that part of the distro anymore), the current big thing is packaging ruby 2.0
roadt has quit [Ping timeout: 261 seconds]
<matti> lucas: :)
<matti> jMCg: We are missing this on any *nix that supports it, plus on Windows (but Windows support is a kind of magic).
skade has quit [Quit: Computer has gone to sleep.]
<jMCg> matti: do I want to know what kind of evil you're doing with it?
<matti> jMCg: No. It will require years of progressive therapy.
<matti> jMCg: Afterwards.
<jMCg> lucas: I've been promising daemonkeeper (Arno Töll) for weeks now to review his newly cut apache2.4 package but I just don't have time :C
<zzak> matti: what patch?
<jMCg> matti: I'm already in therapy, so that's alright.
<matti> zzak: One I've made? I did ask you few times in the past.
<matti> ;]
<matti> jMCg: Haha.
gza_ has joined #ruby-lang
<zzak> matti: too many patches, can you send me a link?
<matti> zzak: OK!
gza_ has left #ruby-lang [#ruby-lang]
<zzak> matti: it's been 7 months, i'd give it a ping
<matti> ;]
<zzak> if committed it will probably make next patch level release
Squarepy has quit [Quit: Leaving]
<zzak> depends on usa
<matti> Yeah
Voker57 has quit [Read error: Connection reset by peer]
ffio has joined #ruby-lang
architbaweja has joined #ruby-lang
jstorimer has joined #ruby-lang
<matti> zzak: Thanks for help!
Weems has joined #ruby-lang
postmodern has joined #ruby-lang
wallerdev has joined #ruby-lang
firstday1 has quit [Quit: WeeChat 0.4.1]
spacesuit has joined #ruby-lang
mikewintermute has joined #ruby-lang
iansheridan has joined #ruby-lang
firstdayonthejob has joined #ruby-lang
gregf has joined #ruby-lang
krohrbaugh1 has quit [Quit: Leaving.]
pbjorklund_ has quit [Read error: Operation timed out]
krohrbaugh has joined #ruby-lang
<zzak> np!
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
pbjorklund has joined #ruby-lang
ffio has quit [Quit: WeeChat 0.4.1]
symm- has joined #ruby-lang
ldnunes has quit [Ping timeout: 268 seconds]
ldnunes has joined #ruby-lang
carloslopes has joined #ruby-lang
GarethAdams has joined #ruby-lang
iansheri_ has joined #ruby-lang
iansheridan has quit [Read error: Operation timed out]
dhruvasagar has joined #ruby-lang
pbjorklund has quit [Read error: Operation timed out]
zomgbie_ has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby-lang
diegoviola has joined #ruby-lang
mikewintermute has quit [Quit: mikewintermute]
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 248 seconds]
Pupeno has joined #ruby-lang
Pupeno has quit [Changing host]
Pupeno has joined #ruby-lang
pbjorklund has joined #ruby-lang
bougyman has quit [Quit: Lost terminal]
bougyman has joined #ruby-lang
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
mbj has quit [Ping timeout: 252 seconds]
Pupeno has quit [Ping timeout: 240 seconds]
jstorimer has quit [Remote host closed the connection]
ffio has joined #ruby-lang
ldnunes has quit [Ping timeout: 256 seconds]
saarinen has joined #ruby-lang
ptcek has joined #ruby-lang
benanne has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
spacesuit has quit [Quit: spacesuit]
jonahR has joined #ruby-lang
Johz has quit [Remote host closed the connection]
publicvoid_ has joined #ruby-lang
workmad3 has joined #ruby-lang
wallerdev has quit [Ping timeout: 256 seconds]
mradmacher has joined #ruby-lang
spuk has quit [Ping timeout: 246 seconds]
yalue has quit [Quit: Leaving]
wallerdev has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
pellis has joined #ruby-lang
<pellis> hello
mikewintermute has joined #ruby-lang
ldnunes has joined #ruby-lang
<pellis> i want to do a webcast and wondering what's a good workflow for discussing code and showing how it works. should I code in Vim and alt-tab to show it running or is there some Vim eval thing?
jsullivandigs has quit [Ping timeout: 240 seconds]
ptcek has left #ruby-lang [#ruby-lang]
rippa has quit [Ping timeout: 248 seconds]
<rickhull> you could use a REPL like irb or pry
<pellis> I'd like to show threaded code too though
<rickhull> i don't see why that's a problem
<rickhull> if it is, then just have an editor window and an execution window
<TheMoonMaster> pellis: Code in vim, run elsewhere.
<rickhull> or exit the editor to execute
jsullivandigs has joined #ruby-lang
<pellis> in Vim? there's a buffer that's like a terminal? (i actually like macvim and not the terminal running vim)
<TheMoonMaster> I use MacVim and most people who do screencasts write code in their editor and execute elsewhere like a terminal or something.
<TheMoonMaster> It's far cleaner and easier.
<pellis> TheMoonMaster, do they alt-tab to the terminal, or arrange the window in such a way that it's tiled?
<TheMoonMaster> Alt-tab.
<pellis> okies
<pellis> ok i'm recording. be quiet guys.
* rickhull types furiously on a buckling spring keyboard
Squarepy has joined #ruby-lang
mikewintermute has quit [Quit: mikewintermute]
zmike has quit [Quit: ~]
machuga is now known as machuga|away
krohrbaugh1 has joined #ruby-lang
krohrbaugh has quit [Read error: Connection reset by peer]
fragamus has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
<pellis> rickhull :)
andrewvos has joined #ruby-lang
workmad3 has joined #ruby-lang
dRbiG has quit [Quit: ZNC - http://znc.in]
dRbiG has joined #ruby-lang
SilverKey has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
Nisstyre-laptop is now known as Nisstyre
pbjorklund has quit [Ping timeout: 264 seconds]
wmoxam has quit [Ping timeout: 246 seconds]
M_BlX has joined #ruby-lang
fridim__ has joined #ruby-lang
jstorimer has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
drueck has joined #ruby-lang
jsullivandigs has joined #ruby-lang
drueck has quit [Quit: leaving]
krohrbaugh1 has quit [Quit: Leaving.]
fragamus has quit [Quit: Computer has gone to sleep.]
jsullivandigs has quit [Ping timeout: 264 seconds]
carloslopes has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
jsullivandigs has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 260 seconds]
krohrbaugh has quit [Client Quit]
cjs226 has quit [Quit: cjs226]
elia has joined #ruby-lang
pbjorklund has joined #ruby-lang
kstevens715 has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
jacktrick has joined #ruby-lang
duph has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
beiter has left #ruby-lang [#ruby-lang]
beiter has joined #ruby-lang
beiter has quit [Client Quit]
Criztian has joined #ruby-lang
atmosx has quit [Quit: And so the story goes…]
krohrbaugh has joined #ruby-lang
cofin has quit [Quit: cofin]
xxaM has quit [Ping timeout: 256 seconds]
Aaaarg has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
x0f has quit [Ping timeout: 248 seconds]
swav has joined #ruby-lang
x0f has joined #ruby-lang
diegoviola has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
krames has quit [Ping timeout: 256 seconds]
Aaaarg has quit [Quit: Aaaarg]
Voker57 has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
Averna has joined #ruby-lang
Kabaka has quit [Excess Flood]
mradmacher has quit [Quit: leaving]
breakingthings has quit [Quit: breakingthings]
fragamus has joined #ruby-lang
w00x has quit [Ping timeout: 253 seconds]
Kabaka has joined #ruby-lang
wnd has quit [Excess Flood]
t0h has quit [Ping timeout: 248 seconds]
TTilus has quit [Ping timeout: 248 seconds]
solars has quit [Ping timeout: 252 seconds]
wnd has joined #ruby-lang
TTilus has joined #ruby-lang
t0h has joined #ruby-lang
jmaya has joined #ruby-lang
benanne has quit [Quit: kbai]
skade has joined #ruby-lang
pellis has quit [Quit: Leaving]
jsullivandigs has quit [Remote host closed the connection]
jmaya has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
apeiros_ has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has quit [Client Quit]
machuga|away has quit [*.net *.split]
eam has quit [*.net *.split]
davidbalber|away has quit [*.net *.split]
hachiya has quit [*.net *.split]
Kabaka has quit [*.net *.split]
thang has quit [*.net *.split]
pskosinski has quit [*.net *.split]
publicvoid_ has quit [Ping timeout: 240 seconds]
jmaya has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
scholar01 has joined #ruby-lang
scholar01 has joined #ruby-lang
<andrewvos> Anyone know of an interface that supports #puts, and #print but allows me to have faster access to all the lines of text?
<rickhull> ?
<andrewvos> Like a structure that has those methods, but stores all the lines of text in an array
<rickhull> i could gist one up in 60 seconds...
<andrewvos> I don't want to have to string_io.rewind.read.lines.each every time
<andrewvos> rickhull: Any ideas how? I can write it myself but just at a loss at how I would support all the weird things print/puts does
jsullivandigs has joined #ruby-lang
* andrewvos notes the passing of 60 seconds
<andrewvos> (just joking of course)
<rickhull> a rhetorical 60 seconds
pbjorklund has quit [Ping timeout: 264 seconds]
dernise_ has joined #ruby-lang
<rickhull> i wasn't thinking about any weird things that puts/print do
<rickhull> i was just going to dump the string passed in to storage
pipework has quit [Remote host closed the connection]
marcostoledo has quit [Quit: Leaving...]
<andrewvos> I suppose I could store a StringIO internally, and then delegate #puts/#print to it. And on each call I could empty the StringIO and take the new lines and throw them into an array.
<andrewvos> Does this sound like madness?
t_ has joined #ruby-lang
<rickhull> is this unit testing code?
<rickhull> or lib/prod code?
<andrewvos> There are no unit tests here. This is me playing around because I'm bored.
duph has quit [Quit: Leaving.]
* rickhull upsets table
<rickhull> :P
dernise has quit [Ping timeout: 246 seconds]
<andrewvos> Yeah yeah yeah, I test all my production code. I don't test things when I'm hacking though. Sue me :)
<andrewvos> Though maybe tests would help me with this class
<andrewvos> But that's neither here nor there
elia has quit [Quit: Computer has gone to sleep.]
jmaya has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
krames has joined #ruby-lang
M_BlX has quit [Remote host closed the connection]
pbjorklund has joined #ruby-lang
jstorimer has joined #ruby-lang
tomzx_mac has joined #ruby-lang
pbjorklund has quit [Ping timeout: 264 seconds]
pbjorklund has joined #ruby-lang
<rickhull> my sense is that StringIO is the right way to mock IO devices for String operations
SilverKey has quit [Quit: Zzzzzz.]
<rickhull> zenspider: i'm having trouble writing tests using must_output
<rickhull> for one, i have some nondeterministic output, e.g. pids. is there a way to match rather than test equality?
<andrewvos> Oh ffs minitest will not work for me.
<andrewvos> Maybe I should just give up.
t_ has quit [Ping timeout: 240 seconds]
<andrewvos> /Users/andrewvos/.gem/ruby/1.9.3/gems/minitest-3.5.0/lib/minitest/unit.rb:19:in `const_missing': uninitialized constant MiniTest::Test (NameError)
<rickhull> also, is there a way to specify STDOUT vs. STDERR?
<blowmage> andrewvos: you are using an older version of minitest, make sure you have 5.0+ installed and activated
jstorimer has quit [Ping timeout: 264 seconds]
<blowmage> andrewvos: be sure you have `gem "minitest"; require "minitest"` in your test or helper
<blowmage> Minitest::Test (5.0) is the new name for MiniTest::Unit::TestCase (4.x and below)
<andrewvos> Why has it changed?
pbjorklund has quit [Ping timeout: 264 seconds]
<rickhull> smaller, simpler vocabulary, i imagine
thang has joined #ruby-lang
<andrewvos> blowmage: Thanks, that worked.
<rickhull> oh hm, it looks like maybe rgx is supported by assert_output now. i don't think it was the last time i looked
machuga has joined #ruby-lang
toretore has quit [Quit: Leaving]
justinram has quit [Remote host closed the connection]
<zenspider> rickhull: use captureio instead, gsub the pids, use assert_match / must_match instead
<andrewvos> How do I [1,2,3].something([4,5]) #=> [1,2,3,4,5] again?
<zenspider> concat
<andrewvos> Ahh yes thanks segy
<andrewvos> Erm zenspider
zomgbie has quit [Ping timeout: 252 seconds]
<andrewvos> zenspider: Hey why is it Minitest and not MiniTest and Test and not TestCase?
<andrewvos> zenspider: Is it because minitest is now in stdlib?
jonahR_ has joined #ruby-lang
<andrewvos> (or whatever you call it when gems get into ruby)
<zenspider> andrewvos: because that's what I changed it to
<rickhull> zenspider: thanks, will do. was my approach flawed, or just not supported (yet)?
<zenspider> rickhull: not flawed... just not the usecase of must_output. pids and shit need munging
<rickhull> gotcha
<andrewvos> zenspider: Is there a particular reason you did that?
<zenspider> you can look at how I test minitest itself to see how I munge test times and the like
<zenspider> andrewvos: cleaner
<zenspider> also, pinkies
jonahR has quit [Ping timeout: 260 seconds]
jonahR_ is now known as jonahR
<blowmage> andrewvos: the old api is still supported, and i have minitest-test if you want to use the new api in older minitest
cjs226 has joined #ruby-lang
malev has quit [Ping timeout: 252 seconds]
<rickhull> andrewvos: FWIW, i like the change. even if change itself is unpleasant
<andrewvos> zenspider, blowmage: That makes sense
<andrewvos> rickhull: Yeah it is nice
Criztian has quit [Remote host closed the connection]
<zenspider> rickhull: unpleasant how? it took me about 10minutes to switch all of my projects over. it's just a name change and it even works w/o it (just warns)
Criztian has joined #ruby-lang
<zenspider> are you seeing sometihng else?
<rickhull> no, not at all. i'm saying i like this change specifically. but any change in general is unpleasant
<rickhull> presumably worth it, in the general case
duph has joined #ruby-lang
malev has joined #ruby-lang
<rickhull> (a lot of words to say something rather trivial)
dRbiG has quit [Ping timeout: 252 seconds]
<zenspider> ANY change is unpleasant? man... you must hate life in general.
<rickhull> ha
<rickhull> i'm sympathizing with andrewvos
<rickhull> empathizing, even
<andrewvos> Cucumber breaks when I add minitest to my gemspec. *facepalms self to death*
<rickhull> (sp?)
synthetix has quit [Remote host closed the connection]
dRbiG has joined #ruby-lang
<zenspider> andrew just typed it wrong. that was his fault :P
tkuchiki has joined #ruby-lang
<rickhull> zenspider: but to continue the thought, most changes are worth it, despite the inherent unpleasantness
<zenspider> andrewvos: what type of break? I don't know how they integrate, but those interfaces changed a lot so I don't know if they've caught up yet
<rickhull> standing up instead of sitting down… ~effort~
<zenspider> andrewvos: blowmage wrote a gem to make the mt5 namespace available for mt4 impl. that way you can write for mt5 but run on mt4
eam has joined #ruby-lang
davidbalber|away has joined #ruby-lang
hachiya has joined #ruby-lang
<andrewvos> zenspider: Cucumber tries to be clever I guess and be all like "hey you're using minitest, I'll do some shit for you!! yaYY!!!111"
<andrewvos> Because apparently I'm not ready to require files myself
Criztian has quit [Ping timeout: 256 seconds]
<rickhull> Cucumber == Clippy
<andrewvos> hahaha
<andrewvos> It looks like you're trying to write tests. Would you like help with that?
<andrewvos> *DEFINES ALL THE DSLS*
fridim__ has quit [Read error: Operation timed out]
<zenspider> andrewvos: suck. I'm sorry.
<zenspider> blowmage's gem might be the right thing for you until they switch up
<rickhull> zenspider: what do you think of Open3.capture3? it's funny, that's the functionality im trying to test
<rickhull> so using minitest capture_io to test it :P
r0bby is now known as robbyoconnor
<rickhull> not literally testing open3, but testing lib functionality that calls it
tkuchiki has quit [Ping timeout: 260 seconds]
<zenspider> rickhull: why are you trying to test that?
<rickhull> BDD i guess
<rickhull> the tests make sense from the outside
<zenspider> then test that you call it correctly
<rickhull> i have a method, run_command
<zenspider> don't test that it does the thing correctly
<rickhull> it returns STDOUT, logs STDERR, raise on exit status
tomzx_mac has quit [Ping timeout: 246 seconds]
<rickhull> so i have a BDD test, a command that has stderr must output
dernise_ has quit [Quit: This computer has gone to sleep]
fosky has joined #ruby-lang
<andrewvos> zenspider: "suck. I'm sorry." <-- huh? I suck? Cucumber sucks?
Guest56111 has joined #ruby-lang
iansheri_ has quit [Remote host closed the connection]
<andrewvos> BDD is good for testing apps are still delivering their intended features. Though I would like it if everyone used something instead of cucumber.
pskosinski has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
Guest56111 is now known as diegoviola
jstorimer has joined #ruby-lang
sepp2k1 has quit [Quit: Leaving.]
jstorime_ has joined #ruby-lang
jstorimer has quit [Read error: Connection reset by peer]
<rickhull> honestly i'm not even doing BDD. i just like reading spec-style tests better. and yeah, cucumber should not be the first thing to reach for
skade has quit [Quit: Computer has gone to sleep.]
<rickhull> i don't think i've ever done test first development. typically i'll make a prototype, write some tests, then refactor
zomgbie has joined #ruby-lang
spuk has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
injekt has quit [Ping timeout: 276 seconds]
rikai has joined #ruby-lang
<zenspider> rickhull: sad... tdd is lovely
krohrbaugh has joined #ruby-lang
zomgbie has quit [Ping timeout: 264 seconds]
<rickhull> i find the influence of the order in which tests are written on the resulting design to be… unsatisfying
<rickhull> i get paralyzed trying to write the right tests
jstorime_ has quit [Remote host closed the connection]
<zenspider> i find the influence of the order in which implementation is written on the resulting tests to be unsatisfying. :P
rikai has quit [Ping timeout: 246 seconds]
<zenspider> nah. you do it JUST like you write your prototype... you just use the commandline/browser a lot less
<zenspider> man... I can't focus AT ALL
<zenspider> maybe I should take a nap
<rickhull> it seems to me you have to have the design in your head already to write good tests, first
<rickhull> at the right level of abstraction
injekt has joined #ruby-lang
<rickhull> if you write a shitty test, then you spin your gears a bunch trying to make it pass
<rickhull> so then i spin my gears a bunch trying to make sure i don't write a shitty test
<rickhull> and then paralysis
<zenspider> if you can write a prototype, you can write a test
<zenspider> sec... need to tweet that
<rickhull> for example, i wasn't sure how i wanted to implement run_command. i looked at what are the facilities available to call out to an external process. and i knew i ultimately just wanted STDOUT. and i wanted failures to be handled out-of-band. raise/log
<rickhull> i discovered capture3, and the implementation fell out of that
<rickhull> those last two bits, the impl and what are the cases i had to deal with, sort of happened simultaneously
<rickhull> though in retrospect i could have written some tests first i guess
Kabaka has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
jstorimer has joined #ruby-lang
xcbt has joined #ruby-lang
Weems has quit [Ping timeout: 260 seconds]
<andrewvos> Love how me asking a question always turns into some completely different argument.
<andrewvos> "Hey guys, how do I do A?"..."Have you tried writing tests?"
<rickhull> funny, that was not my implication
<zenspider> that's my goto response :)
<rickhull> i was just curious if you were mocking IO objects in test code or lib/app code
<erikh> I like "have you read the documentation?"
<erikh> but I'm a test-last kind of guy
<rickhull> because that would change my answer to "is this insane?"
<andrewvos> rickhull: Heh, I'm not taking a dig :)
<zenspider> I did that to my students and newbs at seattlerb. "I'm trying to X"... "where's your test?" "uhhh"
ledestin has quit [Ping timeout: 264 seconds]
<zenspider> 90% of the time, the ppl w/ tests wind up needing less help over time.
<andrewvos> This is true.
<zenspider> (w/ tests or who follow my suggestion to backfill tests NOW)
<andrewvos> It especially helps you to keep on target
<zenspider> yup. which is exactly what I'm failing to do right now :)
symm- has quit [Ping timeout: 256 seconds]
<andrewvos> Sometimes you get so stuck in the code and you're like "what am I actually doing again???". Then you run your tests and it's obvious.
<rickhull> zenspider: i may have found a bug, or at least an edge case, for capture_io
<rickhull> my run_command is generating output on STDOUT that is not captured
<rickhull> a naked puts above it is captured
<zenspider> capture_subprocess_io
<rickhull> ah right
<zenspider> subprocesses are a pita
<zenspider> that said... again... don't test that.
<zenspider> test that you call capture3 correctly. nothing more
<rickhull> i'm not clear how that looks
<zenspider> I prefer stubs. most ppl use mocks.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<erikh> I always make a solid attempt to write tests, but I like doing the design before the tests.
<erikh> and I avoid mocks like the plague, but I have some weird requirements for my projects these days
<rickhull> y, i never reach for mocks or stubs. probably to my detriment
<andrewvos> Make a class, name it Capture3Mock or Fake or whatever, have a method on it that is the same as the method you want to call. When you call it, store the arguments if you need to. Then make another method like #did_i_call_it_properly?
<erikh> launching vms is kind of a pissy process that breaks easily
<erikh> half of running tests is seeing the edge cases / breakage
<erikh> heisenapibugs
<erikh> like, if you hit ec2 fast enough, you can watch the eventual consistency roll out to the stack because calls will fail that shouldn't
<rickhull> how to mock or stub? not seeing how to use andrewvos approach
<erikh> works really well. I like it very much.
marcostoledo has joined #ruby-lang
mdedetrich has joined #ruby-lang
<erikh> (it's popen basically, with some additional sugar)
rikai has joined #ruby-lang
ledestin has joined #ruby-lang
zomgbie has joined #ruby-lang
jstorimer has quit [Remote host closed the connection]
<andrewvos> sleep, night
andrewvos has quit [Quit: leaving]
marcostoledo has quit [Client Quit]
<zenspider> I like testing subclasses. subclass inside the test override the method that calls out. boomdone
injekt has quit [Read error: Operation timed out]
<rickhull> i'm still leaning toward capture_subprocess_io v0v
<zenspider> if you want your tests to run as slow as possible... sure
<rickhull> still not clear on what to subclass and how the lib method would interact with it
<rickhull> lib method = Utilities.run_command