csv 3.1.8 → 3.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a9f965a5db6ac6d07f525f513e212f082c137b487d73328373d0afef7bb8312
4
- data.tar.gz: 5184ad5878a6dee8603e3b48fc820b50e3687eafb96cbcec152a8d621ceaffd6
3
+ metadata.gz: 44985560f2528c6909f94ce869ec8ddb014ee66d89fe940fe6f4c872f8773e97
4
+ data.tar.gz: 60297accbe6a82852d251f5e4990dfacc241d6ec1084a39eb7ce39ac04c059d6
5
5
  SHA512:
6
- metadata.gz: 422a1a8751e4e8c21884848e7f465e39090b946c3febff711bb756c98e61b7e6aebf0e552adee851d653f89e9ef2772984db2b05a243c7fac8060c64def34ae0
7
- data.tar.gz: 9d85fa756cd744e74da2ae1e89650768370566a5fd8ce1830337d528f9875d07422508eb007522ae3e7ec9c20c9ec055983f09c9b951e78441706bb2d33fdd59
6
+ metadata.gz: 7d51eae6f0e4eaccf382ffc52306ff9b9235259353c8514aafc3fd0116449ae342d9b5972e6ab236ddad542a9a286580f060080503fb18a2f81dfc97299cb8e8
7
+ data.tar.gz: ef7d5e134f0ed59e4e0e466c5a6c4a6e45d51ff90a8e3bc22be1014041d29cb3a70c6ae7b482865426d5957962007875b734364b43742b2b7074548d3263bc76
data/NEWS.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # News
2
2
 
3
+ ## 3.1.9 - 2020-11-23
4
+
5
+ ### Fixes
6
+
7
+ * Fixed a compatibility bug that the line to be processed by
8
+ `skip_lines:` has a row separator.
9
+ [GitHub#194][Reported by Josef Šimánek]
10
+
11
+ ### Thanks
12
+
13
+ * Josef Šimánek
14
+
3
15
  ## 3.1.8 - 2020-11-18
4
16
 
5
17
  ### Improvements
@@ -785,6 +785,7 @@ class CSV
785
785
  end
786
786
 
787
787
  def skip_line?(line)
788
+ line = line.delete_suffix(@row_separator)
788
789
  case @skip_lines
789
790
  when String
790
791
  line.include?(@skip_lines)
@@ -203,7 +203,7 @@ class CSV
203
203
  def field(header_or_index, minimum_index = 0)
204
204
  # locate the pair
205
205
  finder = (header_or_index.is_a?(Integer) || header_or_index.is_a?(Range)) ? :[] : :assoc
206
- pair = @row[minimum_index..-1].send(finder, header_or_index)
206
+ pair = @row[minimum_index..-1].public_send(finder, header_or_index)
207
207
 
208
208
  # return the field if we have a pair
209
209
  if pair.nil?
@@ -2,5 +2,5 @@
2
2
 
3
3
  class CSV
4
4
  # The version of the installed library.
5
- VERSION = "3.1.8"
5
+ VERSION = "3.1.9"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.8
4
+ version: 3.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Edward Gray II
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-11-17 00:00:00.000000000 Z
12
+ date: 2020-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -126,6 +126,7 @@ files:
126
126
  - lib/csv/writer.rb
127
127
  homepage: https://github.com/ruby/csv
128
128
  licenses:
129
+ - Ruby
129
130
  - BSD-2-Clause
130
131
  metadata: {}
131
132
  post_install_message: