havenwood5 changed the topic of #ruby to: Ruby 3.3.6 (3.4.0-preview2) https://www.ruby-lang.org | Logs https://libera.irclog.whitequark.org/ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
ptrrf has quit [Quit: WeeChat 4.1.1]
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
ih8u has quit [Ping timeout: 246 seconds]
Munto has quit [Ping timeout: 260 seconds]
ih8u has joined #ruby
ih8u2 has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
ih8u has quit [Ping timeout: 260 seconds]
ih8u has joined #ruby
ih8u2 has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
houtworm_ has joined #ruby
houtworm has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
Munto has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
Pixi has quit [Quit: Leaving]
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
sam113101 has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
Pixi has joined #ruby
cappy has quit [Quit: Leaving]
desnudopenguino has joined #ruby
dhruvasagar has joined #ruby
CRISPR has joined #ruby
konsolebox has joined #ruby
CRISPR has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
foxxx0 has quit [Ping timeout: 248 seconds]
brokkoli_origin has quit [Ping timeout: 252 seconds]
brokkoli_origin has joined #ruby
CRISPR has joined #ruby
xdminsy has joined #ruby
foxxx0 has joined #ruby
c10l has quit [Ping timeout: 260 seconds]
CRISPR has quit [Ping timeout: 248 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
Fridtjof has quit [Quit: ZNC - http://znc.in]
Fridtjof has joined #ruby
CRISPR has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Sampersand has joined #ruby
CRISPR has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Remote host closed the connection]
konsolebox has joined #ruby
dhruvasagar has joined #ruby
Sampersand has quit [Ping timeout: 256 seconds]
niv has quit [Quit: ZNC - https://znc.in]
niv has joined #ruby
wnd has quit [Quit: Disconnecting from stoned server.]
wnd has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 260 seconds]
grenierm has joined #ruby
rvalue- is now known as rvalue
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
<ih8u> okay wtf how to i install pg on alma linux?
<ih8u> `An error occurred while installing pg (1.5.4), and Bundler cannot continue.
<ih8u> In Gemfile:
<ih8u> pg`
<ih8u> sequel_pg was resolved to 1.17.1, which depends on
dhruvasagar has quit [Ping timeout: 252 seconds]
ollysmith_ has joined #ruby
<ih8u> i have postgresql-contrib and postgresql-devel
ollysmith has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
Sampersand has joined #ruby
Sampersand has quit [Client Quit]
Sampersand has joined #ruby
dhruvasa` has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasa` has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
dhruvasa` has joined #ruby
ih8u has quit [Remote host closed the connection]
ih8u has joined #ruby
houtworm_ has quit [Quit: Restarting Server]
houtworm has joined #ruby
houtworm has quit [Changing host]
houtworm has joined #ruby
houtworm has quit [Max SendQ exceeded]
houtworm has joined #ruby
grenierm has quit [Ping timeout: 256 seconds]
royo25 has joined #ruby
Sampersand has quit [Ping timeout: 256 seconds]
___nick___ has joined #ruby
brokkoli_origin has quit [Ping timeout: 252 seconds]
brokkoli_origin has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasa` has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasa` has joined #ruby
graaff has quit [Quit: Leaving]
graaff has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Linux_Kerio has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasa` has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasa` has joined #ruby
dhruvasa` has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
hiddenman_ has joined #ruby
lunarkitty is now known as [lunarkitty]
[lunarkitty] is now known as {[pyra]}
{[pyra]} is now known as {[`
{[` is now known as ]
] is now known as Guest3814
Guest3814 is now known as [pyra]
[pyra] is now known as lunarkitty
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dviola has quit [Ping timeout: 260 seconds]
Linux_Kerio has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 248 seconds]
lunarkitty has quit [Remote host closed the connection]
diego has joined #ruby
diego is now known as Guest4853
rvalue- is now known as rvalue
donofrio has joined #ruby
Awoobis is now known as gAy_Dragon
dhruvasagar has quit [Remote host closed the connection]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
zubov has joined #ruby
zubov has quit [Quit: Konversation terminated!]
<vvn> when requiring 'json|yaml', objects automatically inherit a #to_json|yaml method, how does that work? I can't find the relevant documentation for this mechanism
user71 has joined #ruby
user71 has quit [Max SendQ exceeded]
user71 has joined #ruby
<constxd> vvn: u just define that shit on Object bro
<vvn> how does a custom class implement #to_json conditionally whether json is required or not?
Linux_Kerio has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
hwpplayer1 has joined #ruby
<havenwood5> vvn: You usually define #as_json that returns a Hash then a #to_json that calls #to_json on your #as_json Hash.
havenwood5 has quit [Quit: The Lounge - https://thelounge.chat]
havenwood5 has joined #ruby
havenwood5 is now known as havenwood
<havenwood> Then define a self.json_create and use JSON.unsafe_load or JSON.load(create_additions: true), neither of which is safe for untrusted input.
<vvn> thanks
<havenwood> vvn: Here's an example, showing a 🧇 class that serializes to JSON and unsafely deserializes. https://gist.github.com/havenwood/280b25736d424994744ac7ef04287a92
<havenwood> The convention of using single letter keys, like 't' and 's', is just to save payload weight. You can use 'toppings' and 'syrup' if you prefer.
<havenwood> vvn: As for what to do whether JSON is required or not, 🤷. Options include an autoload of JSON to lazily load it when #to_json is called, or only conditionally defining your JSON methods behind an `if defined?(JSON)`.
<havenwood> Or having your JSON feature be an addition, and have an explicit load of your feature that also explicitly loads JSON.
donofrio has joined #ruby
havenwood changed the topic of #ruby to: Ruby 3.3.6 (3.4.0-preview2) https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
hiddenman_ has quit [Ping timeout: 260 seconds]
hiddenman_ has joined #ruby
hiddenman_ has quit [Remote host closed the connection]
Guest4853 has left #ruby [WeeChat 4.4.3]
dviola has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
mweckbecker has quit [Quit: leaving]
mweckbecker has joined #ruby
Artea has quit [Quit: ZNC 1.9.1 - https://znc.in]
konsolebox has quit [Ping timeout: 276 seconds]
royo25 has quit [Quit: Goodbye cruel world]
donofrio has joined #ruby
cappy has joined #ruby
konsolebox has joined #ruby
xdminsy has quit [Read error: Connection reset by peer]
donofrio has quit [Ping timeout: 248 seconds]
donofrio has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
donofrio has quit [Ping timeout: 244 seconds]
___nick___ has joined #ruby
donofrio has joined #ruby
smp has quit [Ping timeout: 272 seconds]
Sampersand has joined #ruby
hwpplayer1 has quit [Quit: see you take care]
ftajhii has quit [Ping timeout: 252 seconds]
donofrio has quit [Ping timeout: 252 seconds]
konsolebox has quit [Ping timeout: 248 seconds]
Sampersand has quit [Ping timeout: 256 seconds]
___nick___ has quit [Ping timeout: 265 seconds]
donofrio has joined #ruby
user71 has quit [Quit: Leaving]
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
cappy has quit [Quit: Leaving]
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
Sampersand has joined #ruby
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
lunarkitty has joined #ruby
donofrio has joined #ruby
brokkoli_origin has quit [Ping timeout: 260 seconds]
Guest33 has joined #ruby
Guest33 has quit [Client Quit]
brokkoli_origin has joined #ruby
lunarkitty has quit [Remote host closed the connection]
donofrio has quit [Remote host closed the connection]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 276 seconds]
Sampersand has quit [Ping timeout: 256 seconds]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
c10l has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
tindershoot has joined #ruby