Rails_gem_install is a project mainly written in Ruby, based on the MIT license.
Installs gem dependencies for a Rails 2 project where `rake gems:install` fails.
= Overview of rails_gem_install
Installs the gem dependencies of your Rails 2 project where rake gems:install fails.
Using rake gems:install has a number of problems:
This tool aims to solve these problems by providing a tool that is NOT dependent on Rails or the Rail apps's environment in order to determine and install the dependencies.
For more background and a brief description of how it works, check out the blog post at http://sleeplesscoding.blogspot.com/2010/07/install-rails-apps-dependencies-where.html
== Installation
gem install rails_gem_install
== Usage
IMPORTANT: You must run this command from the +RAILS_ROOT+ of your Rails 2 app.
cd my_rails_app
RAILS_ENV=production rails_gem_install
This will install all the gem dependencies for running your Rails app under the specified environment, so you may want to do this multiple times for multiple environments. For example, you may want to do this using your test environment too, if you have additional config.gem configurations in config/environments/test.rb.
Note that this will run gem install commands, so run as root/sudo if you want them to be installed that way.
== Caveats
This has only been tested for a Rails 2.3.5 project where there was no pre-existing Rails installation or other gems, and incrementally after that as the config.gem configuration changes. There may be some corner-case dependencies I may have missed.
== Credits
Inspired by this gist[http://gist.github.com/136461] from troelskn[http://github.com/troelskn].
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2010 Scott W. Bradley. See LICENSE for details.