ruby-changes:72130
From: David <ko1@a...>
Date: Sat, 11 Jun 2022 18:43:46 +0900 (JST)
Subject: [ruby-changes:72130] 572f3240fe (master): [rubygems/rubygems] Remove unnecessary require
https://git.ruby-lang.org/ruby.git/commit/?id=572f3240fe From 572f3240fea870b8848a3e13eb8a8b9f2c45d800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Sat, 26 Mar 2022 08:59:06 +0100 Subject: [rubygems/rubygems] Remove unnecessary require The `security_policies` method already requires it. https://github.com/rubygems/rubygems/commit/d19b088f2f --- lib/bundler/rubygems_integration.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 3cd6ce45d6..637307389d 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -204,7 +204,6 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/rubygems_integration.rb#L204 end def spec_from_gem(path, policy = nil) - require "rubygems/security" require "psych" gem_from_path(path, security_policies[policy]).spec rescue Exception, Gem::Exception, Gem::Security::Exception => e # rubocop:disable Lint/RescueException -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/