diff options
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/provider/package/rubygems.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb index 9ac1e7d31b..a0b569b8e3 100644 --- a/lib/chef/provider/package/rubygems.rb +++ b/lib/chef/provider/package/rubygems.rb @@ -72,7 +72,6 @@ class Chef # A rubygems specification object containing the list of gemspecs for all # available gems in the gem installation. # Implemented by subclasses - # For rubygems >= 1.8.0 # # @return [Gem::Specification] # @@ -107,10 +106,8 @@ class Chef # This isn't sorting before returning because the only code that # uses this method calls `max_by` so it doesn't need to be sorted. stubs - elsif rubygems_version >= Gem::Version.new("1.8.0") + else # >= rubygems 1.8 behavior gem_specification.find_all_by_name(gem_dep.name, gem_dep.requirement) - else - gem_source_index.search(gem_dep) end end |