havenwood changed the topic of #ruby to: Ruby 3.2.2, 3.1.4, 3.3.0-preview3: https://www.ruby-lang.org | Rules: https://ruby-community.com | Logs: https://libera.irclog.whitequark.org/ruby
desnudopenguino has quit [Remote host closed the connection]
desnudopenguino has joined #ruby
tomtmym has quit [Quit: Gone.]
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
eddof13 has quit [Quit: eddof13]
crespire has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
m_antis has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
<gr33n7007h> To this day, I can't thank Matz enough for creating this beautiful language. It really is (imho) a masterpiece! Kudos đź‘Š
jenrzzz_ has quit [Remote host closed the connection]
|PiP| has joined #ruby
jenrzzz_ has joined #ruby
smp has quit [Read error: Connection reset by peer]
smp has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
caedmon has joined #ruby
caedmon has quit [Client Quit]
caedmon has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
crespire has quit [Ping timeout: 268 seconds]
fercell_ has joined #ruby
fercell has quit [Ping timeout: 256 seconds]
edr has quit [Quit: Leaving]
asmninja has quit [Quit: Connection closed for inactivity]
jenrzzz_ has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
caedmon has quit [Read error: Connection reset by peer]
caedmon1 has joined #ruby
caedmon1 is now known as caedmon
gemmaro has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
gemmaro has quit [Remote host closed the connection]
gemmaro has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
caedmon has quit [Ping timeout: 268 seconds]
|PiP| has left #ruby [#ruby]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
brokkoli_origin has quit [Ping timeout: 268 seconds]
Paris has joined #ruby
olspookishmagus has quit [Read error: Connection reset by peer]
dalan03822833 has quit [Read error: Connection reset by peer]
jenrzzz_ has quit [*.net *.split]
polishdub has quit [*.net *.split]
sam113101 has quit [*.net *.split]
Starfoxxes has quit [*.net *.split]
ollysmith has quit [*.net *.split]
thelounge18 has quit [*.net *.split]
brw has quit [*.net *.split]
sphex_ has quit [*.net *.split]
Spitfire has quit [*.net *.split]
sarna has quit [*.net *.split]
thelounge18 has joined #ruby
jenrzzz_ has joined #ruby
sphex has joined #ruby
polishdub has joined #ruby
brw has joined #ruby
sam113101 has joined #ruby
dalan03822833 has joined #ruby
ollysmith has joined #ruby
olspookishmagus has joined #ruby
sarna has joined #ruby
sarna has quit [Read error: Connection reset by peer]
sarna has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
Starfoxxes has joined #ruby
Linux_Kerio has joined #ruby
grenierm has joined #ruby
Paris has quit [Quit: quit]
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
constxqt_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
mahlon has quit [Ping timeout: 264 seconds]
mahlon has joined #ruby
_ht has joined #ruby
constxqt_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
brokkoli_origin has joined #ruby
weaksauc_ has joined #ruby
weaksauce has quit [Ping timeout: 245 seconds]
grenierm has quit [Ping timeout: 250 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
reset has joined #ruby
Vonter has quit [Remote host closed the connection]
Vonter has joined #ruby
MomosOrDeath2 has joined #ruby
MomosOrDeath has quit [Ping timeout: 255 seconds]
MomosOrDeath2 is now known as MomosOrDeath
crespire has joined #ruby
m_antis has quit [Ping timeout: 276 seconds]
ht_ has joined #ruby
_ht has quit [Ping timeout: 256 seconds]
ht_ is now known as _ht
infinityfye has joined #ruby
<ox1eef_> adam12: I have a CLI application that can start / stop a webserver, the web server serves static content plus a few Ruby endpoints. Webrick has been a great fit, and it has interesting features I don't use (yet) but sound cool, such as dropping privileges, daemon support, logger, etc.
<ox1eef_> Because the web server is running for one person, performance is not really an issue either. Everything seems to have aligned for webrick.
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
<Guest808> anyone familiar with the Sequel gem?
<Guest808> i'd like to iterate through an array and combine a select statement pertaining to each entry in the array to end up with just one dataset
<Guest808> for example, let's say i have an array of names
jenrzzz_ has quit [Ping timeout: 260 seconds]
<Guest808> names.each { |name| results << DB[:people].where(name: name) }
<Guest808> obviously that doesn't work, but how can i accomplish that?
m_antis has joined #ruby
<ox1eef_> Try inject, where you chain the where
jenrzzz_ has joined #ruby
<Guest808> thank you, but i found that this seems to work how i want:
<ox1eef_> Why not: DB[:people].where(name: names)
<Guest808> results = DB[:people].where([[:name, names]])
<Guest808> ox1eef_: even better
<Guest808> pretty clever
jenrzzz_ has quit [Ping timeout: 256 seconds]
<Guest808> thank you
<ox1eef_> I don't know Sequel, but in ActiveRecord, that would generate an IN clause against the elements of the array 'names'.
m_antis has quit [Ping timeout: 260 seconds]
m_antis has joined #ruby
jenrzzz_ has joined #ruby
<Guest808> i understood most of those words
bambanxx has joined #ruby
<ox1eef_> WHERE people.name IN ('a', 'b', 'c') - or something like that.
jenrzzz_ has quit [Ping timeout: 264 seconds]
<Guest808> ah, i see
<Guest808> i learned something new
<Guest808> thank you
constxqt_ has joined #ruby
constxqt_ has quit [Read error: Connection reset by peer]
cimento has quit [Quit: WeeChat 4.1.2]
cimento has joined #ruby
constxqt_ has joined #ruby
jenrzzz_ has joined #ruby
gemmaro has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
crespire has quit [Ping timeout: 260 seconds]
Vonter has quit [Ping timeout: 256 seconds]
crespire has joined #ruby
Vonter has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
Paris has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 256 seconds]
bambanxx has joined #ruby
ht_ has joined #ruby
<adam12> Guest808: Hard to go by with what you've given so far, but Sequel::Dataset has a ton of useful stuff that might work better for you, like `select_hash` or `select_hash_groups`
<adam12> And if you have a dataset, everything else accepts a dataset.
<adam12> ox1eef_: Great usecase for webrick!
_ht has quit [Ping timeout: 260 seconds]
ht_ is now known as _ht
caedmon has joined #ruby
<adam12> Oh, I noticed you might have the answer for your query.
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
donofrio_ has quit [Ping timeout: 256 seconds]
m_antis has quit [Ping timeout: 276 seconds]
<Guest808> yes, thank you adam12
<Guest808> i'm trying to wrap my head around datasets, but am not making much headway
<Guest808> thankfully, that clever bit of code works famously for what i was trying to accomplish
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
cimento has quit [Quit: WeeChat 4.1.2]
jenrzzz_ has quit [Ping timeout: 260 seconds]
gr33n7007h has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
jenrzzz_ has joined #ruby
gr33n7007h has quit [Ping timeout: 256 seconds]
gr33n7007h has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
<ox1eef_> adam12: Hopefully that project will be open source soon. :)
<adam12> ox1eef_: I'll have to check it out when it is.
<ox1eef_> It might be useful. It is for something like GitHub issues that works offline by running a web server on localhost.
<ox1eef_> I'm also trying to avoid heavy dependencies, so the filesystem is the database.
Paris has quit [Remote host closed the connection]
<adam12> I love it.
<adam12> I was just looking at replacing the gem I use to list countries, which has a dependency on active_support :)
<adam12> err :(
caedmon has quit [Ping timeout: 264 seconds]
<ox1eef_> I wonder why activesupport never seemed to pick up refinements. It seems like the perfect place to test that feature.
cimento has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
eddof13 has joined #ruby
jenrzzz_ has joined #ruby
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
crespire has quit [Ping timeout: 256 seconds]
jenrzzz_ has quit [Ping timeout: 255 seconds]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
Vonter has quit [Ping timeout: 260 seconds]
Vonter has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
jenrzzz_ has joined #ruby
crespire has joined #ruby
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
Sheilong has joined #ruby
kaivai has quit [Quit: ZNC - https://znc.in]
jenrzzz_ has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
jenrzzz_ has joined #ruby
crespire has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 252 seconds]
jenrzzz_ has joined #ruby
cimento has quit [Quit: WeeChat 4.1.2]
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
cimento has joined #ruby
jenrzzz_ has quit [Ping timeout: 255 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 246 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
Sheilong has quit []
jenrzzz_ has joined #ruby
Paris has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
jenrzzz_ has joined #ruby
crespire has joined #ruby
_ht has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 252 seconds]
infinityfye has quit [Read error: Connection reset by peer]
tomtmym has quit [Quit: Gone.]
Aminda has quit [Ping timeout: 240 seconds]
Paris has quit [Remote host closed the connection]
Aminda has joined #ruby
jenrzzz_ has joined #ruby
Paris has joined #ruby
Paris has quit [Quit: quit]
Paris has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 245 seconds]
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 276 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
Paris has quit [Quit: quit]
victori has quit [Read error: Connection reset by peer]
victori has joined #ruby
Vonter has quit [Ping timeout: 245 seconds]
victori has quit [Read error: Connection reset by peer]
Vonter has joined #ruby
victori has joined #ruby
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 268 seconds]
crespire has quit [Ping timeout: 264 seconds]
jenrzzz_ has joined #ruby
constxqt_ has quit [Ping timeout: 268 seconds]
jenrzzz_ has quit [Ping timeout: 260 seconds]