diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-06 20:43:28 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-06 20:43:28 -0700 |
commit | deee9d22fef289dce0c608c9fadf0c3011ccce0b (patch) | |
tree | 10f2474c6370f9e2d2db23e5c56b9b903bcabc5d /railties | |
parent | fe9d2ad6e84626d34f1850ef4668a87787d5c6b0 (diff) | |
parent | 1d1ea92f405ab6f47942b21233da04aa21498cb7 (diff) | |
download | rails-deee9d22fef289dce0c608c9fadf0c3011ccce0b.tar.gz rails-deee9d22fef289dce0c608c9fadf0c3011ccce0b.tar.bz2 rails-deee9d22fef289dce0c608c9fadf0c3011ccce0b.zip |
Merge branch 'master' into erbout
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/gem_dependency.rb | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/railties/lib/rails/gem_dependency.rb b/railties/lib/rails/gem_dependency.rb index 30bdf416fc..4cac7f725a 100644 --- a/railties/lib/rails/gem_dependency.rb +++ b/railties/lib/rails/gem_dependency.rb @@ -98,27 +98,26 @@ module Rails self.name == other.name && self.requirement == other.requirement end -private ################################################################### - def specification @spec ||= Gem.source_index.search(Gem::Dependency.new(@name, @requirement)).sort_by { |s| s.version }.last end - def gem_command - RUBY_PLATFORM =~ /win32/ ? 'gem.bat' : 'gem' - end + private + def gem_command + RUBY_PLATFORM =~ /win32/ ? 'gem.bat' : 'gem' + end - def install_command - cmd = %w(install) << @name - cmd << "--version" << %("#{@requirement.to_s}") if @requirement - cmd << "--source" << @source if @source - cmd - end + def install_command + cmd = %w(install) << @name + cmd << "--version" << %("#{@requirement.to_s}") if @requirement + cmd << "--source" << @source if @source + cmd + end - def unpack_command - cmd = %w(unpack) << @name - cmd << "--version" << %("#{@requirement.to_s}") if @requirement - cmd - end + def unpack_command + cmd = %w(unpack) << @name + cmd << "--version" << %("#{@requirement.to_s}") if @requirement + cmd + end end end |