<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]