ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
heftig has joined #ruby-lang
knu has joined #ruby-lang
lcdhoffman has joined #ruby-lang
RobertBirnie has joined #ruby-lang
Meta5 has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
Meta5 has quit [Client Quit]
nathanstitt has quit [Quit: I growing sleepy]
kevinem has joined #ruby-lang
<kevinem> hi guys
<kevinem> i'm in some kinda trouble
<kevinem> new to ruby
sepp2k has quit [Read error: Connection reset by peer]
<centrx> You must explain your trouble, otherwise do you know your trouble?
<kevinem> i followed this tutorial
<kevinem> because rails kept saying i'm using some old version of gems
<kevinem> and it was dreadfully slow
<centrx> I'm not sure what you mean but this advice is about 5 years ld
<centrx> Use bundle/bundler
<centrx> Then you run bundle exec rails
<centrx> etc
<kevinem> oh...i'm reading an old book
<centrx> well that URL is yeah
<centrx> You should not start using Ruby 1.8 now, in 2014
<kevinem> i ran these two commands sudo gem install rubygems-update sudo update_rubygems
<centrx> I'm not sure what the second one is
<centrx> I would install the Ubuntu packages for Ruby
<centrx> What version is it you might ask, probably 1.9 or 2.0 or 2.1
<kevinem> sudo update_rubygems
<centrx> Then you use gem install and/or bundler
<kevinem> it's on the website...the second command
<kevinem> version 1.9
<centrx> I don't know what update_rubygems is
<centrx> "f you're on Ubuntu 9.04 or later, this might work:"
<centrx> that is so old
<kevinem> yup
<ohsix> or it really hasn't changed since then
<centrx> Ubuntu 9.04 (Jaunty Jackalope), released on 23 April 2009,[72] was Canonical's tenth release of Ubuntu.
<kevinem> but i thought it might work
<centrx> I always use a Gemfile and bundle so many it is different
<centrx> *maybe
<kevinem> but now gems completely fails
<kevinem> Checked in 'GEM_PATH=/home/kevin/.gem/ruby/1.9.1:/usr/lib/ruby/gems/1.9.1', execute `gem env` for more information
<kevinem> from /usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:322:in `to_spec'
<kevinem> from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:58:in `gem'
<kevinem> from /usr/local/bin/bundle:22:in `<main>'
vintik has quit [Quit: Leaving...]
<kevinem> what is bundle/bundler?
jtoy has quit [Ping timeout: 264 seconds]
<kevinem> /usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:313:in `to_specs': Could not find 'railties' (>= 0) among 0 total gem(s) (Gem::LoadError)
<kevinem> Checked in 'GEM_PATH=/home/kevin/.gem/ruby/1.9.1:/usr/lib/ruby/gems/1.9.1', execute `gem env` for more information
<kevinem> from /usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:322:in `to_spec'
<kevinem> from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:58:in `gem'
<kevinem> from /usr/local/bin/rails:22:in `<main>'
<kevinem> this is the result of "rails new r4rmusic1 -d mysql"
<centrx> If you are using Rails you should definitely use bundler
<jhass> kevinem: sounds like you messed up your install. purge all ruby related packages. rm -rf $HOME/.gem. rm -rf all remaining traces. Start again
<centrx> bundler readers your Gemfile, which Rails uses, to determine what gems to install
<jhass> kevinem: this time don't follow advice older than two years
<kevinem> jhass: hmmm...i tried reinstalling but the same happens, i deleted everything apart from .gem in home...lemme try that
<jhass> kevinem: list what you deleted
<centrx> whoa what planet is this
<centrx> what year am I
<kevinem> jhass: i just ran these commands
<kevinem> apt-get remove ruby-full
<kevinem> apt-get autoremove
<jhass> did you also remove that silly rubygems thingy?
<kevinem> sudo rm -Rf /var/local/gems
<jhass> did you verify all other installed ruby related packages where gone? especially rubygems related ones?
spuk has quit [Ping timeout: 255 seconds]
<kevinem> the command gems did not work...i don't know how to check otherwise
<jhass> also stuff like a $HOME/.gemrc or /etc/gemrc if that exists
spuk has joined #ruby-lang
<kevinem> okay...lemme try
eddiezane_zzz is now known as eddiezane
jtoy has joined #ruby-lang
eddiezane is now known as eddiezane_zzz
marr has quit []
eddiezane_zzz is now known as eddiezane
eddiezane is now known as eddiezane_zzz
<kevinem> jhass: no luck
<jhass> maybe you should make a gist with the command you're trying the run, its whole output and the output of gem env
<kevinem> right now what i did is
<kevinem> apt-get purge ruby
<kevinem> rm -Rf .gem
<kevinem> and installed ruby all over again
<kevinem> but the same error happens when i try the command
<kevinem> rails new r4rmusic1 -d mysql
<kevinem> (remember i never installed rails after i installed ruby again now)
centrx has quit [Quit: Mead error: Connection reset by beer]
RobertBirnie has quit [Ping timeout: 255 seconds]
<kevinem> i just did
<kevinem> sudo apt-get install ruby-full
<kevinem> and run this command
<kevinem> Checked in 'GEM_PATH=/home/kevin/.gem/ruby/1.9.1:/usr/lib/ruby/gems/1.9.1', execute `gem env` for more information
<kevinem> from /usr/local/lib/site_ruby/1.9.1/rubygems/dependency.rb:322:in `to_spec'
<kevinem> from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:58:in `gem'
<kevinem> from /usr/local/bin/rails:22:in `<main>'
<kevinem> this error comes up
kek has quit [Remote host closed the connection]
<kevinem> jhass: gem env is here
<jhass> kevinem: read the /topic
<kevinem> oops...okay
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
<jhass> is ruby really the only ruby related package you have installed?
<jhass> check your installed packages for ruby and gem
<jhass> also I'm still seem to be missing the command the the full output
lcdhoffman has quit [Quit: lcdhoffman]
jimbach has quit [Ping timeout: 240 seconds]
<kevinem> jhass: i don't know what all i've done in the past
<kevinem> i was trying to install fedena
<kevinem> messed everything up
lcdhoffman has joined #ruby-lang
<jhass> well, it tells you it can't find the dependent file anymore
hahuang65 has quit [Ping timeout: 250 seconds]
<jhass> did you try reinstalling rails with gem install rails ?
jimbach has joined #ruby-lang
<jhass> *dependent gem
<kevinem> can you give me a clearcut way of installing everything?
Hinkdogg_ has quit [Quit: Computer has gone to sleep.]
<kevinem> sudo apt-get install ruby-full
<kevinem> sudo gem install rails
<kevinem> is this good?
Meta5 has joined #ruby-lang
tkuchiki has joined #ruby-lang
<kevinem> jhass: can you tell me what is bundle/bundler centrx was talking about
<kevinem> ???
nathanstitt has joined #ruby-lang
<kevinem> okay :)
<kevinem> so i should be trying "bundle install rails" instead of "gem install rails" right?
<jhass> no
<jhass> bundler is not a replacement for gem
Meta5 has quit [Client Quit]
<kevinem> ohhh...ruby is really starting to confuse me
<kevinem> :-/
<jhass> bundler uses gem (well rubygems, the library behind it) to install gems in the correct versions as specified in your projects Gemfile
<jhass> and make sure only those can be loaded
<jhass> inside your project
<kevinem> okay...so why was centrx advising me to use bundler? what he said exactly was this
<kevinem> "centrx> I'm not sure what you mean but this advice is about 5 years ld
<kevinem> <centrx> Use bundle/bundler
<kevinem> <centrx> Then you run bundle exec rails
<kevinem> <centrx> etc
<jhass> rails by default will use bundler
<jhass> your rails new command should have generated a Gemfile
<jhass> once you cd into it run bundle install
<kevinem> okay
dpatel has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
<jhass> if you later want to add dependencies to your app, you edit the Gemfile and run bundle install again
<kevinem> now rails works :)
<kevinem> hmmm...
jimbach has joined #ruby-lang
<kevinem> jhass: everything works fine now :)
<jhass> and it only took so long because you always skipped the actual error message
<kevinem> yeah...i was thinking if the command "rails" works...it's there
<kevinem> never read the error...i was thinking of gems only
<kevinem> sorry
jimbach has quit [Ping timeout: 245 seconds]
Meta5 has joined #ruby-lang
amsi has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
<kevinem> jhass: another problem
mistym has joined #ruby-lang
Meta5 has quit [Client Quit]
mistym has quit [Remote host closed the connection]
lun__ has quit [Remote host closed the connection]
<kevinem> i did "bundle install" and it said everything installed
<jhass> did you follow the link in the error message?
kek has joined #ruby-lang
kek has quit [Read error: No route to host]
<kevinem> yup...(after you said so, to be truthfull)
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kek has joined #ruby-lang
<kevinem> i did "gem install execjs"
<kevinem> same error
<jhass> did you read the error message and the readme?
shinnya has quit [Ping timeout: 250 seconds]
kek has quit [Ping timeout: 264 seconds]
<kevinem> jhass: yup...and sorry again...but this time atleast it was not obvious
Hinkdogg__ has joined #ruby-lang
<kevinem> i wont ask anything before making sure that i can't figure it out again
<jhass> you know, programming is all about problem solving. Train that skill everywhere and anytime ;)
<kevinem> thanks for cultivating a new kind of character in me :) [most of the time i skip these kinds of error messages, and try to think what will have gone wrong tracing back what i was doing]
<kevinem> these kinda error messages never made any sense to me(atleast this is good, you should see openERP error messages)
mistym has joined #ruby-lang
toastynerd has joined #ruby-lang
<kevinem> i will try to make sense of them, as far as i can, from now on ;)
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby-lang
Raycaster has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
Raycaster has quit [Client Quit]
Raycaster has joined #ruby-lang
matp has quit [Quit: ZZZzzz…]
<kevinem> jhass: can i ask you just one more thing?
Miphix has joined #ruby-lang
<kevinem> why is all these commands 'rails', 'gem' everything take so long(last night i fell while i waited for the result of some issued command), when something's not right somewhere
<kevinem> ?
<jhass> what's long?
<kevinem> like may be 15 mins or more
<jhass> uh, that's unusual
<kevinem> i'll tell you the current scenario
<jhass> a bundler may take that long, but usually not even in big projects
<kevinem> i issued "rails generate model work"
<kevinem> but i know database.yml is not edited
<kevinem> i did it just to see what happens
<jhass> it should work since that won't touch the db yet, only create the migration
jbardin has quit [Quit: jbardin]
<kevinem> but 10mins?
<jhass> not sure why it takes so long for you though
amclain has joined #ruby-lang
<kevinem> i haven't got my result yet
<jhass> does a simple ruby -e 'puts "hi"' take that long too?
<kevinem> i don't think so...lemme try
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 255 seconds]
<kevinem> jhass: nope...that's fast
<jhass> what about rake -T
<kevinem> rake aborted!
<kevinem> No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
<kevinem> (See full trace by running task with --trace)
<kevinem> what is rake?
davodavoo has joined #ruby-lang
<kevinem> (just asked because we are in the conversation, don't make me say sorry)
<kevinem> i'll google :D
<davodavoo> I'm feeling heady. Where is an irc chat where ruby noobs ask veterans questions? (feeling like a vet)
<jhass> kevinem: test both commands inside your rails app
<jhass> davodavoo: you found it
<davodavoo> lol ok
<jhass> there's also #ruby and ##new2ruby
<jhass> #ruby having more users
<jhass> ##new2ruby seemingly having degraded to a private smalltalk channel mostly
apt-get_ has quit [Quit: Quitte]
<jhass> finally there's the glorious #rubyonrails if you're up for that
<davodavoo> mehhh
<davodavoo> tired of rails
<jhass> maaany noobies there for you though :P
<jhass> we sent them all there
<kevinem> jhass: rake -T was fast
<kevinem> returned a list
<kevinem> davodavoo: never give up on anything
<jhass> kevinem: mmh, no idea then, doesn't seem to be anything inherent to your environment
<kevinem> haven't got my reply from rails yet :D
<kevinem> i fell asleep last night like this
toastynerd has quit [Remote host closed the connection]
hagebake has quit [Ping timeout: 240 seconds]
davodavoo has quit [Ping timeout: 246 seconds]
<kevinem> jjhass: does this make any sense to you?
<kevinem> i ctrl+c ed after long wait and got this
hagabaka has joined #ruby-lang
lsegal has joined #ruby-lang
<jhass> did you add spring to your Gemfile? looks like that wants to make some kind of network connection to some server and fails to do so
<kevinem> i never added anything to any file :-/
<kevinem> i dont know anything to add :D
<jhass> do you have the same issue if you prefix your command with bundle exec?
<kevinem> bundle exec rails generate model work?
wallerdev has quit [Quit: wallerdev]
wallerdev__ is now known as wallerdev
<jhass> that's the command, tell me
<kevinem> one sec
apeiros has quit [*.net *.split]
priodev has quit [*.net *.split]
pipework has quit [*.net *.split]
rhizome has quit [*.net *.split]
toastynerd has joined #ruby-lang
<kevinem> jhass: if you're expecting for a flash reply for that...nope...
<kevinem> same
<jhass> what happens if you run bin/spring ?
<kevinem> same waiting
<jhass> if you keep that running in one terminal, does that speed up the other command?
<kevinem> sounds interesting...lemme try :)
torrieri has joined #ruby-lang
hagabaka has quit [Ping timeout: 246 seconds]
<kevinem> jhass: nope
<jhass> you should head out to #rubyonrails. They'll have more experience with spring issues
alexju has joined #ruby-lang
<kevinem> jhass: okay :) thanks
dabradley has quit [Ping timeout: 260 seconds]
dorei has quit []
apeiros has joined #ruby-lang
rhizome has joined #ruby-lang
pipework has joined #ruby-lang
priodev has joined #ruby-lang
hagabaka has joined #ruby-lang
dabradley has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
karamazov has joined #ruby-lang
torrieri has joined #ruby-lang
<kevinem> jhass: problem solved
<kevinem> "spring stop" solved it
lcdhoffman has quit [Quit: lcdhoffman]
emmesswhy has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
yatish27 has joined #ruby-lang
yatish27_ has quit [Ping timeout: 240 seconds]
<akahn> is it only possible to use DATA (with __END__) from a single file script?
torrieri has joined #ruby-lang
Hinkdogg__ has quit [Quit: Computer has gone to sleep.]
dabradley has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
cap has quit [Remote host closed the connection]
cap has joined #ruby-lang
charliesome has quit [Quit: zzz]
thomasxie has joined #ruby-lang
cap has quit [Ping timeout: 272 seconds]
dknox has quit [Quit: Textual IRC Client: www.textualapp.com]
dabradley has joined #ruby-lang
yatish27_ has joined #ruby-lang
charliesome has joined #ruby-lang
yatish27 has quit [Ping timeout: 260 seconds]
dpatel has quit [Quit: dpatel]
djbkd has joined #ruby-lang
Meta5 has joined #ruby-lang
rsl has quit [Ping timeout: 244 seconds]
yatish27 has joined #ruby-lang
yatish27_ has quit [Ping timeout: 250 seconds]
<Meta5> Anybody in RubyOnRails room?
<jhass> alis claims 393 people are
nertzy has joined #ruby-lang
michaeldeol has joined #ruby-lang
<Meta5> Does it require a password to get in?
<jhass> it requires to be identified with nickserv
<jhass> /msg NickServ help
<Meta5> oh ok, thx
rsl has joined #ruby-lang
jhass is now known as jhass|off
alexju has quit [Remote host closed the connection]
Meta5 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
nertzy has quit [Quit: This computer has gone to sleep]
djbkd has quit [Remote host closed the connection]
matp has joined #ruby-lang
jsaak has quit [Ping timeout: 244 seconds]
jsodini has quit [Ping timeout: 245 seconds]
earthquake has joined #ruby-lang
earthquake has quit [Client Quit]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
earthquake has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
gix has quit [Ping timeout: 255 seconds]
Lewix has quit [Ping timeout: 246 seconds]
gix has joined #ruby-lang
kevinem has quit [Ping timeout: 250 seconds]
arooni-mobile has joined #ruby-lang
cap has joined #ruby-lang
saarinen has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
Dusty_ has quit [Ping timeout: 246 seconds]
skade has joined #ruby-lang
lcdhoffman has joined #ruby-lang
pr0ton_ has joined #ruby-lang
skade has quit [Client Quit]
skade has joined #ruby-lang
dynamism1 has quit [Ping timeout: 244 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
lcdhoffman has quit [Client Quit]
skade has quit [Client Quit]
cap has quit [Remote host closed the connection]
cap has joined #ruby-lang
cap_ has joined #ruby-lang
cap has quit [Ping timeout: 240 seconds]
cap_ has quit [Remote host closed the connection]
cap has joined #ruby-lang
djbkd has joined #ruby-lang
earthquake has quit [Quit: earthquake]
cap has quit [Ping timeout: 240 seconds]
AKASkip has joined #ruby-lang
cap has joined #ruby-lang
cap has quit [Remote host closed the connection]
cap has joined #ruby-lang
cap has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
ta has quit [Remote host closed the connection]
toastyne_ has joined #ruby-lang
toastynerd has quit [Read error: No route to host]
gig3m has joined #ruby-lang
freedrull has quit [Ping timeout: 264 seconds]
freedrull has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AKASkip has quit [Ping timeout: 240 seconds]
koderok has joined #ruby-lang
K4IS3I2 has quit [Quit: HydraIRC -> http://www.hydrairc.com <-]
yatish27 has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
yatish27 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
arooni-mobile has quit [Ping timeout: 240 seconds]
amerine has quit [Quit: Computer has gone to sleep.]
jevs has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
Adam_ActiveState has quit [Ping timeout: 272 seconds]
Hinkdogg__ has joined #ruby-lang
Adam_ActiveState has joined #ruby-lang
jevs has joined #ruby-lang
th2389_ has quit [Ping timeout: 240 seconds]
dlackty has quit [Ping timeout: 260 seconds]
dlackty has joined #ruby-lang
michaeldeol has joined #ruby-lang
th2389_ has joined #ruby-lang
Hinkdogg__ has quit [Ping timeout: 260 seconds]
beawesomeinstead has quit [Ping timeout: 272 seconds]
Sgeo_ has joined #ruby-lang
Guest85414______ has quit [Ping timeout: 240 seconds]
cap has joined #ruby-lang
Sgeo has quit [Ping timeout: 240 seconds]
beawesomeinstead has joined #ruby-lang
Guest85414______ has joined #ruby-lang
pr0ton_ has quit [Quit: pr0ton_]
rickruby has quit [Ping timeout: 272 seconds]
cap has quit [Remote host closed the connection]
cap has joined #ruby-lang
rickruby has joined #ruby-lang
futilegames has joined #ruby-lang
apeiros_ has joined #ruby-lang
moogumbo has quit [Ping timeout: 260 seconds]
cap_ has joined #ruby-lang
apeiros has quit [Ping timeout: 260 seconds]
cap has quit [Read error: Connection reset by peer]
adambeynon has quit [Ping timeout: 260 seconds]
chancancode has quit [Ping timeout: 240 seconds]
moogumbo has joined #ruby-lang
adambeynon has joined #ruby-lang
chancancode has joined #ruby-lang
ur5us has quit [Ping timeout: 240 seconds]
_ht has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
rsl has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
charliesome has quit [Quit: zzz]
Lewix has joined #ruby-lang
kevinem has joined #ruby-lang
apeiros has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
karamazov has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
[spoiler] has joined #ruby-lang
toertore has joined #ruby-lang
karamazov has quit [Ping timeout: 272 seconds]
toastyne_ has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
fusillicode has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
arBmind1 has quit [Quit: Leaving.]
cap_ has quit [Remote host closed the connection]
fusillicode has quit [Ping timeout: 240 seconds]
cap has joined #ruby-lang
cap has quit [Ping timeout: 240 seconds]
cap has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
kwd has joined #ruby-lang
havenwood has joined #ruby-lang
michaeldeol has joined #ruby-lang
clauswitt has joined #ruby-lang
mkaesz has joined #ruby-lang
fusillicode has joined #ruby-lang
cap has quit [Remote host closed the connection]
cap has joined #ruby-lang
cap has quit [Remote host closed the connection]
cap has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
cap has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
toastynerd has quit [Ping timeout: 260 seconds]
marcofernandez has quit [Quit: 전 이만 갑니다.]
relix has joined #ruby-lang
solars has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
kwd has quit [Read error: Connection reset by peer]
kwd has joined #ruby-lang
ta has joined #ruby-lang
tectonic has quit []
abhi_rsd has joined #ruby-lang
skade has joined #ruby-lang
apeiros has joined #ruby-lang
jperry has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
tbuehlmann has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
jarto has joined #ruby-lang
jarto has quit [Remote host closed the connection]
cap has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Forgetful_Lion has joined #ruby-lang
cap has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby-lang
skade has joined #ruby-lang
AKASkip has joined #ruby-lang
djbkd has joined #ruby-lang
toastynerd has joined #ruby-lang
kaiza has quit [Quit: ZNC - http://znc.in]
havenwood has quit [Remote host closed the connection]
clauswit_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
brothmars has quit [Ping timeout: 245 seconds]
clauswitt has quit [Ping timeout: 260 seconds]
toastynerd has quit [Ping timeout: 255 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 255 seconds]
cap has joined #ruby-lang
brothmars has joined #ruby-lang
jperry has joined #ruby-lang
amerine has joined #ruby-lang
cap has quit [Ping timeout: 240 seconds]
sadfuzzy has joined #ruby-lang
<sadfuzzy> hi! is there any way in state_machine to run before_transition hook for all transitions, except :one => :two and :three => :four?
koderok has quit [Quit: koderok]
sMecKs has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
brothmars has quit [Ping timeout: 260 seconds]
zz_dlu has quit [Ping timeout: 264 seconds]
qba73 has joined #ruby-lang
skade has joined #ruby-lang
Gaelane has quit [Ping timeout: 240 seconds]
skade has quit [Client Quit]
zz_dlu has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
<yorickpeterse> morning
charliesome has joined #ruby-lang
arBmind has joined #ruby-lang
MicD_ is now known as MichD
<maloik_> sadfuzzy: only saw this now, but I believe :all => :foo works
Dusty_ has joined #ruby-lang
cap has joined #ruby-lang
<maloik_> oooh wait
<maloik_> I misread
<maloik_> ugh
<maloik_> if you use the block way of implementing it, you can just build it in... the transition variable looks like an array of [:start, :end] state
skade has joined #ruby-lang
abhi_rsd has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby-lang
charliesome has quit [Quit: zzz]
thomasxie has quit [Read error: Connection reset by peer]
abhi_rsd has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
toastynerd has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davispuh has joined #ruby-lang
toastynerd has joined #ruby-lang
clauswitt has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
toastynerd has quit [Ping timeout: 260 seconds]
Lewix has quit [Remote host closed the connection]
skade has joined #ruby-lang
Lewix has joined #ruby-lang
relix_ has joined #ruby-lang
relix has quit [Ping timeout: 240 seconds]
Lewix has quit [Ping timeout: 244 seconds]
Siyfion has joined #ruby-lang
mikecmpbll has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
marr has joined #ruby-lang
workmad3 has joined #ruby-lang
workmad3 has quit [Client Quit]
workmad3 has joined #ruby-lang
mkaesz has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
koderok has joined #ruby-lang
charliesome has joined #ruby-lang
kek has joined #ruby-lang
hellangel7 has joined #ruby-lang
symm- has joined #ruby-lang
mkaesz has joined #ruby-lang
kek has quit [Ping timeout: 264 seconds]
arBmind has quit [Quit: Leaving.]
cap has quit [Ping timeout: 240 seconds]
DivineEn1ity has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
letenje has joined #ruby-lang
<sadfuzzy> maloik_, thanks
DivineEntity has joined #ruby-lang
abhi_rsd has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby-lang
kyb3r_ has joined #ruby-lang
koderok has quit [Quit: koderok]
kyb3r_ has quit [Max SendQ exceeded]
kyb3r_ has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
kek has joined #ruby-lang
symm- has quit [Quit: Leaving...]
kevinem has quit [Ping timeout: 246 seconds]
arBmind has joined #ruby-lang
symm- has joined #ruby-lang
Miphix has quit [Quit: Leaving]
hellangel7 has quit [Remote host closed the connection]
kevinem has joined #ruby-lang
qba73 has quit []
Muz_ is now known as Muz
qba73 has joined #ruby-lang
kek has quit [Remote host closed the connection]
kyb3r_ has quit [Quit: Leaving]
lele has joined #ruby-lang
cap has joined #ruby-lang
banister`sleep has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lun_ has joined #ruby-lang
kek_ has joined #ruby-lang
mkaesz has quit [Ping timeout: 240 seconds]
cap has quit [Ping timeout: 240 seconds]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby-lang
ruby-lang907 has joined #ruby-lang
toastynerd has joined #ruby-lang
ruby-lang907 has quit [Ping timeout: 246 seconds]
toastynerd has quit [Ping timeout: 245 seconds]
tkuchiki_ has joined #ruby-lang
skade has joined #ruby-lang
clauswitt has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
tkuchiki_ has quit [Ping timeout: 245 seconds]
mkaesz has joined #ruby-lang
gix has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
kek_ has quit [Remote host closed the connection]
stamina has joined #ruby-lang
mkaesz has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
havenwood has joined #ruby-lang
Miphix has joined #ruby-lang
banister has joined #ruby-lang
sepp2k has joined #ruby-lang
mkaesz has joined #ruby-lang
cap has joined #ruby-lang
jhass|off is now known as jhass
marr has quit [Ping timeout: 245 seconds]
cap has quit [Ping timeout: 240 seconds]
kwd has quit [Read error: Connection reset by peer]
kwd_ has joined #ruby-lang
nofxx_ has quit [Ping timeout: 245 seconds]
yatish27_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 255 seconds]
workmad3 is now known as wm3|away
sarkyniin has joined #ruby-lang
toastynerd has joined #ruby-lang
kwd has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
kwd_ has quit [Read error: Connection reset by peer]
hellangel7 has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 255 seconds]
lun_ has joined #ruby-lang
kwd_ has joined #ruby-lang
kwd has quit [Read error: Connection reset by peer]
malconis has joined #ruby-lang
ldnunes has joined #ruby-lang
karamazov has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
banister has joined #ruby-lang
malconis has quit [Remote host closed the connection]
malconis has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
sarkyniin has joined #ruby-lang
dynamism1 has joined #ruby-lang
AKASkip has quit [Read error: Connection reset by peer]
cap has joined #ruby-lang
wm3|away has quit [Ping timeout: 272 seconds]
AKASkip has joined #ruby-lang
nofxx_ has joined #ruby-lang
marcofernandez has joined #ruby-lang
yfeldblum has joined #ruby-lang
kek has joined #ruby-lang
cap has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
sarkyniin has quit [Quit: Quitte]
sarkyniin has joined #ruby-lang
toastynerd has joined #ruby-lang
rsl has quit [Read error: Connection reset by peer]
rsl has joined #ruby-lang
toastynerd has quit [Ping timeout: 244 seconds]
<yorickpeterse> matti: http://youtu.be/dtDFokg1ceE?list=UUR08pzzBqyIzZHGEfJygsTQ found this, not sure yet if I like it though
<yorickpeterse> Somewhat reminds me of Nujabes, though it's not as good
frank_o has joined #ruby-lang
rsl has quit [Ping timeout: 244 seconds]
rsl has joined #ruby-lang
rsl has quit [Read error: Connection reset by peer]
fenchurch_ has joined #ruby-lang
rsl has joined #ruby-lang
diegoviola has joined #ruby-lang
kek has quit [Remote host closed the connection]
diegovio1 has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby-lang
mkaesz has quit [Ping timeout: 260 seconds]
karamazov has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
<matti> yorickpeterse: Thanks!
rsl has quit [Ping timeout: 246 seconds]
dynamism1 has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby-lang
karamazov has quit [Ping timeout: 264 seconds]
kek has joined #ruby-lang
havenwood has quit []
mkaesz has joined #ruby-lang
kek has quit [Ping timeout: 240 seconds]
rsl has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skade has joined #ruby-lang
cmisenas has joined #ruby-lang
<yorickpeterse> oooooooh
<yorickpeterse> matti: I found this https://www.youtube.com/watch?v=e5mi8Sv5TjQ
<yorickpeterse> first 1:30 or so it was ok
<yorickpeterse> then suddenly they dropped the piano
miqui has joined #ruby-lang
dynamism1 has joined #ruby-lang
frank_o has quit [Ping timeout: 260 seconds]
marr has joined #ruby-lang
dynamism1 has quit [Ping timeout: 250 seconds]
kek has joined #ruby-lang
karamazov has joined #ruby-lang
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
emmesswhy has joined #ruby-lang
kek has quit [Ping timeout: 255 seconds]
karamazo_ has joined #ruby-lang
karamaz__ has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
karamaz__ has quit [Client Quit]
jimbach has joined #ruby-lang
cap has joined #ruby-lang
ecnalyr has joined #ruby-lang
karamazov has quit [Ping timeout: 272 seconds]
karamazo_ has quit [Read error: No route to host]
karamazov has joined #ruby-lang
alexju has joined #ruby-lang
jimbach has quit [Ping timeout: 272 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
diegovio1 is now known as diegoviola
rsl has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
cap has quit [Ping timeout: 240 seconds]
karamazo_ has joined #ruby-lang
jimbach has joined #ruby-lang
karamazo_ is now known as karamazov_
toastynerd has joined #ruby-lang
ta has quit [Ping timeout: 272 seconds]
kek has joined #ruby-lang
karamazov has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Quit: Leaving]
toastynerd has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
hellangel7 has quit [Remote host closed the connection]
Siyfion has quit [Ping timeout: 260 seconds]
spastorino has joined #ruby-lang
diegoviola has joined #ruby-lang
sadfuzzy has quit [Ping timeout: 246 seconds]
brothmars has joined #ruby-lang
karamazov_ is now known as karamazov
yell0wgh0st has joined #ruby-lang
Boohbah has quit [Ping timeout: 264 seconds]
<yell0wgh0st> hi all
frank_o has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
sarkyniin has joined #ruby-lang
loincloth has joined #ruby-lang
Boohbah has joined #ruby-lang
<yell0wgh0st> I am starting with ruby and I am trying to get work partials/includes in my Sinatra + Liquid project. How can I get it work? I stuck on this error http://stackoverflow.com/questions/25383761/how-to-get-partials-includes-working-with-sinatra-and-liquid-templates Thx
hellangel7 has joined #ruby-lang
kevinem has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
kek has quit [Remote host closed the connection]
apt-get_ has joined #ruby-lang
sarkyniin has quit [Ping timeout: 272 seconds]
<yorickpeterse> yell0wgh0st: Sinatra has no concept of partials I believe
<yorickpeterse> You can however render sub views
<yorickpeterse> e.g.
<yorickpeterse> erb :'foo/bar/baz'
<yorickpeterse> (it must be a symbol)
robbyoconnor has joined #ruby-lang
diegoviola has quit [Ping timeout: 246 seconds]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
letenje has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
centrx has joined #ruby-lang
banister has quit [Read error: Connection reset by peer]
banister_ has joined #ruby-lang
banister_ has quit [Max SendQ exceeded]
<yell0wgh0st> yorickpeterse: you’re right but I Jekyll has
<yell0wgh0st> no jekyll i mean Liquid
yfeldblum has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
<yell0wgh0st> It should work :X
<yell0wgh0st> actually i am using liquid template language instead of erb
Lewix has joined #ruby-lang
<yorickpeterse> erb was just an example
<yorickpeterse> Perhaps your file names are not what Liquid expects?
<yorickpeterse> (or extensions)
<yorickpeterse> I haven't touched Liquid in years so I'm not really familiar with it anymore
abhi_rsd has joined #ruby-lang
<yell0wgh0st> That says the error (so it looks like it works) but i triyed several type of name and it didn’t work, the correct name should be _template.liquid maybe wrong directory?
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
abhi_rsd has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby-lang
cap has joined #ruby-lang
diegoviola has joined #ruby-lang
futilegames has quit [Quit: futilegames]
toastynerd has joined #ruby-lang
enebo has joined #ruby-lang
cap has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
ecnalyr has quit [Remote host closed the connection]
FarlaTux has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
yell0wgh0st has joined #ruby-lang
kwd_ has quit [Quit: Sleeping now. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yatish27_ has quit [Remote host closed the connection]
dwknoxy has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
kek has joined #ruby-lang
t4nk683 has joined #ruby-lang
<t4nk683> What's the easiest way to get ["/foo", "/foo/bar", "/foo/bar/baz"] out of "/foo/bar/baz"?
banister has joined #ruby-lang
<t4nk683> I can build an array and repeatedly move the upper limit index and join them... but there must be a better way
arooni-mobile has joined #ruby-lang
AKASkip has quit [Ping timeout: 250 seconds]
<centrx> t4nk683, The Pathname module has a lot of useful things like this
rsl has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 260 seconds]
toastynerd has quit [Remote host closed the connection]
mnngfltg has joined #ruby-lang
RobertBirnie has joined #ruby-lang
<jhass> >> paths = []; "/foo/bar/baz".split("/").inject {|*items| paths << items.join("/"); paths.last }; paths # but use Pathname ^
<eval-in> jhass => ["/foo", "/foo/bar", "/foo/bar/baz"] (https://eval.in/180888)
RobertBirnie has quit [Client Quit]
x0f has quit [Ping timeout: 264 seconds]
abhi_rsd_ has joined #ruby-lang
x0f has joined #ruby-lang
<t4nk683> centrx: Awesome, thanks!
<t4nk683> I figured some module somewhere must have something better than this
yfeldblum has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
hellangel7 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
kek has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
NemesisD has joined #ruby-lang
marcofernandez has quit [Remote host closed the connection]
ocdmw has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 264 seconds]
t4nk683 has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
NemesisD has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby-lang
vinhbachsy has joined #ruby-lang
__butch__ has joined #ruby-lang
cap has joined #ruby-lang
rahul_j has joined #ruby-lang
lun__ has joined #ruby-lang
bougyman has quit [*.net *.split]
lun_ has quit [Ping timeout: 260 seconds]
cap has quit [Ping timeout: 255 seconds]
rcvalle has joined #ruby-lang
nertzy has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
bougyman has joined #ruby-lang
Squarepy has joined #ruby-lang
toastynerd has joined #ruby-lang
postmodern has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
jimbach has quit [Ping timeout: 240 seconds]
rippa has joined #ruby-lang
RobertBirnie has joined #ruby-lang
mkaesz has quit [Ping timeout: 255 seconds]
Miphix has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
koderok has joined #ruby-lang
koderok has quit [Client Quit]
wallerdev has joined #ruby-lang
michaeldeol has joined #ruby-lang
charliesome has quit [Quit: zzz]
michaeldeol has quit [Client Quit]
solars has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby-lang
michaeldeol has joined #ruby-lang
bantic has joined #ruby-lang
kevinem has joined #ruby-lang
skade has joined #ruby-lang
charliesome has joined #ruby-lang
mistym has quit [Remote host closed the connection]
vikasyaligar has joined #ruby-lang
qba73 has quit []
DEac-_ has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
jimbach has joined #ruby-lang
hellangel7 has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Ping timeout: 260 seconds]
apt-get__ has joined #ruby-lang
Xzyx987X has joined #ruby-lang
apt-get_ has quit [Ping timeout: 245 seconds]
arBmind has quit [Quit: Leaving.]
havenwood has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
mnngfltg has quit [Quit: Ex-Chat]
mistym has joined #ruby-lang
nofxx_ has quit [Ping timeout: 240 seconds]
bin7me has joined #ruby-lang
bin7me has quit [Client Quit]
bin7me has joined #ruby-lang
nertzy2 has joined #ruby-lang
LBo has quit [Ping timeout: 246 seconds]
marr123 has joined #ruby-lang
rcvalle_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
rcvalle has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 246 seconds]
rcvalle_ is now known as rcvalle
hellangel7 has joined #ruby-lang
charliesome has quit [Quit: zzz]
nertzy has quit [Ping timeout: 246 seconds]
LBo has joined #ruby-lang
LBo is now known as Guest78380
djbkd has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
bantic has quit [Quit: bantic]
CaptainJet has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
emmesswhy has joined #ruby-lang
wallerdev has joined #ruby-lang
emmesswhy has quit [Read error: Connection reset by peer]
Xzyx987X has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby-lang
emmesswhy has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
emmesswhy has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
bin7me has quit [Read error: Connection reset by peer]
ecnalyr has joined #ruby-lang
_djbkd has joined #ruby-lang
bovi has joined #ruby-lang
alekst has joined #ruby-lang
djbkd has quit [Ping timeout: 246 seconds]
bovi has quit [Client Quit]
tbuehlmann has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
ecnalyr has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
ecnalyr has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
jsodini has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
lun__ has quit []
brothmars has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
yell0wgh0st has joined #ruby-lang
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
abhi_rsd_ has quit [Ping timeout: 260 seconds]
bsvineeth has joined #ruby-lang
abhi_rsd has joined #ruby-lang
cap has joined #ruby-lang
t4nk797 has joined #ruby-lang
havenwood has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
jbardin has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
t4nk797 has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby-lang
rahul_j has joined #ruby-lang
sepp2k has joined #ruby-lang
rahul_j has quit [Client Quit]
vikasyaligar has quit []
futilegames has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
charliesome has joined #ruby-lang
brothmars has joined #ruby-lang
MichD is now known as michd
kevinem has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
omosoj has joined #ruby-lang
Lewix has quit [Ping timeout: 272 seconds]
FarlaTux has quit [Quit: Leaving]
bantic has joined #ruby-lang
mikecmpbll has joined #ruby-lang
pr0ton_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
Dusty_ has quit [Ping timeout: 255 seconds]
marr123 has quit []
skade has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby-lang
yfeldblum has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
Lewix has joined #ruby-lang
brothmars has quit [Ping timeout: 260 seconds]
abhi_rsd has quit [Ping timeout: 272 seconds]
AKASkip has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
michd is now known as MichD
cmisenas has quit [Quit: cmisenas]
djbkd has joined #ruby-lang
stamina has quit [Ping timeout: 245 seconds]
pr0ton_ has quit [Quit: pr0ton_]
clauswitt has joined #ruby-lang
robbyoconnor has joined #ruby-lang
nofxx_ has joined #ruby-lang
jbardin has quit [Quit: jbardin]
csaunders has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
omosoj has quit [Ping timeout: 240 seconds]
DEac- has quit [Ping timeout: 244 seconds]
symm- has quit [Ping timeout: 245 seconds]
pr0ton_ has joined #ruby-lang
pr0ton_ has quit [Client Quit]
skade has joined #ruby-lang
cmisenas has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
cap has quit []
saarinen has quit [Quit: saarinen]
WilfredTheGreat has joined #ruby-lang
saarinen has joined #ruby-lang
toastynerd has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
csaunders has quit [Quit: Textual IRC Client: www.textualapp.com]
momomomomo has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
toastynerd has joined #ruby-lang
emmesswhy has joined #ruby-lang
WilfredTheGreat has quit [Read error: Connection reset by peer]
Meta5 has joined #ruby-lang
WilfredTheGreat has joined #ruby-lang
t4nk385 has joined #ruby-lang
<t4nk385> Newbie here! How do puts/print a blank line?
<_dyrim> Just `puts`
<_dyrim> Or `puts ""`
<t4nk385> Same for print?
<jhass> t4nk385: try
<jhass> t4nk385: you can also append an extra \n to the previous puts/print: puts "Hey\n\n"
DEac- has joined #ruby-lang
<centrx> t4nk385, Use "irb" (or pry) to test things in a responsive Ruby console
<t4nk385> Thank you
stamina has joined #ruby-lang
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<t4nk385> Can I make my program not create a newline after puts?
Meta5 has quit [Client Quit]
<t4nk385> puts "What is your name?"
<jhass> use print
<t4nk385> name = gets.chomp
<t4nk385> Nice!
sharpmachine has joined #ruby-lang
Meta5 has joined #ruby-lang
brothmars has joined #ruby-lang
loincloth has joined #ruby-lang
Meta5 has quit [Client Quit]
vinhbachsy has quit []
omosoj has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yfeldblu_ has joined #ruby-lang
WilfredTheGreat has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
yfeldblum has quit [Ping timeout: 240 seconds]
omosoj has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby-lang
t4nk385 has quit [Quit: Page closed]
omosoj has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
WilfredTheGreat has joined #ruby-lang
HerrYasen is now known as valeri_ufo
WilfredTheGreat has quit [Read error: Connection reset by peer]
diegoviola has quit [Ping timeout: 245 seconds]
relix has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
WilfredTheGreat has joined #ruby-lang
DEac- has quit [Ping timeout: 260 seconds]
frank_o has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
momomomomo_ has joined #ruby-lang
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
yfeldblum has joined #ruby-lang
_ht has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
ecnalyr_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
skade has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
henrikhodne has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
canton7 has quit [Ping timeout: 240 seconds]
henrikhodne has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
canton7 has joined #ruby-lang
WilfredTheGreat has quit [Read error: Connection reset by peer]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
entitydc has joined #ruby-lang
DEac- has joined #ruby-lang
skade has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
<entitydc> hey all - I'm trying to write a multiline regular expression that will separate a text file after the last instance of the lines starting with (Seat \d*) -- example: https://gist.github.com/anonymous/260e2e141a595bdbbc11
skade has joined #ruby-lang
<entitydc> anyone willing to lend a hand? Been trying to use not match operators but not having much luck
<centrx> entitydc, I would parse each line individually
<centrx> but it does look like the basic distinction is satisfying /Seat \d+:/
<centrx> Unless a user can set his name to "Seat 1" or "Seat 55"
<centrx> or with the colon in his name
<entitydc> yeah -- I don't *think* they can, but I'm still looking for edge cases
WilfredTheGreat has joined #ruby-lang
<entitydc> I think you're right about parsing each line individually -- was hoping to just chunk the file into multiple sections (following poker conventions, preflop/flop/turn/river) based on regex matching, but I think something a bit more involved is necessary
WilfredTheGreat has quit [Read error: Connection reset by peer]
<centrx> entitydc, Parsing line by line might make it simpler in the end, it certainly keeps the regexes simpler
<entitydc> thanks. time to give that a shot. this is barely readable as is.
omosoj has quit [Ping timeout: 246 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joelroa has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
Lewix has joined #ruby-lang
<apeiros> entitydc: before, after = *data.match(/(.*^Seat \d+[^\n]*\n)(.*)/m).captures
entitydc has quit [Ping timeout: 246 seconds]
momomomomo_ has joined #ruby-lang
Lewix has quit [Ping timeout: 244 seconds]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
thiagoborges has joined #ruby-lang
wallerdev has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fusillicode has quit [Ping timeout: 260 seconds]
MichD is now known as michd
torrieri has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
centrx has quit [Quit: Mead error: Connection reset by beer]
michaeldeol has joined #ruby-lang
miqui has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
ur5us has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
ecnalyr_ has quit [Remote host closed the connection]
yell0wgh0st has joined #ruby-lang
yfeldblum has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
futilegames has quit [Quit: futilegames]
yfeldblum has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
AKASkip has quit [Ping timeout: 246 seconds]
emmesswhy has joined #ruby-lang
robbyoconnor has joined #ruby-lang
saarinen has quit [Quit: saarinen]
jsodini has quit [Ping timeout: 240 seconds]
kuanding has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Client Quit]
loincloth has quit [Remote host closed the connection]
malconis has quit [Ping timeout: 245 seconds]
mcantor has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
<mcantor> When I do conn = IO.popen("ssh remoteserver 'bash'", 'w+'); conn.sync = true; conn.write('echo "Hey"'); conn.gets("\n"); why does it hang?
<mcantor> It hangs even if I do conn.flush before the gets
kuanding has joined #ruby-lang
loincloth has joined #ruby-lang
<chris2> write a newline?
<mcantor> chris2: Echo does that
<chris2> .write doesnt
<chris2> use .puts or \n
<chris2> and consider expect.rb or net::ssh ;)
<mcantor> I'm going as far as is practical without introducing the Net::SSH dependency first
<mcantor> Oh wait. IO.popen("ssh remoteserver", 'w+') without the 'bash' part seems to be working
jgpawletko has quit [Quit: jgpawletko]
<mcantor> I have no idea what "Pseudo-terminal will not be allocated because stdin is not a terminal." means
<chris2> well, you didnt use expect.rb ;)
<chris2> so there is no pty
<chris2> still, the command is not executed on remote side
cmisenas has quit [Quit: cmisenas]
<mcantor> chris2: should I be following along with this? http://ruby-doc.org/stdlib-2.1.2/libdoc/pty/rdoc/PTY.html
<chris2> you could use that
<chris2> you dont need a pty for your use case so far, tho
yfeldblum has joined #ruby-lang
<mcantor> what would cause me to need a pty?
toertore has quit [Ping timeout: 245 seconds]
<chris2> running curses applications e.g.
<chris2> stuff that wants to figure how how many rows/columns there are
<chris2> processes that want to become terminal leader
stamina has quit [Quit: WeeChat 0.4.3]
<mcantor> chris2: Not sure if I'm using expect right... c = IO.popen("ssh autarch", "w+"); c.sync = true; c.expect('mcantor@')[0]
<mcantor> It's just hanging
<chris2> you need PTY.open
<chris2> for expect you need PTY as well ;)
<mcantor> chris2: Hmm. All I want is a dumb bidirectional conversation between Ruby and the SSH process. Read, write, read, write.
<mcantor> don't care if it's blocking
ecnalyr has joined #ruby-lang
<chris2> you can use popen
<chris2> but you need to terminate your statements with a newline :)
<mcantor> chris2: thanks! I think that probably did the trick. i'm still not sure how to read all available output without blocking yet
<mcantor> err hanging
<chris2> read_nonblock
<chris2> perhaps .nonblock = true; read even
toertore has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
<mcantor> whoa weird, Ruby doesn't seem to be able to read my terminal prompt... maybe cause of the color escapes?
<chris2> .readpartial actually
<chris2> io = IO.popen("echo -n foo; sleep 2"); io.readpartial(1000)
<chris2> nonblock is for EINTR stuff
ecnalyr has quit [Remote host closed the connection]
<mcantor> chris2: nailed it
<mcantor> c = IO.popen("ssh autarch", "w+"); c.sync = true; c.readpartial(1000); c.puts("echo 'TEST'"); result = c.readpartial(1000)
<mcantor> is there a way to get rid fo that pesky pseudo-terminal warning?
yfeldblum has quit [Remote host closed the connection]
<chris2> i cant reproduce that
<chris2> but i use zsh :P
shinnya has joined #ruby-lang
<mcantor> chris2: apparently you can do 'ssh -t -t' to force allocation, but that changes the read behavior interestingly hmmm
<chris2> -t makes a pty on the other side
shinnya has quit [Read error: No route to host]
<mcantor> huh, ok...so if I force a pty, then my readpartial pulls in everything, including my shell prompt and color escapes
<mcantor> but if I don't, then it only reads a subset of the output that doesn't include whatever I "type", nor does it include the prompt itself
jimbach has quit [Remote host closed the connection]
malconis has joined #ruby-lang
shinnya has joined #ruby-lang
yfeldblum has joined #ruby-lang
tkuchiki has joined #ruby-lang
malconis has quit [Ping timeout: 240 seconds]
sMecKs has joined #ruby-lang
araujo has quit [Read error: Connection reset by peer]
<eam> mcantor: what are you trying to do?
skade_ has joined #ruby-lang
araujo has joined #ruby-lang
skade has quit [Ping timeout: 264 seconds]
skade_ has quit [Client Quit]
jimbach has joined #ruby-lang
alexju has quit [Remote host closed the connection]
cmhobbs has quit [Remote host closed the connection]
torrieri has quit [Quit: Leaving...]
danijoo has quit [Ping timeout: 250 seconds]
GarethAdams has quit [Ping timeout: 240 seconds]
My_Hearing has joined #ruby-lang
My_Hearing has joined #ruby-lang
Mon_Ouie has quit [Disconnected by services]
My_Hearing is now known as Mon_Ouie
GarethAdams has joined #ruby-lang
Dusty_ has joined #ruby-lang
shinnya has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
brothmars has quit [Ping timeout: 272 seconds]
polymetric has quit [Ping timeout: 255 seconds]
mcantor has quit [Quit: leaving]
thiagoborges has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby-lang
apt-get__ has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
bantic has quit [Quit: bantic]
devgiant has joined #ruby-lang
momomomomo has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
Hinkdogg__ has joined #ruby-lang
momomomomo has joined #ruby-lang
banister is now known as banisterfiend
lcdhoffman has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
gix has quit [Ping timeout: 244 seconds]
marr has joined #ruby-lang
Lewix has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
gix has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
charliesome has quit [Quit: zzz]
devgiant_ has joined #ruby-lang
devgiant has quit [Ping timeout: 264 seconds]
thiagoborges has joined #ruby-lang
_elia has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
gix has quit [Ping timeout: 272 seconds]
jimbach has quit [Ping timeout: 240 seconds]
brothmars has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
gix has joined #ruby-lang
jimbach has joined #ruby-lang
sharpmachine has quit [Read error: Connection reset by peer]
sharpmachine has joined #ruby-lang
LBo has joined #ruby-lang
Guest78380 has quit [Read error: Connection reset by peer]
LBo is now known as Guest55297
devgiant_ has quit [Quit: Leaving]
Hinkdogg__ has quit [Quit: Computer has gone to sleep.]
dorei has joined #ruby-lang
DivineEn1ity has joined #ruby-lang
Guest55297 has quit [Read error: Connection reset by peer]
knu has quit [Ping timeout: 246 seconds]
knu has joined #ruby-lang
LeonBo has joined #ruby-lang
DivineEntity has quit [Ping timeout: 246 seconds]
bsvineeth has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
dynamism1 has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
surrounder has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
knu has quit [Ping timeout: 246 seconds]
LeonBo has quit [Ping timeout: 246 seconds]
knu has joined #ruby-lang
LeonBo has joined #ruby-lang
sharpmachine has quit [Remote host closed the connection]
Hinkdogg__ has joined #ruby-lang
jhass is now known as jhass|off
dynamism1 has quit [Ping timeout: 240 seconds]
surrounder has joined #ruby-lang
saarinen has joined #ruby-lang
robbyoconnor has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]