Skip to content

Commit e410d93

Browse files
committed
Workround for directly loading Gem::Version
1 parent a308311 commit e410d93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)