havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.2, 3.1.4, 3.0.6, 3.3.0-preview1: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
lena64t has quit [Remote host closed the connection]
lena64t has joined #ruby
goldfish has quit [Ping timeout: 240 seconds]
passbe has quit [Quit: bye...]
markong has joined #ruby
moldorcoder7 has quit [Ping timeout: 250 seconds]
caedmon has joined #ruby
markong has quit [Ping timeout: 268 seconds]
caedmon has quit [Ping timeout: 265 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 240 seconds]
swaggboi has quit [Quit: C-x C-c]
shokohsc8 has joined #ruby
shokohsc has quit [Ping timeout: 268 seconds]
shokohsc8 is now known as shokohsc
swaggboi has joined #ruby
Guest32 has joined #ruby
Guest32 has left #ruby [#ruby]
jhass has quit [Ping timeout: 250 seconds]
jhass has joined #ruby
DoxYourselfNow has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
grenierm51 has joined #ruby
grenierm51 has quit [Client Quit]
grenierm has quit [Ping timeout: 245 seconds]
John_Ivan has quit [Ping timeout: 240 seconds]
jhass has quit [Ping timeout: 256 seconds]
jhass has joined #ruby
grenierm has joined #ruby
_ht has joined #ruby
cxl has quit [Quit: bye]
cxl has joined #ruby
_ht has quit [Remote host closed the connection]
roadie has joined #ruby
teclator has joined #ruby
expurg has joined #ruby
Sophia6 has joined #ruby
expurg has quit [Read error: Connection reset by peer]
jihads has joined #ruby
Sophia6 has quit [Ping timeout: 268 seconds]
Sophia6 has joined #ruby
jihads has quit [Ping timeout: 240 seconds]
jihads has joined #ruby
Sophia6 has quit [Read error: Connection reset by peer]
Sophia6 has joined #ruby
jihads has quit [Ping timeout: 265 seconds]
jihads has joined #ruby
expurg has joined #ruby
Sophia6 has quit [Ping timeout: 250 seconds]
jihads has quit [Ping timeout: 268 seconds]
expurg has quit [Ping timeout: 250 seconds]
introom has quit [Quit: WeeChat 3.7.1]
introom has joined #ruby
<ox1eef_> isene: Ctrl+C is an exception in Ruby. Are you allowing it to be re-raised ? eg: rescue Interrupt; raise; end; rescue Exception; end
polishdub has quit [Ping timeout: 250 seconds]
<isene> ox1eef_: Ah, I'll look into that.
<isene> Now, how about this; https://gist.github.com/isene/308da04381e5281f3a2cdeda424a0e28#file-gistfile1-txt Running this with cmd containing escape characters (e.g. Esc+Up) crashes out without catching the error and puts does nothing. How can I ensure no error can kille the program?
infinityfye has joined #ruby
polishdub has joined #ruby
grenierm has quit [Quit: Client closed]
nmollerup has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
dionysus69 has joined #ruby
moldorcoder7 has joined #ruby
m_antis has joined #ruby
m_antis has quit [Ping timeout: 240 seconds]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<isene> s/kille/kill/
jvalleroy has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp- is now known as Sankalp
johnjaye has quit [Ping timeout: 240 seconds]
johnjaye has joined #ruby
otisolsen70 has joined #ruby
MalusVulgaris has joined #ruby
nona has joined #ruby
Tempesta has quit [Quit: See ya!]
<mooff> isene: StandardError does not include all possible exceptions, such as system exceptions / syntax errors
<mooff> try "rescue Exception => err"
<isene> mooff: Great. Thanks.
roadie has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.91)]
markong has joined #ruby
<isene> roblem solved - for both rsh and rtfm
<isene> s/^r/Pr/
Guest26nakilon has joined #ruby
<mooff> woot
<Guest26nakilon> I wonder how do I avoid this "@var = arg" thing while keeping the lib API as simple as possible https://github.com/Nakilon/wsui/blob/458cc5cc685c4923df97b6a6a97d3c5eaa0b6f67/lib/wsui.rb#LL10C13-L10C13
<Guest26nakilon> especially with block as var value it looks clumsy
<Guest26nakilon> I don't want the user to define the whole method -- it would make the library become a framework; though maybe it should be a framework, I'm not sure, hm
Tempesta has joined #ruby
gr33n7007h has quit [Ping timeout: 256 seconds]
nona has quit [Quit: WeeChat 3.8]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
John_Ivan has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
otisolsen70_ has joined #ruby
MalusVulgaris has quit [Ping timeout: 240 seconds]
otisolsen70 has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
<Guest26nakilon> made it https://imgur.com/a/YYqLjNK
otisolsen70_ has quit [Quit: Leaving]
otisolsen70 has joined #ruby
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
shokohsc9 has joined #ruby
shokohsc has quit [Ping timeout: 250 seconds]
shokohsc9 is now known as shokohsc
donofrio has joined #ruby
CalculusCats is now known as CalculusCat
Guest26nakilon has quit [Quit: Client closed]
roadie has joined #ruby
Guest26nakilon has joined #ruby
polishdub has quit [Ping timeout: 250 seconds]
polishdub has joined #ruby
_ht has joined #ruby
markong has quit [Ping timeout: 250 seconds]
<ox1eef_> Guest26nakilon: I miss having you around.
<Guest26nakilon> ox1eef_ hey
<ox1eef_> Welcome back :)
<Guest26nakilon> I miss my ability to pay for bnc server and stuff too
<Guest26nakilon> it's just temporary opened webgate page
<Guest26nakilon> I still have no job; get the same response "according to your CV you'll find our job position uninteresting for you (so go starve)"
<ox1eef_> :(
otisolsen70_ has joined #ruby
<ox1eef_> isene: CTRL+d is a common escape mechanism you shold probably implement
<Shell> Guest26nakilon: tried making your CV look stupider? :)
<Shell> (I'm in this mess too, it's not fun)
<ox1eef_> I think the economy is not in such a good state atm
<Shell> it's really not
<ox1eef_> I get that impressiong reading the news
<Shell> my country is formally in a recession apparently
otisolsen70 has quit [Ping timeout: 240 seconds]
<ox1eef_> Yeah the economy is like a bad trip. Up a little, lasts a while then down a lot.
<Guest26nakilon> @Shell I suppose among stupid CVs they chose by age and it's kind of difficult to hide your birthday when you provide the documents or when they google you
* Shell nodnod.
johnhamelink has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Pixi` has quit [Ping timeout: 250 seconds]
Pixi has joined #ruby
John_Ivan has quit [Quit: Disrupting the dragon's slumber one time too often shall eventually bestow upon all an empirical and indiscriminate conflagration that will last for all goddamn eternity.]
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 240 seconds]
<miah> its great for those at the top, for everybody else... pound dirt =)
* miah hi #ruby, been a while. hope all you nerds are doing well.
<leah2> heyy miah
<Guest26nakilon> I wouldn't mind if someone I know here to check my English version of CV for cringe
<Guest26nakilon> *lulz
<Guest26nakilon> **advices
<isene> ox1eef_: that's taken care of
<miah> sup leah2
<miah> i used to feed my resume through grammarly to check syntax / spelling. but now with the invasion of llms I just avoid feeding my text to anything on the web
caedmon has joined #ruby
caedmon has quit [Quit: caedmon]
gantis has joined #ruby
catphish has quit [Quit: Goodbye]
infinityfye has quit [Quit: Leaving]
gantis has quit [Read error: Connection reset by peer]
gantis has joined #ruby
jhass has quit [Quit: Bye]
Guest26nakilon has quit [Quit: Client closed]
jhass has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
MalusVulgaris has joined #ruby
gantis is now known as m_antis
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 256 seconds]
desnudopenguino1 is now known as desnudopenguino
<joto> I'm currently wrapping the code within some migrations with if Rails.env.production? .... end. I want to prevent these migrations from running in development. Would this be the right way to do it?
desnudopenguino has quit [Ping timeout: 250 seconds]
c10l has joined #ruby
<aesthetikx> joto that's probably fine although it raises a few questions;
<aesthetikx> but yes, I have done that before
<adam12> joto: Beware env checks like that, as they hide bugs that you only see in production.
MalusVulgaris has quit [Ping timeout: 250 seconds]
CalculusCat is now known as CalculusCats
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
paulmcquad has joined #ruby
johnjaye has quit [Ping timeout: 240 seconds]
johnjaye has joined #ruby
paulmcquad has quit [Quit: Konversation terminated!]
paulmcquad has joined #ruby
paulmcquad has quit [Quit: Konversation terminated!]
panella32 has joined #ruby
<joto> alright. I will keep it in mind
<joto> it's a temp fix until I get this postgres extension built on my fedora box :-)
<panella32> Hi everybody
<panella32> Could you please check this basic view helper method and let me know what is wrong with it not making the desired output? https://i.imgur.com/pecf8Hn.png
<panella32> This is the only output that appears on the page and I have no idea what the reason could be: {:class=>"item"}
<panella32> Any idea :)
m_antis has quit [Quit: Konversation terminated!]
_ht has quit [Quit: _ht]
m_antis has joined #ruby
<adam12> panella32: I'd start by adding parenthesis.
<adam12> concat content_tag(:div, ...) do
<adam12> You might be dealing with a precedence issue. I'm not familiar enough with Rails to know if your content_tag/concat is correct.
<adam12> Actually, it might be OK. concat is not receieving the block without parens.. I think?
<adam12> I can't confirm because you shared a picture :|
<mooff> > concat content_tag(:div, ...) do
<mooff> fwiw in this form, the block will go to concat
<mooff> > concat content_tag(:div, ...) {
<mooff> in this form, it goes to content_tag
tomtmym has quit [Quit: Gone.]
<panella32> sorry I was actually away.. let me try parenthesis..
<panella32> Thank you mooff adam12, That one-line block syntax did the job perfectly. Thanks again!
panella32 has quit [Quit: Textual IRC Client: www.textualapp.com]
polishdub has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
donofrio has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 248 seconds]
roadie has joined #ruby
desnudopenguino has joined #ruby
markong has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
otisolsen70_ has quit [Quit: Leaving]
m_antis has quit [Ping timeout: 250 seconds]
factor has joined #ruby
cagey31 has joined #ruby
factor has quit [Remote host closed the connection]
factor has joined #ruby
factor has quit [Changing host]
factor has joined #ruby
factor has quit [Remote host closed the connection]
factor has joined #ruby
factor has quit [Remote host closed the connection]
factor has joined #ruby
factor has quit [Remote host closed the connection]
factor has joined #ruby
factor has quit [Remote host closed the connection]
aestheti1 has joined #ruby
ollysmith has quit [Ping timeout: 250 seconds]
henk has quit [Ping timeout: 250 seconds]
CalculusCats4 has joined #ruby
con3 has quit [Ping timeout: 250 seconds]
CalculusCats has quit [Ping timeout: 250 seconds]
aesthetikx has quit [Ping timeout: 250 seconds]
CalculusCats4 is now known as CalculusCats
keyvan has quit [Ping timeout: 250 seconds]
ollysmith has joined #ruby
con3 has joined #ruby
henk has joined #ruby
keyvan has joined #ruby
roadie` has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
markong has quit [Ping timeout: 250 seconds]