ruby-changes:61080
From: David <ko1@a...>
Date: Fri, 8 May 2020 07:39:46 +0900 (JST)
Subject: [ruby-changes:61080] 2205ae8af5 (master): Normalize heredoc delimiters
https://git.ruby-lang.org/ruby.git/commit/?id=2205ae8af5 From 2205ae8af5928c97a28f281f029bb3be290bf010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 16 Apr 2020 18:56:20 +0200 Subject: Normalize heredoc delimiters diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index a153286..ad988a5 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1961,7 +1961,7 @@ class Gem::Specification < Gem::BasicSpecification https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L1961 yaml_initialize coder.tag, coder.map end - eval <<-RB, binding, __FILE__, __LINE__ + 1 + eval <<-RUBY, binding, __FILE__, __LINE__ + 1 def set_nil_attributes_to_nil #{@@nil_attributes.map {|key| "@#{key} = nil" }.join "; "} end @@ -1971,7 +1971,7 @@ class Gem::Specification < Gem::BasicSpecification https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L1971 #{@@non_nil_attributes.map {|key| "@#{key} = #{INITIALIZE_CODE_FOR_DEFAULTS[key]}" }.join ";"} end private :set_not_nil_attributes_to_default_values - RB + RUBY ## # Specification constructor. Assigns the default values to the attributes -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/