havenwood changed the topic of #ruby to: Ruby 3.4.3, 3.3.8 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
jhass_ has joined #ruby
troojg has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
ih8u has joined #ruby
entropie has quit [Quit: ""]
entropie has joined #ruby
patrick__ has joined #ruby
patrick has joined #ruby
patrick has quit [Changing host]
patrick__ is now known as patrick
Ca1us has joined #ruby
waesum_ has joined #ruby
dza4 has joined #ruby
sarna has quit [Ping timeout: 252 seconds]
zph1nx has joined #ruby
jhass has quit [Ping timeout: 252 seconds]
jhass_ is now known as jhass
heinrich5991 has quit [*.net *.split]
matta has quit [*.net *.split]
srushe has quit [*.net *.split]
vnpower_ has quit [*.net *.split]
dza has quit [*.net *.split]
zphinx has quit [*.net *.split]
Caius has quit [*.net *.split]
waesum has quit [*.net *.split]
jhass_ has joined #ruby
jhass_ has quit [Remote host closed the connection]
fercell has quit [Quit: ZNC - https://znc.in]
fercell has joined #ruby
matta has joined #ruby
vnpower_ has joined #ruby
srushe has joined #ruby
heinrich5991 has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
ih8u has quit [Remote host closed the connection]
R2robot has quit [Read error: Connection reset by peer]
troojg has quit [Ping timeout: 260 seconds]
R2robot has joined #ruby
dza4 is now known as dza
Linux_Kerio has joined #ruby
phenom has quit [Read error: Connection reset by peer]
phenom has joined #ruby
grenierm has joined #ruby
sphex has quit [Quit: leaving]
cappy has joined #ruby
fantazo has joined #ruby
cappy has quit [Quit: Leaving]
STASIdownunder has joined #ruby
jmcantrell has quit [Ping timeout: 244 seconds]
cappy has joined #ruby
nirvdrum7411 has joined #ruby
nirvdrum741 has quit [Ping timeout: 244 seconds]
nirvdrum7411 is now known as nirvdrum741
STASIdownunder has quit [Ping timeout: 245 seconds]
cappy has quit [Quit: Leaving]
cappy has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
STASIdownunder has joined #ruby
STASIdownunder has quit [Read error: Connection reset by peer]
cappy has quit [Quit: Leaving]
grenierm has quit [Ping timeout: 240 seconds]
Perflosopher038 has joined #ruby
Perflosopher03 has quit [Ping timeout: 272 seconds]
Perflosopher038 is now known as Perflosopher03
brokkoli_origin has quit [Ping timeout: 272 seconds]
schne1der has joined #ruby
johnhamelink has quit [Read error: Connection reset by peer]
simonista has quit [Read error: Connection reset by peer]
RetroPunk has quit [Read error: Connection reset by peer]
Bounga has quit [Write error: Connection reset by peer]
whereiseveryone has quit [Write error: Connection reset by peer]
pjaspers has quit [Write error: Connection reset by peer]
g_sg has quit [Write error: Connection reset by peer]
johnhamelink has joined #ruby
whereiseveryone_ has joined #ruby
simonista has joined #ruby
g_sg_ has joined #ruby
pjaspers has joined #ruby
RetroPunk has joined #ruby
Bounga has joined #ruby
g_sg_ is now known as g_sg
whereiseveryone_ is now known as whereiseveryone
brokkoli_origin has joined #ruby
sphex has joined #ruby
TomyLobo has joined #ruby
DTE has joined #ruby
DTE has left #ruby [#ruby]
schne1der has quit [Ping timeout: 268 seconds]
GreenResponse has joined #ruby
schne1der has joined #ruby
Linux_Kerio has joined #ruby
STASIdownunder has joined #ruby
STASIdownunder has quit [Read error: Connection reset by peer]
fantazo has quit [Quit: Lost terminal]
schne1der has quit [Ping timeout: 248 seconds]
qsx has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
qsx has joined #ruby
STASIdownunder has joined #ruby
infinityfye has joined #ruby
STASIdownunder has quit [Read error: Connection reset by peer]
gemmaro has quit [Ping timeout: 260 seconds]
gemmaro_ has joined #ruby
STASIdownunder has joined #ruby
rhe has quit [Quit: Ping timeout (120 seconds)]
rhe has joined #ruby
<nakilon> I wish there was a way to know that the binding.irb was called; so I could stop printing things in another looped thread
<nakilon> I could assign the thread to some global variable and kill it before binding.irb though
<nakilon> but maybe there is a way to know if there is a some kind of terminal session active in any thread that waits for user input (i.e. irb session)
STASIdownunder has quit [Read error: Connection reset by peer]
Rounin has joined #ruby
<nakilon> should I store my Thread via "config.add_setting :my_thread" or via "before(:all){ @my_thread = ... }"?
otisolsen70 has joined #ruby
STASIdownunder has joined #ruby
nirvdrum741 has quit [Remote host closed the connection]
<nakilon> are the only differences between shared contexts (config.include_context) and modules (config.include) these? 1. module can also be used with "config.extend" 2. module can't include contexts/examples
nirvdrum741 has joined #ruby
STASIdownunder has quit [Read error: Connection reset by peer]
nirvdrum741 has quit [Quit: The Lounge - https://thelounge.chat]
nirvdrum741 has joined #ruby
<nakilon> nvm, before(:suite){ @... } does not seem to work
ih8u has joined #ruby
STASIdownunder has joined #ruby
<o0x1eef> defined?(IRB.conf) might be one way
<o0x1eef> It comes into being when you call binding.irb, otherwise it is not defined
<o0x1eef> No need for .conf - IRB alone would be fine
jmcantrell has joined #ruby
user71 has joined #ruby
Linux_Kerio has quit [Ping timeout: 252 seconds]
otisolsen70 has quit [Quit: Leaving]
dionysus69 has joined #ruby
nirvdrum741 has quit [Quit: The Lounge - https://thelounge.chat]
<havenwood> A less reliable way would be: binding.local_variables.include?(:_)
<havenwood> I agree on `defined? IRB` is nice. Or `Module.const_defined?(:IRB)` works well too.
andy-turner has joined #ruby
hwpplayer1 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
___nick___ has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
trillion_exabyte has quit [Ping timeout: 252 seconds]
<nakilon> hmmm, I'll try defined?(IRB)
<nakilon> and you call it via "irb binding" instead of "binding.irb"
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
schne1der has joined #ruby
infinityfye has quit [Read error: Connection reset by peer]
<havenwood> nakilon: It might be worth swapping `Time.now` for `Process.clock_gettime(Process::CLOCK_MONOTONIC)` for monotonic time so edge cases like time adjustments or daylight saving don't occasionally make the test fail.
hwpplayer1 has joined #ruby
hwpplayer1 has quit [Ping timeout: 244 seconds]
schne1der has quit [Ping timeout: 276 seconds]
trillion_exabyte has joined #ruby
user71 has quit [Quit: Leaving]
___nick___ has quit [Ping timeout: 248 seconds]
schne1der has joined #ruby
<nakilon> so I backtracked the infinite loop until found it's not a third-party library bug but a loop in my code; I think I need some sort of profiling, but it should better be a line profiler; and it should count the calls, so when you are stuck in the loop there is a clear border in the backtrace where the counter would grow
<nakilon> probably it's done via TracePoint
andy-turner has quit [Quit: Leaving]
schne1der has quit [Ping timeout: 248 seconds]
<o0x1eef> Sounds similar to: https://github.com/0x1eef/trip.rb?tab=readme-ov-file#require - where I count the number of requires Pry makes. It is built on TracePoint. It might save you some time. Otherwise vanilla TracePoint can definitely do that, but probably with a bit of code.
cappy has joined #ruby
hwpplayer1 has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
GreenResponse has quit [Quit: Leaving]
donofrio2 has joined #ruby
donofrio has quit [Ping timeout: 244 seconds]
donofrio has joined #ruby
donofrio2 has quit [Ping timeout: 265 seconds]
mange has joined #ruby