request_handler 1.0.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65eef6ec09f3ee1701b3d47ac807e34ae25bcf1da1390f4115264edfe0596826
4
- data.tar.gz: b3be4acbdf53d5a1625c75858e0aee50a2e9b99bc5b4f1208cd79d891473c7fe
3
+ metadata.gz: 7bdc41be4882152511b384885eb59192f5173abb7f08e9f2c32f06030c571821
4
+ data.tar.gz: 910f9f1a2a227c1536c3153857eca1906313a6594d6e66c13989fdb78ef6af39
5
5
  SHA512:
6
- metadata.gz: cc8b73661dcdd394026e6ee34bd270adef9b7130a29c5a86a62962ada7bb36c618625411ad2ecd006d34a5933e1416831ad54672b51c0ede3ffe15bf61941466
7
- data.tar.gz: 0c8b9cb186c4c4fe90ba58baf401d9b4c739785001214bc14cea683ba1618f9b6fbfb14ff9933908918f1cea1a35d3803e65e76827ddb6de7ab82267e290411a
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.0.0...HEAD
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
- ## ToDo
11
+ ## dry-gem dependency
12
12
 
13
- - update documentation
14
- - identify missing features compared to [jsonapi](https://jsonapi.org)
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.Form do
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.Form do
95
+ Dry::Validation.Params do
95
96
  optional(:name).filled(:str?)
96
97
  end
97
98
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RequestHandler
4
- VERSION = '1.0.0'.freeze
4
+ VERSION = '1.1.0'.freeze
5
5
  end
@@ -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.0.0
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-03 00:00:00.000000000 Z
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