havenwood changed the topic of #ruby to: Ruby 3.3.2, 3.2.4, 3.4.0-preview1 https://www.ruby-lang.org | Logs https://libera.irclog.whitequark.org/ruby
stenno has quit [Quit: WeeChat 4.1.1]
cappy has quit [Quit: Leaving]
advorak__ has joined #ruby
polishdub has joined #ruby
advorak__ has quit [Quit: Leaving]
polishdub has quit [Ping timeout: 255 seconds]
polishdub has joined #ruby
Vonter has joined #ruby
Linux_Kerio has joined #ruby
konsolebox has joined #ruby
gaussianblue has quit [Quit: leaving]
xdminsy has quit [Remote host closed the connection]
xdminsy has joined #ruby
Inline has quit [Ping timeout: 256 seconds]
grenierm has joined #ruby
patrick_ has joined #ruby
patrick_ has quit [Changing host]
patrick has joined #ruby
patrick has quit [Killed (calcium.libera.chat (Nickname regained by services))]
patrick_ has joined #ruby
Linux_Kerio has quit [Quit: Konversation terminated!]
Linux_Kerio has joined #ruby
cxl has quit [Quit: bye]
cxl has joined #ruby
jaredce has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
Inline has joined #ruby
hightower3 has quit [Ping timeout: 264 seconds]
stenno has joined #ruby
gaussianblue has joined #ruby
<rapha> my last day today of doing ruby as a day job :(
<rapha> from Monday, Java. i hope i'll survive long enough to find another ruby job.
<gaussianblue> Is ruby superior to java?
<stenno> nonsense question
<stenno> mu
richard_h1 has joined #ruby
<richard_h1> hi - I'm trying to get a ruby app (redmine) from debian bullseye-backports running on bullseye, but it's not running. One error I see is failing to find a gem (roadie-rails), but it seems to be looking in the wrong place. I see lots of references to bundler-2.1.4, but I'm running 2.2.5-2. I can't see where it gets the 2.1.4 version from. Any tips?
<richard_h1> I'm not a ruby dev, unfortunately (probably obvious)
<richard_h1> hmm - I see my ruby package version is 2.7, so I guess this question is somewhat off-topic? Is there a better place to ask?
xdminsy has quit [Ping timeout: 268 seconds]
hightower2 has joined #ruby
grenierm has quit [Ping timeout: 250 seconds]
Momentum has joined #ruby
Inline has quit [Quit: Leaving]
Inline has joined #ruby
jaredce has quit [Ping timeout: 256 seconds]
graywolf has joined #ruby
otisolsen70 has joined #ruby
whiteman809 has quit [Ping timeout: 255 seconds]
whiteman809 has joined #ruby
xdminsy has joined #ruby
gaussianblue has quit [Quit: leaving]
zayd has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
jaredce has joined #ruby
zayd has joined #ruby
gaussianblue has joined #ruby
pounce has quit [Ping timeout: 240 seconds]
pounce has joined #ruby
jardsonto has joined #ruby
user71 has joined #ruby
whiteman809_ has joined #ruby
whiteman809 has quit [Ping timeout: 255 seconds]
olspookishmagus has quit [Ping timeout: 264 seconds]
<adam12> rapha: Oh no :(
<adam12> richard_h1: IMHO, don't use Ruby from apt but install your own version using one of the version managers. It's annoying but Bookworm is onto 3.x already, and when you `apt dist-upgrade` it will all break, since Ruby uses major-minor specific locations for gem installs.
whiteman809_ is now known as whiteman809
<richard_h1> adam12: sounds like similar recommendations as for python ...
<adam12> richard_h1: Ruby 2.7 is out of support which is why you don't see it listed in channel topic.
<adam12> richard_h1: Yeah. Really, the only language that has been half-decent via distro package managers is Perl. And that's because it's essentially dead :P
stenno has left #ruby [WeeChat 4.1.1]
<richard_h1> so I need to keep my ruby setup separate from any 'system' ruby
<richard_h1> perl is where I have most dev history - and I will defend it as not dead :-)
<adam12> richard_h1: You don't necessarily have to, but I would suggest it just for ease. You're going to bookworm soon I bet, which will be a major/minor Ruby bump. Because Ruby has C extensions, and they link back into ruby, there is no guarantee of the ABI so Ruby needs new locations to store dependencies. So redmine will break :(
<richard_h1> is that what bundler is for then? to keep my ruby config isolated for the specific app?
<adam12> richard_h1: bundler manages Ruby library dependencies.
konsolebox has quit [Quit: .]
<adam12> If you're familiar with python, requirements.txt might be close? I'm not a python person.
<richard_h1> is there a specific tool to keep it isolated? like a python venv?
<adam12> I wrote a ton of Perl back in the day. cgi-bin for the win.
<richard_h1> I'm not very familiar with python. Played with it a bit.
<adam12> I don't remember venv, but in Ruby, the version manager of Ruby and the dependency manager of Ruby are separate.
<richard_h1> cgi-bin is a bit too old :-)
<adam12> So you can use bundler with system Ruby. Or you can install Ruby via rbenv/ruby-install/something else and then use bundler with that.
<adam12> Bundler basically looks at the application and says: they want X.Y.Z of this library, X.Y.N of this other library, etc. So even if 1.2.3 and 2.2.1 are installed, and the application wants the older version 1.2.3, it will have it (and not the potentially breaking 2.2.1 relase).
<richard_h1> rbenv seems to have the goal I'm interested in
<richard_h1> probably named after venv, or vice versa
<adam12> rbenv is maybe the most popular. chruby/ruby-install are also good, but have a different approach.
<richard_h1> then also download non-debian redmine
<adam12> You'll likely get a newer version.
<adam12> (which is good, obvs)
<richard_h1> as an admin, it's just a pain having to learn all these different infrastructure setups for each language :-(
<adam12> Yep. Sucks hard :(
<adam12> I feel like I'm slumming it when I sysadmin. Everything feels horrible.
<richard_h1> probably why lots of people go for docker ...
<adam12> 100%. And why the prolification of single Golang binaries became so popular.
olspookishmagus has joined #ruby
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
<richard_h1> ... but docker is another infrastructure I'd have to learn, and not one I particularly like the politics of
havenwood has joined #ruby
<kjetilho> richard_h1: you mean "podman" :)
<richard_h1> anyway - thanks for the tips. rbenv is what I need to investigate, I think
<richard_h1> kjetilho: that's docker with different politics, right? Worth investigating, yes
<kjetilho> it's more open and more secure
<kjetilho> (since it can usually run without any root priveleges)
<richard_h1> possibly more future-friendly with IPv6 and nftables?
<adam12> Podman is good too. For Redmine, you could get away with just running it on the host but I might even spin up a container with Incus and have it running in there.
<adam12> (using rbenv and bundler)
<richard_h1> incus is another thing I need to learn :-) currently using plain LXC containers (on a Xen VPS)
<richard_h1> looks like podman does ipv6, but not nftables yet
<richard_h1> anyway, OT. thanks for the help :-)
richard_h1 has quit [Quit: Leaving.]
donofrio has joined #ruby
<mooff> the Ruby packages in Debian are supposed to be managed by Debian, to support things like `apt install redmine` w/o having to worry about bundler etc
xdminsy has quit [Remote host closed the connection]
xdminsy has joined #ruby
<mooff> Python recently made their package manager, pip, refuse to upgrade/install/remove system packages when they're managed by an external package manager (e.g. apt)
<adam12> That's an interesting approach
<adam12> Any version of Ruby/Python you dont' personally install should be considered by use of package manager only, imho. Homebrew is similar; homebrew Ruby should be considered volatile for anything not used by Homebrew.
<adam12> Unless version doesn't matter for simple scripts, etc.
<mooff> yeah, that's what's Debian say basically about their versions of Ruby and Python
<mooff> they're for the stuff in Debian, not for *your* applications
donofrio_ has joined #ruby
donofrio__ has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
donofrio_ has quit [Ping timeout: 264 seconds]
gaussianblue has quit [Quit: leaving]
hightower2 has quit [Ping timeout: 240 seconds]
bambanxx has joined #ruby
jaredce has quit [Ping timeout: 256 seconds]
ih8u1 has joined #ruby
ih8u has quit [Read error: Connection reset by peer]
ih8u1 is now known as ih8u
joako has quit [Quit: quit]
joako has joined #ruby
heartbur1 has quit [Read error: Connection reset by peer]
ih8u1 has joined #ruby
ih8u has quit [Ping timeout: 256 seconds]
ih8u1 is now known as ih8u
bambanxx has quit [Quit: Textual IRC Client: www.textualapp.com]
Linux_Kerio has quit [Ping timeout: 255 seconds]
cappy has joined #ruby
f has joined #ruby
cappy has quit [Quit: Leaving]
f has quit [Remote host closed the connection]
f has joined #ruby
f has quit [K-Lined]
hightower2 has joined #ruby
graywolf has quit [Quit: WeeChat 4.2.2]
Linux_Kerio has joined #ruby
trillion_exabyte has quit [Ping timeout: 268 seconds]
trillion_exabyte has joined #ruby
jaredce has joined #ruby
jaredce has quit [Ping timeout: 246 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
user71 has quit [Quit: Leaving]
srbaker has quit [Quit: srbaker]
srbaker has joined #ruby
trillion_exabyte has quit [Ping timeout: 256 seconds]
trillion_exabyte has joined #ruby
Inline has quit [Ping timeout: 255 seconds]
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
brw has quit [Remote host closed the connection]
brw has joined #ruby
cappy has joined #ruby
Inline has joined #ruby
cappy has quit [Quit: Leaving]
oxagast has joined #ruby
<rapha> asdf is quite nice when you have more than one thing you'd like to keep your own versions installed of
<rapha> the only thing i use system ruby for is system automation tasks ... as if it were bash or perl, basically
<Al2O3> rooobie doobie due