lib/bundler/rubygems_integration.rb in bundler-1.6.0.rc vs lib/bundler/rubygems_integration.rb in bundler-1.6.0.rc2

- old
+ new

@@ -158,10 +158,10 @@ Gem::Format.from_file_by_path(path, policy) end def spec_from_gem(path, policy = nil) require 'rubygems/security' - gem_from_path(path, Gem::Security::Policies[policy]).spec + gem_from_path(path, security_policies[policy]).spec rescue Gem::Package::FormatError raise GemspecError, "Could not read gem at #{path}. It may be corrupted." rescue Exception, Gem::Exception, Gem::Security::Exception => e if e.is_a?(Gem::Security::Exception) || e.message =~ /unknown trust policy|unsigned gem/i ||