ruby-changes:61521
From: David <ko1@a...>
Date: Fri, 5 Jun 2020 07:33:56 +0900 (JST)
Subject: [ruby-changes:61521] 28be8e0480 (master): [rubygems/rubygems] Remove explicit `psych` activation
https://git.ruby-lang.org/ruby.git/commit/?id=28be8e0480 From 28be8e04805170607656dd218f3164611d5cdd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Mon, 18 May 2020 20:14:36 +0200 Subject: [rubygems/rubygems] Remove explicit `psych` activation We don't need to explictly activate `psych` since `require` will take care of that automatically. We don't need to care about a minimum version either since the oldest ruby we support at the moment ships with a `psych` version higher than 2.0.0. https://github.com/rubygems/rubygems/commit/1ccf0912a1 diff --git a/lib/rubygems.rb b/lib/rubygems.rb index dbb32b2..ef744c4 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -618,13 +618,6 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} https://github.com/ruby/ruby/blob/trunk/lib/rubygems.rb#L618 return unless defined?(gem) begin - gem 'psych', '>= 2.0.0' - rescue Gem::LoadError - # It's OK if the user does not have the psych gem installed. We will - # attempt to require the stdlib version - end - - begin # Try requiring the gem version *or* stdlib version of psych. require 'psych' rescue ::LoadError -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/