Skip to content

Commit 7795149

Browse files
authored
Merge pull request #9268 from ruby/define-gem-module-version
Workaround for directly loading `Gem::Version`
2 parents 811f2d1 + 03a5f90 commit 7795149

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/rubygems/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@
150150
# For the last example, single-digit versions are automatically extended with
151151
# a zero to give a sensible result.
152152

153+
# Workaround for directly loading Gem::Version in some cases
154+
module Gem; end
155+
153156
class Gem::Version
154157
include Comparable
155158

0 commit comments

Comments
 (0)