diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2020-07-23 15:21:37 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-09-28 14:54:22 +0900 |
commit | 91865230cdebee3de7bfde1c91d4e3f63ad15787 (patch) | |
tree | 0ba0860c5c595dfcf70be200e67e64a405f7047c /lib | |
parent | 9bbca93aa8ba7cb6e19c9a807706ae6b5d988403 (diff) |
[rubygems/rubygems] Eval defaults with frozen_string_literal: true
https://github.com/rubygems/rubygems/commit/d498ae3d62
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3599
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/specification.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index dc93adb5ab..cb7ec2b76d 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1957,6 +1957,8 @@ class Gem::Specification < Gem::BasicSpecification end eval <<-RUBY, binding, __FILE__, __LINE__ + 1 + # frozen_string_literal: true + def set_nil_attributes_to_nil #{@@nil_attributes.map {|key| "@#{key} = nil" }.join "; "} end |