Skip to content

Commit 03a5f90

Browse files
committed
Workaround for directly loading Gem::Version
1 parent 359fc3a commit 03a5f90

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)