kinetic_sdk 5.0.21 → 5.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/Contributing.md +15 -14
  4. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/History.md +89 -23
  5. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/Manifest.txt +1 -0
  6. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/README.rdoc +1 -1
  7. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/Rakefile +12 -53
  8. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/type.rb +28 -2
  9. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/cache.rb +3 -7
  10. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/deprecations.rb +12 -12
  11. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/logger.rb +1 -1
  12. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/registry.rb +1 -1
  13. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types.rb +9 -9
  14. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/minitest_helper.rb +0 -1
  15. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/test_mime_type.rb +47 -11
  16. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/test_mime_types.rb +4 -0
  17. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/test_mime_types_cache.rb +1 -1
  18. data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/test_mime_types_class.rb +5 -0
  19. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/Contributing.md +3 -0
  20. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/History.md +94 -34
  21. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/Manifest.txt +0 -1
  22. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/Rakefile +34 -19
  23. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/content_type_mime.db +3 -0
  24. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/ext_mime.db +6 -2
  25. data/gems/mime-types-data-3.2023.1205/data/mime-types.json +1 -0
  26. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/mime.content_type.column +149 -4
  27. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/mime.docs.column +145 -0
  28. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/mime.encoding.column +145 -0
  29. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/mime.flags.column +152 -7
  30. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/mime.friendly.column +145 -0
  31. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/mime.pext.column +145 -0
  32. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/mime.use_instead.column +148 -3
  33. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/data/mime.xrefs.column +230 -85
  34. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/lib/mime/types/data.rb +1 -1
  35. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/application.yaml +1291 -85
  36. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/audio.yaml +14 -5
  37. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/image.yaml +81 -20
  38. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/message.yaml +38 -2
  39. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/model.yaml +66 -6
  40. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/multipart.yaml +2 -2
  41. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/text.yaml +99 -8
  42. data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/video.yaml +28 -1
  43. data/lib/kinetic_sdk/core/lib/form_types.rb +7 -7
  44. data/lib/kinetic_sdk/core/lib/space.rb +148 -2
  45. data/lib/kinetic_sdk/core/lib/submissions.rb +10 -0
  46. data/lib/kinetic_sdk/task/lib/export.rb +4 -2
  47. data/lib/kinetic_sdk/task/lib/trees.rb +46 -50
  48. data/lib/kinetic_sdk/version.rb +1 -1
  49. metadata +66 -67
  50. data/gems/mime-types-data-3.2022.0105/data/mime-types.json +0 -1
  51. data/gems/mime-types-data-3.2022.0105/types/provisional-standard-types.yaml +0 -145
  52. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/Code-of-Conduct.md +0 -0
  53. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/Licence.md +0 -0
  54. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/type/columnar.rb +0 -0
  55. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/_columnar.rb +0 -0
  56. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/columnar.rb +0 -0
  57. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/container.rb +0 -0
  58. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/full.rb +0 -0
  59. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime/types/loader.rb +0 -0
  60. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/lib/mime-types.rb +0 -0
  61. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/bad-fixtures/malformed +0 -0
  62. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/fixture/json.json +0 -0
  63. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/fixture/old-data +0 -0
  64. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/fixture/yaml.yaml +0 -0
  65. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/test_mime_types_lazy.rb +0 -0
  66. /data/gems/{mime-types-3.4.1 → mime-types-3.5.2}/test/test_mime_types_loader.rb +0 -0
  67. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/Code-of-Conduct.md +0 -0
  68. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/Licence.md +0 -0
  69. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/README.md +0 -0
  70. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/lib/mime-types-data.rb +0 -0
  71. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/chemical.yaml +0 -0
  72. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/conference.yaml +0 -0
  73. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/drawing.yaml +0 -0
  74. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/font.yaml +0 -0
  75. /data/gems/{mime-types-data-3.2022.0105 → mime-types-data-3.2023.1205}/types/world.yaml +0 -0
@@ -266,7 +266,27 @@ describe MIME::Type do
266
266
  end
267
267
 
268
268
  it "is true for an equivalent MIME::Type" do
269
- assert text_plain, mime_type("text/Plain")
269
+ assert text_plain.eql?(mime_type("text/Plain"))
270
+ end
271
+
272
+ it "is true for an equivalent subclass of MIME::Type" do
273
+ subclass = Class.new(MIME::Type)
274
+ assert text_plain.eql?(subclass.new("text/plain"))
275
+ end
276
+ end
277
+
278
+ describe "#hash" do
279
+ it "is the same between #eql? MIME::Type instances" do
280
+ assert_equal text_plain.hash, mime_type("text/plain").hash
281
+ end
282
+
283
+ it "is the same between #eql? MIME::Type instances of different classes" do
284
+ subclass = Class.new(MIME::Type)
285
+ assert_equal text_plain.hash, subclass.new("text/plain").hash
286
+ end
287
+
288
+ it "uses the #simplified value" do
289
+ assert_equal text_plain.hash, mime_type("text/Plain").hash
270
290
  end
271
291
  end
272
292
 
@@ -426,37 +446,53 @@ describe MIME::Type do
426
446
  describe "#to_h" do
427
447
  let(:t) { mime_type("a/b") }
428
448
 
449
+ def assert_has_keys(wanted_keys, actual, msg = nil)
450
+ wanted_keys = Array(wanted_keys).uniq.sort
451
+ actual_keys = if actual.is_a?(Hash)
452
+ actual.keys
453
+ else
454
+ actual.to_h.keys
455
+ end
456
+
457
+ missing = wanted_keys - actual_keys
458
+ pretty_wanted_keys = (wanted_keys + actual_keys).uniq.sort
459
+
460
+ msg = message(msg) {
461
+ "#{mu_pp(actual)} is missing attribute values\n#{diff(pretty_wanted_keys, actual_keys)}"
462
+ }
463
+
464
+ assert missing.empty?, msg
465
+ end
466
+
429
467
  it "has the required keys (content-type, registered, encoding)" do
430
- assert_has_keys t.to_h, %w[content-type registered encoding]
468
+ assert_has_keys %w[content-type registered encoding], t
431
469
  end
432
470
 
433
471
  it "has the docs key if there are documents" do
434
- assert_has_keys mime_type(t) { |v| v.docs = "a" }.to_h, %w[docs]
472
+ assert_has_keys "docs", mime_type(t) { |v| v.docs = "a" }
435
473
  end
436
474
 
437
475
  it "has the extensions key if set" do
438
- assert_has_keys mime_type(t) { |v| v.extensions = "a" }.to_h,
439
- "extensions"
476
+ assert_has_keys "extensions", mime_type(t) { |v| v.extensions = "a" }
440
477
  end
441
478
 
442
479
  it "has the preferred-extension key if set" do
443
- assert_has_keys mime_type(t) { |v| v.preferred_extension = "a" }.to_h,
444
- "preferred-extension"
480
+ assert_has_keys "preferred-extension", mime_type(t) { |v| v.preferred_extension = "a" }
445
481
  end
446
482
 
447
483
  it "has the obsolete key if set" do
448
- assert_has_keys mime_type(t) { |v| v.obsolete = true }.to_h, "obsolete"
484
+ assert_has_keys "obsolete", mime_type(t) { |v| v.obsolete = true }
449
485
  end
450
486
 
451
487
  it "has the obsolete and use-instead keys if set" do
452
- assert_has_keys mime_type(t) { |v|
488
+ assert_has_keys %w[obsolete use-instead], mime_type(t) { |v|
453
489
  v.obsolete = true
454
490
  v.use_instead = "c/d"
455
- }.to_h, %w[obsolete use-instead]
491
+ }
456
492
  end
457
493
 
458
494
  it "has the signature key if set" do
459
- assert_has_keys mime_type(t) { |v| v.signature = true }.to_h, "signature"
495
+ assert_has_keys "signature", mime_type(t) { |v| v.signature = true }
460
496
  end
461
497
  end
462
498
 
@@ -159,6 +159,10 @@ describe MIME::Types do
159
159
  plain_text.add_extensions("xtxt")
160
160
  assert_includes mime_types.type_for("xtxt"), "text/plain"
161
161
  end
162
+
163
+ it "handles newline characters correctly" do
164
+ assert_includes mime_types.type_for("test.pdf\n.txt"), "text/plain"
165
+ end
162
166
  end
163
167
 
164
168
  describe "#count" do
@@ -67,7 +67,7 @@ describe MIME::Types::Cache do
67
67
  it "outputs an error when there is a marshal file incompatibility" do
68
68
  MIME::Types::Cache.save
69
69
  data = File.binread(@cache_file).reverse
70
- File.open(@cache_file, "wb") { |f| f.write(data) }
70
+ File.binwrite(@cache_file, data)
71
71
  MIME::Types.instance_variable_set(:@__types__, nil)
72
72
  assert_output "", /incompatible marshal file format/ do
73
73
  MIME::Types["text/html"]
@@ -100,6 +100,11 @@ describe MIME::Types, "registry" do
100
100
  plain_text.add_extensions("xtxt")
101
101
  assert_includes MIME::Types.type_for("xtxt"), "text/plain"
102
102
  end
103
+
104
+ it "handles newline characters correctly" do
105
+ assert_includes MIME::Types.type_for("test.pdf\n.txt"), "text/plain"
106
+ assert_includes MIME::Types.type_for("test.txt\n.pdf"), "application/pdf"
107
+ end
103
108
  end
104
109
 
105
110
  describe ".count" do
@@ -204,6 +204,7 @@ Thanks to everyone else who has contributed to mime-types:
204
204
  - Bradley Meck
205
205
  - Brandon Galbraith
206
206
  - Chris Gat
207
+ - Chris Salzberg
207
208
  - David Genord
208
209
  - Eric Marden
209
210
  - Garret Alfert
@@ -222,6 +223,7 @@ Thanks to everyone else who has contributed to mime-types:
222
223
  - Lucia
223
224
  - Martin d'Allens
224
225
  - Mauricio Linhares
226
+ - Mohammed Gad
225
227
  - Myk Klemme
226
228
  - nycvotes-dev
227
229
  - Postmodern
@@ -229,6 +231,7 @@ Thanks to everyone else who has contributed to mime-types:
229
231
  - Richard Hurt
230
232
  - Richard Schneeman
231
233
  - Robert Buchberger
234
+ - Samuel Williams
232
235
  - Sergio Baptista
233
236
  - Tao Guo
234
237
  - Thomas Leese
@@ -2,29 +2,82 @@
2
2
 
3
3
  <!-- automatic-release -->
4
4
 
5
+ ## 3.2023.1205 / 2023-12-05
6
+
7
+ - - Updated the Apache and IANA media registry entries as of release date
8
+
9
+ ## 3.2023.1107 / 2023-11-07
10
+
11
+ - - Updated the Apache and IANA media registry entries as of release date
12
+
13
+ ## 3.2023.1003 / 2023-10-03
14
+
15
+ - - Updated the Apache and IANA media registry entries as of release date
16
+
17
+ ## 3.2023.0905 / 2023-09-05
18
+
19
+ - - Updated the Apache and IANA media registry entries as of release date
20
+
21
+ ## 3.2023.0808 / 2023-08-08
22
+
23
+ - - Updated the Apache and IANA media registry entries as of release date
24
+
25
+ ## 3.2023.0218.1 / 2023-02-18
26
+
27
+ - When this data library was created in 2015, I made the decision based on
28
+ information available to deprecate `text/javascript` in favour of
29
+ `application/javascript`. Since the previous update (2022-01-05), IANA has
30
+ officially deprecated `application/javascript` in favour of
31
+ `text/javascript`. Samuel Williams discovered this in [#55][] by noting
32
+ that all `js` types were marked obsolete in version 3.2023.0218.
33
+
34
+ A hotfix has been applied to resolve this. However, note that
35
+ `application/javascript` will not be returned by default, only
36
+ `text/javascript`.
37
+
38
+ ## 3.2023.0218 / 2023-02-18
39
+
40
+ - Updated the Apache and IANA media registry entries as of release date.
41
+
42
+ - Mohammed Gad added the `jfif` file extension for `image/jpeg` text format.
43
+ [#52][]
44
+
45
+ - Reworked the loading of IANA provisional media registries to merge them
46
+ into the top-level media-type registries instead of a standalone registry
47
+ file. [#53][] originally identified by Chris Salzberg in [#50][].
48
+
49
+ It is worth noting that this is an _imperfect_ solution as if a media type
50
+ is provisionally registered and withdrawn, it will linger in the registry
51
+ with no clean way of identifying them at the moment. See [#54][].
52
+
53
+ This release also fixes [ruby-mime-types#163][], where logs show "Type
54
+ application/netcdf is already registered as a variant of
55
+ application/netcdf".
56
+
5
57
  ## 3.2022.0105 / 2022-01-05
6
58
 
7
59
  - Updated the Apache and IANA media registry entries as of release date.
8
60
 
9
- - Fixed an incorrect definition of `image/bmp`, which had been marked obsolete
10
- and later registered. Fixed [#48], found by William T. Nelson.
61
+ - Fixed an incorrect definition of `image/bmp`, which had been marked
62
+ obsolete and later registered. Fixed [#48][], found by William T. Nelson.
11
63
 
12
64
  ## 3.2021.1115 / 2021-11-15
13
65
 
14
66
  - Updated the Apache and IANA media registry entries as of release date.
15
67
 
16
68
  - Added conversion utilities that support the `mini_mime` data format. These
17
- have been ported from the [mini_mime] repository. [#47]
69
+ have been ported from the [mini_mime][] repository. [#47][]
18
70
 
19
- - Added IANA provisional media registries. Added some notes to Contributing.md
20
- about the transient nature of the provisional registration data. This was
21
- triggered in part by a pull request by Jon Sneyers. Thanks! [#45], [#43]
71
+ - Added IANA provisional media registries. Added some notes to
72
+ Contributing.md about the transient nature of the provisional registration
73
+ data. This was triggered in part by a pull request by Jon Sneyers. Thanks!
74
+ [#45][], [#43][]
22
75
 
23
76
  ## 3.2021.0901 / 2021-09-01
24
77
 
25
78
  - Updated the Apache and IANA media registry entries as of release date.
26
79
 
27
- - Added file extension for WebVTT text format. [#46]
80
+ - Added file extension for WebVTT text format. [#46][]
28
81
 
29
82
  ## 3.2021.0704 / 2021-07-04
30
83
 
@@ -34,82 +87,82 @@
34
87
 
35
88
  - Updated the Apache and IANA media registry entries as of release date.
36
89
 
37
- - Added file extension for AVIF video format. [#40]
90
+ - Added file extension for AVIF video format. [#40][]
38
91
 
39
92
  ## 3.2021.0212 / 2021-02-12
40
93
 
41
94
  - Updated the IANA media registry entries as of release date.
42
95
 
43
- - Added a new rake task (`release:automatic`) that downloads and converts the
44
- data from Apache and IANA; if there are changes detected, it updates the
45
- release version, changelog, manifest, and gemspec and commits the changes
46
- to git.
96
+ - Added a new rake task (`release:automatic`) that downloads and converts
97
+ the data from Apache and IANA; if there are changes detected, it updates
98
+ the release version, changelog, manifest, and gemspec and commits the
99
+ changes to git.
47
100
 
48
101
  ## 3.2020.1104 / 2020-11-04
49
102
 
50
103
  - Updated the IANA media registry entries as of release date.
51
104
 
52
- - Added `application/x-zip-compressed`. [#36]
105
+ - Added `application/x-zip-compressed`. [#36][]
53
106
 
54
107
  - Updated the contributing guide to include information about the release
55
- process as described in [#18]
108
+ process as described in [#18][]
56
109
 
57
- - Corrected a misspelling of Yoran Brondsema’s name. Sorry, Yoran. [#35]
110
+ - Corrected a misspelling of Yoran Brondsema’s name. Sorry, Yoran. [#35][]
58
111
 
59
112
  ## 3.2020.0512 / 2020-05-12
60
113
 
61
114
  - Updated the IANA media registry entries as of release date.
62
115
 
63
- - Added file extensions for HEIC image types. [#34]
116
+ - Added file extensions for HEIC image types. [#34][]
64
117
 
65
118
  ## 3.2020.0425 / 2020-04-25
66
119
 
67
120
  - Updated the IANA media registry entries as of release date.
68
121
 
69
122
  - Added several RAW image types based on data from GNOME RAW Thumbnailer.
70
- [#33] fixing [#32]
123
+ [#33][] fixing [#32][]
71
124
 
72
- - Added `audio/wav`. [#31]
125
+ - Added `audio/wav`. [#31][]
73
126
 
74
- - Added a type for Smarttech notebook files. [#30]
127
+ - Added a type for Smarttech notebook files. [#30][]
75
128
 
76
- - Added an alias for audio/m4a files. [#29]
129
+ - Added an alias for audio/m4a files. [#29][]
77
130
 
78
- - Added application/x-ms-dos-executable. [#28]
131
+ - Added application/x-ms-dos-executable. [#28][]
79
132
 
80
133
  ## 3.2019.1009 / 2019-10-09
81
134
 
82
135
  - Updated the IANA media registry entries as of release date.
83
136
 
84
- - Reordered the `.ai` extension so that it is not the preferred extension for
85
- `application/pdf` [#24]
137
+ - Reordered the `.ai` extension so that it is not the preferred extension
138
+ for `application/pdf` [#24][]
86
139
 
87
140
  ## 3.2019.0904 / 2019-09-04
88
141
 
89
142
  - Updated the IANA media registry entries as of release date.
90
143
 
91
- - Moved the `.ai` extension from `application/postscript` to `application/pdf`.
92
- [#23] fixing [#22]
144
+ - Moved the `.ai` extension from `application/postscript` to
145
+ `application/pdf`. [#23][] fixing [#22][]
93
146
 
94
147
  ## 3.2019.0331 / 2019-03-31
95
148
 
96
149
  - Updated the IANA media registry entries as of release date.
97
150
 
98
- - Added support for `application/wasm` with extension `.wasm`. [#21]
151
+ - Added support for `application/wasm` with extension `.wasm`. [#21][]
99
152
 
100
- - Fixed `application/ecmascript` extensions. [#20]
153
+ - Fixed `application/ecmascript` extensions. [#20][]
101
154
 
102
155
  ## 3.2018.0812 / 2018-08-12
103
156
 
104
- - Added `.xsd` extension to `text/xml`. [#10]
157
+ - Added `.xsd` extension to `text/xml`. [#10][]
105
158
 
106
159
  - Added `.js` and `.mjs` extensions to `text/ecmascript` and
107
- `text/javascript`. [#11]
160
+ `text/javascript`. [#11][]
108
161
 
109
- - Added `.ipa` extension to `application/octet-stream`. [#12]
162
+ - Added `.ipa` extension to `application/octet-stream`. [#12][]
110
163
 
111
164
  - Moved extensions `.markdown` and `.md` and added `.mkd` extension to
112
- `text/markdown`. [#13]
165
+ `text/markdown`. [#13][]
113
166
 
114
167
  - Because of a bug found with mime-types 3 before 3.2.1, this version
115
168
  requires mime-types 3.1 or later to manage data.
@@ -182,7 +235,8 @@
182
235
 
183
236
  - Extracted from [ruby-mime-types][rmt].
184
237
  - Added a [Code of Conduct].
185
- - The versioning has changed to be semantic on format plus date in two parts.
238
+ - The versioning has changed to be semantic on format plus date in two
239
+ parts.
186
240
 
187
241
  - All registry formats have been updated to remove deprecated data.
188
242
  - The columnar format has been updated to store three boolean flags in a
@@ -224,8 +278,7 @@
224
278
  ## 2.6 / 2015-05-25
225
279
 
226
280
  - Steven Michael Thomas (@stevenmichaelthomas) added `woff2` as an extension
227
- to application/font-woff,
228
- [ruby-mime-types#99](https://github.com/mime-types/ruby-mime-types/pull/99).
281
+ to application/font-woff, [ruby-mime-types#99][].
229
282
  - Updated the IANA media registry entries as of release date:
230
283
  - Updated metadata for application/jose, application/jose+json,
231
284
  application/jwk+json, application/jwk-set+json, application/jwt to
@@ -497,6 +550,13 @@
497
550
  [#46]: https://github.com/mime-types/mime-types-data/pull/46
498
551
  [#47]: https://github.com/mime-types/mime-types-data/pull/47
499
552
  [#48]: https://github.com/mime-types/mime-types-data/issues/48
553
+ [#50]: https://github.com/mime-types/mime-types-data/pull/50
554
+ [#52]: https://github.com/mime-types/mime-types-data/pull/52
555
+ [#53]: https://github.com/mime-types/mime-types-data/pull/53
556
+ [#54]: https://github.com/mime-types/mime-types-data/issues/54
557
+ [#55]: https://github.com/mime-types/mime-types-data/issues/55
500
558
  [rmt]: https://github.com/mime-types/ruby-mime-types
501
559
  [code of conduct]: Code-of-Conduct.md
502
560
  [mini_mime]: https://github.com/discourse/mini_mime/issues/41
561
+ [ruby-mime-types#99]: https://github.com/mime-types/ruby-mime-types/pull/99
562
+ [ruby-mime-types#163]: https://github.com/mime-types/ruby-mime-types/issues/163
@@ -28,7 +28,6 @@ types/image.yaml
28
28
  types/message.yaml
29
29
  types/model.yaml
30
30
  types/multipart.yaml
31
- types/provisional-standard-types.yaml
32
31
  types/text.yaml
33
32
  types/video.yaml
34
33
  types/world.yaml
@@ -6,29 +6,31 @@ require "rake/clean"
6
6
 
7
7
  Hoe.plugin :doofus
8
8
  Hoe.plugin :gemspec2
9
- Hoe.plugin :git
10
- Hoe.plugin :travis
11
- Hoe.plugin :email unless ENV["CI"] || ENV["TRAVIS"]
9
+ Hoe.plugin :git2
10
+ Hoe.plugin :rubygems
12
11
 
13
12
  Hoe.spec "mime-types-data" do
14
13
  developer("Austin Ziegler", "halostatue@gmail.com")
15
14
 
16
- require_ruby_version ">= 2.0"
17
-
18
15
  self.history_file = "History.md"
19
16
  self.readme_file = "README.md"
20
17
 
21
18
  license "MIT"
22
19
 
23
- extra_dev_deps << ["nokogiri", "~> 1.6"]
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"]
24
25
  extra_dev_deps << ["hoe-doofus", "~> 1.0"]
25
26
  extra_dev_deps << ["hoe-gemspec2", "~> 1.1"]
26
- extra_dev_deps << ["hoe-git", "~> 1.6"]
27
+ extra_dev_deps << ["hoe-git2", "~> 1.7"]
27
28
  extra_dev_deps << ["hoe-rubygems", "~> 1.0"]
28
- extra_dev_deps << ["rake", ">= 10.0", "< 14"]
29
29
  extra_dev_deps << ["mime-types", ">= 3.4.0", "< 4"]
30
- extra_dev_deps << ["standardrb", "~> 1.0"]
30
+ extra_dev_deps << ["nokogiri", "~> 1.6"]
31
31
  extra_dev_deps << ["psych", "~> 3.0"]
32
+ extra_dev_deps << ["rake", ">= 10.0", "< 14"]
33
+ extra_dev_deps << ["standard", "~> 1.0"]
32
34
  end
33
35
 
34
36
  $LOAD_PATH.unshift "lib"
@@ -36,7 +38,7 @@ $LOAD_PATH.unshift "support"
36
38
 
37
39
  def new_version
38
40
  version =
39
- IO.read("lib/mime/types/data.rb").scan(/VERSION = ['"](\d\.\d{4}\.\d{4})['"]/).flatten.first
41
+ IO.read("lib/mime/types/data.rb").scan(/VERSION = ['"](\d\.\d{4}\.\d{4}(?:\.\d+)?)['"]/).flatten.first
40
42
 
41
43
  major = Gem::Version.new(version).canonical_segments.first
42
44
  minor = Date.today.strftime("%Y.%m%d")
@@ -74,6 +76,19 @@ namespace :release do
74
76
  }
75
77
  end
76
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
+
77
92
  desc "Prepare a new automatic release"
78
93
  task automatic: :__pull do
79
94
  if system("git diff --quiet --exit-code") == false
@@ -89,29 +104,29 @@ end
89
104
  namespace :convert do
90
105
  namespace :yaml do
91
106
  desc "Convert from YAML to JSON"
92
- task :json, [:source, :destination, :multiple_files] => :support do |_, args|
107
+ task :json, [:source, :destination, :multiple_files] do |_, args|
93
108
  require "convert"
94
- Convert.from_yaml_to_json(args)
109
+ Convert.from_yaml_to_json(from: args.source, to: args.destination, multiple_files: args.multiple_files)
95
110
  end
96
111
 
97
112
  desc "Convert from YAML to Columnar"
98
- task :columnar, [:source, :destination] => :support do |_, args|
113
+ task :columnar, [:source, :destination] do |_, args|
99
114
  require "convert/columnar"
100
- Convert::Columnar.from_yaml_to_columnar(args)
115
+ Convert::Columnar.from_yaml_to_columnar(from: args.source, to: args.destination)
101
116
  end
102
117
 
103
118
  desc "Convert from YAML to mini_mime db format"
104
- task :mini_mime, [:source, :destination] => :support do |_, args|
119
+ task :mini_mime, [:source, :destination] do |_, args|
105
120
  require "convert/mini_mime_db"
106
- Convert::MiniMimeDb.from_yaml_to_mini_mime(args)
121
+ Convert::MiniMimeDb.from_yaml_to_mini_mime(from: args.source, to: args.destination)
107
122
  end
108
123
  end
109
124
 
110
125
  namespace :json do
111
126
  desc "Convert from JSON to YAML"
112
- task :yaml, [:source, :destination, :multiple_files] => :support do |_, args|
127
+ task :yaml, [:source, :destination, :multiple_files] do |_, args|
113
128
  require "convert"
114
- Convert.from_json_to_yaml(args)
129
+ Convert.from_json_to_yaml(from: args.source, to: args.destination, multiple_files: args.multiple_files)
115
130
  end
116
131
  end
117
132
  end
@@ -120,7 +135,7 @@ namespace :update do
120
135
  desc "Update the release version"
121
136
  task :version do
122
137
  file = IO.read("lib/mime/types/data.rb")
123
- updated = file.sub(/VERSION = ['"][.0-9]+['"]/, %Q(VERSION = "#{new_version}"))
138
+ updated = file.sub(/VERSION = ['"][.0-9]+['"]/, %(VERSION = "#{new_version}"))
124
139
 
125
140
  IO.write("lib/mime/types/data.rb", updated)
126
141
  end
@@ -73,6 +73,7 @@ pkipath application/pkix-pkipath
73
73
  pki application/pkixcmp base64
74
74
  pls application/pls+xml base64
75
75
  eps application/postscript 8bit
76
+ prql application/prql base64
76
77
  cw application/prs.cww base64
77
78
  rnd application/prs.nprend base64
78
79
  pskcxml application/pskc+xml base64
@@ -224,6 +225,7 @@ xbd application/vnd.fujixerox.docuworks.binder
224
225
  fzs application/vnd.fuzzysheet base64
225
226
  txd application/vnd.genomatix.tuxedo base64
226
227
  ggb application/vnd.geogebra.file base64
228
+ ggs application/vnd.geogebra.slides base64
227
229
  ggt application/vnd.geogebra.tool base64
228
230
  gex application/vnd.geometry-explorer base64
229
231
  gxt application/vnd.geonext base64
@@ -787,6 +789,7 @@ ics text/calendar
787
789
  css text/css 8bit
788
790
  csv text/csv 8bit
789
791
  html text/html 8bit
792
+ js text/javascript quoted-printable
790
793
  markdown text/markdown quoted-printable
791
794
  n3 text/n3 quoted-printable
792
795
  txt text/plain quoted-printable
@@ -121,6 +121,7 @@ chrt application/vnd.kde.kchart
121
121
  cif chemical/x-cif base64
122
122
  cii application/vnd.anser-web-certificate-issue-initiation base64
123
123
  cil application/vnd.ms-artgalry base64
124
+ cjs text/javascript quoted-printable
124
125
  cla application/vnd.claymore base64
125
126
  class application/octet-stream base64
126
127
  clkk application/vnd.crick.clicker.keyboard base64
@@ -312,6 +313,7 @@ gdl model/vnd.gdl
312
313
  geo application/vnd.dynageo base64
313
314
  gex application/vnd.geometry-explorer base64
314
315
  ggb application/vnd.geogebra.file base64
316
+ ggs application/vnd.geogebra.slides base64
315
317
  ggt application/vnd.geogebra.tool base64
316
318
  ghf application/vnd.groove-help base64
317
319
  gif image/gif base64
@@ -408,6 +410,7 @@ jad text/vnd.sun.j2me.app-descriptor
408
410
  jam application/vnd.jam base64
409
411
  jar application/java-archive base64
410
412
  java text/x-java-source quoted-printable
413
+ jfif image/jpeg base64
411
414
  jisp application/vnd.jisp base64
412
415
  jlt application/vnd.hp-jlyt base64
413
416
  jnlp application/x-java-jnlp-file base64
@@ -422,7 +425,7 @@ jpgm image/jpm
422
425
  jpgv video/JPEG base64
423
426
  jpm image/jpm base64
424
427
  jpx image/jpx base64
425
- js application/javascript 8bit
428
+ js text/javascript quoted-printable
426
429
  json application/json 8bit
427
430
  jsonml application/jsonml+json base64
428
431
  k25 image/x-kodak-k25 base64
@@ -521,7 +524,7 @@ mj2 video/MJ2
521
524
  mjp2 video/MJ2 base64
522
525
  mjpeg video/x-motion-jpeg base64
523
526
  mjpg video/x-motion-jpeg base64
524
- mjs application/javascript 8bit
527
+ mjs text/javascript quoted-printable
525
528
  mk3d video/x-matroska base64
526
529
  mka audio/x-matroska base64
527
530
  mkd text/markdown quoted-printable
@@ -724,6 +727,7 @@ pqa application/vnd.palm
724
727
  prc application/vnd.palm base64
725
728
  pre application/vnd.lotus-freelance base64
726
729
  prf application/pics-rules base64
730
+ prql application/prql base64
727
731
  ps application/postscript 8bit
728
732
  ps1 application/x-msdos-program base64
729
733
  psb application/vnd.3gpp.pic-bw-small base64