havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.1, 3.1.3, 3.0.5, 2.7.7: 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/
Linux_Kerio has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
ollysmith_ has joined #ruby
ollysmith has quit [Ping timeout: 248 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
desnudopenguino has quit [Read error: Connection reset by peer]
desnudopenguino has joined #ruby
caedmon has joined #ruby
caedmon has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Quit: dionysus69]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
John_Ivan has quit [Ping timeout: 255 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 260 seconds]
gonix has joined #ruby
teclator has joined #ruby
razetime has joined #ruby
gonix has quit [Ping timeout: 248 seconds]
Al2O3 has quit [Ping timeout: 248 seconds]
aphorise has quit [Ping timeout: 246 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 252 seconds]
reset has quit [Quit: reset]
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
Al2O3 has joined #ruby
caedmon has joined #ruby
gonix has joined #ruby
Linux_Kerio has joined #ruby
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
phenom has quit [Ping timeout: 246 seconds]
phenom has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp- is now known as Sankalp
jhass has quit [Ping timeout: 255 seconds]
caedmon has joined #ruby
jhass has joined #ruby
caedmon has quit [Read error: Connection reset by peer]
mweckbecker has quit [Quit: leaving]
mweckbecker has joined #ruby
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
moldorcoder7 has quit [Ping timeout: 255 seconds]
desnudopenguino has quit [Quit: desnudopenguino]
desnudopenguino has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 260 seconds]
desnudopenguino1 is now known as desnudopenguino
otisolsen70 has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
aeris has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
gonix has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
ur5us has joined #ruby
razetime has quit [Ping timeout: 248 seconds]
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 252 seconds]
rvalue- is now known as rvalue
razetime has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
otisolsen70 has quit [Quit: Leaving]
_ht has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
teclator has quit [Ping timeout: 255 seconds]
teclator has joined #ruby
royo25 has joined #ruby
infinityfye has joined #ruby
_ht has quit [Quit: _ht]
_ht has joined #ruby
gr33n7007h has quit [Quit: WeeChat 3.8]
_ht has quit [Read error: Connection reset by peer]
_ht has joined #ruby
gr33n7007h has joined #ruby
ht_ has joined #ruby
dionysus69 has joined #ruby
_ht has quit [Ping timeout: 268 seconds]
ht_ is now known as _ht
_ht has quit [Read error: Connection reset by peer]
ht_ has joined #ruby
ht_ is now known as _ht
_ht has quit [Read error: Connection reset by peer]
ht_ has joined #ruby
ht_ is now known as _ht
otisolsen70 has joined #ruby
_ht has quit [Remote host closed the connection]
_ht has joined #ruby
_ht has quit [Client Quit]
_ht has joined #ruby
_ht has quit [Remote host closed the connection]
_ht has joined #ruby
_ht has quit [Remote host closed the connection]
_ht has joined #ruby
weaksauc_ has joined #ruby
razetime has quit [Remote host closed the connection]
weaksauce has quit [Ping timeout: 246 seconds]
<ox1eef_> Interesting idea: https://github.com/shioyama/im - kind of like how JavaScript can isolate the modules you require / import.
<Momentum> morning ox1eef_
<ox1eef_> Good morning o/
<Momentum> how is it going?
aeris has quit [Remote host closed the connection]
<Momentum> i'm looking for a minimal ruby web framework to build a simple dictionary API on top of it
<ox1eef_> Friday is always good :) How about you ? Are you still using nanoc ?
<Momentum> rails seems a bit too much
aeris has joined #ruby
<Momentum> very good over here too, and yes still using nanoc it's great
<ox1eef_> Other more common options: Sinatra, Roda.
<ox1eef_> Good to hear :)
<Momentum> that's cool, i considered sinatra
<ox1eef_> Sinatra is good. Roda is kind of like its modern successor. I'm not that inclined towards either. I don't think DSLs scale that well. Quickly become block spaggeti. So long as it is simple, they seem alright though.
<Momentum> makes sense, i'm usually inclined to frameworks which are most documented because i don't have much experience
<Momentum> and i don't want to get stuck
<Momentum> or go for hacky solutions
<ox1eef_> Makes sense. I would recommend Roda then. It is under active development, and IIRC the documentation is good.
<Momentum> what about ramaze? http://ramaze.net/
<ox1eef_> Wow ! Nice. I thought it was dead :) I prefer that approach. It is class-oriented.
<Momentum> alright i guess it's either roda or ramaze then
<ox1eef_> Yep. I would give Ramaze a try. It is vaguely similar to webmachine-ruby.
<Momentum> the webmachine paradigm seems interesting but the ruby version doesn't look to be much documented
<Momentum> not sure
<ox1eef_> You're right. It is a bit more mysterious.
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
infinity_fye has joined #ruby
infinityfye_ has joined #ruby
infinityfye has quit [Ping timeout: 255 seconds]
infinity_fye has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
infinityfye_ is now known as infinityfye
moldorcoder7 has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
ultralan has joined #ruby
ultralan has quit [Remote host closed the connection]
eddof13 has joined #ruby
John_Ivan has joined #ruby
reset has joined #ruby
aeris has quit [Ping timeout: 255 seconds]
_aeris_ has joined #ruby
_aeris_ is now known as aeris
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hrberg has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
dionysus69 has quit [Quit: dionysus69]
royo25 has quit [Quit: Bye]
graywolf has joined #ruby
graywolf has quit [Client Quit]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 255 seconds]
razetime has joined #ruby
Mikaela has joined #ruby
Aminda has quit [Ping timeout: 255 seconds]
desnudopenguino has quit [Quit: desnudopenguino]
teclator has quit [Ping timeout: 255 seconds]
desnudopenguino has joined #ruby
razetime has quit [Ping timeout: 252 seconds]
infinityfye has quit [Quit: Leaving]
hightower3 has quit [Remote host closed the connection]
hightower3 has joined #ruby
haemos51 has joined #ruby
hightower3 has quit [Ping timeout: 255 seconds]
<petru> Hmm, is there a website that sells Ruby and/or Rails merch?
_73 has joined #ruby
<adam12> Momentum: hanami-api?
<adam12> I agree with ox1eef_ about missing classes. I built a lot of Roda and have lots of Roda in production, but I missed classes enough to build my own "framework" with hanami-router.
<adam12> I use it on gemdocs.org and a few of my newer properties.
<_73> Hey, I am writing a program that needs to compile Ruby, install it as a staged install (make DESTDIR=foo install), and then run a simple program with this installed Ruby. However, I cannot do this with any Ruby 2.x.x version without getting an error for "require: cannot load such file -- rubygems.rb ...". Strangely though, I am able to run the same program successfully on any Ruby 3.x.x and Ruby 1.8 and 1.9. Here is a more complete
<_73> This is on Linux by the way
<ox1eef_> If you don't need rubygems, ./configure --disable-rubygems might help.
<_73> That won't work because I need rubygems when I eventually do the actual (non-staged) installation
<ox1eef_> Hrm. Then I think you will have to discover where rubygems.rb is in the staged directory, and why it can't be found by the ruby runtime.
<ox1eef_> It might help to set RUBYLIB
subsum29 has joined #ruby
<ox1eef_> I can see it on 3.2 @ lib/ruby/3.2.0/rubygems.rb
<_73> yes, it works on all Ruby 3.x.x versions. Setting RUBYLIB is not an option for me. To understand why I would have to explain what I am actually doing, which will take me a few minutes.
haemos51 has quit [Ping timeout: 264 seconds]
subsum29 has quit [Ping timeout: 255 seconds]
<ox1eef_> 'find /path/to/stage/dir/ -name rubygems.rb' returns something?
aphorise has joined #ruby
hightower2 has joined #ruby
<_73> yup, STAGEDIR/lib/ruby/2.1.0/rubygems.rb
goldfish has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ox1eef_> What about: find /stage/dir/ -name rbconfig.rb ? That file should provide you access to what paths are being used.
<ox1eef_> I think you can modify it as well. It strikes me as something that might have been a bug on 2.X though.
goldfish has quit [Remote host closed the connection]
<_73> Yes this file exists, here are its contents http://dpaste.com/B566BZ9M4
goldfish has joined #ruby
<ox1eef_> Bbiab. Prayer time.
teclator has joined #ruby
eddof13 has joined #ruby
graywolf has joined #ruby
<ox1eef_> _73: RbConfig::DESTDIR, RbConfig::TOPDIR - are those the two the same on 3.X, and 2.x ?
<ox1eef_> You could try compile without rubygems (--disable-rubygems) so you can start irb and inspect / compare RbConfig on 2.X vs 3.X. I would guess there's something in the build configuration that's off. And you would be able to inspect $LOAD_PATH then, too.
<_73> compiling a 3.X now
fmccann has joined #ruby
fmccann has quit [Client Quit]
<ox1eef_> I think you might have this path: /root/tmp/stagedest/root/tmp/realdest
<ox1eef_> Check $LOAD_PATH once you have Ruby built.
<_73> It appears DESTDIR and TOPDIR are the same. rbconfig.rb for 3.2.0 http://dpaste.com/4BBS5MZFM
<ox1eef_> What does 'ruby -e "p $LOAD_PATH"' show?
<_73> ^ That is ./ruby -e '$LOAD_PATH.each {|v| puts v}'
<ox1eef_> /root/tmp/realdest/lib/ruby/3.2.0/rubygems.rb exists?
<_73> no
<ox1eef_> And /root/tmp/realdest/lib/ruby/3.2.0/x86_64-linux/rubygems.rb ?
<ox1eef_> find /root/tmp/realdest/lib/ruby/ -name rubygems.rb
<_73> No, but this exists /root/tmp/stagedest/root/tmp/realdest/lib/ruby/3.2.0/rubygems.rb
<_73> No output from "find /root/tmp/realdest/lib/ruby/ -name rubygems.rb"
<ox1eef_> Then I think 'make install' is where things go wrong. It's not copying over rubygems.rb (and probably other lib files).
<_73> This makes sense because I haven't installed into realdest yet, as I only have done the staged install
<ox1eef_> Might not work until you install in the final destination.
<_73> Ok, but it does work on 3.X, 1.8, and 1.9. You think there is no workaround for 2.X besides modifying RUBYLIB?
<ox1eef_> Does it work on 3.X, though? It fails more gracefully, but it is still not finding rubygems.rb properly (although trying to).
<_73> Well it works in that I can still run my "hello" program
<ox1eef_> I don't think it will find any .rb file that ships with ruby until you move it into its final destination.
<_73> Ok got it. Thanks for all the help.
ollysmith_ has quit [Quit: ZNC 1.8.2+deb3+b4 - https://znc.in]
<ox1eef_> You might have luck by setting TOPDIR. Basically you want the $LOAD_PATH to have /root/tmp/stagedest/root/tmp/realdest/lib/ruby/3.2.0/ in the staged dir.
ollysmith has joined #ruby
ollysmith has quit [Client Quit]
<ox1eef_> Right now it has only the final destination.
<_73> right. I understand the problem now.
<ox1eef_> +1
ollysmith has joined #ruby
<ox1eef_> Might work if you chroot into the stage dir.
caedmon has joined #ruby
teclator has quit [Ping timeout: 268 seconds]
unsecu93 has joined #ruby
FetidToot7 has joined #ruby
FetidToot has quit [Ping timeout: 255 seconds]
FetidToot7 is now known as FetidToot
Mikaela has quit [Ping timeout: 255 seconds]
Mikaela has joined #ruby
FetidToot7 has joined #ruby
FetidToot has quit [Ping timeout: 255 seconds]
FetidToot7 is now known as FetidToot
<leah2> what were these not-fully-ORM libraries for ruby?
rvalue has quit [Ping timeout: 255 seconds]
John_Ivan_ has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
John_Ivan has quit [Ping timeout: 252 seconds]
Vonter has quit [Ping timeout: 265 seconds]
rvalue has joined #ruby
hightower2 has joined #ruby
<ox1eef_> leah2: Sequel. Or the drivers that the ORMs use.
victori has quit [Ping timeout: 246 seconds]
<adam12> I think there's one from the Discord folks. mini_sql or something.
<adam12> s/Discord/Discourse.
<ox1eef_> I guess you could combine Arel + a driver as well. Arel provides a Ruby API for building SQL queries: https://github.com/brynary/arel .. Sadly it is not developed independent of ActiveRecord anymore :( Another project swallowed by Rails.
some14u has joined #ruby
<ox1eef_> Sort of frustrating. Decisions like that only contribute to Rails being the only player in town.
<adam12> There's a query builder from the Sequel original author that's neat too
<adam12> I haven't used either.
<ox1eef_> Do you know what it's called?
<adam12> Let me look for the other one.
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12> Nevermind. It's not a query builder but a bigger library. https://github.com/digital-fabric/eno
<ox1eef_> mini_sql looks nice.
<adam12> I am not sure I could work on a non-Sequel project. I'm so accustomed to being able to write powerful SQL expressions when necessary.
<adam12> I did some Arel work lately and it was less than spectacular.
caedmon has quit [Ping timeout: 255 seconds]
<ox1eef_> Couple of days ago I replaced Arel with raw SQL because I realized it is easier to make sense of.
eddof13 has joined #ruby
<ox1eef_> I never used Sequel. It has no runtime dependencies, though. That's a plus.
_ht has quit [Remote host closed the connection]
unsecu93 has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graywolf has quit [Quit: WeeChat 3.7.1]
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swaggboi has quit [Ping timeout: 252 seconds]
some14u has joined #ruby
Linux_Kerio has quit [Ping timeout: 246 seconds]
otisolsen70 has quit [Quit: Leaving]
eddof13 has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
victori has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 246 seconds]
gr33n7007h has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
cek has joined #ruby
polishdub has quit [Quit: leaving]
some14u has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leah2> (ROM was i was thinking of)
tomtmym has quit [Quit: Gone.]
<havenwood> Sequel is quite nice. <3 plugins.
<adam12> leah2: Totally flighted on ROM :P
<ox1eef_> I think I've reached the point where I'd prefer to use something like mini_sql with vanilla Ruby classes. But rom-rb sounds interesting.
<ox1eef_> I would never have thought of ROM, because I understood the question more like: what doesn't abstract the database layer so much.
<ox1eef_> I'm too simple minded to bother with all that to be honest.
perrierjouet has quit [Quit: WeeChat 3.8]
perrierjouet has joined #ruby
<leah2> i remembered it differently tbh ;)