dry-validation 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/CONTRIBUTING.md +6 -4
- data/Gemfile +1 -0
- data/README.md +1 -0
- data/dry-validation.gemspec +2 -3
- data/lib/dry/validation/type_specs.rb +2 -2
- data/lib/dry/validation/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dabf44058263610b6c475d558c6c6ea6653981a9
|
4
|
+
data.tar.gz: a2a4584cdd4292e50c0463f0b252f7d2bf726155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '018b3da6879dd3d6125c1b4b05479926b2b4d4b7cc2ae1e0c724f4c82d81bf42d0103aebe7c12e48a94435df089c829d3be1491beff3b1f683867bb3b7205a96'
|
7
|
+
data.tar.gz: d2b39cee50faa3bcd918c2e848775e5d862b6f6a745a99de3c6739ee84bbe7b210be4a6fd35231e1fed36aaa83da9e94f84f40a5d3b70c0db267f8af70f4601b
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -6,11 +6,11 @@ If you found a bug, report an issue and describe what's the expected behavior ve
|
|
6
6
|
|
7
7
|
## Reporting feature requests
|
8
8
|
|
9
|
-
Report a feature request **only after discussing it first on [
|
9
|
+
Report a feature request **only after discussing it first on [the discussion forum][1]** where it was accepted. Please provide a concise description of the feature, don't link to a discussion thread, and instead summarize what was discussed.
|
10
10
|
|
11
11
|
## Reporting questions, support requests, ideas, concerns etc.
|
12
12
|
|
13
|
-
**PLEASE DON'T** - use [
|
13
|
+
**PLEASE DON'T** - use [the discussion forum][1] instead.
|
14
14
|
|
15
15
|
# Pull Request Guidelines
|
16
16
|
|
@@ -22,8 +22,10 @@ Other requirements:
|
|
22
22
|
2) Follow the style conventions of the surrounding code. In most cases, this is standard ruby style.
|
23
23
|
3) Add API documentation if it's a new feature
|
24
24
|
4) Update API documentation if it changes an existing feature
|
25
|
-
5) Bonus points for sending a PR to [github.com/dry-rb/dry-rb.org](github.com/dry-rb/dry-rb.org) which updates user documentation and guides
|
25
|
+
5) Bonus points for sending a PR to [github.com/dry-rb/dry-rb.org](https://github.com/dry-rb/dry-rb.org) which updates user documentation and guides
|
26
26
|
|
27
27
|
# Asking for help
|
28
28
|
|
29
|
-
If these guidelines aren't helpful, and you're stuck, please post a message on [
|
29
|
+
If these guidelines aren't helpful, and you're stuck, please post a message on [the discussion forum][1].
|
30
|
+
|
31
|
+
[1]: https://discourse.dry-rb.org/
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/dry-validation.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
require File.expand_path('../lib/dry/validation/version', __FILE__)
|
3
2
|
|
4
3
|
Gem::Specification.new do |spec|
|
@@ -7,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
7
6
|
spec.authors = ['Andy Holland', 'Piotr Solnica']
|
8
7
|
spec.email = ['andyholland1991@aol.com', 'piotr.solnica@gmail.com']
|
9
8
|
spec.summary = 'A simple validation library'
|
10
|
-
spec.homepage = 'https://github.com/
|
9
|
+
spec.homepage = 'https://github.com/dry-rb/dry-validation'
|
11
10
|
spec.license = 'MIT'
|
12
11
|
|
13
12
|
spec.files = `git ls-files -z`.split("\x0") - ['bin/console']
|
@@ -19,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
19
18
|
spec.add_runtime_dependency 'dry-configurable', '~> 0.1', '>= 0.1.3'
|
20
19
|
spec.add_runtime_dependency 'dry-equalizer', '~> 0.2'
|
21
20
|
spec.add_runtime_dependency 'dry-logic', '~> 0.4', '>= 0.4.0'
|
22
|
-
spec.add_runtime_dependency 'dry-types', '~> 0.
|
21
|
+
spec.add_runtime_dependency 'dry-types', '~> 0.12.0'
|
23
22
|
spec.add_runtime_dependency 'dry-core', '~> 0.2', '>= 0.2.1'
|
24
23
|
|
25
24
|
spec.add_development_dependency 'bundler'
|
@@ -30,7 +30,7 @@ module Dry
|
|
30
30
|
member_type = lookup_type("hash", category)
|
31
31
|
.public_send(config.hash_type, member_schema)
|
32
32
|
|
33
|
-
lookup_type("array", category).
|
33
|
+
lookup_type("array", category).of(member_type)
|
34
34
|
end
|
35
35
|
|
36
36
|
def build_sum_type(spec, category)
|
@@ -51,7 +51,7 @@ module Dry
|
|
51
51
|
build_array_type(spec[0], category)
|
52
52
|
else
|
53
53
|
array_member = lookup_type(spec[0], category)
|
54
|
-
lookup_type("array", category).
|
54
|
+
lookup_type("array", category).of(array_member)
|
55
55
|
end
|
56
56
|
else
|
57
57
|
build_sum_type(spec, category)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-validation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Holland
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|
@@ -85,14 +85,14 @@ dependencies:
|
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 0.
|
88
|
+
version: 0.12.0
|
89
89
|
type: :runtime
|
90
90
|
prerelease: false
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.
|
95
|
+
version: 0.12.0
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: dry-core
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -348,7 +348,7 @@ files:
|
|
348
348
|
- spec/unit/schema/rule_spec.rb
|
349
349
|
- spec/unit/schema/value_spec.rb
|
350
350
|
- spec/unit/schema_spec.rb
|
351
|
-
homepage: https://github.com/
|
351
|
+
homepage: https://github.com/dry-rb/dry-validation
|
352
352
|
licenses:
|
353
353
|
- MIT
|
354
354
|
metadata: {}
|
@@ -368,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
368
368
|
version: '0'
|
369
369
|
requirements: []
|
370
370
|
rubyforge_project:
|
371
|
-
rubygems_version: 2.6.
|
371
|
+
rubygems_version: 2.6.11
|
372
372
|
signing_key:
|
373
373
|
specification_version: 4
|
374
374
|
summary: A simple validation library
|