summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-05-17 12:02:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-20 02:32:50 +0900
commit1822b19221400da9e238c03b21f734159fb7fe6f (patch)
tree8a8afd3b0cc5b4874a596379366f50f5e8caad7f
parentcf7e472ab412044d97d6ec5263daed456c4f2724 (diff)
[ruby/csv] Don't drop stack trace in CSV.parse_line
GitHub: fix GH-120 Reported by Kyle d'Oliveira. Thanks!!! https://github.com/ruby/csv/commit/2959483f90
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3332
-rw-r--r--lib/csv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv.rb b/lib/csv.rb
index a5109c010b..225f393401 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -963,7 +963,7 @@ class CSV
# See {Options for Parsing}[#class-CSV-label-Options+for+Parsing].
#
def parse_line(line, **options)
- new(line, **options).shift
+ new(line, **options).each.first
end
#