kinetic_sdk 5.0.27 → 5.0.28

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 (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +24 -0
  4. data/gems/mime-types-3.6.0/Code-of-Conduct.md +128 -0
  5. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/History.md +18 -0
  6. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/README.rdoc +2 -1
  7. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/Rakefile +1 -0
  8. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/type.rb +68 -43
  9. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types/container.rb +2 -2
  10. data/gems/mime-types-3.6.0/lib/mime/types/deprecations.rb +56 -0
  11. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types/loader.rb +1 -1
  12. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types/registry.rb +6 -4
  13. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/test_mime_type.rb +37 -33
  14. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/test_mime_types.rb +11 -16
  15. data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/test_mime_types_class.rb +3 -3
  16. data/gems/{mime-types-data-3.2024.0305/History.md → mime-types-data-3.2025.0107/CHANGELOG.md} +242 -180
  17. data/gems/mime-types-data-3.2025.0107/CODE_OF_CONDUCT.md +128 -0
  18. data/gems/{mime-types-data-3.2024.0305/Contributing.md → mime-types-data-3.2025.0107/CONTRIBUTING.md} +39 -133
  19. data/gems/mime-types-data-3.2025.0107/CONTRIBUTORS.md +52 -0
  20. data/gems/{mime-types-data-3.2024.0305/Licence.md → mime-types-data-3.2025.0107/LICENCE.md} +1 -1
  21. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/Manifest.txt +6 -17
  22. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/README.md +30 -30
  23. data/gems/mime-types-data-3.2025.0107/Rakefile +88 -0
  24. data/gems/mime-types-data-3.2025.0107/SECURITY.md +7 -0
  25. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/content_type_mime.db +4 -3
  26. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/ext_mime.db +4 -3
  27. data/gems/mime-types-data-3.2025.0107/data/mime-types.json +1 -0
  28. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/mime.content_type.column +71 -5
  29. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/mime.docs.column +66 -0
  30. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/mime.encoding.column +66 -0
  31. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/mime.flags.column +70 -4
  32. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/mime.friendly.column +66 -0
  33. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/mime.pext.column +66 -0
  34. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/mime.use_instead.column +69 -3
  35. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/data/mime.xrefs.column +132 -66
  36. data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/lib/mime/types/data.rb +1 -1
  37. data/lib/kinetic_sdk/core/lib/jwt.rb +1 -1
  38. data/lib/kinetic_sdk/core/lib/space.rb +17 -8
  39. data/lib/kinetic_sdk/integrator/integrator-sdk.rb +140 -0
  40. data/lib/kinetic_sdk/integrator/lib/connections.rb +62 -0
  41. data/lib/kinetic_sdk/integrator/lib/executions.rb +38 -0
  42. data/lib/kinetic_sdk/integrator/lib/metadata.rb +31 -0
  43. data/lib/kinetic_sdk/integrator/lib/operations.rb +69 -0
  44. data/lib/kinetic_sdk/utils/kinetic-http.rb +20 -20
  45. data/lib/kinetic_sdk/version.rb +1 -1
  46. data/lib/kinetic_sdk.rb +3 -2
  47. metadata +60 -66
  48. data/gems/mime-types-3.5.2/Code-of-Conduct.md +0 -73
  49. data/gems/mime-types-3.5.2/lib/mime/types/deprecations.rb +0 -36
  50. data/gems/mime-types-data-3.2024.0305/Code-of-Conduct.md +0 -75
  51. data/gems/mime-types-data-3.2024.0305/Rakefile +0 -170
  52. data/gems/mime-types-data-3.2024.0305/data/mime-types.json +0 -1
  53. data/gems/mime-types-data-3.2024.0305/types/application.yaml +0 -18611
  54. data/gems/mime-types-data-3.2024.0305/types/audio.yaml +0 -1740
  55. data/gems/mime-types-data-3.2024.0305/types/chemical.yaml +0 -71
  56. data/gems/mime-types-data-3.2024.0305/types/conference.yaml +0 -9
  57. data/gems/mime-types-data-3.2024.0305/types/drawing.yaml +0 -15
  58. data/gems/mime-types-data-3.2024.0305/types/font.yaml +0 -65
  59. data/gems/mime-types-data-3.2024.0305/types/image.yaml +0 -1316
  60. data/gems/mime-types-data-3.2024.0305/types/message.yaml +0 -241
  61. data/gems/mime-types-data-3.2024.0305/types/model.yaml +0 -450
  62. data/gems/mime-types-data-3.2024.0305/types/multipart.yaml +0 -179
  63. data/gems/mime-types-data-3.2024.0305/types/text.yaml +0 -1257
  64. data/gems/mime-types-data-3.2024.0305/types/video.yaml +0 -1156
  65. data/gems/mime-types-data-3.2024.0305/types/world.yaml +0 -8
  66. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/Contributing.md +0 -0
  67. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/Licence.md +0 -0
  68. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/Manifest.txt +0 -0
  69. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/type/columnar.rb +0 -0
  70. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types/_columnar.rb +0 -0
  71. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types/cache.rb +0 -0
  72. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types/columnar.rb +0 -0
  73. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types/full.rb +0 -0
  74. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types/logger.rb +0 -0
  75. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime/types.rb +0 -0
  76. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/lib/mime-types.rb +0 -0
  77. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/bad-fixtures/malformed +0 -0
  78. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/fixture/json.json +0 -0
  79. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/fixture/old-data +0 -0
  80. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/fixture/yaml.yaml +0 -0
  81. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/minitest_helper.rb +0 -0
  82. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/test_mime_types_cache.rb +0 -0
  83. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/test_mime_types_lazy.rb +0 -0
  84. /data/gems/{mime-types-3.5.2 → mime-types-3.6.0}/test/test_mime_types_loader.rb +0 -0
  85. /data/gems/{mime-types-data-3.2024.0305 → mime-types-data-3.2025.0107}/lib/mime-types-data.rb +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kinetic_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.27
4
+ version: 5.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kinetic Data
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-26 00:00:00.000000000 Z
11
+ date: 2025-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slugify
@@ -111,70 +111,59 @@ files:
111
111
  - Rakefile
112
112
  - bin/console
113
113
  - bin/setup
114
- - gems/mime-types-3.5.2/Code-of-Conduct.md
115
- - gems/mime-types-3.5.2/Contributing.md
116
- - gems/mime-types-3.5.2/History.md
117
- - gems/mime-types-3.5.2/Licence.md
118
- - gems/mime-types-3.5.2/Manifest.txt
119
- - gems/mime-types-3.5.2/README.rdoc
120
- - gems/mime-types-3.5.2/Rakefile
121
- - gems/mime-types-3.5.2/lib/mime-types.rb
122
- - gems/mime-types-3.5.2/lib/mime/type.rb
123
- - gems/mime-types-3.5.2/lib/mime/type/columnar.rb
124
- - gems/mime-types-3.5.2/lib/mime/types.rb
125
- - gems/mime-types-3.5.2/lib/mime/types/_columnar.rb
126
- - gems/mime-types-3.5.2/lib/mime/types/cache.rb
127
- - gems/mime-types-3.5.2/lib/mime/types/columnar.rb
128
- - gems/mime-types-3.5.2/lib/mime/types/container.rb
129
- - gems/mime-types-3.5.2/lib/mime/types/deprecations.rb
130
- - gems/mime-types-3.5.2/lib/mime/types/full.rb
131
- - gems/mime-types-3.5.2/lib/mime/types/loader.rb
132
- - gems/mime-types-3.5.2/lib/mime/types/logger.rb
133
- - gems/mime-types-3.5.2/lib/mime/types/registry.rb
134
- - gems/mime-types-3.5.2/test/bad-fixtures/malformed
135
- - gems/mime-types-3.5.2/test/fixture/json.json
136
- - gems/mime-types-3.5.2/test/fixture/old-data
137
- - gems/mime-types-3.5.2/test/fixture/yaml.yaml
138
- - gems/mime-types-3.5.2/test/minitest_helper.rb
139
- - gems/mime-types-3.5.2/test/test_mime_type.rb
140
- - gems/mime-types-3.5.2/test/test_mime_types.rb
141
- - gems/mime-types-3.5.2/test/test_mime_types_cache.rb
142
- - gems/mime-types-3.5.2/test/test_mime_types_class.rb
143
- - gems/mime-types-3.5.2/test/test_mime_types_lazy.rb
144
- - gems/mime-types-3.5.2/test/test_mime_types_loader.rb
145
- - gems/mime-types-data-3.2024.0305/Code-of-Conduct.md
146
- - gems/mime-types-data-3.2024.0305/Contributing.md
147
- - gems/mime-types-data-3.2024.0305/History.md
148
- - gems/mime-types-data-3.2024.0305/Licence.md
149
- - gems/mime-types-data-3.2024.0305/Manifest.txt
150
- - gems/mime-types-data-3.2024.0305/README.md
151
- - gems/mime-types-data-3.2024.0305/Rakefile
152
- - gems/mime-types-data-3.2024.0305/data/content_type_mime.db
153
- - gems/mime-types-data-3.2024.0305/data/ext_mime.db
154
- - gems/mime-types-data-3.2024.0305/data/mime-types.json
155
- - gems/mime-types-data-3.2024.0305/data/mime.content_type.column
156
- - gems/mime-types-data-3.2024.0305/data/mime.docs.column
157
- - gems/mime-types-data-3.2024.0305/data/mime.encoding.column
158
- - gems/mime-types-data-3.2024.0305/data/mime.flags.column
159
- - gems/mime-types-data-3.2024.0305/data/mime.friendly.column
160
- - gems/mime-types-data-3.2024.0305/data/mime.pext.column
161
- - gems/mime-types-data-3.2024.0305/data/mime.use_instead.column
162
- - gems/mime-types-data-3.2024.0305/data/mime.xrefs.column
163
- - gems/mime-types-data-3.2024.0305/lib/mime-types-data.rb
164
- - gems/mime-types-data-3.2024.0305/lib/mime/types/data.rb
165
- - gems/mime-types-data-3.2024.0305/types/application.yaml
166
- - gems/mime-types-data-3.2024.0305/types/audio.yaml
167
- - gems/mime-types-data-3.2024.0305/types/chemical.yaml
168
- - gems/mime-types-data-3.2024.0305/types/conference.yaml
169
- - gems/mime-types-data-3.2024.0305/types/drawing.yaml
170
- - gems/mime-types-data-3.2024.0305/types/font.yaml
171
- - gems/mime-types-data-3.2024.0305/types/image.yaml
172
- - gems/mime-types-data-3.2024.0305/types/message.yaml
173
- - gems/mime-types-data-3.2024.0305/types/model.yaml
174
- - gems/mime-types-data-3.2024.0305/types/multipart.yaml
175
- - gems/mime-types-data-3.2024.0305/types/text.yaml
176
- - gems/mime-types-data-3.2024.0305/types/video.yaml
177
- - gems/mime-types-data-3.2024.0305/types/world.yaml
114
+ - gems/mime-types-3.6.0/Code-of-Conduct.md
115
+ - gems/mime-types-3.6.0/Contributing.md
116
+ - gems/mime-types-3.6.0/History.md
117
+ - gems/mime-types-3.6.0/Licence.md
118
+ - gems/mime-types-3.6.0/Manifest.txt
119
+ - gems/mime-types-3.6.0/README.rdoc
120
+ - gems/mime-types-3.6.0/Rakefile
121
+ - gems/mime-types-3.6.0/lib/mime-types.rb
122
+ - gems/mime-types-3.6.0/lib/mime/type.rb
123
+ - gems/mime-types-3.6.0/lib/mime/type/columnar.rb
124
+ - gems/mime-types-3.6.0/lib/mime/types.rb
125
+ - gems/mime-types-3.6.0/lib/mime/types/_columnar.rb
126
+ - gems/mime-types-3.6.0/lib/mime/types/cache.rb
127
+ - gems/mime-types-3.6.0/lib/mime/types/columnar.rb
128
+ - gems/mime-types-3.6.0/lib/mime/types/container.rb
129
+ - gems/mime-types-3.6.0/lib/mime/types/deprecations.rb
130
+ - gems/mime-types-3.6.0/lib/mime/types/full.rb
131
+ - gems/mime-types-3.6.0/lib/mime/types/loader.rb
132
+ - gems/mime-types-3.6.0/lib/mime/types/logger.rb
133
+ - gems/mime-types-3.6.0/lib/mime/types/registry.rb
134
+ - gems/mime-types-3.6.0/test/bad-fixtures/malformed
135
+ - gems/mime-types-3.6.0/test/fixture/json.json
136
+ - gems/mime-types-3.6.0/test/fixture/old-data
137
+ - gems/mime-types-3.6.0/test/fixture/yaml.yaml
138
+ - gems/mime-types-3.6.0/test/minitest_helper.rb
139
+ - gems/mime-types-3.6.0/test/test_mime_type.rb
140
+ - gems/mime-types-3.6.0/test/test_mime_types.rb
141
+ - gems/mime-types-3.6.0/test/test_mime_types_cache.rb
142
+ - gems/mime-types-3.6.0/test/test_mime_types_class.rb
143
+ - gems/mime-types-3.6.0/test/test_mime_types_lazy.rb
144
+ - gems/mime-types-3.6.0/test/test_mime_types_loader.rb
145
+ - gems/mime-types-data-3.2025.0107/CHANGELOG.md
146
+ - gems/mime-types-data-3.2025.0107/CODE_OF_CONDUCT.md
147
+ - gems/mime-types-data-3.2025.0107/CONTRIBUTING.md
148
+ - gems/mime-types-data-3.2025.0107/CONTRIBUTORS.md
149
+ - gems/mime-types-data-3.2025.0107/LICENCE.md
150
+ - gems/mime-types-data-3.2025.0107/Manifest.txt
151
+ - gems/mime-types-data-3.2025.0107/README.md
152
+ - gems/mime-types-data-3.2025.0107/Rakefile
153
+ - gems/mime-types-data-3.2025.0107/SECURITY.md
154
+ - gems/mime-types-data-3.2025.0107/data/content_type_mime.db
155
+ - gems/mime-types-data-3.2025.0107/data/ext_mime.db
156
+ - gems/mime-types-data-3.2025.0107/data/mime-types.json
157
+ - gems/mime-types-data-3.2025.0107/data/mime.content_type.column
158
+ - gems/mime-types-data-3.2025.0107/data/mime.docs.column
159
+ - gems/mime-types-data-3.2025.0107/data/mime.encoding.column
160
+ - gems/mime-types-data-3.2025.0107/data/mime.flags.column
161
+ - gems/mime-types-data-3.2025.0107/data/mime.friendly.column
162
+ - gems/mime-types-data-3.2025.0107/data/mime.pext.column
163
+ - gems/mime-types-data-3.2025.0107/data/mime.use_instead.column
164
+ - gems/mime-types-data-3.2025.0107/data/mime.xrefs.column
165
+ - gems/mime-types-data-3.2025.0107/lib/mime-types-data.rb
166
+ - gems/mime-types-data-3.2025.0107/lib/mime/types/data.rb
178
167
  - gems/multipart-post-2.0.0/Gemfile
179
168
  - gems/multipart-post-2.0.0/History.txt
180
169
  - gems/multipart-post-2.0.0/Manifest.txt
@@ -672,6 +661,11 @@ files:
672
661
  - lib/kinetic_sdk/filehub/filehub-sdk.rb
673
662
  - lib/kinetic_sdk/filehub/lib/access_keys.rb
674
663
  - lib/kinetic_sdk/filehub/lib/filestores.rb
664
+ - lib/kinetic_sdk/integrator/integrator-sdk.rb
665
+ - lib/kinetic_sdk/integrator/lib/connections.rb
666
+ - lib/kinetic_sdk/integrator/lib/executions.rb
667
+ - lib/kinetic_sdk/integrator/lib/metadata.rb
668
+ - lib/kinetic_sdk/integrator/lib/operations.rb
675
669
  - lib/kinetic_sdk/task/lib/access_keys.rb
676
670
  - lib/kinetic_sdk/task/lib/categories.rb
677
671
  - lib/kinetic_sdk/task/lib/config.rb
@@ -1,73 +0,0 @@
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, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and 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 [INSERT EMAIL ADDRESS]. 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 https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
-
73
- [homepage]: https://www.contributor-covenant.org
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "mime/types/logger"
4
-
5
- # The namespace for MIME applications, tools, and libraries.
6
- module MIME
7
- ##
8
- class Types
9
- # Used to mark a method as deprecated in the mime-types interface.
10
- def self.deprecated(klass, sym, message = nil, &block) # :nodoc:
11
- level =
12
- case klass
13
- when Class, Module
14
- "."
15
- else
16
- klass = klass.class
17
- "#"
18
- end
19
- message =
20
- case message
21
- when :private, :protected
22
- "and will be #{message}"
23
- when nil
24
- "and will be removed"
25
- else
26
- message
27
- end
28
- MIME::Types.logger.debug <<-WARNING.chomp.strip
29
- #{caller(2..2).first}: #{klass}#{level}#{sym} is deprecated #{message}.
30
- WARNING
31
-
32
- return unless block
33
- block.call
34
- end
35
- end
36
- end
@@ -1,75 +0,0 @@
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
9
- experience, nationality, personal appearance, race, religion, or sexual identity
10
- and 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 reject
41
- comments, commits, code, wiki edits, issues, and other contributions that are
42
- not aligned to this Code of Conduct, or to ban temporarily or permanently any
43
- contributor for other behaviors that they deem inappropriate, threatening,
44
- 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 [INSERT EMAIL ADDRESS]. 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
62
- incident. Further details of specific enforcement policies may be posted
63
- separately.
64
-
65
- Project maintainers who do not follow or enforce the Code of Conduct in good
66
- faith may face temporary or permanent repercussions as determined by other
67
- members of the project's leadership.
68
-
69
- ## Attribution
70
-
71
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
72
- available at [http://contributor-covenant.org/version/1/4][version]
73
-
74
- [homepage]: http://contributor-covenant.org
75
- [version]: http://contributor-covenant.org/version/1/4/
@@ -1,170 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "rubygems"
4
- require "hoe"
5
- require "rake/clean"
6
-
7
- Hoe.plugin :doofus
8
- Hoe.plugin :gemspec2
9
- Hoe.plugin :git2
10
- Hoe.plugin :rubygems
11
-
12
- Hoe.spec "mime-types-data" do
13
- developer("Austin Ziegler", "halostatue@gmail.com")
14
-
15
- self.history_file = "History.md"
16
- self.readme_file = "README.md"
17
-
18
- license "MIT"
19
-
20
- require_ruby_version ">= 2.0"
21
-
22
- spec_extras[:metadata] = ->(val) { val["rubygems_mfa_required"] = "true" }
23
-
24
- extra_dev_deps << ["hoe", "~> 4.0"]
25
- extra_dev_deps << ["hoe-doofus", "~> 1.0"]
26
- extra_dev_deps << ["hoe-gemspec2", "~> 1.1"]
27
- extra_dev_deps << ["hoe-git2", "~> 1.7"]
28
- extra_dev_deps << ["hoe-rubygems", "~> 1.0"]
29
- extra_dev_deps << ["mime-types", ">= 3.4.0", "< 4"]
30
- extra_dev_deps << ["nokogiri", "~> 1.6"]
31
- extra_dev_deps << ["psych", "~> 3.0"]
32
- extra_dev_deps << ["rake", ">= 10.0", "< 14"]
33
- extra_dev_deps << ["standard", "~> 1.0"]
34
- end
35
-
36
- $LOAD_PATH.unshift "lib"
37
- $LOAD_PATH.unshift "support"
38
-
39
- def new_version
40
- version =
41
- IO.read("lib/mime/types/data.rb").scan(/VERSION = ['"](\d\.\d{4}\.\d{4}(?:\.\d+)?)['"]/).flatten.first
42
-
43
- major = Gem::Version.new(version).canonical_segments.first
44
- minor = Date.today.strftime("%Y.%m%d")
45
-
46
- "#{major}.#{minor}"
47
- end
48
-
49
- def release_header
50
- "#{new_version} / #{Date.today.strftime("%Y-%m-%d")}"
51
- end
52
-
53
- namespace :mime do
54
- desc "Download the current MIME type registrations from IANA."
55
- task :iana, [:destination] do |_, args|
56
- require "iana_registry"
57
- IANARegistry.download(to: args.destination)
58
- end
59
-
60
- desc "Download the current MIME type configuration from Apache."
61
- task :apache, [:destination] do |_, args|
62
- require "apache_mime_types"
63
- ApacheMIMETypes.download(to: args.destination)
64
- end
65
- end
66
-
67
- namespace :release do
68
- task __pull: %w[mime:apache mime:iana convert]
69
- task __prepare: %w[update:version update:history git:manifest]
70
- task :__commit do
71
- history = IO.read("History.md")
72
- message = history.scan(%r{## (#{release_header}.+?)## \d\.\d{4}\.\d{4} /}m).flatten.first
73
-
74
- IO.popen("git commit -a -F -", "w") { |commit|
75
- commit.puts message
76
- }
77
- end
78
-
79
- desc "Prepare a new release for use with GitHub Actions"
80
- task :gha do
81
- require "prepare_release"
82
-
83
- pr = PrepareRelease.new
84
- pr.download_and_convert
85
- pr.write_updated_version
86
- pr.write_updated_history
87
- pr.rake_git_manifest
88
- pr.rake_gemspec
89
- pr.as_gha_vars
90
- end
91
-
92
- desc "Prepare a new automatic release"
93
- task automatic: :__pull do
94
- if system("git diff --quiet --exit-code") == false
95
- Rake::Task["release:__prepare"].invoke
96
- Rake::Task["gemspec"].invoke
97
- Rake::Task["release:__commit"].invoke
98
- else
99
- warn "No changes detected."
100
- end
101
- end
102
- end
103
-
104
- namespace :convert do
105
- namespace :yaml do
106
- desc "Convert from YAML to JSON"
107
- task :json, [:source, :destination, :multiple_files] do |_, args|
108
- require "convert"
109
- Convert.from_yaml_to_json(from: args.source, to: args.destination, multiple_files: args.multiple_files)
110
- end
111
-
112
- desc "Convert from YAML to Columnar"
113
- task :columnar, [:source, :destination] do |_, args|
114
- require "convert/columnar"
115
- Convert::Columnar.from_yaml_to_columnar(from: args.source, to: args.destination)
116
- end
117
-
118
- desc "Convert from YAML to mini_mime db format"
119
- task :mini_mime, [:source, :destination] do |_, args|
120
- require "convert/mini_mime_db"
121
- Convert::MiniMimeDb.from_yaml_to_mini_mime(from: args.source, to: args.destination)
122
- end
123
- end
124
-
125
- namespace :json do
126
- desc "Convert from JSON to YAML"
127
- task :yaml, [:source, :destination, :multiple_files] do |_, args|
128
- require "convert"
129
- Convert.from_json_to_yaml(from: args.source, to: args.destination, multiple_files: args.multiple_files)
130
- end
131
- end
132
- end
133
-
134
- namespace :update do
135
- desc "Update the release version"
136
- task :version do
137
- file = IO.read("lib/mime/types/data.rb")
138
- updated = file.sub(/VERSION = ['"][.0-9]+['"]/, %(VERSION = "#{new_version}"))
139
-
140
- IO.write("lib/mime/types/data.rb", updated)
141
- end
142
-
143
- desc "Update the history file with automatic release notes"
144
- task :history do
145
- history = IO.read("History.md")
146
-
147
- if !/^## #{release_header}$/.match?(history)
148
- note = <<-NOTE
149
- <!-- automatic-release -->
150
-
151
- ## #{release_header}
152
-
153
- - Updated the Apache and IANA media registry entries as of release date.
154
- NOTE
155
-
156
- updated = history.sub("<!-- automatic-release -->\n", note)
157
-
158
- IO.write("History.md", updated)
159
- end
160
- end
161
- end
162
-
163
- desc "Default conversion from YAML to JSON and Columnar"
164
- task convert: ["convert:yaml:json", "convert:yaml:columnar", "convert:yaml:mini_mime"]
165
-
166
- Rake::Task["gem"].prerequisites.unshift("convert")
167
- Rake::Task["gem"].prerequisites.unshift("git:manifest")
168
- Rake::Task["gem"].prerequisites.unshift("gemspec")
169
-
170
- # vim: syntax=ruby