ruby-changes:63711
From: Sutou <ko1@a...>
Date: Tue, 24 Nov 2020 09:34:20 +0900 (JST)
Subject: [ruby-changes:63711] 0543db40d8 (master): [ruby/csv] Don't change initialize_copy's return value
https://git.ruby-lang.org/ruby.git/commit/?id=0543db40d8 From 0543db40d8a340c253fb5100ee0627b7d5f62448 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei <kou@c...> Date: Sun, 23 Aug 2020 06:28:12 +0900 Subject: [ruby/csv] Don't change initialize_copy's return value https://github.com/ruby/csv/commit/cf3b60db1c diff --git a/lib/csv/row.rb b/lib/csv/row.rb index fd293a0..57dc143 100644 --- a/lib/csv/row.rb +++ b/lib/csv/row.rb @@ -49,8 +49,9 @@ class CSV https://github.com/ruby/ruby/blob/trunk/lib/csv/row.rb#L49 def_delegators :@row, :empty?, :length, :size def initialize_copy(other) - super + super_return_value = super @row = @row.collect(&:dup) + super_return_value end # Returns +true+ if this is a header row. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/