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
<leftylink> I've never used https://bundler.io/ before, but I heard it exists
TomyLobo has quit [Read error: Connection reset by peer]
<Kaedenn> huh, interesting.
<weaksauc_> Kaedenn yeah you can vender install gems using bundler and that gets put into the project directory
<weaksauc_> but bundler doesn't really need virtual envs since it installs it and knows how to use exactly the package you want to use
<weaksauc_> it's significantly better than python's handling of dependencies imo
John_Ivan has quit [Ping timeout: 240 seconds]
crankharder has quit [Quit: leaving]
OverCoder has joined #ruby
mynameisdebian has quit [Ping timeout: 255 seconds]
eddof13 has joined #ruby
balo has quit [Server closed connection]
balo has joined #ruby
mynameisdebian has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
Kaedenn has left #ruby [#ruby]
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
latho has joined #ruby
latho has quit [Ping timeout: 245 seconds]
hightower4 has joined #ruby
hightower3 has quit [Ping timeout: 255 seconds]
<mynameisdebian> If I have a hash and I want to use it as parameters for a function like `request.set_form_data( "var1" => "help", "var2" => "me")`, how could I do that?
Doc_X has quit [Ping timeout: 248 seconds]
dviola has quit [Quit: WeeChat 4.0.4]
<johnjaye> i don't really get it. wouldn't you just do request.set_form_data( h["var1"], h["var2"] )
<johnjaye> where h is the hash
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
Linux_Kerio has joined #ruby
ionface has quit []
Vonter has joined #ruby
_ht has joined #ruby
thefuture_ has joined #ruby
kiwi_36 has quit [Ping timeout: 240 seconds]
iphorde has joined #ruby
brokkoli_origin has quit [Quit: (Leaving)]
grenierm has joined #ruby
_ht has quit [Quit: _ht]
brokkoli_origin has joined #ruby
taupiqueur_shiny has joined #ruby
teclator has joined #ruby
brokkoli_origin has quit [Quit: (Leaving)]
taupiqueur_shiny has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
taupiqueur_shiny has joined #ruby
grenierm has quit [Ping timeout: 245 seconds]
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
Furai has quit [Quit: WeeChat 4.0.4]
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
constxqt_ has quit [Ping timeout: 260 seconds]
Furai has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
RDMengineer has joined #ruby
Vonter has quit [Ping timeout: 250 seconds]
thefuture_ has quit [Remote host closed the connection]
willfish has joined #ruby
Vonter has joined #ruby
taupiqueur_shiny has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
taupiqueur_shiny has quit [Ping timeout: 245 seconds]
Vonter has joined #ruby
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
TomyWork has joined #ruby
patrick- has quit [Ping timeout: 255 seconds]
patrick- has joined #ruby
taupiqueur_shiny has joined #ruby
constxqt_ has joined #ruby
latho has joined #ruby
patrick- has quit [Ping timeout: 255 seconds]
taupiqueur_shiny has quit [Remote host closed the connection]
patrick- has joined #ruby
Jonopoly has joined #ruby
taupiqueur_shiny has joined #ruby
OverCoder has quit [Quit: Connection closed for inactivity]
ccapndave has joined #ruby
ccapndave has quit [Client Quit]
brokkoli_origin has quit [Ping timeout: 258 seconds]
brokkoli_origin has joined #ruby
latho has quit [Quit: Client closed]
ringo___ has quit [Server closed connection]
ringo___ has joined #ruby
patrick| has joined #ruby
patrick- has quit [Ping timeout: 250 seconds]
axsuul has quit [Quit: đź‘‹]
axsuul has joined #ruby
kiwi_36 has joined #ruby
r0bby has quit [Server closed connection]
patrick| has quit [Ping timeout: 255 seconds]
r0bby has joined #ruby
kenichi has quit [Server closed connection]
kenichi has joined #ruby
patrick- has joined #ruby
JSharp has quit [Read error: Connection reset by peer]
JSharp has joined #ruby
patrick| has joined #ruby
desnudopenguino has quit [Read error: Connection reset by peer]
patrick- has quit [Ping timeout: 260 seconds]
brokkoli_origin has quit [Ping timeout: 248 seconds]
brokkoli_origin has joined #ruby
Vonter has quit [Ping timeout: 245 seconds]
Vonter has joined #ruby
patrick| has quit [Ping timeout: 246 seconds]
otisolsen70 has joined #ruby
Jonopoly has quit [Quit: WeeChat 3.0]
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
dalan0382283 has quit [Quit: dalan0382283]
dalan0382283 has joined #ruby
Vonter has quit [Ping timeout: 246 seconds]
Vonter has joined #ruby
cybniv has quit [Server closed connection]
niv has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
Linux_Kerio has quit [Ping timeout: 246 seconds]
<ox1eef_> mynameisdebian: request.set_form_data(h) , request.set_form_data(h.slice("var1", "var2")).
seydar has joined #ruby
<seydar> is there a good open-source alternative to self-hosted GitLab?
<seydar> i am floored at how resource-hungry gitlab is
<seydar> alright i'm going with gitea
otisolsen70 has quit [Quit: Leaving]
otisolsen70 has joined #ruby
pounce has quit [Ping timeout: 246 seconds]
pounce has joined #ruby
<ox1eef_> Yep. Gitea is what I would recommend. There's also cgit but not very Web 2.0.
mexen has joined #ruby
<ogamita> It all depends on whether you need all the web stuff around git. Otherwise, you just need a little script to initialize git repos via ssh, and you're all set. See for example: https://gitlab.com/informatimago/bin/-/blob/master/git-create-remote-repository?ref_type=heads
<ogamita> gitlab is nice to manage issues, code reviews, CI, etc.
Vonter has quit [Ping timeout: 255 seconds]
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
Doc_X has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
<dorian> hey does ruby have a metaobject protocol i'm not aware of?
<dorian> like moo(se) in perl, or python decorators
<dorian> (and clos in common lisp)
Linux_Kerio has joined #ruby
<seydar> dorian: ruby has ruby
<seydar> what are you trying to do?
<dorian> stuff like generics
<dorian> "around" methods etc
desnudopenguino has joined #ruby
<dorian> i mean i guess i can ad-hoc it but i would prefer not to
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
<johnjaye> do the docs list all the class related keywords somewhere
<johnjaye> e.g. self, super, new?
<johnjaye> not sure the right term. but the special terms you can use inside a class definition
Vonter has joined #ruby
<ox1eef_> dorian: I don't know what you're referring to, but based on the "around" comment, 'prepend' might be what you are looking for.
hays has quit [Server closed connection]
<johnjaye> i didn't think you could use new inside a class definition to instantiate the class itself. but i guess you can
Vonter has quit [Ping timeout: 246 seconds]
<ox1eef_> When you call code inside the body of a class, the 'self' is the class itself, so indeed, yes you can do that.
blop has quit [Ping timeout: 246 seconds]
blop has joined #ruby
Vonter has joined #ruby
eddof13 has joined #ruby
eddof13_ has joined #ruby
eddof13_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
seydar has quit [Ping timeout: 246 seconds]
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
seydar has joined #ruby
John_Ivan has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
jantje has joined #ruby
seydar has joined #ruby
<jantje> hi! How can I get RbConfig::CONFIG['STRIP'] to return the correct strip command in a cross compile environment , it returns 'strip', whereas for CC that nicely returns "aarch64-linux-gnu-gcc"
seydar has quit [Ping timeout: 246 seconds]
<jantje> (ie, should return aarch64-linux-gnu-strip)
seydar has joined #ruby
infinityfye has joined #ruby
<ox1eef_> %w[strip aarch64-linux-gnu-gcc aarch64-linux-gnu-strip].find { Process.wait spawn("which foo", out: File::NULL, err: File::NULL) and $?.success? }
vigumnov has quit [Quit: ZNC 1.8.2 - https://znc.in]
<ox1eef_> Woops...
<ox1eef_> %w[strip aarch64-linux-gnu-gcc aarch64-linux-gnu-strip].find { Process.wait spawn("which #{_1}", out: File::NULL, err: File::NULL) and $?.success? }
seydar has quit [Ping timeout: 245 seconds]
<ox1eef_> Adjust the array to the order of preference.
seydar has joined #ruby
victori has joined #ruby
kenichi has quit [Changing host]
kenichi has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
Manouchehri has quit [Server closed connection]
Manouchehri has joined #ruby
taupiqueur_shiny has quit [Ping timeout: 245 seconds]
Vonter has quit [Read error: Connection reset by peer]
yziquel has joined #ruby
_ht has joined #ruby
patrick- has joined #ruby
mexen has quit [Quit: Connection closed for inactivity]
patrick- has quit [Ping timeout: 246 seconds]
patrick- has joined #ruby
yziquel has quit [Quit: Client closed]
patrick- has quit [Ping timeout: 245 seconds]
seydar has quit [Ping timeout: 240 seconds]
patrick- has joined #ruby
mexen has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
brw has quit [Read error: Connection reset by peer]
brw has joined #ruby
taupiqueur_shiny has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 250 seconds]
reset has quit [Quit: reset]
JayDoubleu____ has quit [Ping timeout: 240 seconds]
JayDoubleu____ has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
eddof13_ has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mynameisdebian has quit [Quit: Leaving]
eddof13 has joined #ruby
desnudopenguino1 has joined #ruby
seydar has joined #ruby
desnudopenguino has quit [Ping timeout: 246 seconds]
desnudopenguino1 is now known as desnudopenguino
OverCoder has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TomyWork has quit [Remote host closed the connection]
eddof13 has joined #ruby
keb has joined #ruby
desnudopenguino has quit [Remote host closed the connection]
desnudopenguino has joined #ruby
eddof13_ has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
eddof13_ has joined #ruby
eddof13_ has quit [Client Quit]
iphorde has quit [Quit: Leaving]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
seydar has quit [Ping timeout: 240 seconds]
otisolsen70 has quit [Quit: Leaving]
seydar has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
_ht has quit [Remote host closed the connection]
seydar has quit [Ping timeout: 250 seconds]
yziquel has joined #ruby
seydar has joined #ruby
OverCoder has quit [Quit: Connection closed for inactivity]
Linux_Kerio has quit [Ping timeout: 248 seconds]
blop has quit [Remote host closed the connection]
blop has joined #ruby
willfish has quit [Quit: WeeChat 4.0.2]
<johnjaye> ruby splat operator is pretty mind bending
<johnjaye> mainly because it does opposite things.
<weaksauc_> why is it bending?
seydar has quit [Ping timeout: 245 seconds]
mexen has quit []
<johnjaye> well. it structures arguments if in a declaration. like def foo(*arg)
<johnjaye> but if you pass in an array like fee(*[1,2,3]) then it *de-structures* it into the arguments
<weaksauc_> yeah one is use and the other is declaration
<weaksauc_> ** is for named params too btw
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
infinityfye has quit [Quit: Leaving]
<ox1eef_> johnjaye: Not much different to a pointer in C though, in terms of syntax. In a function definition, it defines a variable to be a pointer, and in an expression, it deferences the pointer.
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
kiwi_36 has quit [Remote host closed the connection]
JayDoubleu____ has quit [Ping timeout: 240 seconds]
JayDoubleu____ has joined #ruby
<johnjaye> well. that's very interesting way to look at it
cybniv has joined #ruby
niv has quit [Ping timeout: 255 seconds]
seydar has joined #ruby
yziquel has quit [Quit: Client closed]
taupiqueur_shiny has quit [Remote host closed the connection]
hays has joined #ruby
teclator has quit [Ping timeout: 258 seconds]
seydar has quit [Ping timeout: 255 seconds]
cognemo has quit [Quit: ZNC 1.8.2 - https://znc.in]
<johnjaye> what's the best lsp for ruby again
<johnjaye> this file is telling me the only ones my client supports are solargraph and socket
<adam12> johnjaye: Not sure there is really a best one yet. ruby-lsp has some features, and solargraph has others.
<johnjaye> ok
<adam12> If you're using standardrb for linting, it has a built-in one too.
Caius has quit [Server closed connection]
Caius has joined #ruby
seydar has joined #ruby
seydar has quit [Ping timeout: 246 seconds]
ultrixx has joined #ruby
ultrixx has quit [Quit: Leaving]
seydar has joined #ruby
egality has joined #ruby
<johnjaye> hmm. i don't see how to use robe server at all
<johnjaye> i saw someone recommend it. but when i install there's no executable
<johnjaye> just a bunch of files in a gem directory like .spec and what not
seydar has quit [Ping timeout: 246 seconds]