smarter_csv 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/README.md +6 -0
- data/lib/smarter_csv/smarter_csv.rb +2 -2
- data/lib/smarter_csv/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90df8a442690ff9202ee2762a199e652ebca4dc6e5899d24ee0a72d192cf539f
|
4
|
+
data.tar.gz: 16d4826bc7840a112ef5d5ea3b7acf0997d5fbeb46f8f5289ffa31a7356aa71c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85cf20915d26794ba37e508379bc8460d65f054771803779df3b67cd907a61da9ea195d8b51da5a9942bb7f3a5866325114a7a107cbbfcc269f47f6bf6dbfff5
|
7
|
+
data.tar.gz: e2508804722db4bd76e63a9e459b180fb75f7215e3e6d53970e5a83c120d0dab3cdd639c562abfe91d5b9458c3a990aa3959e85000491aef8529442ade5a3f90
|
data/.travis.yml
CHANGED
@@ -9,8 +9,10 @@ matrix:
|
|
9
9
|
- rvm: 2.2.10
|
10
10
|
- rvm: 2.3.8
|
11
11
|
- rvm: 2.4.6
|
12
|
-
- rvm: 2.5.
|
12
|
+
- rvm: 2.5.7
|
13
13
|
- rvm: 2.6.3
|
14
|
+
- rvm: 2.7.2
|
15
|
+
- rvm: 3.0.0
|
14
16
|
- rvm: jruby-9.2.7.0
|
15
17
|
env:
|
16
18
|
- JRUBY_OPTS="--server -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -J-Xms512m -J-Xmx1024m"
|
data/README.md
CHANGED
@@ -324,6 +324,11 @@ Planned in the next releases:
|
|
324
324
|
|
325
325
|
## Changes
|
326
326
|
|
327
|
+
#### 1.2.8 (2020-02-04)
|
328
|
+
* fix deprecation warnings on Ruby 2.7 (thank to Diego Salido)
|
329
|
+
|
330
|
+
#### 1.2.7 (2020-02-03)
|
331
|
+
|
327
332
|
#### 1.2.6 (2018-11-13)
|
328
333
|
* fixing error caused by calling f.close when we do not hand in a file
|
329
334
|
|
@@ -508,6 +513,7 @@ And a special thanks to those who contributed pull requests:
|
|
508
513
|
* [Rohit Amarnath](https://github.com/ramarnat)
|
509
514
|
* [Joshua Smith](https://github.com/enviable)
|
510
515
|
* [Colin Petruno](https://github.com/colinpetruno)
|
516
|
+
* [Diego Salido](https://github.com/salidux)
|
511
517
|
|
512
518
|
|
513
519
|
## Contributing
|
@@ -53,7 +53,7 @@ module SmarterCSV
|
|
53
53
|
|
54
54
|
if (header =~ %r{#{options[:quote_char]}}) and (! options[:force_simple_split])
|
55
55
|
file_headerA = begin
|
56
|
-
CSV.parse( header, csv_options ).flatten.collect!{|x| x.nil? ? '' : x} # to deal with nil values from CSV.parse
|
56
|
+
CSV.parse( header, **csv_options ).flatten.collect!{|x| x.nil? ? '' : x} # to deal with nil values from CSV.parse
|
57
57
|
rescue CSV::MalformedCSVError => e
|
58
58
|
raise $!, "#{$!} [SmarterCSV: csv line #{csv_line_count}]", $!.backtrace
|
59
59
|
end
|
@@ -149,7 +149,7 @@ module SmarterCSV
|
|
149
149
|
|
150
150
|
if (line =~ %r{#{options[:quote_char]}}) and (! options[:force_simple_split])
|
151
151
|
dataA = begin
|
152
|
-
CSV.parse( line, csv_options ).flatten.collect!{|x| x.nil? ? '' : x} # to deal with nil values from CSV.parse
|
152
|
+
CSV.parse( line, **csv_options ).flatten.collect!{|x| x.nil? ? '' : x} # to deal with nil values from CSV.parse
|
153
153
|
rescue CSV::MalformedCSVError => e
|
154
154
|
raise $!, "#{$!} [SmarterCSV: csv line #{csv_line_count}]", $!.backtrace
|
155
155
|
end
|
data/lib/smarter_csv/version.rb
CHANGED