Permalink
Browse files

GemDependency#specification should be public

  • Loading branch information...
1 parent a6e10ba commit 3ffbc57357ca0f4102ddf539a3d56aea9d28dd5e @jeremy jeremy committed Jun 7, 2008
Showing with 15 additions and 16 deletions.
  1. +15 −16 railties/lib/rails/gem_dependency.rb
View
31 railties/lib/rails/gem_dependency.rb
@@ -98,27 +98,26 @@ def ==(other)
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

0 comments on commit 3ffbc57

Please sign in to comment.