[前][次][番号順一覧][スレッド一覧]

ruby-changes:63162

From: Jean <ko1@a...>
Date: Mon, 28 Sep 2020 14:54:48 +0900 (JST)
Subject: [ruby-changes:63162] 91865230cd (master): [rubygems/rubygems] Eval defaults with frozen_string_literal: true

https://git.ruby-lang.org/ruby.git/commit/?id=91865230cd

From 91865230cdebee3de7bfde1c91d4e3f63ad15787 Mon Sep 17 00:00:00 2001
From: Jean Boussier <jean.boussier@g...>
Date: Thu, 23 Jul 2020 15:21:37 +0200
Subject: [rubygems/rubygems] Eval defaults with frozen_string_literal: true

https://github.com/rubygems/rubygems/commit/d498ae3d62

diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index dc93adb..cb7ec2b 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -1957,6 +1957,8 @@ class Gem::Specification < Gem::BasicSpecification https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L1957
   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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]