mime-types-data 3.2022.0105 → 3.2023.1003

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 329d601098ccd4e2d3978e6e323230a2ae19d2349f869711d899207c19b16994
4
- data.tar.gz: 1dedab8c410c72bb0c84cb089000b87003a026ac109b9bf7cac165b102720fac
3
+ metadata.gz: e9bd8d654ca21cd35049714f89a4f480c0285f9dfbdca43ea7f0ec30ac26ffc3
4
+ data.tar.gz: 60d1a83b6955d6aedfdd8ae7327af68902c9b8f06f0017bbf6478840ae23772d
5
5
  SHA512:
6
- metadata.gz: 1c2c164f48716aebc3caed14a571f783aea3397cb218b6bc494c960561304a593a8e13c7f6362e1d9abd900c3c6b7752fa2cc8bdae6fb41681178fa3186dddbe
7
- data.tar.gz: 3272473043d3359581c716e0fff76225219302573f7a1c31c7755b6fce7a4ad40aa0f183889e55f61fb043133562ba2e682b214cb2843df5340bc5ad50b3b8a3
6
+ metadata.gz: 8d4ec3d423ae7de41ac5a0127656ee5f5d7edf395b23d050167027c3dad9fd966cc7f7a34855071e2409724b6e6a222372a156ea30941fe7515e267ccadd658f
7
+ data.tar.gz: 68865589a8f1b781b8f1ae08e479d09a2336d8c499624b21030acd5b01c4ec04922448a4b831be487b7c8af4438a04973ae9f797d7934710e3043ad5cfb2b58b
data/Contributing.md CHANGED
@@ -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
data/History.md CHANGED
@@ -2,29 +2,74 @@
2
2
 
3
3
  <!-- automatic-release -->
4
4
 
5
+ ## 3.2023.1003 / 2023-10-03
6
+
7
+ - - Updated the Apache and IANA media registry entries as of release date
8
+
9
+ ## 3.2023.0905 / 2023-09-05
10
+
11
+ - - Updated the Apache and IANA media registry entries as of release date
12
+
13
+ ## 3.2023.0808 / 2023-08-08
14
+
15
+ - - Updated the Apache and IANA media registry entries as of release date
16
+
17
+ ## 3.2023.0218.1 / 2023-02-18
18
+
19
+ - When this data library was created in 2015, I made the decision based on
20
+ information available to deprecate `text/javascript` in favour of
21
+ `application/javascript`. Since the previous update (2022-01-05), IANA has
22
+ officially deprecated `application/javascript` in favour of
23
+ `text/javascript`. Samuel Williams discovered this in [#55][] by noting
24
+ that all `js` types were marked obsolete in version 3.2023.0218.
25
+
26
+ A hotfix has been applied to resolve this. However, note that
27
+ `application/javascript` will not be returned by default, only
28
+ `text/javascript`.
29
+
30
+ ## 3.2023.0218 / 2023-02-18
31
+
32
+ - Updated the Apache and IANA media registry entries as of release date.
33
+
34
+ - Mohammed Gad added the `jfif` file extension for `image/jpeg` text format.
35
+ [#52][]
36
+
37
+ - Reworked the loading of IANA provisional media registries to merge them
38
+ into the top-level media-type registries instead of a standalone registry
39
+ file. [#53][] originally identified by Chris Salzberg in [#50][].
40
+
41
+ It is worth noting that this is an _imperfect_ solution as if a media type
42
+ is provisionally registered and withdrawn, it will linger in the registry
43
+ with no clean way of identifying them at the moment. See [#54][].
44
+
45
+ This release also fixes [ruby-mime-types#163][], where logs show "Type
46
+ application/netcdf is already registered as a variant of
47
+ application/netcdf".
48
+
5
49
  ## 3.2022.0105 / 2022-01-05
6
50
 
7
51
  - Updated the Apache and IANA media registry entries as of release date.
8
52
 
9
- - Fixed an incorrect definition of `image/bmp`, which had been marked obsolete
10
- and later registered. Fixed [#48], found by William T. Nelson.
53
+ - Fixed an incorrect definition of `image/bmp`, which had been marked
54
+ obsolete and later registered. Fixed [#48][], found by William T. Nelson.
11
55
 
12
56
  ## 3.2021.1115 / 2021-11-15
13
57
 
14
58
  - Updated the Apache and IANA media registry entries as of release date.
15
59
 
16
60
  - Added conversion utilities that support the `mini_mime` data format. These
17
- have been ported from the [mini_mime] repository. [#47]
61
+ have been ported from the [mini_mime][] repository. [#47][]
18
62
 
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]
63
+ - Added IANA provisional media registries. Added some notes to
64
+ Contributing.md about the transient nature of the provisional registration
65
+ data. This was triggered in part by a pull request by Jon Sneyers. Thanks!
66
+ [#45][], [#43][]
22
67
 
23
68
  ## 3.2021.0901 / 2021-09-01
24
69
 
25
70
  - Updated the Apache and IANA media registry entries as of release date.
26
71
 
27
- - Added file extension for WebVTT text format. [#46]
72
+ - Added file extension for WebVTT text format. [#46][]
28
73
 
29
74
  ## 3.2021.0704 / 2021-07-04
30
75
 
@@ -34,82 +79,82 @@
34
79
 
35
80
  - Updated the Apache and IANA media registry entries as of release date.
36
81
 
37
- - Added file extension for AVIF video format. [#40]
82
+ - Added file extension for AVIF video format. [#40][]
38
83
 
39
84
  ## 3.2021.0212 / 2021-02-12
40
85
 
41
86
  - Updated the IANA media registry entries as of release date.
42
87
 
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.
88
+ - Added a new rake task (`release:automatic`) that downloads and converts
89
+ the data from Apache and IANA; if there are changes detected, it updates
90
+ the release version, changelog, manifest, and gemspec and commits the
91
+ changes to git.
47
92
 
48
93
  ## 3.2020.1104 / 2020-11-04
49
94
 
50
95
  - Updated the IANA media registry entries as of release date.
51
96
 
52
- - Added `application/x-zip-compressed`. [#36]
97
+ - Added `application/x-zip-compressed`. [#36][]
53
98
 
54
99
  - Updated the contributing guide to include information about the release
55
- process as described in [#18]
100
+ process as described in [#18][]
56
101
 
57
- - Corrected a misspelling of Yoran Brondsema’s name. Sorry, Yoran. [#35]
102
+ - Corrected a misspelling of Yoran Brondsema’s name. Sorry, Yoran. [#35][]
58
103
 
59
104
  ## 3.2020.0512 / 2020-05-12
60
105
 
61
106
  - Updated the IANA media registry entries as of release date.
62
107
 
63
- - Added file extensions for HEIC image types. [#34]
108
+ - Added file extensions for HEIC image types. [#34][]
64
109
 
65
110
  ## 3.2020.0425 / 2020-04-25
66
111
 
67
112
  - Updated the IANA media registry entries as of release date.
68
113
 
69
114
  - Added several RAW image types based on data from GNOME RAW Thumbnailer.
70
- [#33] fixing [#32]
115
+ [#33][] fixing [#32][]
71
116
 
72
- - Added `audio/wav`. [#31]
117
+ - Added `audio/wav`. [#31][]
73
118
 
74
- - Added a type for Smarttech notebook files. [#30]
119
+ - Added a type for Smarttech notebook files. [#30][]
75
120
 
76
- - Added an alias for audio/m4a files. [#29]
121
+ - Added an alias for audio/m4a files. [#29][]
77
122
 
78
- - Added application/x-ms-dos-executable. [#28]
123
+ - Added application/x-ms-dos-executable. [#28][]
79
124
 
80
125
  ## 3.2019.1009 / 2019-10-09
81
126
 
82
127
  - Updated the IANA media registry entries as of release date.
83
128
 
84
- - Reordered the `.ai` extension so that it is not the preferred extension for
85
- `application/pdf` [#24]
129
+ - Reordered the `.ai` extension so that it is not the preferred extension
130
+ for `application/pdf` [#24][]
86
131
 
87
132
  ## 3.2019.0904 / 2019-09-04
88
133
 
89
134
  - Updated the IANA media registry entries as of release date.
90
135
 
91
- - Moved the `.ai` extension from `application/postscript` to `application/pdf`.
92
- [#23] fixing [#22]
136
+ - Moved the `.ai` extension from `application/postscript` to
137
+ `application/pdf`. [#23][] fixing [#22][]
93
138
 
94
139
  ## 3.2019.0331 / 2019-03-31
95
140
 
96
141
  - Updated the IANA media registry entries as of release date.
97
142
 
98
- - Added support for `application/wasm` with extension `.wasm`. [#21]
143
+ - Added support for `application/wasm` with extension `.wasm`. [#21][]
99
144
 
100
- - Fixed `application/ecmascript` extensions. [#20]
145
+ - Fixed `application/ecmascript` extensions. [#20][]
101
146
 
102
147
  ## 3.2018.0812 / 2018-08-12
103
148
 
104
- - Added `.xsd` extension to `text/xml`. [#10]
149
+ - Added `.xsd` extension to `text/xml`. [#10][]
105
150
 
106
151
  - Added `.js` and `.mjs` extensions to `text/ecmascript` and
107
- `text/javascript`. [#11]
152
+ `text/javascript`. [#11][]
108
153
 
109
- - Added `.ipa` extension to `application/octet-stream`. [#12]
154
+ - Added `.ipa` extension to `application/octet-stream`. [#12][]
110
155
 
111
156
  - Moved extensions `.markdown` and `.md` and added `.mkd` extension to
112
- `text/markdown`. [#13]
157
+ `text/markdown`. [#13][]
113
158
 
114
159
  - Because of a bug found with mime-types 3 before 3.2.1, this version
115
160
  requires mime-types 3.1 or later to manage data.
@@ -182,7 +227,8 @@
182
227
 
183
228
  - Extracted from [ruby-mime-types][rmt].
184
229
  - Added a [Code of Conduct].
185
- - The versioning has changed to be semantic on format plus date in two parts.
230
+ - The versioning has changed to be semantic on format plus date in two
231
+ parts.
186
232
 
187
233
  - All registry formats have been updated to remove deprecated data.
188
234
  - The columnar format has been updated to store three boolean flags in a
@@ -224,8 +270,7 @@
224
270
  ## 2.6 / 2015-05-25
225
271
 
226
272
  - 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).
273
+ to application/font-woff, [ruby-mime-types#99][].
229
274
  - Updated the IANA media registry entries as of release date:
230
275
  - Updated metadata for application/jose, application/jose+json,
231
276
  application/jwk+json, application/jwk-set+json, application/jwt to
@@ -497,6 +542,13 @@
497
542
  [#46]: https://github.com/mime-types/mime-types-data/pull/46
498
543
  [#47]: https://github.com/mime-types/mime-types-data/pull/47
499
544
  [#48]: https://github.com/mime-types/mime-types-data/issues/48
545
+ [#50]: https://github.com/mime-types/mime-types-data/pull/50
546
+ [#52]: https://github.com/mime-types/mime-types-data/pull/52
547
+ [#53]: https://github.com/mime-types/mime-types-data/pull/53
548
+ [#54]: https://github.com/mime-types/mime-types-data/issues/54
549
+ [#55]: https://github.com/mime-types/mime-types-data/issues/55
500
550
  [rmt]: https://github.com/mime-types/ruby-mime-types
501
551
  [code of conduct]: Code-of-Conduct.md
502
552
  [mini_mime]: https://github.com/discourse/mini_mime/issues/41
553
+ [ruby-mime-types#99]: https://github.com/mime-types/ruby-mime-types/pull/99
554
+ [ruby-mime-types#163]: https://github.com/mime-types/ruby-mime-types/issues/163
data/Manifest.txt CHANGED
@@ -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
data/Rakefile CHANGED
@@ -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
@@ -224,6 +224,7 @@ xbd application/vnd.fujixerox.docuworks.binder
224
224
  fzs application/vnd.fuzzysheet base64
225
225
  txd application/vnd.genomatix.tuxedo base64
226
226
  ggb application/vnd.geogebra.file base64
227
+ ggs application/vnd.geogebra.slides base64
227
228
  ggt application/vnd.geogebra.tool base64
228
229
  gex application/vnd.geometry-explorer base64
229
230
  gxt application/vnd.geonext base64
@@ -787,6 +788,7 @@ ics text/calendar
787
788
  css text/css 8bit
788
789
  csv text/csv 8bit
789
790
  html text/html 8bit
791
+ js text/javascript quoted-printable
790
792
  markdown text/markdown quoted-printable
791
793
  n3 text/n3 quoted-printable
792
794
  txt text/plain quoted-printable
data/data/ext_mime.db CHANGED
@@ -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