csv_model 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tool-versions +1 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/csv_model/extensions.rb +4 -0
- data/lib/csv_model/version.rb +1 -1
- data/spec/csv_model/header_row_spec.rb +6 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 461a9d42151277f2f479a52e6b336255318a591b
|
4
|
+
data.tar.gz: e0e274082bf74b5fc20208cd51d96df8343002e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b872def5fcc749908cfd66e7771e0b3d85f6aa4edc728d06516e748c3ef7d8d1571b9ad44aa050eda03dfae56267c99d894452926c3f0bd545e446050ba437e
|
7
|
+
data.tar.gz: acbcbb365a4a52fedd724085d923788680c09738629dcb87dc9af1b11a875ca8540276949324109085ad63759ca03fde52ccde3b894c97ca7722f6ba5d449148
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 2.4.1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/csv_model/extensions.rb
CHANGED
data/lib/csv_model/version.rb
CHANGED
@@ -186,6 +186,11 @@ describe CSVModel::HeaderRow do
|
|
186
186
|
expect(subject.valid?).to eq(true)
|
187
187
|
end
|
188
188
|
|
189
|
+
it "returns true when the header is valid and contains a nil column" do
|
190
|
+
subject = described_class.new(["Column One", nil])
|
191
|
+
expect(subject.valid?).to eq(true)
|
192
|
+
end
|
193
|
+
|
189
194
|
it "returns false when header has duplicate columns" do
|
190
195
|
subject = described_class.new(data + data)
|
191
196
|
expect(subject.valid?).to eq(false)
|
@@ -256,7 +261,7 @@ describe CSVModel::HeaderRow do
|
|
256
261
|
expect(subject.respond_to?(:has_alternate_primary_key_columns?)).to eq(false)
|
257
262
|
end
|
258
263
|
|
259
|
-
it "returns true when no primary key columns specified" do
|
264
|
+
it "returns true when no primary key columns specified" do
|
260
265
|
expect(subject.send(:has_alternate_primary_key_columns?)).to eq(true)
|
261
266
|
end
|
262
267
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Chadwick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,6 +60,7 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
+
- ".tool-versions"
|
63
64
|
- ".travis.yml"
|
64
65
|
- CHANGELOG.md
|
65
66
|
- Gemfile
|
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
107
|
version: '0'
|
107
108
|
requirements: []
|
108
109
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.6.11
|
110
111
|
signing_key:
|
111
112
|
specification_version: 4
|
112
113
|
summary: Utility library for importing CSV data.
|