From 5d17a569d91711a8d419b0ae34591ea23142ac57 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 25 May 2026 16:07:39 +0900 Subject: [PATCH] [ruby/rubygems] [DOC] Fix the location of #9268 Because this module declaration is interrupted between the `Gem::Version` document and the definition, the document is not currently recognized as a document. In addition, the comment is not a document for the entire `Gem` module, but is included as part of the module documentation. https://github.com/ruby/rubygems/commit/feb4b9846b --- lib/rubygems/version.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb index cb52bda57b29a4..306733c1d7f02b 100644 --- a/lib/rubygems/version.rb +++ b/lib/rubygems/version.rb @@ -1,5 +1,10 @@ # frozen_string_literal: true +#-- +# Workaround for directly loading Gem::Version in some cases +module Gem; end +#++ + ## # The Version class processes string versions into comparable # values. A version string should normally be a series of numbers @@ -166,9 +171,6 @@ # specific situations, you should avoid using pessimistic versioning, as the # costs typically exceed the benefits. -# Workaround for directly loading Gem::Version in some cases -module Gem; end - class Gem::Version include Comparable