csv 1.0.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/csv.rb +1 -1
  3. data/lib/csv/version.rb +1 -1
  4. data/news.md +11 -0
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12a1d0b486cc212d0b8cf8a044bc20b5bc4c2ae6d6d2c41633174ac8cbceb5d5
4
- data.tar.gz: '06866abe09381a2a0af2bc36e325a6c8a83937231e446ed3ec4f1e3cb5ea4fd7'
3
+ metadata.gz: 878c0fd11ecaed5d4fb2ac420068c42b707a721144062ba7fe623002a13478be
4
+ data.tar.gz: 007c48a609bcef16dba46b8f7aca667dbdcd3cb24f05a6b7f2470726dcfeea17
5
5
  SHA512:
6
- metadata.gz: 0bab4fe5e9e6612fda6041a86d10e88f8aacde4e97c87dd8306c3bbeed2db661cc45163ad12822af44395366e616f2bf3308fa37ea114d671401ef664a7204eb
7
- data.tar.gz: d661fe106e45b04098fb3ac6e77418f73ec2f5cfc4117d3ba77666c317bca121853fd7bd3e9b71cad982b8c8eae61ccc1f8dc2fd4a84249b1c85d13c23af3df7
6
+ metadata.gz: 4daffd50dd28082465a243e17f77eeb8ccd1c6727c9094eeb3f0fcaaa05426949f7e3103fa84fdad87e27e1e493365f13d4491000d8ac61a006094ff2be2602a
7
+ data.tar.gz: adc33341e6dd75c8d8ab343343fd8d455b7e048e081a2e22992f54397c42b3a70a4c78561fc871324b4424ed562a1fc9e59da4a12a56ff7ade2d3161195c3deb
data/lib/csv.rb CHANGED
@@ -1232,7 +1232,7 @@ class CSV
1232
1232
  elsif @unconverted_fields
1233
1233
  return add_unconverted_fields(Array.new, Array.new)
1234
1234
  elsif @use_headers
1235
- return self.class::Row.new(Array.new, Array.new)
1235
+ return self.class::Row.new(@headers, Array.new)
1236
1236
  else
1237
1237
  return Array.new
1238
1238
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  class CSV
4
4
  # The version of the installed library.
5
- VERSION = "1.0.2"
5
+ VERSION = "3.0.0"
6
6
  end
data/news.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # News
2
2
 
3
+ ## 3.0.0 - 2018-06-06
4
+
5
+ ### Fixes
6
+
7
+ * Fixed a bug that header isn't returned for empty row.
8
+ [GitHub#37][Patch by Grace Lee]
9
+
10
+ ### Thanks
11
+
12
+ * Grace Lee
13
+
3
14
  ## 1.0.2 - 2018-05-03
4
15
 
5
16
  ### Improvements
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: 1.0.2
4
+ version: 3.0.0
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: 2018-05-03 00:00:00.000000000 Z
12
+ date: 2018-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.7.6
95
+ rubygems_version: 3.0.0.beta1
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: CSV Reading and Writing