see_as_vee 0.4.9 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -0
- data/README.md +11 -8
- data/lib/see_as_vee/version.rb +1 -1
- data/see_as_vee.gemspec +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9d723df983c8063c648f6eb47f723f7e90d14257963fc7e73aed66bf48523452
|
4
|
+
data.tar.gz: 41c9a03b9d4ab3b235d2ebf9043c1c44999f851d26e58761d12b73d888a4f8ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b83f87e580808943213c469d23b0cc040ef690ec1de6b24737390e2bc5f12b8b6a5ff74738f6c1d1fc46dd2e16256772c421cbcbdbac0fd9d234eb901e60ad4e
|
7
|
+
data.tar.gz: '0922e9cba7e71d8b506c2bc072decb84aae94c5234129afc79a57e408cbab4d3613451fd24aae6ae1059fc14b20367091ae4417b6a218aa24cee21bc139c4737'
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -58,14 +58,15 @@ Or install it yourself as:
|
|
58
58
|
From the version `0.4.0` we support dry validation of the data given:
|
59
59
|
|
60
60
|
```ruby
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
61
|
+
# Dry::Validation.Form if you are using dry-validation < 0.12
|
62
|
+
schema = Dry::Validation.Params do
|
63
|
+
required(:reference) { filled? > str? }
|
64
|
+
required(:trade_date).filled(:date?)
|
65
|
+
required(:notional).filled(:float?)
|
66
|
+
required(:notional_currency).filled(:str?)
|
67
|
+
end
|
68
|
+
validation = SeeAsVee.validate('spec/fixtures/velo.csv', schema)
|
69
|
+
expect(validation.all? { |vr| vr.errors.empty? }).to be true
|
69
70
|
```
|
70
71
|
|
71
72
|
The returned value is an array of [validation results](http://dry-rb.org/gems/dry-validation/basics/).
|
@@ -124,6 +125,8 @@ From the version `0.4.5` we support expanding the column produced by `GROUP_CONC
|
|
124
125
|
|
125
126
|
## Changelog
|
126
127
|
|
128
|
+
### `0.5.0` supporting all versions of `dry-validation`
|
129
|
+
|
127
130
|
### `0.4.9` _`squish`_
|
128
131
|
|
129
132
|
### `0.4.8` _bugfix_ allow same lines in the input
|
data/lib/see_as_vee/version.rb
CHANGED
data/see_as_vee.gemspec
CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency 'rspec'
|
36
36
|
spec.add_development_dependency 'pry'
|
37
37
|
spec.add_development_dependency 'awesome_print'
|
38
|
-
spec.add_development_dependency 'dry-validation', '~> 0.
|
38
|
+
spec.add_development_dependency 'dry-validation', '~> 0.9'
|
39
39
|
|
40
40
|
# spec.add_development_dependency 'codeclimate-test-reporter'
|
41
41
|
# spec.add_development_dependency 'simplecov', '~> 0.12.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: see_as_vee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksei Matiushkin
|
@@ -128,20 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0.
|
132
|
-
- - "<="
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: '0.11'
|
131
|
+
version: '0.9'
|
135
132
|
type: :development
|
136
133
|
prerelease: false
|
137
134
|
version_requirements: !ruby/object:Gem::Requirement
|
138
135
|
requirements:
|
139
136
|
- - "~>"
|
140
137
|
- !ruby/object:Gem::Version
|
141
|
-
version: '0.
|
142
|
-
- - "<="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0.11'
|
138
|
+
version: '0.9'
|
145
139
|
description: Load CSV/XLSX, check it, format it and spit it back to the user with
|
146
140
|
a single command.
|
147
141
|
email:
|
@@ -191,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
185
|
version: '0'
|
192
186
|
requirements: []
|
193
187
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.7.3
|
195
189
|
signing_key:
|
196
190
|
specification_version: 4
|
197
191
|
summary: Really easy CSV/XLSX reader/writer.
|