Package: release.debian.org Severity: normal Tags: buster User: release.debian....@packages.debian.org Usertags: pu
Hello, This update is part of a collaboration with upstream on their handling of deprecations in the rubygems codebase. See https://github.com/rubygems/rubygems/issues/3068 and the thread starting at https://lists.debian.org/debian-ruby/2020/01/msg00015.html for context. In short: going forward, they want to only deprecate code on rubygems on new releases of the ruby interpreter (~ once a year). But for this time, there was a release where these warnings reached end users. This is fixed by this update (patch attached). As you can see the patch is pretty simple and harmless.
diff --git a/debian/changelog b/debian/changelog index 272a6dc..b2d099a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +rubygems-integration (1.11+deb10u1) buster; urgency=medium + + * Replace usage of Gem::ConfigMap with RbConfig::CONFIG + + -- Antonio Terceiro <terce...@debian.org> Tue, 04 Feb 2020 14:11:57 +0100 + rubygems-integration (1.11) unstable; urgency=medium [ Cédric Boutillier ] diff --git a/lib/rubygems/defaults/operating_system.rb b/lib/rubygems/defaults/operating_system.rb index 461cfe4..f68f029 100644 --- a/lib/rubygems/defaults/operating_system.rb +++ b/lib/rubygems/defaults/operating_system.rb @@ -7,7 +7,7 @@ class << Gem alias :upstream_default_dir :default_dir def default_dir - File.join('/', 'var', 'lib', 'gems', Gem::ConfigMap[:ruby_version]) + File.join('/', 'var', 'lib', 'gems', RbConfig::CONFIG["ruby_version"]) end alias :upstream_default_bindir :default_bindir @@ -26,8 +26,8 @@ class << Gem extra_path = File.join('/usr/share/rubygems-integration', '2.2') end - arch = Gem::ConfigMap[:arch] - api_version = Gem::ConfigMap[:ruby_version] + arch = RbConfig::CONFIG["arch"] + api_version = RbConfig::CONFIG["ruby_version"] upstream_default_path + [ "/usr/lib/#{arch}/rubygems-integration/#{api_version}",
signature.asc
Description: PGP signature