smarter_csv 1.2.5 → 1.2.6

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: 8862baa01aeee087fce216ba9517d301d4deb70b8cf0c8d2a2b3c7bab81c693a
4
- data.tar.gz: bd5afb4bdcd925e5196beee967c70b60ef240a945d770554bc8b17f269c26ee4
3
+ metadata.gz: 77507cc3d8322b2da611aaf3ff9493e7c8a19d2753d219a26c82f7bf2d7f3c02
4
+ data.tar.gz: 4041685f5b56b9f7973f69a24963bda588feaf9677e59eda209676160683b96e
5
5
  SHA512:
6
- metadata.gz: f4e3080e4134aa9b59b729d4f4053426472a980d19c47d157a7175189e74f6cef6acde136f17c3be2a33e558dd9a6f85e5f7c62f35df4efffad64c9cabef2fee
7
- data.tar.gz: 11df1ee0862b61424187c30a0edef94186b656415fccfa4182c3fba09067c11a239b89bd302c03e97d984646fa3359281572254017cdc6f45c0a693e6c4d5130
6
+ metadata.gz: a4a12f41d69fe9323b75ec04d6710fc239a7ad9728477e3fb19c47e8b8fc8ff1f31aaff164c677303a42911d16f30ba91e4ee5b3574d21661e0d3e6649270b15
7
+ data.tar.gz: 84ce000df312ec06afd794150c923ae066db955095a2e612aaf31ee1afe2097b95f12087637a98e7adb838040b8df08ac701a94e7a5891f0f8f4ba3b666591ba
data/README.md CHANGED
@@ -324,6 +324,9 @@ Planned in the next releases:
324
324
 
325
325
  ## Changes
326
326
 
327
+ #### 1.2.6 (2018-11-13)
328
+ * fixing error caused by calling f.close when we do not hand in a file
329
+
327
330
  #### 1.2.5 (2018-09-16)
328
331
  * fixing issue #136 with comments in CSV files
329
332
  * fixing error class hierarchy
@@ -248,7 +248,7 @@ module SmarterCSV
248
248
  end
249
249
  ensure
250
250
  $/ = old_row_sep # make sure this stupid global variable is always reset to it's previous value after we're done!
251
- f.close
251
+ f.close if f.respond_to?(:close)
252
252
  end
253
253
  if block_given?
254
254
  return chunk_count # when we do processing through a block we only care how many chunks we processed
@@ -1,3 +1,3 @@
1
1
  module SmarterCSV
2
- VERSION = "1.2.5"
2
+ VERSION = "1.2.6"
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.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Tilo Sloboda
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-09-16 00:00:00.000000000 Z
13
+ date: 2018-11-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec