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
Tuor has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
noa has quit [Quit: Konversation terminated!]
Tuor has joined #ruby
graywolf has quit [Client Quit]
roadie has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
dviola has quit [Ping timeout: 248 seconds]
roadie has joined #ruby
<adam12> rapha: I just noticed it might have a bug, since passing 4 gets me a value I don't expect. And it might not work because of whitespace. But it's interesting.
<adam12> rapha: stringscanner might be interesting here too, but maybe overkill.
mrkz_c has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
niv has quit [Client Quit]
roadie has joined #ruby
niv has joined #ruby
niv has quit [Ping timeout: 240 seconds]
roadie has quit [Ping timeout: 250 seconds]
niv has joined #ruby
Oxfuxxx_ has quit [Ping timeout: 248 seconds]
roadie has joined #ruby
hwrd has quit [Ping timeout: 272 seconds]
fredlinhares has quit [Quit: WeeChat 2.8]
hwrd has joined #ruby
hsiktas has quit [Ping timeout: 268 seconds]
hwrd has quit [Max SendQ exceeded]
roadie has quit [Ping timeout: 250 seconds]
hsiktas has joined #ruby
hwrd has joined #ruby
elf_fortrez has quit [Ping timeout: 246 seconds]
integral has quit [Ping timeout: 256 seconds]
integral has joined #ruby
bandithijo has quit [Quit: WeeChat 3.2]
roadie has joined #ruby
SuperLag has quit [Ping timeout: 252 seconds]
SuperLag has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
SuperLag has quit [Ping timeout: 252 seconds]
SuperLag has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
roadie` has joined #ruby
roadie` has quit [Ping timeout: 250 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
steinomead has quit [Quit: term]
lunarkitty has quit [Quit: Connection closed for inactivity]
roadie` has joined #ruby
roadie` has quit [Ping timeout: 240 seconds]
jpw has joined #ruby
aighearach_ has quit [Quit: Leaving]
aighearach_ has joined #ruby
aighearach has joined #ruby
aighearach_ has quit [Client Quit]
roadie` has joined #ruby
mbarbar has joined #ruby
<mbarbar> How easy would it be to distribute a ruby tk app as a standalone app for window, macos, linux, and maybe some of the bsds?
lunarkitty has joined #ruby
<Oxfuxxx> mbarbar: i guess you gotta embbed the gem and .so wrappers or make them dependencies for the package manager.
<Oxfuxxx> and the tk lib ofc...
roadie` has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
mrkz_c has quit [Quit: Connection closed for inactivity]
<rapha> https://installbuilder.com/ claims to be able to package ruby apps
<rapha> oh cool ... young but cool https://github.com/kojix2/libui
roadie has joined #ruby
<rapha> adam12: StringScanner can't look behind though ... so maybe not the best tool.
<rapha> I do wonder what nakilon meant when they said they'd use regex. Can't see how that'd work.
roadie has quit [Read error: Connection reset by peer]
roadie has joined #ruby
Oxfuxxx has quit [Ping timeout: 248 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Read error: Connection reset by peer]
noa has joined #ruby
kenliten has joined #ruby
Oxfuxxx has joined #ruby
<kenliten> Hi guys, I'm having troubles with jquery in rails 6.1.2.
<kenliten> I've trying to add it to the assets pipeline with the 'official' gem, without success
<kenliten> Til now, the only way I can use it is adding the cdn
kenliten has left #ruby [#ruby]
kenliten has joined #ruby
Milos_ has joined #ruby
<kenliten> I've already tried with `//= require jquery`, `import * from 'jquery'` nothing works
Milos has quit [Ping timeout: 250 seconds]
<kenliten> And the second one... I've been learning rails the last 3 months, and have no idea how to integrate correctly javascript (I really use a little unobstrusive javascript, but feel stuck and, my files go big, really big quickly), any advise?
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
belak has quit [Ping timeout: 268 seconds]
belak has joined #ruby
Oxfuxxx_ has joined #ruby
Oxfuxxx has quit [Ping timeout: 252 seconds]
_ht has joined #ruby
kenliten has quit [Ping timeout: 240 seconds]
mattil has joined #ruby
Oxfuxxx_ has quit [Ping timeout: 250 seconds]
Oxfuxxx has joined #ruby
roadie has quit [Remote host closed the connection]
roadie has joined #ruby
Oxfuxxx has quit [Ping timeout: 252 seconds]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
noa has quit [Quit: Konversation terminated!]
lunarkitty has quit [Quit: Connection closed for inactivity]
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
<nakilon> rapha i = 12; s = "peter ... ; s[0...i][/\S*\z/] + s[i..-1][/\A\w+\s+\w+/i => "jolly fellow"
gr33n7007h has joined #ruby
shokohsc has joined #ruby
legit has joined #ruby
gggp has joined #ruby
<mbarbar> Thank Oxfuxxx and rapha
<mbarbar> installbuilder looks a bit too much for me, want to put together something the user can just click to boot
jetchisel has quit [Ping timeout: 248 seconds]
jetchisel has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
<adam12> rapha: doesn't have to look behind if you've tracked what you've seen already.
roadie has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
jetchisel has joined #ruby
mikrosis has joined #ruby
<mikrosis> hi
<mikrosis> so I got a variable from a yaml that got curly brackets {}
<mikrosis> how can I access the keys?
<mikrosis> {"id"=>"test1", "canonical"=>"test1.com"}
<mikrosis> how can I access canonical value?
<mikrosis> var[:canonical] doesn't work
<leftylink> because symbols aren't strings.
<mikrosis> var['canonical'] doesn't work either
<mikrosis> :/
<leftylink> you have to do var["canonical"]
<mikrosis> hmm
<leftylink> pandabot: rb {"canonical"=>"test1.com"}["canonical"]
<pandabot> "test1.com" - https://carc.in/#/r/bu0i
<mikrosis> no implicit conversion of String into Integer
<mikrosis> hmmm maybe my data structure is not as I thought
<mikrosis> ahh
<mikrosis> nvm my loop doesn't loop through the items
<mikrosis> there is one level above...
<mikrosis> leftylink: is there a convenient function that takes a hash and the field name and then generates an array with the value of that key for each hash entry?
<mikrosis> like persons hash and I want an array of lastname ?
<mikrosis> I could loop the thing but I try to use existing functions
<mikrosis> this one?
<leftylink> that sounds too specific for someting that would be in the standard library. the standard library would instead have general building blocks that are to be used, like Enumerable#map
<mikrosis> right
mikrosis has quit [Ping timeout: 240 seconds]
<rapha> mbarbar: i think installbuilder is a bit heavy for the developer. but for the user it seems to be the standard "Yes, Next, Next, Next, Finish" wizard thing. most non-technical users seem to be fine with that.
<mbarbar> yeah true. my users would largely be technical however. i also checked the pricing and it might be a bit much for the project i have in mind to be honest
balo has quit [Quit: leaving]
balo has joined #ruby
<mbarbar> have you used it before, by the way?
fdan has joined #ruby
roadie has quit [Quit: ERC (IRC client for Emacs 25.3.50.1)]
SuperLag has quit [Ping timeout: 250 seconds]
SuperLag has joined #ruby
SuperLag has quit [Ping timeout: 250 seconds]
SuperLag has joined #ruby
fdan has quit [Ping timeout: 256 seconds]
gggp has quit [Remote host closed the connection]
shokohsc has quit [Quit: The Lounge - https://thelounge.chat]
llua has quit [Ping timeout: 258 seconds]
shokohsc has joined #ruby
llua has joined #ruby
roadie has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.2]
gr33n7007h has joined #ruby
gggp has joined #ruby
gggp has quit [Remote host closed the connection]
gggp has joined #ruby
Rounin has joined #ruby
gggp_ has joined #ruby
gggp has quit [Ping timeout: 250 seconds]
<rapha> mbarbar: no, an old workplace, they used it. that was a home run, though, i think, because the app was qt based. also i never checked the pricing. ouch!!!
<rapha> sad that there's no Windows suppport for AppImage
<rapha> (altho i wouldn't be surprised if someone bolts that onto WSL at some point)
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
graywolf has joined #ruby
lunarkitty has joined #ruby
gggp__ has joined #ruby
gggp__ has quit [Remote host closed the connection]
gggp__ has joined #ruby
gggp_ has quit [Ping timeout: 252 seconds]
gggp has joined #ruby
gggp__ has quit [Ping timeout: 250 seconds]
gggp has quit [Ping timeout: 252 seconds]
mikrosis has joined #ruby
neshpion has joined #ruby
graywolf has quit [Quit: WeeChat 3.2]
Milos_ is now known as Milos
jpw has quit [Ping timeout: 248 seconds]
Oxfuxxx has quit [Ping timeout: 240 seconds]
eldritch_ has quit [Changing host]
eldritch_ has joined #ruby
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Ping timeout: 250 seconds]
Oxfuxxx has joined #ruby
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
ollysmith has joined #ruby
weaksauce has joined #ruby
mrkz_c has joined #ruby
Oxfuxxx has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
mikrosis has quit [Quit: Connection closed]
hololeap_ has joined #ruby
neshpion has quit [Remote host closed the connection]
hololeap has quit [Ping timeout: 276 seconds]
hololeap_ is now known as hololeap
neshpion has joined #ruby
mattil has quit [Quit: Leaving]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
_ht has quit [Remote host closed the connection]
Oxfuxxx has quit [Read error: Connection reset by peer]
Oxfuxxx has joined #ruby
Oxfuxxx_ has joined #ruby
Oxfuxxx has quit [Ping timeout: 250 seconds]
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
ollysmith has joined #ruby
ur5us has joined #ruby
dachi_ has quit [Ping timeout: 240 seconds]
jp7webdesign has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
Guest75 has joined #ruby
Guest75 has quit [Client Quit]
ur5us has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
roadie has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
mrkz_c has joined #ruby
pusewic|away has quit [Ping timeout: 245 seconds]
hwrd has quit [Ping timeout: 252 seconds]
pusewic|away has joined #ruby
hwrd has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
jp7webdesign has quit [Quit: Textual IRC Client: www.textualapp.com]
ollysmith has quit [Ping timeout: 240 seconds]
ollysmith has joined #ruby
hsiktas has quit [Ping timeout: 250 seconds]
integral has quit [Ping timeout: 240 seconds]
integral has joined #ruby
hsiktas has joined #ruby
hsiktas has quit [Max SendQ exceeded]
hsiktas has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]