diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-12-13 20:19:08 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-12-13 20:19:33 +0900 |
commit | 82cc2843a92b286cc13afd0860a4e111d4ea2a0b (patch) | |
tree | a517dedd40d35540930cea7732f5a36e76a549e8 /lib/rubygems.rb | |
parent | 26774351dc5f494253ba031e4bc453dc4dddb2cf (diff) | |
download | ruby-82cc2843a92b286cc13afd0860a4e111d4ea2a0b.tar.gz |
Prepare to release RubyGems 3.1.0 final version.
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 474734bd40..6be55a0379 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -160,24 +160,14 @@ module Gem ].freeze ## - # Exception classes used in a Gem.read_binary +rescue+ statement. Not all of - # these are defined in Ruby 1.8.7, hence the need for this convoluted setup. + # Exception classes used in a Gem.read_binary +rescue+ statement - READ_BINARY_ERRORS = begin - read_binary_errors = [Errno::EACCES, Errno::EROFS, Errno::ENOSYS] - read_binary_errors << Errno::ENOTSUP if Errno.const_defined?(:ENOTSUP) - read_binary_errors - end.freeze + READ_BINARY_ERRORS = [Errno::EACCES, Errno::EROFS, Errno::ENOSYS, Errno::ENOTSUP].freeze ## - # Exception classes used in Gem.write_binary +rescue+ statement. Not all of - # these are defined in Ruby 1.8.7. + # Exception classes used in Gem.write_binary +rescue+ statement - WRITE_BINARY_ERRORS = begin - write_binary_errors = [Errno::ENOSYS] - write_binary_errors << Errno::ENOTSUP if Errno.const_defined?(:ENOTSUP) - write_binary_errors - end.freeze + WRITE_BINARY_ERRORS = [Errno::ENOSYS, Errno::ENOTSUP].freeze @@win_platform = nil |