media_types-serialization 2.0.0 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
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 -33
  4. data/.github/workflows/publish-sid.yml +34 -33
  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 +200 -190
  16. data/CODE_OF_CONDUCT.md +74 -74
  17. data/Gemfile +4 -4
  18. data/Gemfile.lock +169 -0
  19. data/LICENSE.txt +21 -21
  20. data/README.md +1048 -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 +135 -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 +93 -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 -682
  41. data/media_types-serialization.gemspec +48 -48
  42. metadata +10 -9
data/CHANGELOG.md CHANGED
@@ -1,190 +1,200 @@
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
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
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