summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authornicholas a. evans <nicholas.evans@gmail.com>2022-01-21 16:54:40 -0500
committergit <svn-admin@ruby-lang.org>2022-02-07 23:06:19 +0900
commit981a75db910cd5cfd5ee527a25bdd762918077e3 (patch)
tree46d848c4ce40cde313f6980491e944aaa602eea6 /lib/rubygems
parent01693807415a90d39742a3c3391f942287358af8 (diff)
[rubygems/rubygems] Fix missing rdoc for Gem::Version
The rdoc for Gem::Version is available here: * https://docs.ruby-lang.org/en/3.0/Gem/Version.html However it is currently missing from: * https://ruby-doc.org/stdlib-3.1.0/libdoc/rubygems/rdoc/Gem/Version.html * https://docs.ruby-lang.org/en/3.1/Gem/Version.html * https://docs.ruby-lang.org/en/master/Gem/Version.html * `ri Gem::Version` with `ri --version` => 6.4.0 and `gem --version` => 3.3.5 * `yard ri Gem::Version` with `yard --version` => 0.9.27 https://github.com/rubygems/rubygems/commit/c10e5dd884
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/version.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb
index d8aeb6f278..c59501ad5d 100644
--- a/lib/rubygems/version.rb
+++ b/lib/rubygems/version.rb
@@ -1,4 +1,7 @@
# frozen_string_literal: true
+
+require_relative "deprecate"
+
##
# The Version class processes string versions into comparable
# values. A version string should normally be a series of numbers
@@ -149,8 +152,6 @@
# For the last example, single-digit versions are automatically extended with
# a zero to give a sensible result.
-require_relative "deprecate"
-
class Gem::Version
autoload :Requirement, File.expand_path('requirement', __dir__)