summaryrefslogtreecommitdiff
path: root/test/rubygems/helper.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-16 16:38:44 +0900
committergit <svn-admin@ruby-lang.org>2023-03-22 11:17:25 +0000
commit372585029787014f71f262a149d68ff1ae50e17b (patch)
tree0dbfb271c17d80c729d76e35e09ae30e91036108 /test/rubygems/helper.rb
parent3dc4bc313fc7b1aa731b473ac6a7634000b71e9c (diff)
downloadruby-372585029787014f71f262a149d68ff1ae50e17b.tar.gz
[rubygems/rubygems] ditto: RUBY_ENGINE_VERSION
https://github.com/rubygems/rubygems/commit/dc82ebeac6
Diffstat (limited to 'test/rubygems/helper.rb')
-rw-r--r--test/rubygems/helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index f1367d8109..e9cfd97825 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -1099,7 +1099,7 @@ Also, a list:
@RUBY_REVISION = RUBY_REVISION
@RUBY_DESCRIPTION = RUBY_DESCRIPTION
@RUBY_ENGINE = RUBY_ENGINE
- @RUBY_ENGINE_VERSION = RUBY_ENGINE_VERSION if defined?(RUBY_ENGINE_VERSION)
+ @RUBY_ENGINE_VERSION = RUBY_ENGINE_VERSION
util_clear_RUBY_VERSION
@@ -1108,7 +1108,7 @@ Also, a list:
Object.const_set :RUBY_REVISION, revision
Object.const_set :RUBY_DESCRIPTION, description
Object.const_set :RUBY_ENGINE, engine
- Object.const_set :RUBY_ENGINE_VERSION, engine_version if engine_version
+ Object.const_set :RUBY_ENGINE_VERSION, engine_version
end
def util_restore_RUBY_VERSION
@@ -1119,7 +1119,7 @@ Also, a list:
Object.const_set :RUBY_REVISION, @RUBY_REVISION
Object.const_set :RUBY_DESCRIPTION, @RUBY_DESCRIPTION
Object.const_set :RUBY_ENGINE, @RUBY_ENGINE
- Object.const_set :RUBY_ENGINE_VERSION, @RUBY_ENGINE_VERSION if defined?(@RUBY_ENGINE_VERSION)
+ Object.const_set :RUBY_ENGINE_VERSION, @RUBY_ENGINE_VERSION
end
def util_clear_RUBY_VERSION
@@ -1128,7 +1128,7 @@ Also, a list:
Object.send :remove_const, :RUBY_REVISION
Object.send :remove_const, :RUBY_DESCRIPTION
Object.send :remove_const, :RUBY_ENGINE
- Object.send :remove_const, :RUBY_ENGINE_VERSION if defined?(RUBY_ENGINE_VERSION)
+ Object.send :remove_const, :RUBY_ENGINE_VERSION
end
##