havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview1: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has joined #ruby
ufi has quit [Quit: Leaving]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
caedmon has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
markong has quit [Ping timeout: 246 seconds]
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
hightower3 has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
hightower2 has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
diagnostics0 has joined #ruby
donofrio has joined #ruby
diagnostics0 has quit [Quit: diagnostics0]
diagnostics0 has joined #ruby
alexical has quit [Read error: Connection reset by peer]
caedmon has joined #ruby
diagnostics0 has quit [Ping timeout: 245 seconds]
caedmon has quit [Ping timeout: 245 seconds]
brokkoli_origin has quit [Ping timeout: 246 seconds]
brokkoli_origin has joined #ruby
anihil has joined #ruby
caedmon has joined #ruby
anihil has quit [Quit: WeeChat 3.8]
caedmon has quit [Ping timeout: 246 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
Sankalp has quit [Ping timeout: 246 seconds]
caedmon has joined #ruby
Sankalp has joined #ruby
duderonomy has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
_whitelogger has joined #ruby
graaff has joined #ruby
desnudopenguino has quit [Remote host closed the connection]
desnudopenguino has joined #ruby
_ht has joined #ruby
hololeap has quit [Quit: Bye]
hololeap has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
summerisle is now known as eof
grenierm has joined #ruby
Guest26nakilon has joined #ruby
<Guest26nakilon> thanks guys for those snippets; I guess my golfing knowledge is outdated
_ht has quit [Remote host closed the connection]
<Guest26nakilon> I've added examples to my gem "wsui"; two interactive (tic tac toe and calculator) and non-interactive (collatz conjecture checker); and released 0.0.0 for now
roadie has joined #ruby
brokkoli_origin has quit [Read error: Connection reset by peer]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
brokkoli_origin has joined #ruby
jvalleroy has joined #ruby
ollysmith has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
ollysmith has joined #ruby
mollyc has joined #ruby
Linux_Kerio has joined #ruby
Guest26nakilon has quit [Quit: Client closed]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
otisolsen70 has joined #ruby
TomyWork has joined #ruby
pvalenta has quit [Remote host closed the connection]
pvalenta has joined #ruby
pvalenta has quit [Changing host]
pvalenta has joined #ruby
otisolsen70 has quit [Quit: Leaving]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
MalusVulgaris has joined #ruby
roshanavand_ has joined #ruby
roshanavand has joined #ruby
mollyc has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
grenierm has quit [Ping timeout: 246 seconds]
<nona> hmm there's a gem which depends on "~> 2" of another gem, where it should probably depend on either "~> 2.2" or ">= 2" or ">= 2.2" instead. and it causes dependency conflicts with other gems. until the author responds to my ticket and pushes a new release to rubygems.org, is there any way i can help myself in the meantime?
<nona> hmm nevermind
<nona> i was stupid
<nona> and my problem is solved now
<nona> hope everyone's having a nice day :D
dalan038222 has joined #ruby
dalan03822 has quit [Ping timeout: 246 seconds]
dalan038222 is now known as dalan03822
tub20 has joined #ruby
MalusVulgaris has quit [Ping timeout: 246 seconds]
markong has joined #ruby
tub20 has quit [Ping timeout: 260 seconds]
brokkoli_origin has quit [Quit: (Leaving)]
brokkoli_origin has joined #ruby
markong has quit [Ping timeout: 245 seconds]
roshanavand_ has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hoot52 has joined #ruby
ultralan has joined #ruby
ultralan has quit [Remote host closed the connection]
passbe has joined #ruby
weaksauce has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
gr33n7007h has joined #ruby
Linux_Kerio has quit [Ping timeout: 246 seconds]
eron has joined #ruby
eron has quit [Ping timeout: 246 seconds]
caedmon has joined #ruby
markong has joined #ruby
_ht has joined #ruby
goldfish has joined #ruby
goldfish has quit [Client Quit]
r3m has quit [Quit: WeeChat 4.1.0-dev]
r3m has joined #ruby
caedmon has quit [Ping timeout: 245 seconds]
goldfish has joined #ruby
TomyWork has quit [Remote host closed the connection]
perrierjouet has quit [Quit: WeeChat 4.0.0]
eddof13 has joined #ruby
<roadie> :)
hoot52 has quit [Remote host closed the connection]
desnudopenguino1 has joined #ruby
brokkoli_origin has quit [Ping timeout: 252 seconds]
desnudopenguino has quit [Ping timeout: 245 seconds]
desnudopenguino1 is now known as desnudopenguino
brokkoli_origin has joined #ruby
<hightower3> Hey folks on Ruby 3.2.2, why would I get this error: ruby/lib/yaml.rb:4:in `require': cannot load such file -- psych (LoadError)
<hightower3> isn't psych one of builtin gems in that version of ruby?
<hightower3> Does it depend on some C lib or something?
ua_ has joined #ruby
Tempesta has quit [Quit: See ya!]
markong has quit [Ping timeout: 246 seconds]
<newton> hightower3, googling says you might be missing a libyaml(-dev) on your system. you'd need to install it and possibly reinstall ruby after
caedmon has joined #ruby
Tempesta has joined #ruby
lester29 has joined #ruby
<lester29> hey, is "gets&.strip" a good way to read striped string from user?
<adam12> lester29: Maybe you want `gets(chomp: true)`
<adam12> There's of course nothign really wrong with your solution either.
<lester29> how should I handle the possible strip call on the nil object?
<adam12> lester29: You're stripping all whitespace or just trailing?
<lester29> trailing
<adam12> Do you care about the newline?
<lester29> newline should be stripped too
<adam12> lester29: Ah I see. In that case, just use your solution.
<adam12> lester29: If it was just newlines, chomp: true would probably have been better.
<lester29> what should i do with possible strip call on the nil object?
<lester29> how should i handle the errors caused by it?
<lester29> should i bother about it?
roadie has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
<adam12> lester29: the lonely operator should cover you (&.)
<adam12> nil&.strip
<lester29> i see
<lester29> i evaluated this in the irb
<lester29> i have some little experience with python and i consider switching to ruby
<lester29> what do you think about python? i personally think that ruby has more elegant syntax than python
<lester29> i need simply a language for sysadmin
<adam12> lester29: I use python occasionally. I've been writing Ruby since like 2004 and understand it much better.
<lester29> how do you compare python with ruby?
<adam12> lester29: I find Python loops strange. Where Ruby puts the iterator at the beginning (books.each { |book|), Python seems to have it at the end which messes with my head.
<adam12> I'd rather write Ruby, IMHO.
<lester29> i'm going to start with the yukihiro matsumoto's book
<lester29> i have a printed 2008 edition from someone who left this book for me
<adam12> lester29: It's pretty old but I am sure there is a lot of carry-over to current Ruby. At least core primitives.
<lester29> so do you think is it a good idea to start learning ruby from this book?
<adam12> lester29: I think it wouldn't hurt, but beware that if you do, it's a book that's fairly out of date from current Ruby.
<hightower3> newton, I have it, that wasn't the issue. It turns out the issue was I was trying to add additional gems to compile/install into ruby's gem/bundled_gems file. But it didn't like that. If I removed my custom gems from that list, it worked. Thanks
<adam12> lester29: If you're familar with Python, a lot of stuff carries over to Ruby. You could probably get pretty far just rewriting something from Python to Ruby and approaching one piece at a time.
<adam12> hightower3: Interesting. What were you adding to bundled_gems out of curiosity?
<lester29> i can read this book as introduction and then read about changes in the current ruby
<lester29> it should be best approach as i understand
<hightower3> adam12, I tried adding these gems: awesome_print msgpack net-telnet redis redisearch-rb ruby-metrics sqlite3 typhoeus websocket
<hightower3> (with appropriate versions, of course, as required by the format of the file)
<adam12> hightower3: Are you automating something that would need this?
<hightower3> yes, automating a build of ruby with additional modules needed
<hightower3> you got advice how this should be done? I would find it inconvenient if I had to compile ruby/gem, and then run `gem install ...`. This is inconvenient because the commands are compiled in a temp environment, they're not ready to be run
<adam12> hightower3: Not personally. If you are copying this across platforms you might run into issue with library locations for any gem with a C ext.
<adam12> Theres the option of passing a Gemfile to `gem install`. `gem install -g gems.rb` or something.. not sure if that would work any better for you.
eddof13 has quit [Ping timeout: 246 seconds]
<lester29> thank you for advice about learning ruby
<lester29> maybe i'll write my personal website in ruby on rails
<lester29> i hope i pass exams on my university
<lester29> then i'll go to learn ruby
<hightower3> adam12, yes that wouldn't help. Because I'm building a debian package. So the command `gem` is compiled in a temporary directory (it's not installed into /usr/...). So if I run `gem install`, it's gonna try to install things into /usr/ rather than into the temporary directory
<adam12> lester29: good luck!
<adam12> hightower3: Ahh. What about setting GEM_PATH and/or GEM_HOME?
<adam12> (before gem install)
Linux_Kerio has joined #ruby
perrierjouet has joined #ruby
<hightower3> adam12, not sure, will ask debian devs how it's usually done (and before that I'll check if debian's ruby packages already have a trick for additional modules. if yes, I will just reuse it)
<hightower3> thanks for input
string12 has joined #ruby
bambanxx has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
caedmon has joined #ruby
bambanxx has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
_ht has quit [Remote host closed the connection]
caedmon has quit [Ping timeout: 246 seconds]
keypresser86 has joined #ruby
keypresser86 has quit [Ping timeout: 246 seconds]
keypresser86 has joined #ruby
keypresser86 has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
keypresser86 has joined #ruby
keypresser86 has quit [Read error: Connection reset by peer]
keypresser86 has joined #ruby
string12 has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
duderonomy has joined #ruby
markong has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
tomtmym has quit [Quit: Gone.]
sagax has quit [Read error: Connection reset by peer]
Linux_Kerio has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
reset has quit [Quit: reset]
bambanxx has joined #ruby
r3m has quit [Ping timeout: 260 seconds]
r3m has joined #ruby
bambanxx has quit [Ping timeout: 246 seconds]
sagax has joined #ruby