adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
perrierjouet has quit [Quit: WeeChat 3.2]
ansimita has left #ruby [#ruby]
Guest59 has joined #ruby
Guest59 has quit [Client Quit]
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
Rounin has quit [Ping timeout: 245 seconds]
ansimita has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
gggp has joined #ruby
gr33n7007h has quit [Ping timeout: 250 seconds]
SuperLag has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
gggp__ has joined #ruby
gggp has quit [Ping timeout: 245 seconds]
<rapha> nakilon: now i will have to change all my code wherever possible to use String#[/.../] instead of String#match(/.../) wherever possible.
roadie has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
gggp_ has joined #ruby
gggp__ has quit [Ping timeout: 240 seconds]
lunarkitty has quit [Quit: Connection closed for inactivity]
perrierjouet has joined #ruby
neshpion has quit [Quit: neshpion]
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
roadie has joined #ruby
ur5us has joined #ruby
jpw has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
kiki_lamb has joined #ruby
swaggboi has quit [Quit: C-x C-c]
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY_ has joined #ruby
swaggboi has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
fdan has joined #ruby
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 252 seconds]
dachi_ has joined #ruby
AEtherC0r3 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
AEtherC0r3 has joined #ruby
kiki_lamb has quit [Quit: leaving]
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
gggp__ has quit [Ping timeout: 252 seconds]
dviola has joined #ruby
gggp has joined #ruby
lunarkitty has joined #ruby
Rounin has joined #ruby
_ht has joined #ruby
reset has quit [Quit: reset]
gr33n7007h has quit [Ping timeout: 240 seconds]
fdan has quit [Quit: Client closed]
MalkbabY_ has quit [Remote host closed the connection]
MalkbabY has joined #ruby
gr33n7007h has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
mikrosis has joined #ruby
goepsilongo has joined #ruby
gggp has quit [Read error: Connection reset by peer]
devcat has joined #ruby
lunarkitty has quit [Quit: Connection closed for inactivity]
devcat has quit [Quit: Leaving]
Rounin has quit [Ping timeout: 252 seconds]
roadie has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
jp7webdesign has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
mikrosis1 has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.2]
perrierjouet has joined #ruby
mikrosis has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
goepsilongo has quit [Quit: Konversation terminated!]
roadie has quit [Remote host closed the connection]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
roadie has joined #ruby
jetchisel has joined #ruby
reset has joined #ruby
noa has joined #ruby
horribleprogram has joined #ruby
<horribleprogram> absolute Ruby beginner programmer
<horribleprogram> are the globals that are prepended with $ different from the ones that aren't?
<horribleprogram> example... $LOAD_PATH and ARGV
jp7webdesign has quit [Quit: Textual IRC Client: www.textualapp.com]
horribleprogram has quit [Quit: Leaving...]
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
jpw_ has joined #ruby
jpw has quit [Ping timeout: 252 seconds]
roadie has joined #ruby
mikrosis1 has quit [Ping timeout: 240 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
goepsilongo has joined #ruby
moldorcoder7 has quit [Ping timeout: 240 seconds]
user__ has joined #ruby
elf_fortrez has joined #ruby
moldorcoder7 has joined #ruby
random-jellyfish has joined #ruby
elf_fortrez has quit [Quit: Client closed]
<ansimita> horribleprogram: globals without $ are constant https://docs.ruby-lang.org/en/3.0.0/doc/globals_rdoc.html
<ccooke> Sadly they didn't stay for an answer
<ansimita> ah, I missed that. At least I learned something from it.
<ccooke> (Technically, stuff like ARGV is not global. constants are scoped - ARGV for instance is actually Object::ARGV. In most situations, it's available because you're inheriting from Object)
reset has quit [Quit: reset]
moldorcoder7 has quit [Ping timeout: 252 seconds]
<random-jellyfish> I have a sinatra related question:
<random-jellyfish> get '/victory' do
<random-jellyfish> if session[:id]
<random-jellyfish> session[:id]="1"
<random-jellyfish> return "not nil #{session[:id]}"
<random-jellyfish> else
<random-jellyfish> return "nil"
<random-jellyfish> end
<random-jellyfish> end
<random-jellyfish> I want to set a cookie
<random-jellyfish> by assigning 1 to session[:id]
<random-jellyfish> the problem is that after I refresh the page I don't see it set
<random-jellyfish> the code I pasted above is wrong
<random-jellyfish> I wanted to do session[:id]="1" in the else branch right before return
<random-jellyfish> does anybody know why this doesn't work?
moldorcoder7 has joined #ruby
elf-fortrez has joined #ruby
<rapha> adam12: i see now why you said it would be overkill. 20 lines vs. 1 line for nakilon's regex solution. but somehow really cool, too. and you even turned it into a little command line program! interestingly it also has a similar bug as the first attempt you made ... not just with whitespace, but also with punctuation. wasn't able to fix it yet, but put some debugging output in to make it a little easier to play
gr33n7007h has quit [Ping timeout: 250 seconds]
<adam12> rapha: Yeah, I tested it a little bit, but matching on `\b` might be rong.
<adam12> random-jellyfish: What about `session["id"]`
<adam12> random-jellyfish: Depending on the serialization mechanism, symbols (:id) won't make it through the serialization/deserialization process, but strings will.
<random-jellyfish> got it to work
<random-jellyfish> i was doing "enable :sesionsss"
<random-jellyfish> a typo
<random-jellyfish> no error or warning about it :))
<random-jellyfish> it works with symbols too
<adam12> random-jellyfish: Cool. Not every serialization mechanism works with symbols (but might handle it for you transparently). The one in Roda specifically requires strings, IIRC.
gggp has joined #ruby
goepsilongo has quit [Quit: Textual IRC Client: www.textualapp.com]
noa has quit [Quit: Konversation terminated!]
elf-fortrez has quit [Quit: Client closed]
gr33n7007h has joined #ruby
user__ has quit [Quit: Leaving]
jp7webdesign has joined #ruby
gggp has quit [Ping timeout: 240 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
random-jellyfish has quit [Ping timeout: 256 seconds]
reset has joined #ruby
SuperLag has joined #ruby
lunarkitty has joined #ruby
jp7webdesign has quit [Quit: Textual IRC Client: www.textualapp.com]
danjo8 has joined #ruby
danjo has quit [Ping timeout: 250 seconds]
danjo8 is now known as danjo
_ht has quit [Remote host closed the connection]
perrierjouet has quit [Quit: WeeChat 3.2]
perrierjouet has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.2]
perrierjouet has joined #ruby
jpw_ has quit [Remote host closed the connection]
mikrosis has joined #ruby
ur5us has joined #ruby
lessless has quit [Read error: Connection reset by peer]
lessless has joined #ruby
maria_elis has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
Oxfuxxx_ has quit [Ping timeout: 248 seconds]
MalkbabY_ has joined #ruby
Oxfuxxx has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
Oxfuxxx has quit [Ping timeout: 248 seconds]
roadie has joined #ruby
neshpion has joined #ruby
sam113102 has joined #ruby
sam113101 has quit [Read error: Connection reset by peer]
sam113102 is now known as sam113101
aestheti1 has joined #ruby
cnsvc- has joined #ruby
aesthetikx has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 276 seconds]
_aeris_ is now known as aeris
noa has joined #ruby
Oxfuxxx has joined #ruby