jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
taiju has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp- is now known as Sankalp
jpn has joined #ruby
aeris has quit [Remote host closed the connection]
jpn has quit [Ping timeout: 240 seconds]
nirvdrum has joined #ruby
aeris has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
Rounin has quit [Ping timeout: 244 seconds]
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
nirvdrum has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
John_Ivan has quit [Ping timeout: 260 seconds]
<tweaks> i am considering upgrading a rails app from 4.2 to the latest and greatest. wondering which approach will be better: 1. go in order one at a time, 4.2->5, 5->6 etc. or 2. start with an empty rails7 project and paste code in and fix errors while referencing release docs.
arg_ has joined #ruby
<tweaks> or just continue patch 4.2 for eternity :)
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
szkl has joined #ruby
<weaksauce> tweaks you could try them both but start with the rails 7 and see how far off you are
<weaksauce> probably easier to just do it incrementally and heed the deprecation warnings
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
keb has joined #ruby
weaksauce has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 260 seconds]
Ziyan has joined #ruby
keb has quit [Ping timeout: 264 seconds]
memorandums6 has joined #ruby
memorandums6 has quit [Ping timeout: 268 seconds]
memorandums6 has joined #ruby
e2 has quit [*.net *.split]
leftylink has quit [*.net *.split]
pvalenta has quit [*.net *.split]
jimeh has quit [*.net *.split]
ralu1 has quit [*.net *.split]
sol_ has quit [*.net *.split]
sol has joined #ruby
ralu1 has joined #ruby
memorandums6 has quit [Ping timeout: 268 seconds]
leftylink has joined #ruby
jimeh has joined #ruby
pvalenta has joined #ruby
e2 has joined #ruby
Cork has quit [*.net *.split]
dcx has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
seabre has quit [*.net *.split]
dza has quit [*.net *.split]
Zerock has quit [*.net *.split]
Henry151 has quit [*.net *.split]
kenichi has quit [*.net *.split]
peer has quit [*.net *.split]
Byteflux has quit [*.net *.split]
micro has quit [*.net *.split]
dminuoso has quit [*.net *.split]
Guest9768 has quit [*.net *.split]
splud has quit [*.net *.split]
ikonia has quit [*.net *.split]
cjac has quit [*.net *.split]
moo has quit [*.net *.split]
con3 has quit [*.net *.split]
asio has quit [*.net *.split]
micro has joined #ruby
asio has joined #ruby
cjac has joined #ruby
moo has joined #ruby
kenichi has joined #ruby
Guest9768 has joined #ruby
splud has joined #ruby
Zerock has joined #ruby
Byteflux has joined #ruby
splud has joined #ruby
splud has quit [Changing host]
peer has joined #ruby
seabre has joined #ruby
Henry151 has joined #ruby
con3 has joined #ruby
EdwardIII has joined #ruby
Zerock is now known as Guest3753
dcx has joined #ruby
Cork has joined #ruby
dminuoso has joined #ruby
konsolebox has joined #ruby
ikonia has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
weaksauc_ has joined #ruby
weaksauce has quit [Ping timeout: 268 seconds]
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 268 seconds]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
ur5us has joined #ruby
taiju has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
Linux_Kerio has joined #ruby
Ziyan_ has quit [Ping timeout: 268 seconds]
kiwi_36 has quit [Read error: Connection reset by peer]
kiwi_36 has joined #ruby
arg_ has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
_ht has joined #ruby
ur5us has joined #ruby
protektwar has quit [Ping timeout: 272 seconds]
protektwar has joined #ruby
protektwar has joined #ruby
protektwar has quit [Remote host closed the connection]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
Linux_Kerio has quit [Ping timeout: 240 seconds]
BH23 has joined #ruby
Sankalp has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
BH23 has quit [Quit: Leaving]
BH23 has joined #ruby
BH23 has quit [Remote host closed the connection]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Sankalp has joined #ruby
teclator has joined #ruby
Linux_Kerio has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
jpn has joined #ruby
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
perrierjouet has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
BH23 has joined #ruby
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
Ziyan has quit [Ping timeout: 240 seconds]
keb has joined #ruby
Ziyan has joined #ruby
older7 has joined #ruby
older7 has quit [Ping timeout: 252 seconds]
perrierjouet has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
arg_ has joined #ruby
totoro has quit [Quit: ZNC 1.8.2 - https://znc.in]
totoro has joined #ruby
Guest3753 has quit [Quit: Guest3753]
Zerock has joined #ruby
jl- has joined #ruby
markong has joined #ruby
jl- has quit [Ping timeout: 252 seconds]
jpn has quit [Ping timeout: 245 seconds]
Ziyan_ has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
markong has quit [Ping timeout: 245 seconds]
markong has joined #ruby
BH23 has quit [Ping timeout: 252 seconds]
Ziyan has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
Ziyan has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
thefuture_ has joined #ruby
Ziyan has quit [Ping timeout: 264 seconds]
Ziyan_ has joined #ruby
kiwi_36 has quit [Ping timeout: 264 seconds]
BH23 has joined #ruby
thefuture__ has joined #ruby
thefuture_ has quit [Ping timeout: 268 seconds]
nirvdrum has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
Rounin has joined #ruby
thefuture_ has joined #ruby
thefuture__ has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
dionysus69 has joined #ruby
dza has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
aeris has quit [Remote host closed the connection]
Aminda has quit [Write error: Broken pipe]
aeris has joined #ruby
Aminda has joined #ruby
nirvdrum has joined #ruby
jpn has quit [Ping timeout: 264 seconds]
libsys has quit [Ping timeout: 268 seconds]
libsys has joined #ruby
jpn has joined #ruby
keb has quit [Remote host closed the connection]
protektwar has quit [Ping timeout: 264 seconds]
Laplace has joined #ruby
jl- has joined #ruby
John_Ivan has joined #ruby
jl- has quit [Ping timeout: 245 seconds]
gr33n7007h has quit [Quit: WeeChat 3.6]
mbrndtgn has quit [Quit: Bye!]
gr33n7007h has joined #ruby
Ziyan has joined #ruby
Ziyan_ has quit [Ping timeout: 272 seconds]
thefuture__ has joined #ruby
thefuture_ has quit [Ping timeout: 252 seconds]
arg_ has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Ping timeout: 252 seconds]
rvalue has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
TomyWork has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 268 seconds]
desnudopenguino1 is now known as desnudopenguino
markong has quit [Ping timeout: 245 seconds]
BH23 has quit [Ping timeout: 252 seconds]
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
rvalue has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Zerock is now known as pizzer
pizzer is now known as Zerock
rwaweber has quit [Remote host closed the connection]
matta has quit [Remote host closed the connection]
g_sg has quit [Remote host closed the connection]
patrick has quit [Remote host closed the connection]
graemefawcett has quit [Remote host closed the connection]
srushe has quit [Read error: Connection reset by peer]
Bounga has quit [Write error: Connection reset by peer]
hwrd has quit [Remote host closed the connection]
caleb has quit [Remote host closed the connection]
alexisg has quit [Remote host closed the connection]
tsujp has quit [Write error: Connection reset by peer]
KOTP has quit [Remote host closed the connection]
jl- has joined #ruby
TomyWork has quit [Quit: Leaving]
patrick has joined #ruby
graemefawcett has joined #ruby
KOTP has joined #ruby
rwaweber has joined #ruby
hwrd has joined #ruby
matta has joined #ruby
caleb has joined #ruby
tsujp has joined #ruby
g_sg has joined #ruby
srushe has joined #ruby
alexisg has joined #ruby
desnudopenguino1 has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
desnudopenguino has quit [Ping timeout: 272 seconds]
desnudopenguino1 is now known as desnudopenguino
matoro has quit [Ping timeout: 272 seconds]
matta has quit [Remote host closed the connection]
KOTP has quit [Remote host closed the connection]
rwaweber has quit [Remote host closed the connection]
tsujp has quit [Remote host closed the connection]
graemefawcett has quit [Remote host closed the connection]
patrick has quit [Remote host closed the connection]
hwrd has quit [Remote host closed the connection]
g_sg has quit [Remote host closed the connection]
caleb has quit [Remote host closed the connection]
srushe has quit [Remote host closed the connection]
alexisg has quit [Remote host closed the connection]
patrick has joined #ruby
graemefawcett has joined #ruby
Bounga has joined #ruby
srushe has joined #ruby
patrick has quit [Changing host]
patrick has joined #ruby
alexisg has joined #ruby
g_sg has joined #ruby
KOTP has joined #ruby
caleb has joined #ruby
rwaweber has joined #ruby
tsujp has joined #ruby
hwrd has joined #ruby
matta has joined #ruby
dionysus69 has joined #ruby
typeof[panda] has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
matoro has joined #ruby
matoro has joined #ruby
matoro has quit [Changing host]
caleb has quit [Remote host closed the connection]
tsujp has quit [Remote host closed the connection]
patrick has quit [Remote host closed the connection]
alexisg has quit [Remote host closed the connection]
graemefawcett has quit [Remote host closed the connection]
g_sg has quit [Write error: Broken pipe]
hwrd has quit [Remote host closed the connection]
matta has quit [Remote host closed the connection]
srushe has quit [Write error: Broken pipe]
Bounga has quit [Write error: Broken pipe]
KOTP has quit [Remote host closed the connection]
rwaweber has quit [Remote host closed the connection]
patrick has joined #ruby
graemefawcett has joined #ruby
Bounga has joined #ruby
srushe has joined #ruby
KOTP has joined #ruby
matta has joined #ruby
rwaweber has joined #ruby
alexisg has joined #ruby
hwrd has joined #ruby
tsujp has joined #ruby
caleb has joined #ruby
g_sg has joined #ruby
typeof[panda] has quit [Quit: Client closed]
Laplace has quit [Quit: Connection closed for inactivity]
Na_Klar has joined #ruby
<Na_Klar> I have a function foo() which is loaded in the main script. The main script forkes a Thread.new() and within this thread foo() is called. My question is: will foo() run in the child or parent thread?
<Zerock> child
<Na_Klar> so if foo() sleeps for 10 sec. the child thread will be halted for 10 sec. but not the main thread?
<Zerock> correct
<Na_Klar> ok
<Na_Klar> thx
<Zerock> you could always test
<Na_Klar> sure, just to be sure.
<Na_Klar> (sometimes you misconcept things in your head)
<Zerock> but it would make no sense if function call threads depended on when they were defined
<Zerock> it matters when the call is made
<Na_Klar> that was what I would have expected. I just have a weird issue in my script which looks like the child wouldn't halt on the function. but that must be a misinterpretation.
<Zerock> I had a race condition recently because of a scoping problem. In the main thread, the value of a variable changed before the child thread got to read from that variable, so it caused some weird behavior
<Zerock> I fixed it by moving the thread fork into another function, so that the scope of that variable name was limited to the new thread, and the main thread was free to redefine it
<Na_Klar> I see. In my case the child writes text to the console and for debuggin purpose I slowed down the child, but the text is already there before the child writes it (again) .. very strange
<Zerock> can I see this part of your code? maybe there's something you're not seeing
<Na_Klar> puh, let's see .. maybe I could collect the relevant parts. it's quite spreaded code. wait a moment ..
<Zerock> my guess is you are somehow inadvertently calling the function twice
<Na_Klar> that's possible, indeed
jl- has joined #ruby
<Na_Klar> hehe, funny, while assembling the relevant parts for you, Zerock, I found the error.
<Na_Klar> ah no
<Na_Klar> no, no, false alarm
jl- has quit [Ping timeout: 268 seconds]
<Na_Klar> if I then slow down refresh() the input is stil written to the screen and then slowly overwritten by refresh() .. very strange
<Zerock> so which line is your debug line?
<Na_Klar> it's just sleep(1) in the refresh() def
<Zerock> so refresh is what's running twice?
<Na_Klar> the user inputs e.g. "asdf" quickly. my expected behavior would be "a" one sec "as" one sec "asd" etc. .. but there is the "asdf" seen instantly, and then the cursor runs slowly over it an writes a s d f again.
ur5us has quit [Ping timeout: 272 seconds]
<Na_Klar> ahhh ..
<Na_Klar> omg
<Na_Klar> that terminal behaves differently, than the one I developed the script at. On my development terminal ioc.getch would block the terminal from showing the input "on itself". on that production terminal it shows the input nevertheless .. that I didn't expect :S
<Zerock> that'll do it
<Na_Klar> or no .. no, you were right Zerock. Somehow that refresh() method must be called twice ..
<Zerock> Na_Klar: try raising an exception in refresh() and look at the traceback
<Na_Klar> ah, that's an idea
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
thefuture__ has quit [Quit: Leaving]
<Na_Klar> Okay, the terminal is defintely acting weird. It seems to me like when it's input isn't processed within a timeout or something, it decides to just write the input to the output .. very weird. I counter checked with the development terminal, and that does never show this behavior.
<Zerock> annoying
<adam12> Has anybody delayed Array style pattern matching? I'd like to make a custom assertion but I can't seem to delay the Array style matcher correctly.
<adam12> assert_pattern some_obj, [String, String, String]; def assert_pattern(obj, pat); assert(obj.any? { _1 in ^pat });
_ht has quit [Quit: _ht]
<adam12> I made my own object that responds to === and cheats a bit, but I can't help but wonder if there's a better way.
<adam12> It's using a 3.1 feature as well, ^(expr) ... oh well.
<adam12> https://gist.github.com/adam12/677199202cb76791b6e767563b93e908 in case someone wants to noodle on it.
arg_ has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 272 seconds]
Ziyan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Na_Klar has left #ruby [https://quassel-irc.org - Komfortabler Chat. Überall. ]
jpn has quit [Ping timeout: 240 seconds]
phenom has quit [Quit: Everyone has a plan until they get punched in the face. -Mike Tyson-]
phenom has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 252 seconds]
markong has joined #ruby
Goya6 has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 245 seconds]
jpn has joined #ruby
Laurels9 has joined #ruby
Goya6 has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 268 seconds]
jl- has joined #ruby
jpn has joined #ruby
ivanf has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
jpn has quit [Ping timeout: 252 seconds]
Laurels9 has quit [Ping timeout: 245 seconds]
arg_ has quit [Quit: Connection closed for inactivity]
moldorcoder7_ has quit [Ping timeout: 276 seconds]
jpn has joined #ruby
moldorcoder7 has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
arg_ has joined #ruby
Linux_Kerio has quit [Ping timeout: 252 seconds]
jl- has joined #ruby