jhass[m] 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
moldorcoder7 has quit [Ping timeout: 246 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
markong has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 248 seconds]
roshanavand has quit [Remote host closed the connection]
davidw_ has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
frankd_ is now known as FrankD
cocalero_ has joined #ruby
mooff has quit [Remote host closed the connection]
mooff has joined #ruby
mooff has quit [Remote host closed the connection]
mooff has joined #ruby
mooff has quit [Remote host closed the connection]
jpn has joined #ruby
jpn has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
mixfix41 has joined #ruby
mixfix41 has quit [Remote host closed the connection]
cocalero_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mixfix41 has joined #ruby
davidw_ has quit [Ping timeout: 246 seconds]
SteveR has joined #ruby
Wra1th has joined #ruby
SteveR has quit [Ping timeout: 252 seconds]
monoliths2 has joined #ruby
testing1233 has joined #ruby
Wra1th has left #ruby [#ruby]
Wra1th has joined #ruby
Wra1th has quit [Client Quit]
Wra1th has joined #ruby
Wra1th has left #ruby [#ruby]
SteveR has joined #ruby
monoliths2 has quit [Ping timeout: 272 seconds]
Wra1th has joined #ruby
Wra1th has quit [Quit: wra1th]
libsys has quit [Ping timeout: 272 seconds]
Wra1th has joined #ruby
Wra1th has left #ruby [#ruby]
Wra1th has joined #ruby
Wra1th has left #ruby [#ruby]
testing1233 has quit [Quit: Client closed]
<tsujp> What do you seasoned (or not so seasoned) Rubyist think of Crystal?
jpn has joined #ruby
jpn has quit [Ping timeout: 246 seconds]
titibandit has joined #ruby
SteveR has quit [Quit: Client closed]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
<ox1eef_> i know of a few ruby programmers who like it, some of them in this channel, and i know of others who don't - so as to be expected, I guess :)
aeris has quit [Ping timeout: 268 seconds]
aeris has joined #ruby
ur5us has quit [Ping timeout: 272 seconds]
_ht has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
s-liao-2000 has quit [Quit: Client closed]
libsys has joined #ruby
titibandit has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: WeeChat 3.5]
gr33n7007h has joined #ruby
Sankalp has quit [Ping timeout: 255 seconds]
Sankalp has joined #ruby
teclator has joined #ruby
ur5us has joined #ruby
jpn has joined #ruby
mixfix41 has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 246 seconds]
<tsujp> Sounds about par for the course haha
gr33n7007h has quit [Quit: WeeChat 3.5]
gr33n7007h has joined #ruby
dionysus69 has joined #ruby
Rounin has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
Ziyan has quit [Ping timeout: 246 seconds]
Ziyan has joined #ruby
jpn has joined #ruby
Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
s-liao-2000 has joined #ruby
jpn has quit [Quit: leaving]
jpn has joined #ruby
sympt9 has joined #ruby
sympt has quit [Ping timeout: 256 seconds]
sympt9 is now known as sympt
dionysus69 has quit [Ping timeout: 248 seconds]
jhass has quit [Ping timeout: 272 seconds]
dionysus69 has joined #ruby
Ziyan has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
jpn has quit [Quit: Lost terminal]
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 248 seconds]
jpn has joined #ruby
jpn has quit [Quit: Lost terminal]
jpn has joined #ruby
s-liao-2000 has quit [Quit: Client closed]
s-liao-2000 has joined #ruby
<rapha> morning all
<rapha> is there a way to put the entirety of https://gist.github.com/sixtyfive/41d6d58d36678bb500c3ad47c2d004e2 into a single line?
<rapha> (while still using #sample, that is, no cheating)
<rapha> oh, wait, i think i've got it: https://gist.github.com/sixtyfive/5721a27e91f4467e94c32d6becea6c83 ... bit long but works
s-liao-2000 has quit [Quit: Client closed]
jpn has quit [Ping timeout: 246 seconds]
jhass has joined #ruby
libsys has quit [Ping timeout: 255 seconds]
Ziyan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
dostoyevsky2 has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
maufa has joined #ruby
<maufa> oxleef
<maufa> oxleef_
protektwar has quit [Ping timeout: 255 seconds]
<maufa> ox1eef
<maufa> ox1eef_
jhass has quit [Ping timeout: 268 seconds]
markong has joined #ruby
maufa has quit [Quit: Quit]
jhass has joined #ruby
dionysus69 has joined #ruby
dostoyevsky2 has joined #ruby
frankd_ has joined #ruby
FrankD has quit [Killed (NickServ (GHOST command used by frankd_!~frankd@69.206.27.15))]
frankd_ is now known as FrankD
<rapha> ?
jpn has quit [Ping timeout: 248 seconds]
jpn has joined #ruby
ssh0732 has quit [Ping timeout: 268 seconds]
John_Ivan has quit [Remote host closed the connection]
John_Ivan has joined #ruby
moldorcoder7 has joined #ruby
gr33n7007h has quit [Ping timeout: 272 seconds]
<axisys> ox1eef_: $ ruby -S pry
<axisys> ruby: No such file or directory -- pry (LoadError)
Ziyan has joined #ruby
szkl has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
joshcom has joined #ruby
s-liao-2000 has joined #ruby
joshcom has quit [Ping timeout: 268 seconds]
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
<ox1eef_> rapha: i asked them to come here after they opened a GH issue asking for help to learn ruby.
<ox1eef_> axisys: what does 'gem env' say?
protektwar has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
davidw_ has joined #ruby
<rapha> oh, i see :)
<rapha> axisys: if the installation worked you can also just type 'pry'
<ox1eef_> that does not seem to work. i thought maybe pry removed the executable in a big refactor but doesnt look to be the case.
<ox1eef_> probably an environment issue.
Ziyan has joined #ruby
Ziyan_ has quit [Ping timeout: 240 seconds]
<rapha> works fine here even after removing and installing again
<rapha> are they using rbenv or rvm or so?
<ox1eef_> not sure. i think rbenv requires running a rehash command to regenerate binstubs though. might be it.
s-liao-2000 has quit [Quit: Client closed]
dionysus69 has quit [Ping timeout: 255 seconds]
TomyWork has joined #ruby
dlsproject has joined #ruby
dionysus69 has joined #ruby
protektwar has quit [Ping timeout: 268 seconds]
Ziyan has quit [Ping timeout: 246 seconds]
Ziyan has joined #ruby
dlsproject has quit [Quit: Client closed]
Ziyan has quit [Ping timeout: 244 seconds]
<axisys> ox1eef_: https://dpaste.org/BQ7dO
Ziyan has joined #ruby
<ox1eef_> what's in /opt/homebrew/lib/ruby/gems/3.1.0/bin
<axisys> ox1eef_: pry is in there
<axisys> $ ls -al /opt/homebrew/lib/ruby/gems/3.1.0/bin/pry
<axisys> -rwxr-xr-x 1 axisys admin 539 Jun 26 18:53 /opt/homebrew/lib/ruby/gems/3.1.0/bin/pry
<axisys> I guess I will add it to the path
<axisys> $ /opt/homebrew/lib/ruby/gems/3.1.0/bin/pry
<axisys> [1] pry(main)>
<ox1eef_> yeah, add to $PATH and should work
<axisys> ox1eef_: thanks
<ox1eef_> welcome
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
John_Ivan is now known as Wolff
mooff has joined #ruby
Ziyan has quit [Ping timeout: 268 seconds]
mooff has quit [Remote host closed the connection]
Ziyan has joined #ruby
mooff has joined #ruby
twosuns has joined #ruby
markong has quit [Ping timeout: 276 seconds]
twosuns has quit [Quit: Leaving]
Ziyan has quit [Ping timeout: 248 seconds]
Ziyan has joined #ruby
TomyWork has quit [Quit: Leaving]
teclator has quit [Ping timeout: 255 seconds]
sympt5 has joined #ruby
sympt has quit [Ping timeout: 240 seconds]
sympt5 is now known as sympt
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
jpn has quit [Ping timeout: 240 seconds]
Ziyan has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
jpn has joined #ruby
davidw_ has quit [Ping timeout: 246 seconds]
protektwar has quit [Ping timeout: 268 seconds]
Ziyan has quit [Ping timeout: 246 seconds]
jpn has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
_ht has quit [Remote host closed the connection]
libsys has joined #ruby
jpn has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
bidumcris has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
<rapha> isn't there a way to bring something Digest::MD5's hexdigest method into local scope, like Rake does with FileUtils? i remember something about "using" but that's not the one i'm looking for...
<adam12> rapha: Why?
<adam12> I don't think there's anything special in Digest to make this work, but maybe we can see what you're doing.
<adam12> >> def hexdigest(value)= Digest::MD5.hexdigest(value); hexdigest("foobar")
<adam12> Rubybot is awol I guess.
bidumcris has quit [Ping timeout: 252 seconds]
<rapha> hmm
<rapha> adam12: i only tried: import digest; using Digest::MD5 ... to then be able to say hexdigest('abc')
<leah2> what language is that
<rapha> but the second line already doesn't work. but i do know rake does something like this with FileUtils, because you can just mkdir_p, etc. in there
<rapha> leah2: 'using' is the wrong thing and i know that. i'm trying to remember the right thing.
<leah2> import isnt ruby already :p
<rapha> oh good lord
<rapha> too much python at work, and now back to ruby at home, so sorry y'all
<rapha> require ofc
<adam12> rapha: I'd just define a method that calls it for you.
<adam12> rapha: The reason Fileutils works is it is a module that extends itself.
<rapha> and maybe i was thinking of python's "from foo import blah"
<rapha> oh alright
<adam12> rapha: Digest::MD5 doesn't work the same way. It's a class.
<rapha> but then 'using' was the correct one
<adam12> My example uses the new Ruby 3.? feature that defines a 1 line method.
<rapha> i'll content myself with having learned a bit of new (and _new_, too) ruby syntax today :)
<havenwood> rapha: You can do an `include Digest`, since Digest is a module.
<rapha> aha! include! that's the other one!
<havenwood> rapha: After you `include Digest` you can use `MD5.hexdigest` directly.
jpn has quit [Ping timeout: 256 seconds]
<rapha> that does already make it a bit short
<rapha> +er
<leah2> kinda silly one can't include a class when a class is a module
<rapha> maybe some technical reason for it?
<leah2> probably wont do the right thing in most cases
<rapha> hmm
<rapha> ok, i have another question
<rapha> x = 'hello'; (puts 'yeah' if x) and puts x
<rapha> why does that only output yeah and not hello as well?
<leah2> puts returns nil
<rapha> aha
<rapha> so, [1,2,3].each{|i| puts i} and puts "that's all" works because a block returns non-nil?
<leah2> each returns the object i think
<rapha> which in this case is an Array, not NilClass
<leah2> yes
davidw_ has joined #ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
jpn has joined #ruby
ur5us has joined #ruby
reset has quit [Ping timeout: 248 seconds]
michigan has joined #ruby
siery has quit [Ping timeout: 255 seconds]
reset has joined #ruby
Rounin has quit [Ping timeout: 256 seconds]
jpn has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 268 seconds]
kwerle has joined #ruby
<kwerle> I would like to print a hash {foo: :bar} such that it prints out {foo: :bar} and not something with "'s or =>.  Is there already an easy way to do that?  (as you can imagine, searching for this is a nightmare)
<kwerle> (ruby 2.7)
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
reset has joined #ruby
markong has joined #ruby
Wra1th has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
gcd has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 248 seconds]
howdoi has joined #ruby