<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.
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
<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.
<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>
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]
<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.