request_handler 1.3.0 → 2.0.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 +14 -0
- data/Gemfile +2 -0
- data/README.md +167 -29
- data/lib/request_handler/base.rb +27 -33
- data/lib/request_handler/base_parser.rb +9 -0
- data/lib/request_handler/builder/base.rb +23 -0
- data/lib/request_handler/builder/body_builder.rb +27 -0
- data/lib/request_handler/builder/fieldsets_builder.rb +28 -0
- data/lib/request_handler/builder/fieldsets_resource_builder.rb +17 -0
- data/lib/request_handler/builder/filter_builder.rb +31 -0
- data/lib/request_handler/builder/include_options_builder.rb +23 -0
- data/lib/request_handler/builder/multipart_builder.rb +22 -0
- data/lib/request_handler/builder/multipart_resource_builder.rb +35 -0
- data/lib/request_handler/builder/options_builder.rb +88 -0
- data/lib/request_handler/builder/page_builder.rb +30 -0
- data/lib/request_handler/builder/page_resource_builder.rb +23 -0
- data/lib/request_handler/builder/query_builder.rb +23 -0
- data/lib/request_handler/builder/sort_options_builder.rb +23 -0
- data/lib/request_handler/concerns/config_helper.rb +25 -0
- data/lib/request_handler/config.rb +33 -0
- data/lib/request_handler/fieldsets_parser.rb +5 -4
- data/lib/request_handler/include_option_parser.rb +2 -2
- data/lib/request_handler/multipart_parser.rb +8 -11
- data/lib/request_handler/option_parser.rb +1 -1
- data/lib/request_handler/page_parser.rb +19 -10
- data/lib/request_handler/schema_parser.rb +8 -4
- data/lib/request_handler/sort_option_parser.rb +2 -2
- data/lib/request_handler/validation/definition_engine.rb +2 -1
- data/lib/request_handler/validation/dry_engine.rb +24 -16
- data/lib/request_handler/version.rb +1 -1
- data/lib/request_handler.rb +7 -22
- data/request_handler.gemspec +2 -4
- metadata +33 -44
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Eger
|
@@ -9,90 +9,64 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: docile
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.11.0
|
20
|
+
version: '1.3'
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
25
|
- - "~>"
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.11.0
|
27
|
+
version: '1.3'
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
29
|
+
name: multi_json
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
32
|
- - "~>"
|
39
33
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.11.0
|
34
|
+
version: '1.12'
|
44
35
|
type: :runtime
|
45
36
|
prerelease: false
|
46
37
|
version_requirements: !ruby/object:Gem::Requirement
|
47
38
|
requirements:
|
48
39
|
- - "~>"
|
49
40
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.11.0
|
41
|
+
version: '1.12'
|
54
42
|
- !ruby/object:Gem::Dependency
|
55
|
-
name:
|
43
|
+
name: activesupport
|
56
44
|
requirement: !ruby/object:Gem::Requirement
|
57
45
|
requirements:
|
58
|
-
- - "
|
46
|
+
- - ">"
|
59
47
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
48
|
+
version: '4.0'
|
61
49
|
type: :runtime
|
62
50
|
prerelease: false
|
63
51
|
version_requirements: !ruby/object:Gem::Requirement
|
64
52
|
requirements:
|
65
|
-
- - "
|
53
|
+
- - ">"
|
66
54
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
55
|
+
version: '4.0'
|
68
56
|
- !ruby/object:Gem::Dependency
|
69
|
-
name:
|
57
|
+
name: gem_config
|
70
58
|
requirement: !ruby/object:Gem::Requirement
|
71
59
|
requirements:
|
72
60
|
- - "~>"
|
73
61
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
62
|
+
version: '0.3'
|
75
63
|
type: :runtime
|
76
64
|
prerelease: false
|
77
65
|
version_requirements: !ruby/object:Gem::Requirement
|
78
66
|
requirements:
|
79
67
|
- - "~>"
|
80
68
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: activesupport
|
84
|
-
requirement: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '4.0'
|
89
|
-
type: :runtime
|
90
|
-
prerelease: false
|
91
|
-
version_requirements: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - ">"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '4.0'
|
69
|
+
version: '0.3'
|
96
70
|
- !ruby/object:Gem::Dependency
|
97
71
|
name: bundler
|
98
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -300,7 +274,23 @@ files:
|
|
300
274
|
- bin/setup
|
301
275
|
- lib/request_handler.rb
|
302
276
|
- lib/request_handler/base.rb
|
277
|
+
- lib/request_handler/base_parser.rb
|
303
278
|
- lib/request_handler/body_parser.rb
|
279
|
+
- lib/request_handler/builder/base.rb
|
280
|
+
- lib/request_handler/builder/body_builder.rb
|
281
|
+
- lib/request_handler/builder/fieldsets_builder.rb
|
282
|
+
- lib/request_handler/builder/fieldsets_resource_builder.rb
|
283
|
+
- lib/request_handler/builder/filter_builder.rb
|
284
|
+
- lib/request_handler/builder/include_options_builder.rb
|
285
|
+
- lib/request_handler/builder/multipart_builder.rb
|
286
|
+
- lib/request_handler/builder/multipart_resource_builder.rb
|
287
|
+
- lib/request_handler/builder/options_builder.rb
|
288
|
+
- lib/request_handler/builder/page_builder.rb
|
289
|
+
- lib/request_handler/builder/page_resource_builder.rb
|
290
|
+
- lib/request_handler/builder/query_builder.rb
|
291
|
+
- lib/request_handler/builder/sort_options_builder.rb
|
292
|
+
- lib/request_handler/concerns/config_helper.rb
|
293
|
+
- lib/request_handler/config.rb
|
304
294
|
- lib/request_handler/document_parser.rb
|
305
295
|
- lib/request_handler/error.rb
|
306
296
|
- lib/request_handler/fieldsets_parser.rb
|
@@ -343,8 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
333
|
- !ruby/object:Gem::Version
|
344
334
|
version: '0'
|
345
335
|
requirements: []
|
346
|
-
|
347
|
-
rubygems_version: 2.7.6.2
|
336
|
+
rubygems_version: 3.0.3
|
348
337
|
signing_key:
|
349
338
|
specification_version: 4
|
350
339
|
summary: shared base for request_handler using dry-* gems
|