adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://libera.irclog.whitequark.org/ruby/
pvalenta has quit [Quit: ZNC - https://znc.in]
pvalenta has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
jdmark has quit [Remote host closed the connection]
jdmark has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 256 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
peirik__ has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
boey89 has quit [Quit: WeeChat 2.8]
grokify has joined #ruby
markong has quit [Ping timeout: 256 seconds]
aesthetikx has quit [Quit: WeeChat 3.2]
wand has quit [Ping timeout: 255 seconds]
wand has joined #ruby
peirik__ has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
wand has quit [Remote host closed the connection]
Aminda has quit [Write error: Connection reset by peer]
Aminda has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
peirik__ has quit [Ping timeout: 256 seconds]
wand has joined #ruby
wand has quit [Remote host closed the connection]
wand has joined #ruby
cartdrige has joined #ruby
nemesit has quit [Quit: bye]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Rounin has quit [Ping timeout: 268 seconds]
nemesit has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
aesthetikx has joined #ruby
peirik__ has joined #ruby
duderonomy has joined #ruby
ur5us has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
donofrio_ has joined #ruby
donofrio has quit [Ping timeout: 256 seconds]
peirik__ has quit [Ping timeout: 256 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 268 seconds]
thad_the_man has quit [Ping timeout: 260 seconds]
aeris has quit [Remote host closed the connection]
_aeris_ has joined #ruby
reset has quit [Quit: reset]
dviola has quit [Quit: WeeChat 3.7.1]
peirik__ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peirik__ has quit [Ping timeout: 256 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vonter has quit [Ping timeout: 240 seconds]
grokify has joined #ruby
Vonter has joined #ruby
grokify has quit [Ping timeout: 256 seconds]
BigOnIII0 has joined #ruby
BigOnIII0 has quit [Quit: Client closed]
Vonter has quit [Ping timeout: 268 seconds]
Vonter has joined #ruby
m_antis has quit [Quit: ZNC - https://znc.in]
m_antis has joined #ruby
ur5us has joined #ruby
peirik__ has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
peirik__ has quit [Ping timeout: 256 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 256 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 268 seconds]
D_A_N has quit [Quit: leaving]
D_A_N has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 268 seconds]
D_A_N has quit [Quit: leaving]
Y05hito__ has joined #ruby
crax23 has quit [Ping timeout: 268 seconds]
peirik__ has joined #ruby
duderonomy has joined #ruby
walez has joined #ruby
sagax has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
duderonomy has quit [Remote host closed the connection]
duderonomy has joined #ruby
peirik__ has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
ur5us has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 256 seconds]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
alexherbo2 has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp- is now known as Sankalp
Y05hito__ has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
dionysus69 has quit [Client Quit]
alexherbo2 has joined #ruby
_ht has joined #ruby
cartdrige has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
peirik__ has joined #ruby
osXnut has quit [Remote host closed the connection]
___nick___ has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
johnsonrabbit has quit [Quit: Client closed]
Aminda has quit [Remote host closed the connection]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
peirik__ has quit [Ping timeout: 252 seconds]
jvalleroy has joined #ruby
Aminda has joined #ruby
duderonomy has quit [Remote host closed the connection]
duderonomy has joined #ruby
FullMetalStacker has joined #ruby
<FullMetalStacker> #style: I have been told, that it is considered good style to use Ruby's built in methods whenever possible instead of e.g. operators. for example to use .zero? instead of making some if statement with == 0, etc. Is this rule generally true?
<FullMetalStacker> For example which is the best practice of the following 2:
<FullMetalStacker> def array_diff(a, b)
<FullMetalStacker> a - b
<FullMetalStacker> end
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<FullMetalStacker> or this:
<FullMetalStacker> a.difference(b)
<FullMetalStacker> def array_diff(a, b)
<FullMetalStacker> end
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
grokify has joined #ruby
___nick___ has joined #ruby
grokify has quit [Ping timeout: 255 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
reset has joined #ruby
dviola has quit [Read error: Connection reset by peer]
<leftylink> well, difference doesnt exist, so I think answer has to be a given there
yella has joined #ruby
<leftylink> I think there is only one time when I'd ever use .zero? instead of == 0, and that's when I'm doing something like nums.select(&:zero?)
dviola has joined #ruby
<leftylink> however, I pretty much always use .nil? instead of == nil
<leftylink> I don't really have a reason. shorter?
<leftylink> that works for both of them, == 0 is four characters, and .zero? is six. == nil is six characters, and .nil? is four
<leftylink> er, .nil? is five, rather
_aeris_ has quit [Write error: Connection reset by peer]
wand has quit [Read error: Connection reset by peer]
_aeris_ has joined #ruby
<sam113101> leftylink: it does exist…
<FullMetalStacker> so it is just a matter of tast,e, there is no official style preference?
wand has joined #ruby
peirik__ has joined #ruby
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
wand has quit [Remote host closed the connection]
FullMetalStacker has quit [Remote host closed the connection]
FullMetalStacker has joined #ruby
wand has joined #ruby
infernix has joined #ruby
yella has quit [Remote host closed the connection]
walez has quit [Quit: Leaving]
peirik__ has quit [Ping timeout: 256 seconds]
grokify has joined #ruby
yella has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
goepsilongo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
otisolsen70 has joined #ruby
goepsilongo has joined #ruby
yella has quit [Remote host closed the connection]
D_A_N has joined #ruby
peirik__ has joined #ruby
peirik__ has quit [Ping timeout: 256 seconds]
peirik__ has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
peirik__ has quit [Ping timeout: 260 seconds]
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ruby
D_A_N has quit [Quit: leaving]
dionysus69 has joined #ruby
D_A_N_ has joined #ruby
grokify has joined #ruby
cartdrige has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 268 seconds]
teclator has joined #ruby
grokify has joined #ruby
finsternis has quit [Read error: Connection reset by peer]
alexherbo2 has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
markong has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 248 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
wand has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #ruby
grokify has joined #ruby
wand has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
grokify has joined #ruby
some14u has joined #ruby
FullMetalStacker has quit [Remote host closed the connection]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
ur5us has joined #ruby
<havenwood> sam113101: It doesn't exist for Integers, at least not out of the box. Arrays and Sets notably respond to difference but Numerics don't.
<havenwood> FullMetalStacker: Generally, give preference to a bare method call alone over one with arguments.
grokify has quit [Remote host closed the connection]
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 256 seconds]
desnudopenguino1 has quit [Ping timeout: 260 seconds]
ndim has joined #ruby
<ndim> I am trying to kind of revive an old octopress installation. It used to work with ruby < 2.0, so I am trying to nail down the bundle gem versions to something compatible.
<ndim> "~/.rbenv/versions/1.9.3-p551/bin/bundle install" ends up with "Gem::InstallError: ffi requires Ruby version >= 2.3.
<ndim> How can I find out which gem requires ffi? Gemfile does not list ffi.
<ndim> I might need to nail down whatever requires ffi to an earlier version which does not require an ffi requiring ruby >= 2.0
grokify has joined #ruby
markong has quit [Ping timeout: 260 seconds]
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
yella has joined #ruby
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reset has quit [Quit: reset]
<aesthetikx> ndim: is there a Gemfile.lock? that would have it
<ndim> There is not yet.
<aesthetikx> what happens if you run 'bundle lock', will that make a lockfile?
<ndim> I have found the gem requiring ffi by accident (compass 0.12 vs 1.0), but now the next issue appears, and I need to find what requires faraday-net_http.
<ndim> Trying that
<ndim> Could not find command "lock".
<aesthetikx> are you trying to get it running with 1.9.3 or are you trying 2.7
<aesthetikx> or 3
<aesthetikx> ruby version*
<ndim> ruby 1.9.3
<ndim> Everything else requires huge amount of updates.
<aesthetikx> I see, yeah
<aesthetikx> which bundler verison, out of curiosity
<aesthetikx> bundler --version
<ndim> I just want to get it up and running so I can do some A/B testing with the old octopress+custom stuff versus something new (jekyll+custom, hugo, etc. pp.)
<ndim> bundle --version gives 1.9.3, as newer bundler versions require newer ruby.
<ndim> Is there no "gem what-requires faraday-net_http" command?
<aesthetikx> well typically its just listed in the Gemfile.lock;
<aesthetikx> can you try gem update bundler and then bundle lock, it should be available at some point, trying to see when that was added
some14u has joined #ruby
some14u has quit [Client Quit]
grokify has quit [Remote host closed the connection]
<ndim> bundler 1.11.2, bundle lock, but Gemfile.lock lists the faraday package in the top level even though Gemfile does not mention faraday
<ndim> I do not really know what I am doing here.
<ndim> Adding faraday to Gemfile with a requirement of '< 0.10' is helpful, as it actually prints the dependency chain.
<ndim> So just guessing faraday '< 2.0', and a few more things install.
stirl has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
tirnanog has joined #ruby
grokify has joined #ruby
___nick___ has quit [Ping timeout: 260 seconds]
grokify has quit [Ping timeout: 260 seconds]
_ht has quit [Quit: _ht]
Na_Klar has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 260 seconds]
cartdrige has joined #ruby
cartdrige has quit [Client Quit]
crax23 has quit [Read error: Connection reset by peer]
cartdrige has joined #ruby
desnudopenguino has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
reset has joined #ruby
alexherbo2 has quit [Remote host closed the connection]
grokify has joined #ruby
markong has joined #ruby
grokify has quit [Remote host closed the connection]
joto has joined #ruby
grokify has joined #ruby
grokify has quit [Ping timeout: 240 seconds]
markong has quit [Remote host closed the connection]
white_magic has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
wand has quit [Ping timeout: 255 seconds]
otisolsen70 has quit [Quit: Leaving]
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
grokify has joined #ruby
grokify has quit [Remote host closed the connection]
grokify has joined #ruby
grokify has quit [Ping timeout: 256 seconds]
hrberg has quit [Ping timeout: 246 seconds]
hrberg has joined #ruby
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ruby
white_magic has quit [Quit: Client closed]
hrberg has quit [Ping timeout: 260 seconds]
grokify has joined #ruby
grokify has quit [Ping timeout: 256 seconds]
Na_Klar has left #ruby [https://quassel-irc.org - Komfortabler Chat. Überall. ]
hrberg has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]