diff options
-rw-r--r-- | lib/rubygems/commands/cert_command.rb | 1 | ||||
-rw-r--r-- | lib/rubygems/dependency_installer.rb | 1 | ||||
-rw-r--r-- | lib/rubygems/request.rb | 1 | ||||
-rw-r--r-- | lib/rubygems/request_set/gem_dependency_api.rb | 3 | ||||
-rw-r--r-- | test/rubygems/test_gem_command.rb | 1 | ||||
-rw-r--r-- | test/rubygems/test_gem_commands_environment_command.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_ext_ext_conf_builder.rb | 1 | ||||
-rw-r--r-- | test/rubygems/test_gem_installer.rb | 1 | ||||
-rw-r--r-- | test/rubygems/test_gem_request_connection_pools.rb | 1 | ||||
-rw-r--r-- | test/rubygems/test_gem_request_set_gem_dependency_api.rb | 1 | ||||
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 1 |
11 files changed, 0 insertions, 14 deletions
@@ -262,7 +262,6 @@ For further reading on signing gems see `ri Gem::Security`. key = File.read key_file passphrase = ENV["GEM_PRIVATE_KEY_PASSPHRASE"] options[:key] = OpenSSL::PKey.read key, passphrase - rescue Errno::ENOENT alert_error \ "--private-key not specified and ~/.gem/gem-private_key.pem does not exist" @@ -178,7 +178,6 @@ class Gem::DependencyInstaller end set << specs - rescue Gem::RemoteFetcher::FetchError => e # FIX if there is a problem talking to the network, we either need to always tell # the user (no really_verbose) or fail hard, not silently tell them that we just @@ -223,7 +223,6 @@ class Gem::Request end verbose "#{response.code} #{response.message}" - rescue Net::HTTPBadResponse verbose "bad response" @@ -592,7 +592,6 @@ Gem dependencies file #{@path} includes git reference for both ref/branch and ta @current_repository = repository yield - ensure @current_repository = nil end @@ -684,7 +683,6 @@ Gem dependencies file #{@path} includes git reference for both ref/branch and ta @current_groups = groups yield - ensure @current_groups = nil end @@ -759,7 +757,6 @@ Gem dependencies file #{@path} includes git reference for both ref/branch and ta @current_platforms = platforms yield - ensure @current_platforms = nil end @@ -68,7 +68,6 @@ class TestGemCommand < Gem::TestCase Gem::Command.extra_args = "--awesome=true --verbose" assert_equal %w[--awesome=true --verbose], Gem::Command.extra_args - ensure Gem::Command.extra_args = extra_args $; = separator @@ -48,7 +48,6 @@ class TestGemCommandsEnvironmentCommand < Gem::TestCase assert_match %r{- /bin$}, @ui.output assert_empty @ui.error - ensure Gem.sources.replace orig_sources ENV["PATH"] = orig_path @@ -125,7 +124,6 @@ class TestGemCommandsEnvironmentCommand < Gem::TestCase assert_equal "http://gems.example.com\n", @ui.output assert_equal "", @ui.error - ensure Gem.sources.replace orig_sources end @@ -218,7 +218,6 @@ end RbConfig::CONFIG["configure_args"] = args if args yield - ensure if configure_args RbConfig::CONFIG["configure_args"] = configure_args @@ -361,7 +361,6 @@ gem 'other', version end assert_equal "", @ui.error - ensure ENV["PATH"] = old_path end @@ -127,7 +127,6 @@ class TestGemRequestConnectionPool < Gem::TestCase net_http_args = pools.send :net_http_args, URI("http://example"), @proxy assert_equal ["example", 80, nil, nil], net_http_args - ensure ENV["no_proxy"] = orig_no_proxy end @@ -362,7 +362,6 @@ class TestGemRequestSetGemDependencyAPI < Gem::TestCase assert_empty @set.dependencies end - ensure Gem.win_platform = win_platform end @@ -810,7 +810,6 @@ dependencies: [] @a2.files.clear assert_equal @a2, spec - ensure $SAFE = 0 end |