method
gem
v2.1.0 -
Show latest stable
-
3 notes -
Class: Rails::Configuration
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0 (0)
- 2.2.1 (20)
- 2.3.8 (0)
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
gem(name, options = {})
public
Register or
log in
to add new notes.
Vidmantas -
August 25, 2008 - (>= v2.1.0)
6 thanks
Rake tasks for gem dependencies
You can manage installation and other tasks for these dependencies with rake tasks, for example:
rake gems:install # Installs all required gems for this application rake gems:unpack # Unpacks the specified gem into vendor/gems
To get all rake tasks about gems:
rake -T gems
slippyd -
December 18, 2009
4 thanks
Version Ranges
To specify a version range, use array syntax like this:
config.gem 'paperclip', :version => ['>= 2.3.1.1', '< 3.0']
The example will, of course, match any version 2.3.1.1 or newer up until (not including) 3.0 or later.
matthooks -
December 1, 2008 - (>= v2.2.1)
1 thank
Upgrading from Rails v2.1 to v2.2
Don’t forget to run
rake gems:refresh_specs
if you vendored any gem plugins under Rails v2.1 to update them with the proper specs.