havenwood changed the topic of #ruby to: Ruby 3.4.2, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
wbooze has joined #ruby
wbooze has quit [Ping timeout: 272 seconds]
blacknova has quit [Quit: Connection closed for inactivity]
MyNetAz has quit [Remote host closed the connection]
jasfloss has quit [Ping timeout: 276 seconds]
MyNetAz has joined #ruby
gemmaro has quit [Ping timeout: 252 seconds]
jasfloss has joined #ruby
gemmaro has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
CRISPR has joined #ruby
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Vonter has joined #ruby
CRISPR has quit [Ping timeout: 252 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
<nakilon> I would just merge junit report files; every framework can generate them; but probably there is still no functionality to generate html report from xml, and the generator is still not separatable from rspec runner
nil78 has quit [Read error: Connection reset by peer]
cappy has joined #ruby
nil78 has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
hwpplayer1 has joined #ruby
Thanzex02 has quit [Ping timeout: 244 seconds]
Thanzex02 has joined #ruby
wbooze has joined #ruby
grenierm has joined #ruby
whysthatso125070 has joined #ruby
Exa has quit [Read error: Connection reset by peer]
Exa has joined #ruby
Exa has quit [Quit: see ya!]
Exa has joined #ruby
cappy has quit [Quit: Leaving]
hwpplayer1 has quit [Remote host closed the connection]
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
TomyWork has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
r0bby has quit [Ping timeout: 260 seconds]
r0bby has joined #ruby
grenierm has quit [Quit: Client closed]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
wbooze has quit [Quit: Leaving]
nil78 has quit [Read error: Connection reset by peer]
hwpplayer1 has joined #ruby
wbooze has joined #ruby
nil78 has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
naiithink has joined #ruby
naiithink has quit [Client Quit]
hwpplayer1 has joined #ruby
TomyLobo2 has joined #ruby
TomyWork has quit [Ping timeout: 268 seconds]
wbooze has quit [Ping timeout: 246 seconds]
wbooze has joined #ruby
Exagone313 has joined #ruby
Exa has quit [Read error: Connection reset by peer]
Exagone313 is now known as Exa
wbooze has quit [Quit: Leaving]
Milos_ has quit [Ping timeout: 245 seconds]
wbooze has joined #ruby
Milos has joined #ruby
Exa has quit [Read error: Connection reset by peer]
Exa has joined #ruby
Exa has quit [Client Quit]
Exa has joined #ruby
Exagone313 has joined #ruby
Exa has quit [Read error: Connection reset by peer]
Exagone313 has quit [Remote host closed the connection]
Exa has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
Exa has quit [Quit: see ya!]
Exa has joined #ruby
hwpplayer1 has joined #ruby
Exa has quit [Read error: Connection reset by peer]
Exagone313 has joined #ruby
Exagone313 is now known as Exa
o0x1eef has joined #ruby
user71 has joined #ruby
blacknova has joined #ruby
wbooze has quit [Ping timeout: 252 seconds]
Obsdark has joined #ruby
Obsdark has quit [Changing host]
Obsdark has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
CRISPR has joined #ruby
wbooze has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
szkl has quit [Quit: Connection closed for inactivity]
CRISPR has quit [Ping timeout: 265 seconds]
nil78 has joined #ruby
GreenResponse has joined #ruby
o0x1eef has quit [Ping timeout: 252 seconds]
o0x1eef has joined #ruby
nil78 has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
wbooze has quit [Ping timeout: 265 seconds]
wbooze has joined #ruby
wbooze has quit [Remote host closed the connection]
Thanzex02 has quit [Ping timeout: 272 seconds]
nil78 has joined #ruby
wbooze has joined #ruby
sts has quit [Ping timeout: 245 seconds]
Thanzex02 has joined #ruby
JSharp has quit [Ping timeout: 245 seconds]
sts has joined #ruby
dionysus69 has joined #ruby
<nakilon> does "to_enum" still execute the method after the "yield" keyword (otherwise it would not know if there was another one) but ignores the return value? kind of shutting it up? the name ".shut_up" or ".ignore" would be a descriptive alias
<nakilon> or ".exploit"
twopoint718 has quit [Ping timeout: 265 seconds]
<nakilon> and so you are kind of able to implement two methods as one -- just implement an external one and yield intermediate results, whether you need to read/edit them or not
<nakilon> but if it's not an iterator, can I instruct the only "yield" invocation to halt and not proceed? I guess so, with "break"
JSharp has joined #ruby
numlocked has quit [Ping timeout: 265 seconds]
twopoint718 has joined #ruby
<o0x1eef> AFAIK it is usually implemented like 'return enum_for(:method_name) unless block_given?'
gr33n7007h has quit [Ping timeout: 265 seconds]
gr33n7007h has joined #ruby
<nakilon> yeah, for methods like .sum (not that I like it, I would rather do .map{...}.sum), but I don't recall any single iteration method with this thing; it would be two variants of call -- .m() and .m{}, to get the intermediate value (and halt) or a resulting one
numlocked has joined #ruby
konsolebox has quit [Quit: Leaving]
wbooze has quit [Read error: Connection reset by peer]
<o0x1eef> I don't think the code after the yield is executed until there's no yields left: https://gist.github.com/0x1eef/ce484fc210c609f6e559c5e573fcc1ce - in that example, "enum.next" doesn't print anything until the last next call. It looks very similar to how Fibers work. If I did enum.map {} instead, then 123 is printed after there's nothing left to yield.
<o0x1eef> Methods like 'next' are referred to as 'external iteration' and are implemented with Fiber
testone has joined #ruby
<CalimeroTeknik> I'm at a loss, can someone help me decode this stack trace's cause? "LoadError: cannot load such file -- sqlite3" and the rest is here https://0x0.st/8A1w.txt
<CalimeroTeknik> it seems trivial, and yet, I can't even locate a `require 'sqlite3'` or similar
<CalimeroTeknik> the source code of this bot is at https://github.com/k5bot/k5bot
<petru> gem install sqlit3 ?
<petru> gem install sqlite3 ?
<petru> I think I've had that error before, I don't remember exactly how I solved it
blacknova has quit [Quit: Connection closed for inactivity]
<petru> Or sudo apt install sqlite3
<petru> Or something
<petru> I'm not sure if the gem alone installs sqlite3
testone has quit [Quit: Client closed]
<CalimeroTeknik> gem install sqlite3 did not help!
<CalimeroTeknik> it's a bundler project, so it should have installed what it needs…
<petru> What about apt?
<petru> assuming here you're using debian/ubuntu
<CalimeroTeknik> well, it's gentoo, but sqlite is present
<CalimeroTeknik> this appeared following a `bundle update`
<CalimeroTeknik> I was hoping that the stack trace was explicit as to what component was looking for a 'sqlite3' import
testone has joined #ruby
<petru> Perhaps you need an older version of sqlite3 gem?
<petru> You are, after all, running ruby 3.1.0
<petru> Try changing the Gemfile to: gem 'sqlite3', '~> 1.5'
<petru> Run 'gem list sqlite3' to find out which one bundler has installed
o0x1eef has quit [Ping timeout: 252 seconds]
o0x1eef has joined #ruby
hwpplayer1 has quit [Read error: Connection reset by peer]
user71 has quit [Quit: Leaving]
hwpplayer1 has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
sunyour has joined #ruby
Cork has quit [Ping timeout: 260 seconds]
<adam12> CalimeroTeknik: A real mystery.
<adam12> CalimeroTeknik: Does it improve if you do `bundle exec bot.rb`?
<adam12> Likely not but worth a shot.
<adam12> Did you configure your own database connection?
<weaksauce> do you have sqlite3 installed? not the gem
<adam12> A lot of that gem has atrophied, so I can't try it locally
<adam12> One observation is that the sqlite3 dependency in the lockfile is super old.
<adam12> Tho Sequel is fairly new.
<weaksauce> can you require from irb?
<adam12> Oh nm. Sequel is old too.
hwpplayer1 has joined #ruby
TomyLobo2 has quit [Quit: Leaving]
graywolf has joined #ruby
graywolf has quit [Client Quit]
Cork has joined #ruby
<nakilon> o0x1eef: I mean smth like this https://ideone.com/8eMR1s -- if you all just .first on itself, you don't go further, but invoking it with {} you finish the execution
<nakilon> *if you call
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
nil78 has quit [Read error: Connection reset by peer]
testone has quit [Quit: Client closed]
joako has quit [Quit: quit]
joako has joined #ruby
nil78 has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
GreenResponse has quit [Quit: Leaving]
CRISPR has joined #ruby
<havenwood> nakilon: Under the hood, a Fiber suspends after a `yield` or `block.call`.
<havenwood> Enumerator is built on top of Fiber.
<havenwood> Here's a quick stab I took at implementing Enumerator in Ruby with Fiber, for example: https://gist.github.com/havenwood/964aaba914ace2d561d85b4110ead0ce
<havenwood> Real Enumerators are Fiber-backed too.
<havenwood> If you `yield` a bunch of times it'll suspend after each.
hwpplayer1 has quit [Remote host closed the connection]
cappy has joined #ruby
CRISPR has quit [Ping timeout: 248 seconds]
nil78 has quit [Read error: Connection reset by peer]
nil78 has joined #ruby
mange has joined #ruby