csvlint 0.3.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/.github/ISSUE_TEMPLATE.md +24 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +7 -0
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/push.yml +23 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +85 -130
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +32 -0
- data/Gemfile +0 -3
- data/README.md +54 -47
- data/bin/create_schema +2 -2
- data/csvlint.gemspec +9 -6
- data/features/fixtures/white space in filename.csv +3 -0
- data/features/support/aruba.rb +4 -3
- data/features/support/env.rb +1 -1
- data/features/support/load_tests.rb +12 -12
- data/features/support/webmock.rb +2 -0
- data/lib/csvlint/cli.rb +18 -24
- data/lib/csvlint/csvw/property_checker.rb +9 -2
- data/lib/csvlint/csvw/table.rb +6 -4
- data/lib/csvlint/schema.rb +18 -3
- data/lib/csvlint/validate.rb +18 -13
- data/lib/csvlint/version.rb +1 -1
- data/lib/csvlint.rb +1 -1
- data/spec/schema_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- data/spec/validator_spec.rb +14 -9
- metadata +103 -80
- data/.travis.yml +0 -35
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YTI3ODc0NWFlMzAxMzJkZTJiZjZkNjBkNmI3YjkxMDFiMTlhM2JjMQ==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 651e0cab26de36c97d333823f6ac72ad1377397e5e5dbf02397725fd8b42d663
|
4
|
+
data.tar.gz: cf81fa72bc040e242e947c8abb7009f7dd8ec6d5c9f08c21c9177eb62ab9c648
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZmM4NGZjOWZkNWQ3YzVlNGI5ODlmMWY0Y2YwZWI4OTIwMDBiZWIxZDVlYzZh
|
11
|
-
Y2JhN2Q4MzY2ODQyYTBiMjBlZTU3OTEzZDU4NTZmOGU2ZWM3OGI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YzhiOGUzYjEwYTc1YWJhMDQ2MGY2MTk5Zjk2NjI0ZjQzNzEwYTE4ZTk1NTZh
|
14
|
-
Mjc2MzcyZmJmZmNjN2ZmMDcwYWU1OTgzYTU0NDJiNGNjM2E3NDcwNWU1YTMy
|
15
|
-
YjNiNzNjYzA0ZDgxODQ2ZjMyMDgyM2IzYmQxODY5ZGIzYjE2NDA=
|
6
|
+
metadata.gz: dbe214a6737375e2e5f4b6c08c63345ce850eaaea30373fab732a8352b84e58f862af5490d39dc18415f0256b92d0625c51c8e61ade9d2ef562050239340d985
|
7
|
+
data.tar.gz: 79296f466687b53a26a3e1c402a2ac7a6f2c2f999092a11567c897d71e3b78eca592cba97da211af5226e09ffd7086ed2cf0433cdeb14ad8c0635e5f6b55a7b8
|
@@ -0,0 +1,24 @@
|
|
1
|
+
> Please provide a general summary of the issue in the Issue Title above
|
2
|
+
> fill out the headings below as applicable to the issue you are reporting,
|
3
|
+
> deleting as appropriate but offering us as much detail as you can to help us resolve the issue
|
4
|
+
|
5
|
+
### Expected Behaviour
|
6
|
+
> What should happen?
|
7
|
+
|
8
|
+
### Desired Behaviour (for improvement suggestions only)
|
9
|
+
> if relevant include images or hyperlinks to other resources that clarify the enhancement you're seeking
|
10
|
+
|
11
|
+
### Current Behaviour (for problems)
|
12
|
+
> What currently happens that isn't expected behaviour?
|
13
|
+
|
14
|
+
### Steps to Reproduce (for problems)
|
15
|
+
> Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant
|
16
|
+
1.
|
17
|
+
2.
|
18
|
+
3.
|
19
|
+
4.
|
20
|
+
|
21
|
+
### Your Environment
|
22
|
+
> Include as many relevant details about the environment you experienced the bug in - this will help us resolve the bug more expediently
|
23
|
+
* Environment name and version (e.g. Chrome 39, node.js 5.4):
|
24
|
+
* Operating System and version (desktop or mobile):
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: CI
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ main ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ main ]
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
matrix:
|
12
|
+
ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1']
|
13
|
+
fail-fast: false
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
bundler-cache: true
|
19
|
+
ruby-version: ${{ matrix.ruby-version }}
|
20
|
+
- name: Install dependencies
|
21
|
+
run: bundle install
|
22
|
+
- name: Run the tests
|
23
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.2
|
data/CHANGELOG.md
CHANGED
@@ -1,21 +1,101 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [0.
|
3
|
+
## [v1.0.0](https://github.com/Data-Liberation-Front/csvlint.rb/tree/v1.0.0) (2022-07-13)
|
4
|
+
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.4.0...v1.0.0)
|
5
|
+
|
6
|
+
Support Ruby 3.x, and DROPPED support for Ruby 2.4 - that's why the major version bump. That and this has been around long enough that it really shouldn't be on a zero version any more :)
|
7
|
+
|
8
|
+
## What's Changed
|
9
|
+
* Don't patch CSV#init_converters for ruby 2.5 compatibility by @rbmrclo in https://github.com/Data-Liberation-Front/csvlint.rb/pull/217
|
10
|
+
* correct typos in README by @erikj in https://github.com/Data-Liberation-Front/csvlint.rb/pull/216
|
11
|
+
* add info about your PATH by @ftrotter in https://github.com/Data-Liberation-Front/csvlint.rb/pull/222
|
12
|
+
* Remove tests on deprecated ruby versions < 2.3 by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/234
|
13
|
+
* Drop mime-types gem dependency by @ohbarye in https://github.com/Data-Liberation-Front/csvlint.rb/pull/221
|
14
|
+
* remove specific version of net-http-persistent in gemspec by @kotaro0522 in https://github.com/Data-Liberation-Front/csvlint.rb/pull/219
|
15
|
+
* Replace colorize with rainbow to make licensing consistent. by @cobbr2 in https://github.com/Data-Liberation-Front/csvlint.rb/pull/215
|
16
|
+
* Update rdf requirement from < 2.0 to < 4.0 by @dependabot-preview in https://github.com/Data-Liberation-Front/csvlint.rb/pull/231
|
17
|
+
* Test on Ruby 2.5 and 2.6 by @Domon in https://github.com/Data-Liberation-Front/csvlint.rb/pull/223
|
18
|
+
* Fix load_from_json deprecation warnings. by @jezhiggins in https://github.com/Data-Liberation-Front/csvlint.rb/pull/237
|
19
|
+
* Fix csvw tests by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/239
|
20
|
+
* Test on Ruby 2.6 and 2.7 by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/240
|
21
|
+
* Create Dependabot config file by @dependabot-preview in https://github.com/Data-Liberation-Front/csvlint.rb/pull/245
|
22
|
+
* Include active_support/object to ensure this works in ruby 2.6 by @mseverini in https://github.com/Data-Liberation-Front/csvlint.rb/pull/246
|
23
|
+
* add CI workflow for github actions by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/255
|
24
|
+
* Enable and fix tests for Ruby 2.5 by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/259
|
25
|
+
* Support Ruby 2.6 by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/262
|
26
|
+
* Ruby 2.7 support by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/263
|
27
|
+
* Drop support for Ruby 2.4 by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/265
|
28
|
+
* Ruby 3.0 by @Floppy in https://github.com/Data-Liberation-Front/csvlint.rb/pull/264
|
29
|
+
|
30
|
+
## New Contributors
|
31
|
+
* @rbmrclo made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/217
|
32
|
+
* @erikj made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/216
|
33
|
+
* @ftrotter made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/222
|
34
|
+
* @ohbarye made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/221
|
35
|
+
* @kotaro0522 made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/219
|
36
|
+
* @cobbr2 made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/215
|
37
|
+
* @dependabot-preview made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/231
|
38
|
+
* @Domon made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/223
|
39
|
+
* @mseverini made their first contribution in https://github.com/Data-Liberation-Front/csvlint.rb/pull/246
|
40
|
+
|
41
|
+
## [0.4.0](https://github.com/theodi/csvlint.rb/tree/0.4.0) (2017-xx-xx)
|
42
|
+
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.3.3...0.4.0)
|
43
|
+
|
44
|
+
- Support for Ruby 2.4
|
45
|
+
- Ruby 2.4 improves detections of unclosed quotes
|
46
|
+
- Support Rails ~> 5.0
|
47
|
+
- Added `--werror` flag to command line, to treat warnings as errors
|
48
|
+
- Deprecated `Schema#load_from_json` and replaced with `Schema#load_from_uri`. Method will be removed in 1.0.0.
|
49
|
+
- Added `Schema#load_from_string` to load from a string instead of reading a URI
|
50
|
+
|
51
|
+
**Closed issues:**
|
52
|
+
|
53
|
+
- CLI doesn't handle filenames with spaces [\#182](https://github.com/theodi/csvlint.rb/issues/182)
|
54
|
+
|
55
|
+
## [0.3.3](https://github.com/theodi/csvlint.rb/tree/0.3.3) (2016-11-10)
|
56
|
+
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.3.2...0.3.3)
|
57
|
+
|
58
|
+
**Closed issues:**
|
59
|
+
|
60
|
+
- testing issue alerts, sorry [\#186](https://github.com/theodi/csvlint.rb/issues/186)
|
61
|
+
|
62
|
+
**Merged pull requests:**
|
63
|
+
|
64
|
+
- Add row + col to foreign key & duplicate key errors [\#188](https://github.com/theodi/csvlint.rb/pull/188) ([nickzoic](https://github.com/nickzoic))
|
65
|
+
- Trap-and-bin this [\#185](https://github.com/theodi/csvlint.rb/pull/185) ([pikesley](https://github.com/pikesley))
|
66
|
+
- csvw: common property names can be URLs [\#181](https://github.com/theodi/csvlint.rb/pull/181) ([JeniT](https://github.com/JeniT))
|
67
|
+
- force UTF-8 if encoding is ASCII-8BIT [\#180](https://github.com/theodi/csvlint.rb/pull/180) ([JeniT](https://github.com/JeniT))
|
68
|
+
|
69
|
+
## [0.3.2](https://github.com/theodi/csvlint.rb/tree/0.3.2) (2016-05-24)
|
70
|
+
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.3.1...0.3.2)
|
71
|
+
|
72
|
+
**Merged pull requests:**
|
73
|
+
|
74
|
+
- Add schema errors to cli json [\#184](https://github.com/theodi/csvlint.rb/pull/184) ([pezholio](https://github.com/pezholio))
|
75
|
+
|
76
|
+
## [0.3.1](https://github.com/theodi/csvlint.rb/tree/0.3.1) (2016-05-23)
|
77
|
+
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.3.0...0.3.1)
|
78
|
+
|
79
|
+
**Closed issues:**
|
80
|
+
|
81
|
+
- Error installing on Windows because of \*escape\_utils\* dependency [\#175](https://github.com/theodi/csvlint.rb/issues/175)
|
4
82
|
|
83
|
+
**Merged pull requests:**
|
84
|
+
|
85
|
+
- Add CLI option to output JSON [\#183](https://github.com/theodi/csvlint.rb/pull/183) ([pezholio](https://github.com/pezholio))
|
86
|
+
|
87
|
+
## [0.3.0](https://github.com/theodi/csvlint.rb/tree/0.3.0) (2016-01-12)
|
5
88
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.2.6...0.3.0)
|
6
89
|
|
7
90
|
**Merged pull requests:**
|
8
91
|
|
9
92
|
- still increment current\_line after invalid\_encoding error [\#174](https://github.com/theodi/csvlint.rb/pull/174) ([wjordan213](https://github.com/wjordan213))
|
10
|
-
|
11
93
|
- Support for CSV on the Web transformations [\#173](https://github.com/theodi/csvlint.rb/pull/173) ([JeniT](https://github.com/JeniT))
|
12
94
|
|
13
95
|
## [0.2.6](https://github.com/theodi/csvlint.rb/tree/0.2.6) (2015-11-16)
|
14
|
-
|
15
96
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.2.5...0.2.6)
|
16
97
|
|
17
98
|
## [0.2.5](https://github.com/theodi/csvlint.rb/tree/0.2.5) (2015-11-16)
|
18
|
-
|
19
99
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.2.4...0.2.5)
|
20
100
|
|
21
101
|
**Merged pull requests:**
|
@@ -23,7 +103,6 @@
|
|
23
103
|
- Use STDIN instead of ARGF [\#169](https://github.com/theodi/csvlint.rb/pull/169) ([pezholio](https://github.com/pezholio))
|
24
104
|
|
25
105
|
## [0.2.4](https://github.com/theodi/csvlint.rb/tree/0.2.4) (2015-10-20)
|
26
|
-
|
27
106
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.2.3...0.2.4)
|
28
107
|
|
29
108
|
**Merged pull requests:**
|
@@ -31,23 +110,19 @@
|
|
31
110
|
- Fixes for CLI [\#164](https://github.com/theodi/csvlint.rb/pull/164) ([pezholio](https://github.com/pezholio))
|
32
111
|
|
33
112
|
## [0.2.3](https://github.com/theodi/csvlint.rb/tree/0.2.3) (2015-10-20)
|
34
|
-
|
35
113
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.2.2...0.2.3)
|
36
114
|
|
37
115
|
**Closed issues:**
|
38
116
|
|
39
117
|
- Include field name with error [\#161](https://github.com/theodi/csvlint.rb/issues/161)
|
40
|
-
|
41
118
|
- Refactor the binary [\#150](https://github.com/theodi/csvlint.rb/issues/150)
|
42
119
|
|
43
120
|
**Merged pull requests:**
|
44
121
|
|
45
122
|
- Refactor CLI [\#163](https://github.com/theodi/csvlint.rb/pull/163) ([pezholio](https://github.com/pezholio))
|
46
|
-
|
47
123
|
- Update schema file example to clarify type [\#162](https://github.com/theodi/csvlint.rb/pull/162) ([wachunga](https://github.com/wachunga))
|
48
124
|
|
49
125
|
## [0.2.2](https://github.com/theodi/csvlint.rb/tree/0.2.2) (2015-10-09)
|
50
|
-
|
51
126
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.2.1...0.2.2)
|
52
127
|
|
53
128
|
**Closed issues:**
|
@@ -57,17 +132,12 @@
|
|
57
132
|
**Merged pull requests:**
|
58
133
|
|
59
134
|
- Check characters in validate\_line method [\#160](https://github.com/theodi/csvlint.rb/pull/160) ([pezholio](https://github.com/pezholio))
|
60
|
-
|
61
135
|
- Further optimisations [\#159](https://github.com/theodi/csvlint.rb/pull/159) ([pezholio](https://github.com/pezholio))
|
62
|
-
|
63
136
|
- More optimizations after \#157 [\#158](https://github.com/theodi/csvlint.rb/pull/158) ([jpmckinney](https://github.com/jpmckinney))
|
64
|
-
|
65
137
|
- Memoize the result of CSV\#encode\_re [\#157](https://github.com/theodi/csvlint.rb/pull/157) ([jpmckinney](https://github.com/jpmckinney))
|
66
|
-
|
67
138
|
- Don't pass leading string to parse\_line [\#155](https://github.com/theodi/csvlint.rb/pull/155) ([pezholio](https://github.com/pezholio))
|
68
139
|
|
69
140
|
## [0.2.1](https://github.com/theodi/csvlint.rb/tree/0.2.1) (2015-10-07)
|
70
|
-
|
71
141
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.2.0...0.2.1)
|
72
142
|
|
73
143
|
**Implemented enhancements:**
|
@@ -81,11 +151,9 @@
|
|
81
151
|
**Merged pull requests:**
|
82
152
|
|
83
153
|
- Add `row\_count` method [\#153](https://github.com/theodi/csvlint.rb/pull/153) ([pezholio](https://github.com/pezholio))
|
84
|
-
|
85
154
|
- Streaming validation [\#146](https://github.com/theodi/csvlint.rb/pull/146) ([pezholio](https://github.com/pezholio))
|
86
155
|
|
87
156
|
## [0.2.0](https://github.com/theodi/csvlint.rb/tree/0.2.0) (2015-10-05)
|
88
|
-
|
89
157
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.1.4...0.2.0)
|
90
158
|
|
91
159
|
**Closed issues:**
|
@@ -95,15 +163,11 @@
|
|
95
163
|
**Merged pull requests:**
|
96
164
|
|
97
165
|
- Recover from `ArgumentError`s when attempting to locate a schema and detect bad schema when JSON is malformed [\#152](https://github.com/theodi/csvlint.rb/pull/152) ([pezholio](https://github.com/pezholio))
|
98
|
-
|
99
166
|
- Catch errors if link headers are don't have particular values [\#151](https://github.com/theodi/csvlint.rb/pull/151) ([pezholio](https://github.com/pezholio))
|
100
|
-
|
101
167
|
- Rescue excel warning [\#149](https://github.com/theodi/csvlint.rb/pull/149) ([quadrophobiac](https://github.com/quadrophobiac))
|
102
|
-
|
103
168
|
- CSVW-based validation! [\#142](https://github.com/theodi/csvlint.rb/pull/142) ([JeniT](https://github.com/JeniT))
|
104
169
|
|
105
170
|
## [0.1.4](https://github.com/theodi/csvlint.rb/tree/0.1.4) (2015-08-06)
|
106
|
-
|
107
171
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.1.3...0.1.4)
|
108
172
|
|
109
173
|
**Merged pull requests:**
|
@@ -111,19 +175,15 @@
|
|
111
175
|
- change made to the constraint parameter in order that it is more cons… [\#140](https://github.com/theodi/csvlint.rb/pull/140) ([quadrophobiac](https://github.com/quadrophobiac))
|
112
176
|
|
113
177
|
## [0.1.3](https://github.com/theodi/csvlint.rb/tree/0.1.3) (2015-07-24)
|
114
|
-
|
115
178
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.1.2...0.1.3)
|
116
179
|
|
117
180
|
**Merged pull requests:**
|
118
181
|
|
119
182
|
- Error reporting schema expanded test suite [\#138](https://github.com/theodi/csvlint.rb/pull/138) ([quadrophobiac](https://github.com/quadrophobiac))
|
120
|
-
|
121
183
|
- Validate header size improvement [\#137](https://github.com/theodi/csvlint.rb/pull/137) ([adamc00](https://github.com/adamc00))
|
122
|
-
|
123
184
|
- Invalid schema [\#132](https://github.com/theodi/csvlint.rb/pull/132) ([bcouston](https://github.com/bcouston))
|
124
185
|
|
125
186
|
## [0.1.2](https://github.com/theodi/csvlint.rb/tree/0.1.2) (2015-07-15)
|
126
|
-
|
127
187
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.1.1...0.1.2)
|
128
188
|
|
129
189
|
**Closed issues:**
|
@@ -133,243 +193,138 @@
|
|
133
193
|
**Merged pull requests:**
|
134
194
|
|
135
195
|
- Catch invalid URIs [\#133](https://github.com/theodi/csvlint.rb/pull/133) ([pezholio](https://github.com/pezholio))
|
136
|
-
|
137
196
|
- Emit a warning when the CSV header does not match the supplied schema [\#127](https://github.com/theodi/csvlint.rb/pull/127) ([adamc00](https://github.com/adamc00))
|
138
197
|
|
139
198
|
## [0.1.1](https://github.com/theodi/csvlint.rb/tree/0.1.1) (2015-07-13)
|
140
|
-
|
141
199
|
[Full Changelog](https://github.com/theodi/csvlint.rb/compare/0.1.0...0.1.1)
|
142
200
|
|
143
201
|
**Closed issues:**
|
144
202
|
|
145
203
|
- Add Command Line Support [\#128](https://github.com/theodi/csvlint.rb/issues/128)
|
146
|
-
|
147
204
|
- BUG: Incorrect inconsistent\_values error on numeric columns [\#106](https://github.com/theodi/csvlint.rb/issues/106)
|
148
205
|
|
149
206
|
**Merged pull requests:**
|
150
207
|
|
151
208
|
- Fixes line content incorrectly being put into the row column field when there is an encoding error. [\#130](https://github.com/theodi/csvlint.rb/pull/130) ([glacier](https://github.com/glacier))
|
152
|
-
|
153
209
|
- Add command line help [\#129](https://github.com/theodi/csvlint.rb/pull/129) ([pezholio](https://github.com/pezholio))
|
154
|
-
|
155
210
|
- Remove stray q character. [\#125](https://github.com/theodi/csvlint.rb/pull/125) ([adamc00](https://github.com/adamc00))
|
156
|
-
|
157
211
|
- csvlint utility can take arguments to specify a schema and pp errors [\#124](https://github.com/theodi/csvlint.rb/pull/124) ([adamc00](https://github.com/adamc00))
|
158
|
-
|
159
212
|
- Fixed warning - use expect\( \) rather than .should [\#123](https://github.com/theodi/csvlint.rb/pull/123) ([jezhiggins](https://github.com/jezhiggins))
|
160
|
-
|
161
213
|
- Fixed spelling mistake [\#121](https://github.com/theodi/csvlint.rb/pull/121) ([jezhiggins](https://github.com/jezhiggins))
|
162
|
-
|
163
214
|
- Avoid using \#blank? if unnecessary [\#120](https://github.com/theodi/csvlint.rb/pull/120) ([jpmckinney](https://github.com/jpmckinney))
|
164
|
-
|
165
215
|
- eliminate some date and time formats, related \#105 [\#119](https://github.com/theodi/csvlint.rb/pull/119) ([jpmckinney](https://github.com/jpmckinney))
|
166
|
-
|
167
216
|
- Match another CSV error about line endings [\#118](https://github.com/theodi/csvlint.rb/pull/118) ([jpmckinney](https://github.com/jpmckinney))
|
168
|
-
|
169
217
|
- fixed typo mistake in README [\#117](https://github.com/theodi/csvlint.rb/pull/117) ([railsfactory-kumaresan](https://github.com/railsfactory-kumaresan))
|
170
|
-
|
171
218
|
- Integrate @jpmickinney's build\_formats improvements [\#112](https://github.com/theodi/csvlint.rb/pull/112) ([Floppy](https://github.com/Floppy))
|
172
|
-
|
173
219
|
- make limit\_lines into a non-dialect option [\#110](https://github.com/theodi/csvlint.rb/pull/110) ([Floppy](https://github.com/Floppy))
|
174
|
-
|
175
220
|
- fix coveralls stats [\#109](https://github.com/theodi/csvlint.rb/pull/109) ([Floppy](https://github.com/Floppy))
|
176
|
-
|
177
221
|
- Limit lines [\#101](https://github.com/theodi/csvlint.rb/pull/101) ([Hoedic](https://github.com/Hoedic))
|
178
222
|
|
179
223
|
## [0.1.0](https://github.com/theodi/csvlint.rb/tree/0.1.0) (2014-11-27)
|
180
|
-
|
181
224
|
**Implemented enhancements:**
|
182
225
|
|
183
226
|
- Blank values shouldn't count as inconsistencies [\#90](https://github.com/theodi/csvlint.rb/issues/90)
|
184
|
-
|
185
227
|
- Make sure we don't check schema column count and ragged row count together [\#66](https://github.com/theodi/csvlint.rb/issues/66)
|
186
|
-
|
187
228
|
- Include the failed constraints in error message when doing field validation [\#64](https://github.com/theodi/csvlint.rb/issues/64)
|
188
|
-
|
189
229
|
- Include the column value in error message when field validation fails [\#63](https://github.com/theodi/csvlint.rb/issues/63)
|
190
|
-
|
191
230
|
- Expose optional JSON table schema fields [\#55](https://github.com/theodi/csvlint.rb/issues/55)
|
192
|
-
|
193
231
|
- Ensure header rows are properly handled and validated [\#48](https://github.com/theodi/csvlint.rb/issues/48)
|
194
|
-
|
195
232
|
- Support zipped CSV? [\#30](https://github.com/theodi/csvlint.rb/issues/30)
|
196
|
-
|
197
233
|
- Improve feedback on inconsistent values [\#29](https://github.com/theodi/csvlint.rb/issues/29)
|
198
|
-
|
199
234
|
- Reported error positions are not massively useful [\#15](https://github.com/theodi/csvlint.rb/issues/15)
|
200
235
|
|
201
236
|
**Fixed bugs:**
|
202
237
|
|
203
238
|
- undefined method `\[\]' for nil:NilClass from fetch\_error [\#71](https://github.com/theodi/csvlint.rb/issues/71)
|
204
|
-
|
205
239
|
- Inconsistent column bases [\#69](https://github.com/theodi/csvlint.rb/issues/69)
|
206
|
-
|
207
240
|
- Improve error handling in Schema loading [\#42](https://github.com/theodi/csvlint.rb/issues/42)
|
208
|
-
|
209
241
|
- Recover from some line ending problems [\#41](https://github.com/theodi/csvlint.rb/issues/41)
|
210
|
-
|
211
242
|
- Inconsistent values due to number format differences [\#32](https://github.com/theodi/csvlint.rb/issues/32)
|
212
|
-
|
213
243
|
- New lines in quoted fields are valid [\#31](https://github.com/theodi/csvlint.rb/issues/31)
|
214
|
-
|
215
244
|
- Wrongly reporting incorrect file extension [\#23](https://github.com/theodi/csvlint.rb/issues/23)
|
216
|
-
|
217
245
|
- Incorrect extension reported when URL has query options at the end [\#14](https://github.com/theodi/csvlint.rb/issues/14)
|
218
246
|
|
219
247
|
**Closed issues:**
|
220
248
|
|
221
249
|
- Get gem continuously deploying [\#93](https://github.com/theodi/csvlint.rb/issues/93)
|
222
|
-
|
223
250
|
- Publish on rubygems.org [\#92](https://github.com/theodi/csvlint.rb/issues/92)
|
224
|
-
|
225
251
|
- Duplicate column names [\#87](https://github.com/theodi/csvlint.rb/issues/87)
|
226
|
-
|
227
252
|
- Return code is always 0 \(except when it isn't\) [\#85](https://github.com/theodi/csvlint.rb/issues/85)
|
228
|
-
|
229
253
|
- Can't pipe data to csvlint [\#84](https://github.com/theodi/csvlint.rb/issues/84)
|
230
|
-
|
231
254
|
- They have some validator running if someone wants to inspect it for "inspiration" [\#27](https://github.com/theodi/csvlint.rb/issues/27)
|
232
|
-
|
233
255
|
- Allow CSV parsing options to be configured as a parameter [\#6](https://github.com/theodi/csvlint.rb/issues/6)
|
234
|
-
|
235
256
|
- Use explicit CSV parsing options [\#5](https://github.com/theodi/csvlint.rb/issues/5)
|
236
|
-
|
237
257
|
- Improving encoding detection [\#2](https://github.com/theodi/csvlint.rb/issues/2)
|
238
258
|
|
239
259
|
**Merged pull requests:**
|
240
260
|
|
241
261
|
- Speed up \#build\_formats \(changes its API\) [\#103](https://github.com/theodi/csvlint.rb/pull/103) ([jpmckinney](https://github.com/jpmckinney))
|
242
|
-
|
243
262
|
- Continuously deploy gem [\#102](https://github.com/theodi/csvlint.rb/pull/102) ([pezholio](https://github.com/pezholio))
|
244
|
-
|
245
263
|
- Make csvlint way faster [\#99](https://github.com/theodi/csvlint.rb/pull/99) ([jpmckinney](https://github.com/jpmckinney))
|
246
|
-
|
247
264
|
- Update README.md [\#98](https://github.com/theodi/csvlint.rb/pull/98) ([rmalecky](https://github.com/rmalecky))
|
248
|
-
|
249
265
|
- Undeclared header error [\#95](https://github.com/theodi/csvlint.rb/pull/95) ([Floppy](https://github.com/Floppy))
|
250
|
-
|
251
266
|
- Blank values shouldn't count as inconsistencies [\#91](https://github.com/theodi/csvlint.rb/pull/91) ([pezholio](https://github.com/pezholio))
|
252
|
-
|
253
267
|
- Use `reject` instead of `delete\_if` [\#89](https://github.com/theodi/csvlint.rb/pull/89) ([pezholio](https://github.com/pezholio))
|
254
|
-
|
255
268
|
- Raise a warning if a title row is found [\#88](https://github.com/theodi/csvlint.rb/pull/88) ([pezholio](https://github.com/pezholio))
|
256
|
-
|
257
269
|
- Improve executable [\#86](https://github.com/theodi/csvlint.rb/pull/86) ([pezholio](https://github.com/pezholio))
|
258
|
-
|
259
270
|
- Feature undeclared header [\#83](https://github.com/theodi/csvlint.rb/pull/83) ([ldodds](https://github.com/ldodds))
|
260
|
-
|
261
271
|
- Support xsd:integer [\#82](https://github.com/theodi/csvlint.rb/pull/82) ([ldodds](https://github.com/ldodds))
|
262
|
-
|
263
272
|
- Downgrade header errors [\#81](https://github.com/theodi/csvlint.rb/pull/81) ([ldodds](https://github.com/ldodds))
|
264
|
-
|
265
273
|
- Go home, pry [\#78](https://github.com/theodi/csvlint.rb/pull/78) ([pikesley](https://github.com/pikesley))
|
266
|
-
|
267
274
|
- Use type validations to check consistency [\#77](https://github.com/theodi/csvlint.rb/pull/77) ([pezholio](https://github.com/pezholio))
|
268
|
-
|
269
275
|
- Add data accessor [\#76](https://github.com/theodi/csvlint.rb/pull/76) ([Floppy](https://github.com/Floppy))
|
270
|
-
|
271
276
|
- Add failed constraints to schema errors [\#75](https://github.com/theodi/csvlint.rb/pull/75) ([ldodds](https://github.com/ldodds))
|
272
|
-
|
273
277
|
- Only perform ragged row check if there's no schema [\#74](https://github.com/theodi/csvlint.rb/pull/74) ([ldodds](https://github.com/ldodds))
|
274
|
-
|
275
278
|
- Handle tempfiles [\#73](https://github.com/theodi/csvlint.rb/pull/73) ([pezholio](https://github.com/pezholio))
|
276
|
-
|
277
279
|
- Catch errors if regex doesn't match [\#72](https://github.com/theodi/csvlint.rb/pull/72) ([pezholio](https://github.com/pezholio))
|
278
|
-
|
279
280
|
- Inconsistent column base [\#70](https://github.com/theodi/csvlint.rb/pull/70) ([ldodds](https://github.com/ldodds))
|
280
|
-
|
281
281
|
- include column name in :header\_name message [\#68](https://github.com/theodi/csvlint.rb/pull/68) ([Floppy](https://github.com/Floppy))
|
282
|
-
|
283
282
|
- Record default dialect [\#67](https://github.com/theodi/csvlint.rb/pull/67) ([pezholio](https://github.com/pezholio))
|
284
|
-
|
285
283
|
- Schema validation message improvements [\#65](https://github.com/theodi/csvlint.rb/pull/65) ([Floppy](https://github.com/Floppy))
|
286
|
-
|
287
284
|
- Fix ignore empty fields [\#62](https://github.com/theodi/csvlint.rb/pull/62) ([ldodds](https://github.com/ldodds))
|
288
|
-
|
289
285
|
- Create stub schema from existing CSV file [\#61](https://github.com/theodi/csvlint.rb/pull/61) ([ldodds](https://github.com/ldodds))
|
290
|
-
|
291
286
|
- Validate dates [\#59](https://github.com/theodi/csvlint.rb/pull/59) ([ldodds](https://github.com/ldodds))
|
292
|
-
|
293
287
|
- add schema access from validator [\#58](https://github.com/theodi/csvlint.rb/pull/58) ([Floppy](https://github.com/Floppy))
|
294
|
-
|
295
288
|
- Allow schema and fields to have title and description [\#57](https://github.com/theodi/csvlint.rb/pull/57) ([ldodds](https://github.com/ldodds))
|
296
|
-
|
297
289
|
- Feature min max ranges [\#56](https://github.com/theodi/csvlint.rb/pull/56) ([ldodds](https://github.com/ldodds))
|
298
|
-
|
299
290
|
- Check header without schema [\#54](https://github.com/theodi/csvlint.rb/pull/54) ([ldodds](https://github.com/ldodds))
|
300
|
-
|
301
291
|
- Validate types [\#53](https://github.com/theodi/csvlint.rb/pull/53) ([pikesley](https://github.com/pikesley))
|
302
|
-
|
303
292
|
- Added open\_uri\_redirections to allow HTTP/HTTPS transfers [\#52](https://github.com/theodi/csvlint.rb/pull/52) ([ldodds](https://github.com/ldodds))
|
304
|
-
|
305
293
|
- Added docs on CSV options and header error/warning messages [\#51](https://github.com/theodi/csvlint.rb/pull/51) ([ldodds](https://github.com/ldodds))
|
306
|
-
|
307
294
|
- Feature header validation [\#50](https://github.com/theodi/csvlint.rb/pull/50) ([ldodds](https://github.com/ldodds))
|
308
|
-
|
309
295
|
- Handle unique columns [\#49](https://github.com/theodi/csvlint.rb/pull/49) ([pikesley](https://github.com/pikesley))
|
310
|
-
|
311
296
|
- Validate all the fields [\#47](https://github.com/theodi/csvlint.rb/pull/47) ([ldodds](https://github.com/ldodds))
|
312
|
-
|
313
297
|
- Tolerate incomplete schemas [\#46](https://github.com/theodi/csvlint.rb/pull/46) ([ldodds](https://github.com/ldodds))
|
314
|
-
|
315
298
|
- Add accessor for line breaks [\#45](https://github.com/theodi/csvlint.rb/pull/45) ([Floppy](https://github.com/Floppy))
|
316
|
-
|
317
299
|
- update README for info messages and new error types [\#44](https://github.com/theodi/csvlint.rb/pull/44) ([Floppy](https://github.com/Floppy))
|
318
|
-
|
319
300
|
- Info messages for line breaks [\#43](https://github.com/theodi/csvlint.rb/pull/43) ([Floppy](https://github.com/Floppy))
|
320
|
-
|
321
301
|
- Add category to messages [\#40](https://github.com/theodi/csvlint.rb/pull/40) ([ldodds](https://github.com/ldodds))
|
322
|
-
|
323
302
|
- Badges [\#39](https://github.com/theodi/csvlint.rb/pull/39) ([pikesley](https://github.com/pikesley))
|
324
|
-
|
325
303
|
- Generic field validation using JSON Table Schema [\#38](https://github.com/theodi/csvlint.rb/pull/38) ([ldodds](https://github.com/ldodds))
|
326
|
-
|
327
304
|
- Feature validate strings and files [\#37](https://github.com/theodi/csvlint.rb/pull/37) ([ldodds](https://github.com/ldodds))
|
328
|
-
|
329
305
|
- Support reporting of column number in errors [\#36](https://github.com/theodi/csvlint.rb/pull/36) ([ldodds](https://github.com/ldodds))
|
330
|
-
|
331
306
|
- Fix up casing of keys in CSV DDF options [\#35](https://github.com/theodi/csvlint.rb/pull/35) ([ldodds](https://github.com/ldodds))
|
332
|
-
|
333
307
|
- Add errors for incorrect newlines [\#34](https://github.com/theodi/csvlint.rb/pull/34) ([pezholio](https://github.com/pezholio))
|
334
|
-
|
335
308
|
- Change from parsing CSV line by line to using CSV.new and trapping errors [\#33](https://github.com/theodi/csvlint.rb/pull/33) ([ldodds](https://github.com/ldodds))
|
336
|
-
|
337
309
|
- Improved the README, tweaked LICENSE [\#28](https://github.com/theodi/csvlint.rb/pull/28) ([ldodds](https://github.com/ldodds))
|
338
|
-
|
339
310
|
- Handle 404s [\#26](https://github.com/theodi/csvlint.rb/pull/26) ([pezholio](https://github.com/pezholio))
|
340
|
-
|
341
311
|
- Create more fine-grained errors and warnings for content type issues [\#25](https://github.com/theodi/csvlint.rb/pull/25) ([ldodds](https://github.com/ldodds))
|
342
|
-
|
343
312
|
- Report trailing empty rows as an error. Previously threw exception [\#24](https://github.com/theodi/csvlint.rb/pull/24) ([ldodds](https://github.com/ldodds))
|
344
|
-
|
345
313
|
- Simplify the guessing of column types [\#22](https://github.com/theodi/csvlint.rb/pull/22) ([ldodds](https://github.com/ldodds))
|
346
|
-
|
347
314
|
- Class-ify error messages [\#21](https://github.com/theodi/csvlint.rb/pull/21) ([pezholio](https://github.com/pezholio))
|
348
|
-
|
349
315
|
- Error extracts [\#20](https://github.com/theodi/csvlint.rb/pull/20) ([Floppy](https://github.com/Floppy))
|
350
|
-
|
351
316
|
- Return headers [\#19](https://github.com/theodi/csvlint.rb/pull/19) ([pezholio](https://github.com/pezholio))
|
352
|
-
|
353
317
|
- Return a warning if no character set specified [\#18](https://github.com/theodi/csvlint.rb/pull/18) ([pezholio](https://github.com/pezholio))
|
354
|
-
|
355
318
|
- Ignore query params [\#17](https://github.com/theodi/csvlint.rb/pull/17) ([Floppy](https://github.com/Floppy))
|
356
|
-
|
357
319
|
- Add invalid\_encoding error for invalid byte sequences [\#16](https://github.com/theodi/csvlint.rb/pull/16) ([ldodds](https://github.com/ldodds))
|
358
|
-
|
359
320
|
- Check inconsistent values [\#13](https://github.com/theodi/csvlint.rb/pull/13) ([pezholio](https://github.com/pezholio))
|
360
|
-
|
361
321
|
- Add CSV dialect options [\#11](https://github.com/theodi/csvlint.rb/pull/11) ([pezholio](https://github.com/pezholio))
|
362
|
-
|
363
322
|
- Return warning if extension doesn't match content type [\#10](https://github.com/theodi/csvlint.rb/pull/10) ([pezholio](https://github.com/pezholio))
|
364
|
-
|
365
323
|
- Return warnings for file extension [\#8](https://github.com/theodi/csvlint.rb/pull/8) ([pezholio](https://github.com/pezholio))
|
366
|
-
|
367
324
|
- Detect blank rows [\#7](https://github.com/theodi/csvlint.rb/pull/7) ([pezholio](https://github.com/pezholio))
|
368
|
-
|
369
325
|
- Detect bad content type [\#3](https://github.com/theodi/csvlint.rb/pull/3) ([pezholio](https://github.com/pezholio))
|
370
|
-
|
371
326
|
- Return information about CSV [\#1](https://github.com/theodi/csvlint.rb/pull/1) ([pezholio](https://github.com/pezholio))
|
372
327
|
|
373
328
|
|
374
329
|
|
375
|
-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
330
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
## Code of Conduct
|
2
|
+
|
3
|
+
### Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
### Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
### Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
### Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
### Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at [labs@theodi.org](mailto:labs@theodi.org). All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
### Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|