#110 Gem Dependencies

In Rails 2.1 we now have the ability to set gem dependencies. Now it's easier than ever to specify which ruby gems our rails app relies on.
# config/environment.rb
config.gem "RedCloth", :version => ">= 3.0.4", :source => "http://code.whytheluckystiff.net/"
config.gem 'aws-s3', :lib => 'aws/s3'

# config/environments/test.rb
config.gem 'mocha'
config.gem 'Shoulda'

rake -T gems
rake gems
rake gems:install
rake gems:unpack
rake gems:build
rake gems RAILS_ENV=test

你可能感兴趣的:(.net,Ruby,Rails)