adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.3, 2.7.5, 2.6.9: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
hellstabber has joined #ruby
ua_ has quit [Excess Flood]
ua_ has joined #ruby
hellstabber has quit [Ping timeout: 256 seconds]
riffraff18 has joined #ruby
riffraff18 has quit [Ping timeout: 256 seconds]
Jantz has quit [Read error: Connection reset by peer]
Guest9038 has joined #ruby
Guest9038 has quit [Client Quit]
lesha has joined #ruby
lesha has quit [Client Quit]
TomyLobo has joined #ruby
mitt3ns has joined #ruby
mitt3ns has joined #ruby
mitt3ns has quit [Changing host]
pwnd_sfw0 has joined #ruby
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw0 is now known as pwnd_sfw
jetchisel has quit [Ping timeout: 252 seconds]
jetchisel has joined #ruby
roadie has joined #ruby
hololeap has quit [Ping timeout: 276 seconds]
hololeap has joined #ruby
swaggboi has quit [Remote host closed the connection]
riffraff18 has joined #ruby
jetchisel has quit [Ping timeout: 256 seconds]
riffraff18 has quit [Ping timeout: 256 seconds]
jetchisel has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
pingpongball has joined #ruby
<pingpongball> Is ruby still used?
<pingpongball> why would somebody use ruby instead of nodejs?
pingpongball has quit [Quit: Client closed]
mahlon has quit [Ping timeout: 252 seconds]
<weaksauce> because they respect themselves
ged has quit [Ping timeout: 252 seconds]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
jetchisel has joined #ruby
<havenwood> all popular languages are still used
<havenwood> why does someone speak one language rather than another? reasons.
<havenwood> pingpongball: why would somebody use peanut butter instead of jelly? preference.
<havenwood> And the vast libraries that peanut butter offers.
TomyLobo has quit [Read error: Connection reset by peer]
riffraff18 has joined #ruby
riffraff18 has quit [Client Quit]
riffraff18 has joined #ruby
factor has quit [Read error: Connection reset by peer]
mitt3ns has quit [Remote host closed the connection]
walez has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
riffraff18 has quit [Quit: Client closed]
riffraff18 has joined #ruby
walez has quit [Quit: Leaving]
Pixi has quit [Ping timeout: 256 seconds]
Pixi has joined #ruby
rhe has joined #ruby
mahlon has joined #ruby
jhass- has joined #ruby
jhass has quit [Ping timeout: 260 seconds]
jhass- is now known as jhass
dohtem has quit [Quit: Connection closed for inactivity]
jetchisel has quit [Ping timeout: 252 seconds]
krishnac has joined #ruby
jetchisel has joined #ruby
swaggboi has joined #ruby
krishnac has quit [Ping timeout: 256 seconds]
_ht has joined #ruby
jetchisel has quit [Ping timeout: 256 seconds]
lesihctej has joined #ruby
riffraff18 has quit [Quit: Client closed]
riffraff18 has joined #ruby
lesihctej has quit [Ping timeout: 256 seconds]
riffraff18 has quit [Ping timeout: 256 seconds]
riffraff18 has joined #ruby
fef has joined #ruby
fef has quit [Remote host closed the connection]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
BSaboia has joined #ruby
___nick___ has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
fef has joined #ruby
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
gr33n7007h has quit [Ping timeout: 256 seconds]
<nakilon> hm, for two objects created like this Struct.new(:"1").new(2) all the methods ==, ===, eql?, equal? return false
<nakilon> am I supposed to apply .to_h to see that they are equal?
<leftylink> that is not so
<leftylink> well okay I guess it depends
<leftylink> pandabot: rb a=->{Struct.new(:a)}; A=a[]; [A.new(2) == A.new(2), a[].new(2) == a[].new(2)]
<pandabot> [true, false] - https://carc.in/#/r/ce5c
<leftylink> so I guess you must be talking about the second case...
<leftylink> so I guess I have no advice, it will have to e #to_h then.
<leftylink> because for all anyone knows, those are different types
<nakilon> you created object from the same struct
<nakilon> in my case the struct is declared on fly, and then for example in tests I create another struct on fly to do an assertion
<leftylink> I wonder how they planned to deal with this case when considering adding anonymous struct literals to the language.
hellstabber has joined #ruby
BSaboia has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
<nakilon> oh wait I just realised you declared struct twice
<nakilon> still false for m
<nakilon> e
<nakilon> nvm, misread twice )
gr33n7007h has joined #ruby
fef has quit [Remote host closed the connection]
<ox1eef> anyone know if there is a channel for Chrome extension development
<nakilon> googlers can't IRC
<nakilon> basically
hellstabber has quit [Quit: WeeChat 3.3]
<ox1eef> yeah seems too niche.
<nakilon> their slacks get abandoned, freenode/libera channels are graveyards; I only got to know the people proficient in this things thanks to attending the annual DevFests
BSaboia has joined #ruby
<nakilon> I believe there are "google groups" or something, and the documentation was okayish in 2013 when I was making chrome extensions
BSaboia has quit [Read error: Connection reset by peer]
roadie has joined #ruby
<ox1eef> i'm more annoyed because of manifest V3, the new extension API that cripples extensions and requires the vast majority of them to be rewritten, with the possibility the new API is too limiting for a rewrite. Quite depressing as someone who wrote a few extensions and invested in it.
<nakilon> I don't face this problem
<nakilon> because I made extensions for Google Plus and they killed it already )
fef has joined #ruby
<ox1eef> yeah :( lesson learned. relying on one big mega corp is not good.
<nakilon> if there is no alternative you have to deal with it and move on
<ox1eef> in terms of choice it has only got worse, Chrome won the browser war - with firefox barely hanging on.
<ox1eef> there's firefox, but the landcape is pretty much all Chrome or Chrome-derived now.
<ox1eef> welp, ill invest in learning Canvas and webassembly instead.
fef has quit [Ping timeout: 276 seconds]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
roadie has joined #ruby
<nakilon> how do I localise the Date?
fef has joined #ruby
<nakilon> (without rails/activesupport)
<ox1eef> nakilon: what do you mean by localize it ?
<nakilon> ox1eef format it as "1 января 2022"
<ox1eef> oh wow, not sure that's possible with the stdlib alone, you could specify the long month name using strftime, and see if it comes back in your locale or not
<nakilon> I made .strftime("%-d %^b %Y").sub(/[A-Z]{3}/, { "JAN" => "января", "FEB" => "февраля", but I don't like it, I could make a typo, etc.
<ox1eef> i think its strftime('%B')
<ox1eef> is it hardcoded to return english month names?
<nakilon> the %B is hardcoded
<ox1eef> i see it solved in rails / the i18n libray, it looks like ruby isnt that great out of the box in this regard.
roadie has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
TomyLobo has joined #ruby
Inline has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
Al2O3 has quit [Ping timeout: 252 seconds]
roadie has quit [Ping timeout: 252 seconds]
Al2O3 has joined #ruby
xyhuvud has joined #ruby
yxhuvud has quit [Ping timeout: 252 seconds]
\`_ has quit [Ping timeout: 276 seconds]
Inline has quit [Read error: Connection reset by peer]
hololeap has quit [Remote host closed the connection]
Inline has joined #ruby
hololeap has joined #ruby
\`_ has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
BSaboia has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
dohtem has joined #ruby
hellstabber has joined #ruby
Inline has quit [Remote host closed the connection]
BSaboia has quit [Quit: This computer has gone to sleep]
BSaboia has joined #ruby
BSaboia has quit [Client Quit]
BSaboia has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
hellstabber has quit [Quit: Client closed]
pwnd_sfw has quit [Ping timeout: 256 seconds]
fercell has quit [Ping timeout: 252 seconds]
ferr_ has joined #ruby
pwnd_sfw has joined #ruby
hellstabber has joined #ruby
pwnd_sfw has quit [Client Quit]
pwnd_sfw has joined #ruby
\`_ has quit [Ping timeout: 276 seconds]
fef has quit [Ping timeout: 276 seconds]
hellstabber has quit [Ping timeout: 256 seconds]
<nakilon> I've specified a dependency in Gemfile like this: ... git: "https://github.com/..., did bundle, copied Gemfile and Gemfile.lock to Alpine container, did gem update bundler, now bundle install and I get "You need to install git to be able to use gems from git repositories."
<nakilon> why so? I specified the dependency to take the code via https
gr33n7007h has quit [Quit: WeeChat 3.3]
<nakilon> I already knew that rubygems docs suck but I didn't know they even recommend to commit the Gemfile.lock into a gem https://bundler.io/guides/faq.html and they don't even draw a border between committing and packaging
gr33n7007h has joined #ruby
riffraff18 has quit [Quit: Client closed]
riffraff18 has joined #ruby
duds- has quit [Remote host closed the connection]
duds- has joined #ruby
duds- has quit [Remote host closed the connection]
riffraff18 has quit [Quit: Client closed]
riffraff18 has joined #ruby
dohtem has quit [Quit: Connection closed for inactivity]
gr33n7007h has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
hololeap_ has joined #ruby
hololeap has quit [Ping timeout: 276 seconds]
brw has quit [Quit: The Lounge - https://thelounge.chat]
hololeap_ is now known as hololeap
brw has joined #ruby
riffraff18 has quit [Quit: Client closed]
riffraff18 has joined #ruby
riffraff18 has quit [Ping timeout: 256 seconds]
Al2O3 has quit [Ping timeout: 252 seconds]
Al2O3 has joined #ruby
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #ruby
Pixi_ has joined #ruby
<nakilon> shortest way to cut trailing ,nil,nil,nil] from array?
pandabot_ has joined #ruby
pgib has quit [Ping timeout: 256 seconds]
pandabot has quit [Ping timeout: 256 seconds]
Pixi has quit [Ping timeout: 256 seconds]
adam12 has quit [Ping timeout: 256 seconds]
adam12 has joined #ruby
riffraff18 has joined #ruby
<leah2> only trailing, hm
<leah2> arr.pop while arr.last.nil?
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
___nick___ has quit [Ping timeout: 256 seconds]
weaksauce has joined #ruby
_ht has quit [Remote host closed the connection]
pandabot_ is now known as pandabot
riffraff18 has quit [Quit: Client closed]
pandabot has quit [Quit: add test subreddit]
pandabot has joined #ruby
Oxfuxxx has joined #ruby
howdoi has joined #ruby
duds- has joined #ruby
dohtem has joined #ruby
pwnd_sfw3 has joined #ruby
pwnd_sfw has quit [Ping timeout: 252 seconds]
pwnd_sfw3 is now known as pwnd_sfw
<havenwood> nakilon: are the only nils trailing?
pwnd_sfw4 has joined #ruby
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw4 is now known as pwnd_sfw