havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview2: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
<joako> Is there any 'best practice' for updating ruby/rails version of a project? Currently stuck on Gemfile hell... bundle update process has been running 45 minutes!
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
<adam12> joako: Try updating bundler first. Maybe its' a super old version that had the flakey dependency resolver.
<joako> Yep just noticed rails wants either bundler < 2.0 or ~> 2.4 and I was using 2.1
<filipiz> I rely on rbenv a lot... https://github.com/rbenv/rbenv
<filipiz> the process is usualy like this:
<filipiz> 1. confirm the version i need is installed with rbenv and set the .ruby-version file on the projects directory
<filipiz> 2. install the expected bundler version... (usually defined on Gemfile.lock)
<filipiz> 3. bundle install
idiocrash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
idiocrash has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
eddof13 has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
eddof13 has quit [Quit: Textual IRC Client: www.textualapp.com]
Linux_Kerio has joined #ruby
caedmon has joined #ruby
eddof13 has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
caedmon has quit [Ping timeout: 255 seconds]
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
fercell has joined #ruby
weaksauce has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
impomatic has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
caedmon has joined #ruby
gr33n7007h has quit [Ping timeout: 258 seconds]
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
OverCoder has joined #ruby
filipiz has joined #ruby
shokohsc5108129 has joined #ruby
shokohsc510812 has quit [Ping timeout: 260 seconds]
shokohsc5108129 is now known as shokohsc510812
caedmon has quit [Ping timeout: 255 seconds]
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
blop_ has joined #ruby
blop has quit [Remote host closed the connection]
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
gr33n7007h has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
blop_ has quit [Remote host closed the connection]
filipiz has joined #ruby
toadmecca has joined #ruby
hernan has quit [Remote host closed the connection]
toadmecca has quit [Ping timeout: 255 seconds]
_ht has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
impomatic has quit [Ping timeout: 255 seconds]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
_ht has quit [Quit: _ht]
idiocrash_ has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
idiocrash has quit [Ping timeout: 260 seconds]
grenierm has joined #ruby
fercell has joined #ruby
idiocrash has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
idiocrash_ has quit [Ping timeout: 272 seconds]
filipiz has joined #ruby
podge has joined #ruby
patrick is now known as Guest4170
Guest4170 has quit [Killed (sodium.libera.chat (Nickname regained by services))]
podge is now known as patrick
patrick__ has joined #ruby
otisolsen70 has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
Pixi has quit [Ping timeout: 240 seconds]
filipiz has joined #ruby
Pixi has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
grenierm has quit [Quit: Client closed]
grenierm has joined #ruby
axsuul has quit [Quit: 👋]
axsuul has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
willfish has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
OverCoder has quit [Quit: Connection closed for inactivity]
filipiz has quit [Read error: Connection reset by peer]
idiocrash has quit [Ping timeout: 255 seconds]
idiocrash has joined #ruby
filipiz has joined #ruby
idiocrash has quit [Ping timeout: 240 seconds]
idiocrash_ has joined #ruby
idiocrash_ has quit [Read error: Connection reset by peer]
filipiz has quit [Read error: Connection reset by peer]
idiocrash has joined #ruby
filipiz has joined #ruby
shokohsc510812 has quit [Ping timeout: 272 seconds]
grenierm has quit [Quit: Client closed]
filipiz has quit [Read error: Connection reset by peer]
otisolsen70 has quit [Quit: Leaving]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
shokohsc5108129 has joined #ruby
filipiz has joined #ruby
desnudopenguino has quit [Remote host closed the connection]
desnudopenguino has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
idiocrash has quit [Ping timeout: 240 seconds]
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
idiocrash has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 272 seconds]
filipiz has joined #ruby
gr33n7007h has joined #ruby
lucerne has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 255 seconds]
filipiz has quit [Read error: Connection reset by peer]
gr33n7007h has joined #ruby
filipiz has joined #ruby
lucerne has joined #ruby
konsolebox has joined #ruby
pounce has quit [Ping timeout: 255 seconds]
pounce has joined #ruby
brokkoli_orig has quit [Remote host closed the connection]
brokkoli_orig has joined #ruby
Huckleberry777 has quit [Quit: Huckleberry777]
meimei has quit [Remote host closed the connection]
pounce has quit [Remote host closed the connection]
meimei has joined #ruby
pounce has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
Huckleberry777 has joined #ruby
hightower2 has joined #ruby
constxqt has quit [Ping timeout: 272 seconds]
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
ultralan has joined #ruby
ultralan has quit [Remote host closed the connection]
graywolf has quit [Quit: WeeChat 4.0.4]
filipiz has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hiyori has joined #ruby
hightower2 has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
tweaks has quit [Quit: tweaks]
tweeeaks has joined #ruby
tweeeaks is now known as tweaks
blop_ has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
filipiz has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
filipiz has joined #ruby
Aminda has joined #ruby
otisolsen70 has joined #ruby
Linux_Kerio has quit [Ping timeout: 255 seconds]
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
Guest64 has joined #ruby
nmollerup has quit [Ping timeout: 246 seconds]
Guest64 has quit [Client Quit]
nmollerup has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
hightower2 has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
idiocrash_ has joined #ruby
OverCoder has joined #ruby
idiocrash has quit [Ping timeout: 272 seconds]
impomatic has joined #ruby
Vonter has quit [Ping timeout: 255 seconds]
Vonter has joined #ruby
<adam12> rtx/asdf is interesting because you can have it manage other tools in the same file. I use it for node and sometimes postgres versioning.
<adam12> And rtx has some direnv capabilities, so you can eliminate another tool.
filipiz has quit [Read error: Connection reset by peer]
<ox1eef_> Generally speaking, I don't like monoliths that try to do everything. rtx is not neccessarily that, but the idea of eliminating tools to have only one tool handling the job of many does not sound so great.
filipiz has joined #ruby
blop_ has quit [Ping timeout: 252 seconds]
blop_ has joined #ruby
<adam12> Well, in fairness to rtx/asdf, they outsource some of the functionality to plugins, so they aren't entirely monoliths.
<adam12> But in general, I work on teams with a variety of experience levels, and simplifying tooling is absolutely critical as projects grow.
<ox1eef_> Yeah, that's fair, that statement just brought back bad memories of systemd :)
<adam12> Yeah, I hear ya
patrick has quit [Ping timeout: 255 seconds]
patrick__ is now known as patrick
filipiz has quit [Read error: Connection reset by peer]
impomatic has quit [Ping timeout: 240 seconds]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
impomatic has joined #ruby
idiocrash_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fercell has quit [Ping timeout: 255 seconds]
fercell has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
constxqt has joined #ruby
filipiz has joined #ruby
constxqt has quit [Ping timeout: 255 seconds]
constxqt has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
CrazyEddy has quit [Ping timeout: 240 seconds]
constxqt_ has joined #ruby
constxqt has quit [Ping timeout: 255 seconds]
filipiz has joined #ruby
impomatic has quit [Ping timeout: 255 seconds]
impy has joined #ruby
constxqt_ has quit [Read error: Connection reset by peer]
CrazyEddy has joined #ruby
hiyori has quit [Quit: Client closed]
podge has joined #ruby
podge has quit [Remote host closed the connection]
podge has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
xuochi has joined #ruby
xuochi_ has joined #ruby
impy has quit [Quit: https://corewar.co.uk]
impy has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
u0_a142 has joined #ruby
benjaminwil has quit [Ping timeout: 252 seconds]
benjaminwil has joined #ruby
_ht has joined #ruby
dostoyevsky2 has quit [Ping timeout: 252 seconds]
u0_a142 has quit [Quit: WeeChat 4.0.5]
dostoyevsky2 has joined #ruby
justache has quit [Ping timeout: 258 seconds]
justache has joined #ruby
u0_a142 has joined #ruby
dorian has quit [Ping timeout: 258 seconds]
dorian has joined #ruby
mooff has quit [Ping timeout: 252 seconds]
mooff has joined #ruby
u0_a142 has quit [Quit: WeeChat 4.0.5]
u0_a142 has joined #ruby
willfish has quit [Ping timeout: 240 seconds]
u0_a142 has quit [Client Quit]
Jordan has quit [Ping timeout: 252 seconds]
Jordan has joined #ruby
fercell has quit [Ping timeout: 255 seconds]
hightower2 has joined #ruby
fercell has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower2 has joined #ruby
hightower3 has joined #ruby
u0_a142 has joined #ruby
hightower4 has joined #ruby
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
u0_a142 has quit [Client Quit]
u0_a142 has joined #ruby
hightower4 has quit [Ping timeout: 258 seconds]
cognemo has quit [Ping timeout: 252 seconds]
u0_a142 has quit [Client Quit]
cognemo has joined #ruby
hernan has joined #ruby
filipiz has quit [Quit: leaving]
Linux_Kerio has joined #ruby
impy has quit [Remote host closed the connection]
impy has joined #ruby
filipiz has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
Guest26nakilon has joined #ruby
<Guest26nakilon> hey guys, who used gem sequel, am I right that if there are several processes accessing the same sqlite file via DB.transaction{}, there should be no racing?
podge has quit [Ping timeout: 260 seconds]
<Guest26nakilon> I just don't get it; in the test I do DB.transaction{ DB[:urls].delete }, then I invoke my webrick server handle that does DB.transaction{ DB[:urls]. ... }, and it isn't empty; then after the test failed and some seconds passed I use the DB connection to check it manually, and it's empty
<Guest26nakilon> maybe I don't understand something about DB.transaction{}
<Guest26nakilon> or maybe the error is rather somewhere in my code
Rounin has quit [Remote host closed the connection]
<Guest26nakilon> nvm, found an error, the "redo" within timeout that was checking for update on webrick handle was inside a nested block that didn't include the actual webrick request repetition procedure
hightower2 has joined #ruby
taupiqueur_shiny has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
willfish has joined #ruby
willfish has quit [Client Quit]
<adam12> Guest26nakilon: I think sqlite using flock so likely no races, unless you're on something that has unreliable locks like older versions of NFS (and maybe even NFSv4...)
<adam12> I see you solved it.
impy has quit [Ping timeout: 248 seconds]
<Guest26nakilon> lol "Sequel::DatabaseError: SQLite3::CorruptException: database disk image is malformed"
xuochi_ has quit [Quit: IceChat - It's what Cool People use]
filipiz has quit [Read error: Connection reset by peer]
<Guest26nakilon> I did nothing special, this feels like a bug in either macos or alpine gem sqlite3; didn't happen until I put everything in transactions
<Guest26nakilon> or maybe docker's fault
filipiz has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
constxqt_ has joined #ruby
constxqt_ has quit [Read error: Connection reset by peer]
u0_a115 has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
taupiqueur_shiny has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
u0_a115 has quit [Ping timeout: 255 seconds]
alphacentauri has quit [Quit: WeeChat 4.0.5]
alphacentauri has joined #ruby
u0_a115 has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
donofrio has joined #ruby
taupiqueur_shiny has quit [Remote host closed the connection]
Aminda has quit [Ping timeout: 252 seconds]
otisolsen70 has quit [Quit: Leaving]
alphacentauri has quit [Read error: Connection reset by peer]
alphacen1 has joined #ruby
Aminda has joined #ruby
mark22k has joined #ruby
<mark22k> Hello, I wanted to ask if there is a good alternative to EventMachine or celluloid-io? I have seen async-io, however that seems to be enormously complex and have almost no documentation. Is there a gem that is similar event-driven as EM?
u0_a1151 has joined #ruby
u0_a115 has quit [Ping timeout: 272 seconds]
donofrio has quit [Remote host closed the connection]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
<havenwood> mark22k: The modern alternative is Async, one of the Async gems like async-io, or direct use of `Fiber.schedule do`, which they use under the hood.
niv has joined #ruby
<havenwood> mark22k: What I/O are you making async, in particular? You need async TCP or UDP?
<mark22k> I would like to have smaller projects written for practice such as an EchoServer, a Whois server or AICCU for which I need StartSSL.
<mark22k> So rather TCP.
Linux_Kerio has quit [Ping timeout: 240 seconds]
<mark22k> In EM it was quite simple. I had a function where I handled incoming data. When I look at the Async-IO Gem, for example the https://github.com/socketry/async-io/blob/main/examples/echo/server.rb echo server, it all looks a lot more complex.
<havenwood> mark22k: Here's an example echo server with async-io: https://github.com/socketry/async-io/blob/main/examples/echo/server.rb
<havenwood> Ah, you already found it. :)
<mark22k> Do you have any tips for a good documentation or tutorial?
<havenwood> mark22k: Check out this read if you'd like to consider using Fiber.schedule directly — which you can do with regular Ruby I/O. https://brunosutic.com/blog/ruby-fiber-scheduler
<havenwood> mark22k: The Async gem has documentation, and async-io plays nice with it. They're quite well done, for what it's worth. The documentation is relatively lacking, but much, much, easier to work with than EM or Celluloid.
<havenwood> I don't know of an async-io tutorial, but there may be a few.
<mark22k> Thank you! Then I'll have another look at async-io.
<mark22k> (Especially if async-io is the future).
<mark22k> A very specific question: What I noticed with async is that async somehow brings its own logger. Is it possible to specify a logger which should be used? I usually use the standard Ruby logger.
<mark22k> And another question: I once tried to implement a slightly older protocol for fun and needed StartSSL. Does async-io also have TLS built in?
<ox1eef_> Did EventMachin ever have documentation ? :))
<weaksauce> isn't all the ruby docs in the spec folder anyway /s
filipiz has quit [Read error: Connection reset by peer]
<adam12> I think Async used the Console logger
<adam12> You likely can't configure the logger since the console API is slightly different, but you could (unfortunately) just turn it off.
filipiz has joined #ruby
Guest26nakilon has quit [Quit: Client closed]
shokohsc51081293 has joined #ruby
shokohsc5108129 has quit [Ping timeout: 255 seconds]
shokohsc51081293 is now known as shokohsc5108129
<mark22k> @adam12 To be honest, the uniformity of the output is more important to me than the library used. In this case I could also use the Console Logger for my own output.
<adam12> mark22k: I use it. It works well.
<adam12> I also just used the Logger lib (and tty-logger for some projects) but Console supports a neat feature where you can turn on/off specific class logs.
<adam12> So you could crank up the logging verbosity for a specific class during debugging.
filipiz has quit [Read error: Connection reset by peer]
u0_a1151 has quit [Ping timeout: 248 seconds]
filipiz has joined #ruby
u0_a1151 has joined #ruby
brokkoli_orig has quit [Ping timeout: 255 seconds]
brokkoli_origin has joined #ruby
_ht has quit [Quit: _ht]
graywolf has joined #ruby
xuochi has quit [Quit: REALITY.SYS Corrupted: Re-boot universe? (Y/N/Q)]
eddof13 has joined #ruby
eddof13 has quit [Ping timeout: 258 seconds]
OverCoder has quit [Quit: Connection closed for inactivity]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
u0_a1151 has quit [Ping timeout: 255 seconds]
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
filipiz has quit [Read error: Connection reset by peer]
filipiz has joined #ruby
desnudopenguino has quit [Ping timeout: 264 seconds]
desnudopenguino has joined #ruby
filipiz has quit [Read error: Connection reset by peer]