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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c912f58ae42fab60cb40e5a708e1551efda1a4abf4f5ad88e79f5803b5c84137
4
- data.tar.gz: 438245fc8061b621a15ad2c5f7cc16d0ea9dbaa7049f60c806d88673eaeffbe0
3
+ metadata.gz: 90df8a442690ff9202ee2762a199e652ebca4dc6e5899d24ee0a72d192cf539f
4
+ data.tar.gz: 16d4826bc7840a112ef5d5ea3b7acf0997d5fbeb46f8f5289ffa31a7356aa71c
5
5
  SHA512:
6
- metadata.gz: 7ab27854092a7b93aee3f596eeb5e3757cdfe0cf15fa95ff1e131268e02ce934fbbe2e7f25d786014f04222e8e5147821122f84fed9a9178bae555a13bafb505
7
- data.tar.gz: 10129052b5e02a7b48a5e37aeb073abaceb43c526e05de51f84442d9a8f059caf3db530b43c59b44716eb688d8b76a1429b4f0a1e317375f8fc480004933999c
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.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
@@ -1,3 +1,3 @@
1
1
  module SmarterCSV
2
- VERSION = "1.2.7"
2
+ VERSION = "1.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smarter_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Tilo Sloboda