media_types-serialization 1.0.3 → 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/.github/workflows/ci.yml +7 -3
- data/.gitignore +12 -12
- data/.idea/.rakeTasks +5 -5
- data/.idea/inspectionProfiles/Project_Default.xml +5 -5
- data/.idea/runConfigurations/test.xml +19 -19
- data/.prettierrc +1 -0
- data/CHANGELOG.md +21 -9
- data/CODE_OF_CONDUCT.md +11 -11
- data/Gemfile +4 -4
- data/Gemfile.lock +63 -69
- data/LICENSE.txt +21 -21
- data/README.md +94 -47
- data/Rakefile +10 -10
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/lib/media_types/serialization.rb +61 -10
- data/lib/media_types/serialization/base.rb +8 -4
- data/lib/media_types/serialization/error.rb +11 -3
- data/lib/media_types/serialization/serialization_registration.rb +19 -9
- data/lib/media_types/serialization/serializers/problem_serializer.rb +23 -10
- data/lib/media_types/serialization/utils/accept_header.rb +77 -0
- data/lib/media_types/serialization/utils/accept_language_header.rb +82 -0
- data/lib/media_types/serialization/utils/header_list.rb +89 -0
- data/lib/media_types/serialization/version.rb +1 -1
- data/media_types-serialization.gemspec +0 -2
- metadata +11 -41
@@ -38,8 +38,6 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_dependency 'actionpack', '>= 4.0.0'
|
39
39
|
spec.add_dependency 'activesupport', '>= 4.0.0'
|
40
40
|
spec.add_dependency 'media_types', '>= 2.0.0', '< 3.0.0'
|
41
|
-
spec.add_dependency 'http_headers-accept', '>= 0.2.2', '< 1.0.0'
|
42
|
-
spec.add_dependency 'http_headers-link', '< 1.0.0'
|
43
41
|
|
44
42
|
spec.add_development_dependency 'awesome_print'
|
45
43
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: media_types-serialization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derk-Jan Karrenbeld
|
8
8
|
- Max Maton
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -59,40 +59,6 @@ dependencies:
|
|
59
59
|
- - "<"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 3.0.0
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: http_headers-accept
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.2.2
|
69
|
-
- - "<"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: 1.0.0
|
72
|
-
type: :runtime
|
73
|
-
prerelease: false
|
74
|
-
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
requirements:
|
76
|
-
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: 0.2.2
|
79
|
-
- - "<"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: 1.0.0
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: http_headers-link
|
84
|
-
requirement: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "<"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: 1.0.0
|
89
|
-
type: :runtime
|
90
|
-
prerelease: false
|
91
|
-
version_requirements: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "<"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: 1.0.0
|
96
62
|
- !ruby/object:Gem::Dependency
|
97
63
|
name: awesome_print
|
98
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,7 +143,7 @@ dependencies:
|
|
177
143
|
- - ">="
|
178
144
|
- !ruby/object:Gem::Version
|
179
145
|
version: '0'
|
180
|
-
description:
|
146
|
+
description:
|
181
147
|
email:
|
182
148
|
- derk-jan@xpbytes.com
|
183
149
|
- max@delftsolutions.nl
|
@@ -196,6 +162,7 @@ files:
|
|
196
162
|
- ".idea/modules.xml"
|
197
163
|
- ".idea/runConfigurations/test.xml"
|
198
164
|
- ".idea/vcs.xml"
|
165
|
+
- ".prettierrc"
|
199
166
|
- CHANGELOG.md
|
200
167
|
- CODE_OF_CONDUCT.md
|
201
168
|
- Gemfile
|
@@ -219,6 +186,9 @@ files:
|
|
219
186
|
- lib/media_types/serialization/serializers/fallback_unsupported_media_type_serializer.rb
|
220
187
|
- lib/media_types/serialization/serializers/input_validation_error_serializer.rb
|
221
188
|
- lib/media_types/serialization/serializers/problem_serializer.rb
|
189
|
+
- lib/media_types/serialization/utils/accept_header.rb
|
190
|
+
- lib/media_types/serialization/utils/accept_language_header.rb
|
191
|
+
- lib/media_types/serialization/utils/header_list.rb
|
222
192
|
- lib/media_types/serialization/version.rb
|
223
193
|
- media_types-serialization.gemspec
|
224
194
|
homepage: https://github.com/XPBytes/media_types-serialization
|
@@ -228,7 +198,7 @@ metadata:
|
|
228
198
|
homepage_uri: https://github.com/XPBytes/media_types-serialization
|
229
199
|
source_code_uri: https://github.com/XPBytes/media_types-serialization
|
230
200
|
changelog_uri: https://github.com/XPBytes/media_types-serialization/CHANGELOG.md
|
231
|
-
post_install_message:
|
201
|
+
post_install_message:
|
232
202
|
rdoc_options: []
|
233
203
|
require_paths:
|
234
204
|
- lib
|
@@ -243,8 +213,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
213
|
- !ruby/object:Gem::Version
|
244
214
|
version: '0'
|
245
215
|
requirements: []
|
246
|
-
rubygems_version: 3.
|
247
|
-
signing_key:
|
216
|
+
rubygems_version: 3.1.6
|
217
|
+
signing_key:
|
248
218
|
specification_version: 4
|
249
219
|
summary: Add media types supported serialization using your favourite serializer
|
250
220
|
test_files: []
|