media_types-serialization 1.4.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/.github/workflows/ci.yml +32 -32
- data/.github/workflows/publish-bookworm.yml +33 -0
- data/.github/workflows/publish-sid.yml +33 -0
- data/.gitignore +22 -14
- data/.idea/.rakeTasks +7 -7
- data/.idea/dictionaries/Derk_Jan.xml +6 -6
- data/.idea/encodings.xml +3 -3
- data/.idea/inspectionProfiles/Project_Default.xml +5 -5
- data/.idea/media_types-serialization.iml +76 -76
- data/.idea/misc.xml +6 -6
- data/.idea/modules.xml +7 -7
- data/.idea/runConfigurations/test.xml +19 -19
- data/.idea/vcs.xml +5 -5
- data/CHANGELOG.md +190 -182
- data/CODE_OF_CONDUCT.md +74 -74
- data/Gemfile +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +1048 -1048
- data/Rakefile +10 -10
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/lib/media_types/problem.rb +67 -67
- data/lib/media_types/serialization/base.rb +269 -216
- data/lib/media_types/serialization/error.rb +193 -193
- data/lib/media_types/serialization/fake_validator.rb +53 -53
- data/lib/media_types/serialization/serialization_dsl.rb +135 -135
- data/lib/media_types/serialization/serialization_registration.rb +245 -245
- data/lib/media_types/serialization/serializers/api_viewer.rb +383 -136
- data/lib/media_types/serialization/serializers/common_css.rb +212 -168
- data/lib/media_types/serialization/serializers/endpoint_description_serializer.rb +80 -80
- data/lib/media_types/serialization/serializers/fallback_not_acceptable_serializer.rb +85 -85
- data/lib/media_types/serialization/serializers/fallback_unsupported_media_type_serializer.rb +58 -58
- data/lib/media_types/serialization/serializers/input_validation_error_serializer.rb +93 -93
- data/lib/media_types/serialization/serializers/problem_serializer.rb +111 -111
- data/lib/media_types/serialization/utils/accept_header.rb +77 -77
- data/lib/media_types/serialization/utils/accept_language_header.rb +82 -82
- data/lib/media_types/serialization/version.rb +7 -7
- data/lib/media_types/serialization.rb +682 -675
- data/media_types-serialization.gemspec +48 -48
- metadata +9 -8
- data/Gemfile.lock +0 -167
data/CHANGELOG.md
CHANGED
@@ -1,182 +1,190 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
##
|
4
|
-
|
5
|
-
- ✨ Add support for
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
-
|
10
|
-
|
11
|
-
## 1.
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
## 1.3.
|
22
|
-
|
23
|
-
- 🐛
|
24
|
-
|
25
|
-
## 1.3.
|
26
|
-
|
27
|
-
-
|
28
|
-
|
29
|
-
## 1.3.
|
30
|
-
|
31
|
-
- 🐛
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
- 🐛 Fix
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
- ✨ Add
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
- 🐛
|
74
|
-
|
75
|
-
## 1.0.
|
76
|
-
|
77
|
-
- 🐛
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
-
|
100
|
-
|
101
|
-
## 0.
|
102
|
-
|
103
|
-
-
|
104
|
-
|
105
|
-
## 0.
|
106
|
-
|
107
|
-
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
-
|
125
|
-
|
126
|
-
## 0.6.
|
127
|
-
|
128
|
-
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
-
|
137
|
-
- Add
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
- Add
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
-
|
169
|
-
|
170
|
-
## 0.3.
|
171
|
-
|
172
|
-
-
|
173
|
-
- Change `
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 2.0.0
|
4
|
+
|
5
|
+
- ✨ Add support for loose input validation
|
6
|
+
- ✨ Add inline api call functionality to api_viewer
|
7
|
+
- ✨ `allow_html_output` will now get the object in the `media` variable and if it is a hash, elements will be assigned as locals
|
8
|
+
- 🐛 Fix wildcards not showing up for non-nil views
|
9
|
+
- 🐛 Sending invalid content returned a 422 status code, changed to 400
|
10
|
+
|
11
|
+
## 1.4.0
|
12
|
+
|
13
|
+
- ✨ Add support for redirecting in serializers
|
14
|
+
|
15
|
+
## 1.3.9
|
16
|
+
|
17
|
+
- ✨ Make serializer look slightly better on mobile by zooming in initially
|
18
|
+
|
19
|
+
## 1.3.8
|
20
|
+
|
21
|
+
## 1.3.7
|
22
|
+
|
23
|
+
- 🐛 Fix execution context for `output_error`
|
24
|
+
|
25
|
+
## 1.3.6
|
26
|
+
|
27
|
+
- 🐛 Fix issue with `override_detail` of `Problem`
|
28
|
+
|
29
|
+
## 1.3.5
|
30
|
+
|
31
|
+
- 🐛 Upgrade media-types library so Ruby 2.5 and 2.6 work again
|
32
|
+
|
33
|
+
## 1.3.4
|
34
|
+
|
35
|
+
- Same as `1.3.3`
|
36
|
+
|
37
|
+
## 1.3.3
|
38
|
+
|
39
|
+
- 🐛 Fix override suffix not being picked up correctly
|
40
|
+
- 🐛 Fix inability to override suffix for aliases
|
41
|
+
- 🐛 Fix inability to override suffix for raw
|
42
|
+
- 🐛 Fix default suffix for raw
|
43
|
+
|
44
|
+
## 1.3.2
|
45
|
+
|
46
|
+
- 🐛 Fix override suffix not returning self or new
|
47
|
+
|
48
|
+
## 1.3.1
|
49
|
+
|
50
|
+
- 🐛 Fix api viewer
|
51
|
+
- 🐛 Fix `output_raw` suffix (`+json` needs to be `''`)
|
52
|
+
|
53
|
+
## 1.3.0
|
54
|
+
|
55
|
+
- ✨ Add `formats:` to `output_html` and default it to `[:html]`, so rails behaves
|
56
|
+
- 🐛 Fix stale references to `render media:`
|
57
|
+
- 🐛 Fix inconsistent `context:` passing for `Serializer.serialize`
|
58
|
+
|
59
|
+
## 1.2.0
|
60
|
+
|
61
|
+
- ✨ Add `view:` to `output_html` which renders a specific rails view.
|
62
|
+
|
63
|
+
## 1.1.0
|
64
|
+
|
65
|
+
- ✨ Add _allow_output_html_: Fallback to rails rendering.
|
66
|
+
- ✨ Add _allow_output_docs_: Useful to add a documentation description to endpoints that you can normally only POST to.
|
67
|
+
- ✨ Add _output_error_: Implements missing content-language support.
|
68
|
+
- ✨ Add _scoped freeze_io! support_: Useful for gradual adoption of mediatypes on existing routes.
|
69
|
+
- ✨ Add _alias variant reporting_: Allows reporting what the original matched media type was even when impersonating a different media type.
|
70
|
+
- ✨ Improve README: small improvements to make it easier to adopt and upgrade existing codebase.
|
71
|
+
- ✨ Reduce number of (external) dependencies
|
72
|
+
- 🐛 Fix incorrect output on encoding errors.
|
73
|
+
- 🐛 Fix message in various alias error messages.
|
74
|
+
|
75
|
+
## 1.0.3
|
76
|
+
|
77
|
+
- 🐛 Unvalidated serializers would put the view part of the identifier before the version. This was not in line with validated serializers.
|
78
|
+
|
79
|
+
## 1.0.2
|
80
|
+
|
81
|
+
- 🐛 Explicitly set all oj parameters when decoding as well.
|
82
|
+
|
83
|
+
## 1.0.1
|
84
|
+
|
85
|
+
- 🐛 Explicitly set all oj and json parameters to ensure correct behavior with changed defaults.
|
86
|
+
- 🐛 Fix serializer not deserializing as symbols.
|
87
|
+
|
88
|
+
## 1.0.0
|
89
|
+
|
90
|
+
- ✨ Add support for input deserialization.
|
91
|
+
- ✨ Add serializer DSL to be more in line with validation gem.
|
92
|
+
- ✨ Add ability to make a serializer without a validator.
|
93
|
+
- ✨ Add error serializer that emits [`application/problem+json`](https://tools.ietf.org/html/rfc7231).
|
94
|
+
- ✨ Reduce number of dependencies.
|
95
|
+
- ✨ Validators no longer need to be registered to be used.
|
96
|
+
- ✨ Add a [wiki where errors can be documented](https://docs.delftsolutions.nl). Feel free to make pages for your own namespaced errors.
|
97
|
+
- 💔 Serializer definition API has backwards incompatible changes.
|
98
|
+
- 💔 API viewer is now no longer registered as html but accessible with the `?api_viewer=last` query parameter.
|
99
|
+
- 💔 Validators can no longer be registered for use in `format do`.
|
100
|
+
|
101
|
+
## 0.8.1
|
102
|
+
|
103
|
+
- 🐛 Fix collection wrappers sometimes sending the wrong data to serializers
|
104
|
+
|
105
|
+
## 0.8.0
|
106
|
+
|
107
|
+
- ✨ Add support for having multiple link headers with the same `rel`
|
108
|
+
|
109
|
+
## 0.7.0
|
110
|
+
|
111
|
+
- ✨ Add `extract_set_links` to serializer for collection links
|
112
|
+
|
113
|
+
## 0.7.0.beta1
|
114
|
+
|
115
|
+
- 🐛 Fix non-serializer media types replacing known serializers
|
116
|
+
- 🐛 Fix passed in media type for HTML as fallback (actual type instead of html)
|
117
|
+
- 🐛 Fix passed in media type for API Viewer (actual type instead of API Viewer)
|
118
|
+
- 🐛 Fix migrations failing on versioning text/html
|
119
|
+
- 🐛 Fix HTML non-overwrite logic (first one wins, unless there is an override)
|
120
|
+
- ✨ Add `api_viewer_media_type` param for api viewers to set the serialization type
|
121
|
+
- ✨ Add api viewer links in the api viewer:
|
122
|
+
- For representations: use `.api_viewer` unless it's `.html`
|
123
|
+
- For body links: use .api_viewer unless it already has a `.format`
|
124
|
+
- For HTTP links: leave them alone
|
125
|
+
|
126
|
+
## 0.6.2
|
127
|
+
|
128
|
+
- 🐛 Update `http_headers-accept`: 0.2.1 → 0.2.2
|
129
|
+
|
130
|
+
## 0.6.1
|
131
|
+
|
132
|
+
- 🚨 Update nokogiri: 1.10.1 → 1.10.3
|
133
|
+
|
134
|
+
## 0.6.0
|
135
|
+
|
136
|
+
- Add `accept_api_viewer` which is on by default
|
137
|
+
- Add `overwrite` parameter to `accept_html`
|
138
|
+
- Add `api_viewer_layout` configuration option
|
139
|
+
- Add generator to initialize the gem and copy the API Viewer
|
140
|
+
|
141
|
+
## 0.5.1
|
142
|
+
|
143
|
+
- Correctly expose `current_media_type` and `current_view`
|
144
|
+
- Fix cyclic requires
|
145
|
+
- Add documentation for overwriting wrappers
|
146
|
+
|
147
|
+
## 0.5.0
|
148
|
+
|
149
|
+
- Change wrappers to extend from `SimpleDelegator`
|
150
|
+
- Move `RootKey` to `Base.root_key` method so it can be overridden
|
151
|
+
- Move `MediaWrapper.wrap` to `Base.wrap` method so it can be overridden
|
152
|
+
- Move `MediaObjectWrapper::AUTO_UNWRAP_KLAZZES` to `MediaObjectWrapper.auto_unwrap_klazzes` option
|
153
|
+
- Add `::MediaTypes::Serialization.html_wrapper_layout` option
|
154
|
+
- Add `MediaObjectWrapper#unwrapped_serializable` which can be overridden in `Base#unwrapped_serializable`
|
155
|
+
- Add `MediaIndexWrapper#wrapped_serializable` which can be overridden in `Base#wrapped_serializable`
|
156
|
+
- Add `MediaCollectionWrapper#wrapped_serializable` which can be overridden in `Base#wrapped_serializable`
|
157
|
+
- Fix empty link handler (`{ rel: nil }`)
|
158
|
+
- Fix `NoSerializerForContentType` error message
|
159
|
+
- Add tests for `root_key`, `wrap`, `MediaObjectWrapper`, `MediaIndexWrapper` and `MediaCollectionWrapper`
|
160
|
+
|
161
|
+
## 0.4.0
|
162
|
+
|
163
|
+
- Change `extract_links` to `extract_links(view:)` and mimic `header_links(view:)`
|
164
|
+
- Use `extract_links` in `index` and `collection` wrapper output
|
165
|
+
|
166
|
+
## 0.3.2
|
167
|
+
|
168
|
+
- Rename `collect_links` to `header_links` to actually expose the links
|
169
|
+
|
170
|
+
## 0.3.1
|
171
|
+
|
172
|
+
- Fix classes sharing `media_type_constructable`, `serializes_html_flag` and `media_type_versions`
|
173
|
+
- Change `instance_methods(false)` check to `instance_methods` check in `MimeTypeSupport`
|
174
|
+
- Add `view` to `header_links` call
|
175
|
+
- Add `collect_links_for_index` option to collect links for index views
|
176
|
+
- Add `collect_links_for_collection` option to collect links for collection views
|
177
|
+
|
178
|
+
## 0.3.0
|
179
|
+
|
180
|
+
- Change `to_link_header` to return a string ready to be used as header
|
181
|
+
- Change `header_links` to actually return the links for the header in object form
|
182
|
+
|
183
|
+
## 0.2.0
|
184
|
+
|
185
|
+
- Change `method_missing` and base methods for `Base`
|
186
|
+
- Add test for `HtmlWrapper`
|
187
|
+
|
188
|
+
## 0.1.0
|
189
|
+
|
190
|
+
:baby: initial release
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -1,74 +1,74 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
- Using welcoming and inclusive language
|
18
|
-
- Being respectful of differing viewpoints and experiences
|
19
|
-
- Gracefully accepting constructive criticism
|
20
|
-
- Focusing on what is best for the community
|
21
|
-
- Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
- The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
- Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
- Public or private harassment
|
29
|
-
- Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
- Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at derk-jan+github@karrenbeld.info. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
- Using welcoming and inclusive language
|
18
|
+
- Being respectful of differing viewpoints and experiences
|
19
|
+
- Gracefully accepting constructive criticism
|
20
|
+
- Focusing on what is best for the community
|
21
|
+
- Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
- Public or private harassment
|
29
|
+
- Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at derk-jan+github@karrenbeld.info. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in media_types-serialization.gemspec
|
4
|
-
gemspec
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in media_types-serialization.gemspec
|
4
|
+
gemspec
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2019 Derk-Jan Karrenbeld
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Derk-Jan Karrenbeld
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|