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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 890495beea9012f9199b0ce961c38c46a316a6a3
4
- data.tar.gz: 2aab815e020a375618b80e6f0ecc15a8b1f29544
2
+ SHA256:
3
+ metadata.gz: 9d723df983c8063c648f6eb47f723f7e90d14257963fc7e73aed66bf48523452
4
+ data.tar.gz: 41c9a03b9d4ab3b235d2ebf9043c1c44999f851d26e58761d12b73d888a4f8ee
5
5
  SHA512:
6
- metadata.gz: ee6e0686b48911a268b29dded0340f22a9d9489bd3450e76ca164f0ff4158929426fefa66f2dde2f467a57d90e9ffff954c31e93cd31e6f66aa166af92a7331b
7
- data.tar.gz: 069ff9ec47129fca99a5c6ea78c1d16e6d4cfe28872c06ea71b5b734c7a227d986f4797db59e68bbab3e42dc47e7a9f65fc1af15ffece239ce8e4f242b6b1fc2
6
+ metadata.gz: b83f87e580808943213c469d23b0cc040ef690ec1de6b24737390e2bc5f12b8b6a5ff74738f6c1d1fc46dd2e16256772c421cbcbdbac0fd9d234eb901e60ad4e
7
+ data.tar.gz: '0922e9cba7e71d8b506c2bc072decb84aae94c5234129afc79a57e408cbab4d3613451fd24aae6ae1059fc14b20367091ae4417b6a218aa24cee21bc139c4737'
data/.travis.yml CHANGED
@@ -1,7 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.1.8
3
4
  - 2.2.2
4
5
  - 2.3.1
6
+ - 2.4.1
7
+ - 2.5.1
5
8
  before_install: gem install bundler -v 1.10.6
6
9
 
7
10
  addons:
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
- schema = Dry::Validation.Form do
62
- required(:reference) { filled? > str? }
63
- required(:trade_date).filled(:date?)
64
- required(:notional).filled(:float?)
65
- required(:notional_currency).filled(:str?)
66
- end
67
- validation = SeeAsVee.validate('spec/fixtures/velo.csv', schema)
68
- expect(validation.all? { |vr| vr.errors.empty? }).to be true
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
@@ -1,3 +1,3 @@
1
1
  module SeeAsVee
2
- VERSION = '0.4.9'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
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.10', '<= 0.11'
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.9
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.10'
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.10'
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.4.8
188
+ rubygems_version: 2.7.3
195
189
  signing_key:
196
190
  specification_version: 4
197
191
  summary: Really easy CSV/XLSX reader/writer.