3 ms·
One approach I've seen for portable Ruby apps is to use JRuby. You gain the ability to package your code as a standalone, compiled java app for distribution. Fr
by joaomsa 13y ago
One approach I've seen for portable Ruby apps is to use JRuby. You gain the ability to package your code as a standalone, compiled java app for distribution. From that it becomes as simple as running 'java -jar app.jar' or use a similar transparent stub executable.
Granted now you've just punted the problem of Ruby version to JVM version (which I've found to be less of a hassle) but at least took care of the nightmarish management of gem dependencies without something like bundler.
- alexatkeplar 13y agoThis x100. It's as simple as: $ gem install warbler -v 1.4.0.beta2 $ warble This creates a fat jar which is runnable with the JRE. It gets you out of RubyGems/Bundler/RVM hell.
- mcdougle 13y agoWow that's cool. I didn't even know that existed!
- jacques_chester 13y agoJRuby is an impressive piece of kit. Look at TorqueBox for a sequel.
- lloeki 13y agoSimilarly, while exclusive to OSX (and iOS, but that's out of the scope), RubyMotion produces native code. I wish the compiler were open source and could leverage, say, GNU's Objective-C runtime for portability.