media_types-serialization 2.0.4 → 2.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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +32 -32
  3. data/.github/workflows/publish-bookworm.yml +34 -34
  4. data/.github/workflows/publish-sid.yml +34 -34
  5. data/.gitignore +22 -22
  6. data/.idea/.rakeTasks +7 -7
  7. data/.idea/dictionaries/Derk_Jan.xml +6 -6
  8. data/.idea/encodings.xml +3 -3
  9. data/.idea/inspectionProfiles/Project_Default.xml +5 -5
  10. data/.idea/media_types-serialization.iml +76 -76
  11. data/.idea/misc.xml +6 -6
  12. data/.idea/modules.xml +7 -7
  13. data/.idea/runConfigurations/test.xml +19 -19
  14. data/.idea/vcs.xml +5 -5
  15. data/CHANGELOG.md +207 -200
  16. data/CODE_OF_CONDUCT.md +74 -74
  17. data/Gemfile +4 -4
  18. data/Gemfile.lock +176 -169
  19. data/LICENSE.txt +21 -21
  20. data/README.md +1058 -1048
  21. data/Rakefile +10 -10
  22. data/bin/console +14 -14
  23. data/bin/setup +8 -8
  24. data/lib/media_types/problem.rb +67 -67
  25. data/lib/media_types/serialization/base.rb +269 -269
  26. data/lib/media_types/serialization/error.rb +193 -193
  27. data/lib/media_types/serialization/fake_validator.rb +53 -53
  28. data/lib/media_types/serialization/serialization_dsl.rb +139 -135
  29. data/lib/media_types/serialization/serialization_registration.rb +245 -245
  30. data/lib/media_types/serialization/serializers/api_viewer.rb +383 -383
  31. data/lib/media_types/serialization/serializers/common_css.rb +212 -212
  32. data/lib/media_types/serialization/serializers/endpoint_description_serializer.rb +80 -80
  33. data/lib/media_types/serialization/serializers/fallback_not_acceptable_serializer.rb +85 -85
  34. data/lib/media_types/serialization/serializers/fallback_unsupported_media_type_serializer.rb +58 -58
  35. data/lib/media_types/serialization/serializers/input_validation_error_serializer.rb +95 -93
  36. data/lib/media_types/serialization/serializers/problem_serializer.rb +111 -111
  37. data/lib/media_types/serialization/utils/accept_header.rb +77 -77
  38. data/lib/media_types/serialization/utils/accept_language_header.rb +82 -82
  39. data/lib/media_types/serialization/version.rb +7 -7
  40. data/lib/media_types/serialization.rb +689 -689
  41. data/media_types-serialization.gemspec +48 -48
  42. metadata +3 -3
data/CHANGELOG.md CHANGED
@@ -1,200 +1,207 @@
1
- # Changelog
2
-
3
- ## 2.0.4
4
-
5
- - ✨ Add more loose tests
6
- - 🐛 Fix `locals` passing for HTML serialization
7
- - 🐛 Fix for status passing in rack-like environments
8
-
9
- ## 2.0.3
10
-
11
- - 🐛 Fix debian packages not containing files
12
-
13
- ## 2.0.0
14
-
15
- - ✨ Add support for loose input validation
16
- - ✨ Add inline api call functionality to api_viewer
17
- - ✨ `allow_html_output` will now get the object in the `media` variable and if it is a hash, elements will be assigned as locals
18
- - 🐛 Fix wildcards not showing up for non-nil views
19
- - 🐛 Sending invalid content returned a 422 status code, changed to 400
20
-
21
- ## 1.4.0
22
-
23
- - ✨ Add support for redirecting in serializers
24
-
25
- ## 1.3.9
26
-
27
- - ✨ Make serializer look slightly better on mobile by zooming in initially
28
-
29
- ## 1.3.8
30
-
31
- ## 1.3.7
32
-
33
- - 🐛 Fix execution context for `output_error`
34
-
35
- ## 1.3.6
36
-
37
- - 🐛 Fix issue with `override_detail` of `Problem`
38
-
39
- ## 1.3.5
40
-
41
- - 🐛 Upgrade media-types library so Ruby 2.5 and 2.6 work again
42
-
43
- ## 1.3.4
44
-
45
- - Same as `1.3.3`
46
-
47
- ## 1.3.3
48
-
49
- - 🐛 Fix override suffix not being picked up correctly
50
- - 🐛 Fix inability to override suffix for aliases
51
- - 🐛 Fix inability to override suffix for raw
52
- - 🐛 Fix default suffix for raw
53
-
54
- ## 1.3.2
55
-
56
- - 🐛 Fix override suffix not returning self or new
57
-
58
- ## 1.3.1
59
-
60
- - 🐛 Fix api viewer
61
- - 🐛 Fix `output_raw` suffix (`+json` needs to be `''`)
62
-
63
- ## 1.3.0
64
-
65
- - ✨ Add `formats:` to `output_html` and default it to `[:html]`, so rails behaves
66
- - 🐛 Fix stale references to `render media:`
67
- - 🐛 Fix inconsistent `context:` passing for `Serializer.serialize`
68
-
69
- ## 1.2.0
70
-
71
- - ✨ Add `view:` to `output_html` which renders a specific rails view.
72
-
73
- ## 1.1.0
74
-
75
- - ✨ Add _allow_output_html_: Fallback to rails rendering.
76
- - ✨ Add _allow_output_docs_: Useful to add a documentation description to endpoints that you can normally only POST to.
77
- - ✨ Add _output_error_: Implements missing content-language support.
78
- - ✨ Add _scoped freeze_io! support_: Useful for gradual adoption of mediatypes on existing routes.
79
- - ✨ Add _alias variant reporting_: Allows reporting what the original matched media type was even when impersonating a different media type.
80
- - ✨ Improve README: small improvements to make it easier to adopt and upgrade existing codebase.
81
- - ✨ Reduce number of (external) dependencies
82
- - 🐛 Fix incorrect output on encoding errors.
83
- - 🐛 Fix message in various alias error messages.
84
-
85
- ## 1.0.3
86
-
87
- - 🐛 Unvalidated serializers would put the view part of the identifier before the version. This was not in line with validated serializers.
88
-
89
- ## 1.0.2
90
-
91
- - 🐛 Explicitly set all oj parameters when decoding as well.
92
-
93
- ## 1.0.1
94
-
95
- - 🐛 Explicitly set all oj and json parameters to ensure correct behavior with changed defaults.
96
- - 🐛 Fix serializer not deserializing as symbols.
97
-
98
- ## 1.0.0
99
-
100
- - ✨ Add support for input deserialization.
101
- - ✨ Add serializer DSL to be more in line with validation gem.
102
- - Add ability to make a serializer without a validator.
103
- - Add error serializer that emits [`application/problem+json`](https://tools.ietf.org/html/rfc7231).
104
- - ✨ Reduce number of dependencies.
105
- - ✨ Validators no longer need to be registered to be used.
106
- - ✨ Add a [wiki where errors can be documented](https://docs.delftsolutions.nl). Feel free to make pages for your own namespaced errors.
107
- - 💔 Serializer definition API has backwards incompatible changes.
108
- - 💔 API viewer is now no longer registered as html but accessible with the `?api_viewer=last` query parameter.
109
- - 💔 Validators can no longer be registered for use in `format do`.
110
-
111
- ## 0.8.1
112
-
113
- - 🐛 Fix collection wrappers sometimes sending the wrong data to serializers
114
-
115
- ## 0.8.0
116
-
117
- - ✨ Add support for having multiple link headers with the same `rel`
118
-
119
- ## 0.7.0
120
-
121
- - ✨ Add `extract_set_links` to serializer for collection links
122
-
123
- ## 0.7.0.beta1
124
-
125
- - 🐛 Fix non-serializer media types replacing known serializers
126
- - 🐛 Fix passed in media type for HTML as fallback (actual type instead of html)
127
- - 🐛 Fix passed in media type for API Viewer (actual type instead of API Viewer)
128
- - 🐛 Fix migrations failing on versioning text/html
129
- - 🐛 Fix HTML non-overwrite logic (first one wins, unless there is an override)
130
- - ✨ Add `api_viewer_media_type` param for api viewers to set the serialization type
131
- - ✨ Add api viewer links in the api viewer:
132
- - For representations: use `.api_viewer` unless it's `.html`
133
- - For body links: use .api_viewer unless it already has a `.format`
134
- - For HTTP links: leave them alone
135
-
136
- ## 0.6.2
137
-
138
- - 🐛 Update `http_headers-accept`: 0.2.1 0.2.2
139
-
140
- ## 0.6.1
141
-
142
- - 🚨 Update nokogiri: 1.10.1 → 1.10.3
143
-
144
- ## 0.6.0
145
-
146
- - Add `accept_api_viewer` which is on by default
147
- - Add `overwrite` parameter to `accept_html`
148
- - Add `api_viewer_layout` configuration option
149
- - Add generator to initialize the gem and copy the API Viewer
150
-
151
- ## 0.5.1
152
-
153
- - Correctly expose `current_media_type` and `current_view`
154
- - Fix cyclic requires
155
- - Add documentation for overwriting wrappers
156
-
157
- ## 0.5.0
158
-
159
- - Change wrappers to extend from `SimpleDelegator`
160
- - Move `RootKey` to `Base.root_key` method so it can be overridden
161
- - Move `MediaWrapper.wrap` to `Base.wrap` method so it can be overridden
162
- - Move `MediaObjectWrapper::AUTO_UNWRAP_KLAZZES` to `MediaObjectWrapper.auto_unwrap_klazzes` option
163
- - Add `::MediaTypes::Serialization.html_wrapper_layout` option
164
- - Add `MediaObjectWrapper#unwrapped_serializable` which can be overridden in `Base#unwrapped_serializable`
165
- - Add `MediaIndexWrapper#wrapped_serializable` which can be overridden in `Base#wrapped_serializable`
166
- - Add `MediaCollectionWrapper#wrapped_serializable` which can be overridden in `Base#wrapped_serializable`
167
- - Fix empty link handler (`{ rel: nil }`)
168
- - Fix `NoSerializerForContentType` error message
169
- - Add tests for `root_key`, `wrap`, `MediaObjectWrapper`, `MediaIndexWrapper` and `MediaCollectionWrapper`
170
-
171
- ## 0.4.0
172
-
173
- - Change `extract_links` to `extract_links(view:)` and mimic `header_links(view:)`
174
- - Use `extract_links` in `index` and `collection` wrapper output
175
-
176
- ## 0.3.2
177
-
178
- - Rename `collect_links` to `header_links` to actually expose the links
179
-
180
- ## 0.3.1
181
-
182
- - Fix classes sharing `media_type_constructable`, `serializes_html_flag` and `media_type_versions`
183
- - Change `instance_methods(false)` check to `instance_methods` check in `MimeTypeSupport`
184
- - Add `view` to `header_links` call
185
- - Add `collect_links_for_index` option to collect links for index views
186
- - Add `collect_links_for_collection` option to collect links for collection views
187
-
188
- ## 0.3.0
189
-
190
- - Change `to_link_header` to return a string ready to be used as header
191
- - Change `header_links` to actually return the links for the header in object form
192
-
193
- ## 0.2.0
194
-
195
- - Change `method_missing` and base methods for `Base`
196
- - Add test for `HtmlWrapper`
197
-
198
- ## 0.1.0
199
-
200
- :baby: initial release
1
+ # Changelog
2
+
3
+ ## 2.1.0
4
+
5
+ - ✨ Add `varies_on_header` serializer dsl function.
6
+ - 🐛 Fix [crash in input validation error serializer](https://github.com/XPBytes/media_types-serialization/issues/260)
7
+ - 🐛 Fix [endpoint description having media types multiple times](https://github.com/XPBytes/media_types-serialization/issues/184)
8
+ - 🐛 Fix problem serializer not Varying on Accept-Language
9
+
10
+ ## 2.0.4
11
+
12
+ - ✨ Add more loose tests
13
+ - 🐛 Fix `locals` passing for HTML serialization
14
+ - 🐛 Fix for status passing in rack-like environments
15
+
16
+ ## 2.0.3
17
+
18
+ - 🐛 Fix debian packages not containing files
19
+
20
+ ## 2.0.0
21
+
22
+ - ✨ Add support for loose input validation
23
+ - ✨ Add inline api call functionality to api_viewer
24
+ - ✨ `allow_html_output` will now get the object in the `media` variable and if it is a hash, elements will be assigned as locals
25
+ - 🐛 Fix wildcards not showing up for non-nil views
26
+ - 🐛 Sending invalid content returned a 422 status code, changed to 400
27
+
28
+ ## 1.4.0
29
+
30
+ - ✨ Add support for redirecting in serializers
31
+
32
+ ## 1.3.9
33
+
34
+ - ✨ Make serializer look slightly better on mobile by zooming in initially
35
+
36
+ ## 1.3.8
37
+
38
+ ## 1.3.7
39
+
40
+ - 🐛 Fix execution context for `output_error`
41
+
42
+ ## 1.3.6
43
+
44
+ - 🐛 Fix issue with `override_detail` of `Problem`
45
+
46
+ ## 1.3.5
47
+
48
+ - 🐛 Upgrade media-types library so Ruby 2.5 and 2.6 work again
49
+
50
+ ## 1.3.4
51
+
52
+ - Same as `1.3.3`
53
+
54
+ ## 1.3.3
55
+
56
+ - 🐛 Fix override suffix not being picked up correctly
57
+ - 🐛 Fix inability to override suffix for aliases
58
+ - 🐛 Fix inability to override suffix for raw
59
+ - 🐛 Fix default suffix for raw
60
+
61
+ ## 1.3.2
62
+
63
+ - 🐛 Fix override suffix not returning self or new
64
+
65
+ ## 1.3.1
66
+
67
+ - 🐛 Fix api viewer
68
+ - 🐛 Fix `output_raw` suffix (`+json` needs to be `''`)
69
+
70
+ ## 1.3.0
71
+
72
+ - ✨ Add `formats:` to `output_html` and default it to `[:html]`, so rails behaves
73
+ - 🐛 Fix stale references to `render media:`
74
+ - 🐛 Fix inconsistent `context:` passing for `Serializer.serialize`
75
+
76
+ ## 1.2.0
77
+
78
+ - ✨ Add `view:` to `output_html` which renders a specific rails view.
79
+
80
+ ## 1.1.0
81
+
82
+ - Add _allow_output_html_: Fallback to rails rendering.
83
+ - Add _allow_output_docs_: Useful to add a documentation description to endpoints that you can normally only POST to.
84
+ - ✨ Add _output_error_: Implements missing content-language support.
85
+ - ✨ Add _scoped freeze_io! support_: Useful for gradual adoption of mediatypes on existing routes.
86
+ - ✨ Add _alias variant reporting_: Allows reporting what the original matched media type was even when impersonating a different media type.
87
+ - Improve README: small improvements to make it easier to adopt and upgrade existing codebase.
88
+ - ✨ Reduce number of (external) dependencies
89
+ - 🐛 Fix incorrect output on encoding errors.
90
+ - 🐛 Fix message in various alias error messages.
91
+
92
+ ## 1.0.3
93
+
94
+ - 🐛 Unvalidated serializers would put the view part of the identifier before the version. This was not in line with validated serializers.
95
+
96
+ ## 1.0.2
97
+
98
+ - 🐛 Explicitly set all oj parameters when decoding as well.
99
+
100
+ ## 1.0.1
101
+
102
+ - 🐛 Explicitly set all oj and json parameters to ensure correct behavior with changed defaults.
103
+ - 🐛 Fix serializer not deserializing as symbols.
104
+
105
+ ## 1.0.0
106
+
107
+ - Add support for input deserialization.
108
+ - Add serializer DSL to be more in line with validation gem.
109
+ - Add ability to make a serializer without a validator.
110
+ - ✨ Add error serializer that emits [`application/problem+json`](https://tools.ietf.org/html/rfc7231).
111
+ - ✨ Reduce number of dependencies.
112
+ - ✨ Validators no longer need to be registered to be used.
113
+ - Add a [wiki where errors can be documented](https://docs.delftsolutions.nl). Feel free to make pages for your own namespaced errors.
114
+ - 💔 Serializer definition API has backwards incompatible changes.
115
+ - 💔 API viewer is now no longer registered as html but accessible with the `?api_viewer=last` query parameter.
116
+ - 💔 Validators can no longer be registered for use in `format do`.
117
+
118
+ ## 0.8.1
119
+
120
+ - 🐛 Fix collection wrappers sometimes sending the wrong data to serializers
121
+
122
+ ## 0.8.0
123
+
124
+ - ✨ Add support for having multiple link headers with the same `rel`
125
+
126
+ ## 0.7.0
127
+
128
+ - Add `extract_set_links` to serializer for collection links
129
+
130
+ ## 0.7.0.beta1
131
+
132
+ - 🐛 Fix non-serializer media types replacing known serializers
133
+ - 🐛 Fix passed in media type for HTML as fallback (actual type instead of html)
134
+ - 🐛 Fix passed in media type for API Viewer (actual type instead of API Viewer)
135
+ - 🐛 Fix migrations failing on versioning text/html
136
+ - 🐛 Fix HTML non-overwrite logic (first one wins, unless there is an override)
137
+ - ✨ Add `api_viewer_media_type` param for api viewers to set the serialization type
138
+ - Add api viewer links in the api viewer:
139
+ - For representations: use `.api_viewer` unless it's `.html`
140
+ - For body links: use .api_viewer unless it already has a `.format`
141
+ - For HTTP links: leave them alone
142
+
143
+ ## 0.6.2
144
+
145
+ - 🐛 Update `http_headers-accept`: 0.2.1 → 0.2.2
146
+
147
+ ## 0.6.1
148
+
149
+ - 🚨 Update nokogiri: 1.10.1 1.10.3
150
+
151
+ ## 0.6.0
152
+
153
+ - Add `accept_api_viewer` which is on by default
154
+ - Add `overwrite` parameter to `accept_html`
155
+ - Add `api_viewer_layout` configuration option
156
+ - Add generator to initialize the gem and copy the API Viewer
157
+
158
+ ## 0.5.1
159
+
160
+ - Correctly expose `current_media_type` and `current_view`
161
+ - Fix cyclic requires
162
+ - Add documentation for overwriting wrappers
163
+
164
+ ## 0.5.0
165
+
166
+ - Change wrappers to extend from `SimpleDelegator`
167
+ - Move `RootKey` to `Base.root_key` method so it can be overridden
168
+ - Move `MediaWrapper.wrap` to `Base.wrap` method so it can be overridden
169
+ - Move `MediaObjectWrapper::AUTO_UNWRAP_KLAZZES` to `MediaObjectWrapper.auto_unwrap_klazzes` option
170
+ - Add `::MediaTypes::Serialization.html_wrapper_layout` option
171
+ - Add `MediaObjectWrapper#unwrapped_serializable` which can be overridden in `Base#unwrapped_serializable`
172
+ - Add `MediaIndexWrapper#wrapped_serializable` which can be overridden in `Base#wrapped_serializable`
173
+ - Add `MediaCollectionWrapper#wrapped_serializable` which can be overridden in `Base#wrapped_serializable`
174
+ - Fix empty link handler (`{ rel: nil }`)
175
+ - Fix `NoSerializerForContentType` error message
176
+ - Add tests for `root_key`, `wrap`, `MediaObjectWrapper`, `MediaIndexWrapper` and `MediaCollectionWrapper`
177
+
178
+ ## 0.4.0
179
+
180
+ - Change `extract_links` to `extract_links(view:)` and mimic `header_links(view:)`
181
+ - Use `extract_links` in `index` and `collection` wrapper output
182
+
183
+ ## 0.3.2
184
+
185
+ - Rename `collect_links` to `header_links` to actually expose the links
186
+
187
+ ## 0.3.1
188
+
189
+ - Fix classes sharing `media_type_constructable`, `serializes_html_flag` and `media_type_versions`
190
+ - Change `instance_methods(false)` check to `instance_methods` check in `MimeTypeSupport`
191
+ - Add `view` to `header_links` call
192
+ - Add `collect_links_for_index` option to collect links for index views
193
+ - Add `collect_links_for_collection` option to collect links for collection views
194
+
195
+ ## 0.3.0
196
+
197
+ - Change `to_link_header` to return a string ready to be used as header
198
+ - Change `header_links` to actually return the links for the header in object form
199
+
200
+ ## 0.2.0
201
+
202
+ - Change `method_missing` and base methods for `Base`
203
+ - Add test for `HtmlWrapper`
204
+
205
+ ## 0.1.0
206
+
207
+ :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