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 +4 -4
- data/NEWS.md +12 -0
- data/lib/csv/parser.rb +1 -0
- data/lib/csv/row.rb +1 -1
- data/lib/csv/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44985560f2528c6909f94ce869ec8ddb014ee66d89fe940fe6f4c872f8773e97
|
4
|
+
data.tar.gz: 60297accbe6a82852d251f5e4990dfacc241d6ec1084a39eb7ce39ac04c059d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/csv/parser.rb
CHANGED
data/lib/csv/row.rb
CHANGED
@@ -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].
|
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?
|
data/lib/csv/version.rb
CHANGED
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.
|
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-
|
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:
|