for a Ruby standalone script what Rails like deployment features such as Gemfile / “bundle install” etc
that is assuming you are developing a Ruby script that you want to test and then deployment, and perhaps ship to others, what Rails like deployment approach would you use for say:
a) GEM – marking GEM requirements & having them installed as required – e.g. Rails “Gemfile” where you mark what gems you need and then “bundle install” to install them
b) File Require – automatically loading *.rb files if they are in your script directory (I’m thinking of in Rails where if you put a class file in the apps/model directory Rails automatically load/require’s the file for you)
In my humble opinion, a gem is the way to go. Bundler makes it easy to get started; it starts a skeleton for you when you run the command…
Take a look. As long as you specify your dependencies in your gem’s
.gemspecfile, and somebody installs your packaged gem (they won’t need bundler, just RubyGems’gemcommand), the dependencies will be installed as gems along with it.