request_handler 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -5
- data/lib/request_handler/version.rb +1 -1
- data/request_handler.gemspec +2 -2
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bdc41be4882152511b384885eb59192f5173abb7f08e9f2c32f06030c571821
|
4
|
+
data.tar.gz: 910f9f1a2a227c1536c3153857eca1906313a6594d6e66c13989fdb78ef6af39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0ee7d6b5160d2f8e4a5c33501aecc4cbd43c6c8d1cbb7dd54a6ecd3700ddedf7f600dffc3b6985775b3f7fae4d077a88774b3f6d3762c7a1f79e386162e190d
|
7
|
+
data.tar.gz: b912e9cde9288dee5e004c1ad71e9f0a9e985e7bc5ff4fe742b1284078ab7c35d882a757b3ae4235b3d5968fc12f29c1c3c6d37ee106960661134e3a36441042
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.1.0] - 2018-07-13
|
10
|
+
### Changed
|
11
|
+
- loosen dry-gems restrictions, now allow all version > 0.11
|
12
|
+
|
9
13
|
## [1.0.0] - 2018-07-03
|
10
14
|
### Added
|
11
15
|
- possibility to send NULL values in relationships
|
@@ -98,7 +102,8 @@ sort_params returns an array of dtos now `DataTransferObject.new(field: "test",
|
|
98
102
|
|
99
103
|
version bump for publishing
|
100
104
|
|
101
|
-
[Unreleased]: https://github.com/runtastic/request_handler/compare/v1.
|
105
|
+
[Unreleased]: https://github.com/runtastic/request_handler/compare/v1.1.0...HEAD
|
106
|
+
[1.1.0]: https://github.com/runtastic/request_handler/compare/v1.0.0...v1.1.0
|
102
107
|
[1.0.0]: https://github.com/runtastic/request_handler/compare/v0.15.0...v1.0.0
|
103
108
|
[0.15.0]: https://github.com/runtastic/request_handler/compare/v0.14.0...v0.15.0
|
104
109
|
[0.14.0]: https://github.com/runtastic/request_handler/compare/v0.13.0...v0.14.0
|
data/README.md
CHANGED
@@ -8,10 +8,11 @@ This gem allows easy and dry handling of requests based on the dry-validation
|
|
8
8
|
gem for validation and data coersion. It allows to handle headers, filters,
|
9
9
|
include_options, sorting and of course to validate the body.
|
10
10
|
|
11
|
-
##
|
11
|
+
## dry-gem dependency
|
12
12
|
|
13
|
-
-
|
14
|
-
|
13
|
+
Version 1.1 removes the strict dependency to dry-types v0.11 & dry-validation v0.11 and allows usage of newer versions of dry-gems. This gem uses these gems but only a very small interface with them therefore this gem itself is usually not impacted by smaller breaking changes each minor version of the dry-gems might introduce.
|
14
|
+
|
15
|
+
**Please check your applications compatibility with each dry-types version and pin versions as necessary**
|
15
16
|
|
16
17
|
## Installation
|
17
18
|
|
@@ -77,7 +78,7 @@ class DemoHandler < RequestHandler::Base
|
|
77
78
|
|
78
79
|
filter do
|
79
80
|
schema(
|
80
|
-
Dry::Validation.
|
81
|
+
Dry::Validation.Params do
|
81
82
|
configure do
|
82
83
|
option :foo
|
83
84
|
end
|
@@ -91,7 +92,7 @@ class DemoHandler < RequestHandler::Base
|
|
91
92
|
|
92
93
|
query do
|
93
94
|
schema(
|
94
|
-
Dry::Validation.
|
95
|
+
Dry::Validation.Params do
|
95
96
|
optional(:name).filled(:str?)
|
96
97
|
end
|
97
98
|
)
|
data/request_handler.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.add_dependency 'dry-validation', '~> 0.11.0'
|
27
|
-
spec.add_dependency 'dry-types', '~> 0.11.0'
|
26
|
+
spec.add_dependency 'dry-validation', '~> 0.11', '>= 0.11.0'
|
27
|
+
spec.add_dependency 'dry-types', '~> 0.11', '>= 0.11.0'
|
28
28
|
|
29
29
|
spec.add_dependency 'confstruct', '~> 1.0.2'
|
30
30
|
spec.add_dependency 'multi_json', '~> 1.12'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: request_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Eger
|
@@ -9,13 +9,16 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-07-
|
12
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-validation
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0.11'
|
21
|
+
- - ">="
|
19
22
|
- !ruby/object:Gem::Version
|
20
23
|
version: 0.11.0
|
21
24
|
type: :runtime
|
@@ -23,6 +26,9 @@ dependencies:
|
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
28
|
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0.11'
|
31
|
+
- - ">="
|
26
32
|
- !ruby/object:Gem::Version
|
27
33
|
version: 0.11.0
|
28
34
|
- !ruby/object:Gem::Dependency
|
@@ -30,6 +36,9 @@ dependencies:
|
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
31
37
|
requirements:
|
32
38
|
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.11'
|
41
|
+
- - ">="
|
33
42
|
- !ruby/object:Gem::Version
|
34
43
|
version: 0.11.0
|
35
44
|
type: :runtime
|
@@ -37,6 +46,9 @@ dependencies:
|
|
37
46
|
version_requirements: !ruby/object:Gem::Requirement
|
38
47
|
requirements:
|
39
48
|
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0.11'
|
51
|
+
- - ">="
|
40
52
|
- !ruby/object:Gem::Version
|
41
53
|
version: 0.11.0
|
42
54
|
- !ruby/object:Gem::Dependency
|