orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bl4ckthor has quit [Ping timeout: 240 seconds]
jamees has joined #ruby
s2013 has joined #ruby
_nick_ has joined #ruby
alexherbo2 has quit [Ping timeout: 265 seconds]
_nick_ has quit [Remote host closed the connection]
_nick_ has joined #ruby
_nick_ has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
_nick_ has joined #ruby
_nick_ has quit [Remote host closed the connection]
_nick_ has joined #ruby
jla has quit [Ping timeout: 252 seconds]
_nick_ has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
_nick_ has joined #ruby
_nick_ has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
_nick_ has joined #ruby
_nick_ has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
_nick_ has joined #ruby
jla has joined #ruby
_nick_ has quit [Remote host closed the connection]
_nick_ has joined #ruby
__nick__ has joined #ruby
howdoi has joined #ruby
Rudd0^ has joined #ruby
Rudd0 has quit [Ping timeout: 260 seconds]
User4588 has quit [Remote host closed the connection]
User4588 has joined #ruby
alexherbo2 has joined #ruby
<User4588>
Hi, with IO::foreach how do you keep an index for each lines?
<konsolebox>
Using with_index probably.
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
<User4588>
konsolebox nicely done how does it works under the hood, I saw IO::foreach returns an array of string?
<adam12>
User4588: You can chain Enumerable methods, so it would be `foreach.with_index do |line, index|`
<User4588>
adam12 Thanks I answered myself my question too
<User4588>
:)
<adam12>
User4588: Cool.
vondruch has quit [Read error: Connection reset by peer]
__nick__ has quit [Remote host closed the connection]
_nick_ has quit [Remote host closed the connection]
jla has quit [Ping timeout: 240 seconds]
__nick__ has joined #ruby
_nick_ has joined #ruby
alexherbo2 has quit [Ping timeout: 268 seconds]
Rudd0^ has quit [Ping timeout: 268 seconds]
cer-0 has quit [Quit: leaving]
alexherbo2 has joined #ruby
wald0 has joined #ruby
jess has quit []
jamees has quit [Quit: Connection closed]
jla has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
ideentwickler has quit [Ping timeout: 268 seconds]
ideentwickler has joined #ruby
jenrzzz has joined #ruby
ideentwickler has quit [Ping timeout: 246 seconds]
lucasb has joined #ruby
ideentwickler has joined #ruby
jla has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
evdubs__ is now known as evdubs
mangold has joined #ruby
pyra has joined #ruby
SpacePlod has joined #ruby
Guest86959 has joined #ruby
mangold has quit [Ping timeout: 265 seconds]
tpanarch1st has joined #ruby
<SpacePlod>
I'm trying to build the progit books and the first step in the run "bundle install". When I do that, I get this: https://gist.github.com/bgrundy/e7b5559560890565717f964471b0ac8d It seems to indicate a version problem with ruby, but the version is 3.0.1p64 (version output at the bottom of the paste). All the required gems are installed. I'm not familiar with ruby/gems. Am I missing something?
<SpacePlod>
*is to run "bundle install"
mangold has joined #ruby
s2013 has quit [Remote host closed the connection]
voker57 has joined #ruby
<weaksauce>
SpacePlod use a ruby 2
<adam12>
SpacePlod: As mentioned, you need a Ruby 2 version. Ruby 3 is very recent (~ 5 months) and not all gems have support for it yet.
cd has joined #ruby
MalkbabY_ has joined #ruby
duderonomy has joined #ruby
<_rg>
does ruby3 have breaking changes? i didnt notice.
<SpacePlod>
Thanks. I read up a little and just installed rbenv and then set the system ruby version to 2.7.3. I may very well be doing it wrong, but I still get the same errors.
<SpacePlod>
rbenv versions returns system/2.7.3 and rbenv local in the project directory returns system.
<_rg>
did you update your .bashrc/.zshrc - it sounds like the old ruby is still winning. ruby -v should show 2.7.3
<_rg>
you'll need to install bundler for 2.7 as well, and iirc you need to run rbenv rehash to get updated binstubs.
gmcintire has quit [*.net *.split]
Nightmare has quit [*.net *.split]
salvor- has quit [*.net *.split]
seb___ has quit [*.net *.split]
seb_ has joined #ruby
gmcintire has joined #ruby
Nightmare has joined #ruby
salvor has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
<SpacePlod>
Ah. Thanks. didn't do any of that.
<adam12>
_rg: Keyword argument handling is no longer a warning as in 2.7.
evdubs has quit [Ping timeout: 240 seconds]
mangold has quit [Ping timeout: 265 seconds]
<SpacePlod>
Hmmm... So I edited my bash config, restarted a shell and set rbenv shell to 2.7.3 - now rbenv shell returns "system" and rbenv versions still shows "system/2.7.3". But ruby -v still returns 3.0.1... I using rbenv wrong somehow.
<_rg>
adam12: thanks
<SpacePlod>
...or misunderstanding it's purpose.
<_rg>
yeah
<_rg>
there's a missing piece in there somewhere
<_rg>
i don't use rbenv to know much of its particulars
<weaksauce>
i'd use asdf if i were to start now but i use chruby usually and it works well / is simple
<_rg>
im also using chruby
* SpacePlod
googles chruby
mangold has joined #ruby
mangold has quit [Max SendQ exceeded]
mangold has joined #ruby
<_rg>
chruby is pretty simple and if you know where ruby 2.7 is installed, you can point it to that directory to avoid recompiling again. i recommend taking a bit of time to read through the instructions because you usually have to update a shell rc file at least.
<nakilon>
as I understand the chruby is only a switcher between rubies
<_rg>
yep
<nakilon>
rbenv includes installer/compiler
<_rg>
yeah, there's trade offs between them all. `rbenv rehash` is a bit annoying.
<weaksauce>
yeah chruby with ruby-install is what i use
<nakilon>
today I git cloned my code to a server, did "rbenv install" and it installed the version that was specifried in .ruby-version file