mime-types-data 3.2025.0402 → 3.2025.0520

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.
data/Manifest.txt CHANGED
@@ -16,6 +16,7 @@ data/mime.encoding.column
16
16
  data/mime.flags.column
17
17
  data/mime.friendly.column
18
18
  data/mime.pext.column
19
+ data/mime.spri.column
19
20
  data/mime.use_instead.column
20
21
  data/mime.xrefs.column
21
22
  lib/mime-types-data.rb
data/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  - home :: https://github.com/mime-types/mime-types-data/
4
4
  - issues :: https://github.com/mime-types/mime-types-data/issues
5
5
  - code :: https://github.com/mime-types/mime-types-data/
6
- - changelog :: https://github.com/mime-types/mime-types-data/blob/main/CHANGELOG.md
6
+ - changelog ::
7
+ https://github.com/mime-types/mime-types-data/blob/main/CHANGELOG.md
7
8
 
8
9
  ## Description
9
10
 
@@ -20,7 +21,8 @@ provided in mime-types-data contains detailed information about MIME entities.
20
21
  There are many types defined by RFCs and vendors, so the list is long but
21
22
  invariably; don't hesitate to offer additional type definitions for
22
23
  consideration. MIME type definitions found in mime-types are from RFCs, W3C
23
- recommendations, the [IANA Media Types registry][registry], and user
24
+ recommendations, the [IANA Media Types registry][registry], the
25
+ [Apache httpd registry][httpd], the [Apache Tika media registry][tika] and user
24
26
  contributions. It conforms to RFCs 2045 and 2231.
25
27
 
26
28
  ### Data Formats Supported in this Registry
@@ -51,17 +53,19 @@ This registry contains the MIME media types in four formats:
51
53
 
52
54
  ## mime-types-data Modified Semantic Versioning
53
55
 
54
- mime-types-data uses a heavily modified [Semantic Versioning][semver] scheme to
55
- indicate that the data formats compatibility based on a `SCHEMA` version and the
56
- date of the data update: `SCHEMA.YEAR.MONTHDAY`.
56
+ mime-types-data uses a [Semantic Versioning][semver] scheme heavily modified
57
+ with [Calendar Versioning][calver] aspects to indicate that the data formats
58
+ compatibility based on a `SCHEMA` version and the date of the data update:
59
+ `SCHEMA.YEAR.MONTHDAY`.
57
60
 
58
61
  1. If an incompatible data format change is made to any of the supported
59
62
  formats, `SCHEMA` will be incremented. The current `SCHEMA` is 3, supporting
60
- the YAML, JSON, and columnar formats required for Ruby mime-types 3.0.
63
+ the YAML, JSON, columnar, and mini-mime formats required for Ruby mime-types
64
+ 3.0.
61
65
 
62
66
  2. When the data is updated, the `YEAR.MONTHDAY` combination will be updated. An
63
- update on the last day of October 2015 would be written as `2015.1031`,
64
- resulting in the full version of `3.2015.1031`.
67
+ update on the last day of October 2025 would be written as `2025.1031`,
68
+ resulting in the full version of `3.2025.1031`.
65
69
 
66
70
  3. If multiple versions of the data need to be released on the same day due to
67
71
  error, there will be an additional `REVISION` field incremented on the end of
@@ -69,6 +73,9 @@ date of the data update: `SCHEMA.YEAR.MONTHDAY`.
69
73
  2015, the last release would be `3.2015.1031.2` (remember that the first
70
74
  release has an implied `0`.)
71
75
 
72
- [registry]: https://www.iana.org/assignments/media-types/media-types.xhtml
76
+ [registry]: https://www.iana.org/assignments/media-types/media-types.xml
73
77
  [semver]: http://semver.org/
74
78
  [minimime]: https://github.com/discourse/mini_mime
79
+ [httpd]: https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
80
+ [tika]: https://github.com/apache/tika/blob/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
81
+ [calver]: https://calver.org
data/Rakefile CHANGED
@@ -4,8 +4,7 @@ require "rubygems"
4
4
  require "hoe"
5
5
  require "rake/clean"
6
6
 
7
- $LOAD_PATH.unshift("lib")
8
- $LOAD_PATH.unshift("support")
7
+ $LOAD_PATH.unshift("lib", "support")
9
8
 
10
9
  Hoe.plugin :halostatue
11
10
 
@@ -29,7 +28,7 @@ Hoe.spec "mime-types-data" do
29
28
 
30
29
  extra_dev_deps << ["hoe", "~> 4.0"]
31
30
  extra_dev_deps << ["hoe-halostatue", "~> 2.0"]
32
- extra_dev_deps << ["mime-types", ">= 3.4.0", "< 4"]
31
+ extra_dev_deps << ["mime-types", "> 3.6.2", "< 5"]
33
32
  extra_dev_deps << ["nokogiri", "~> 1.6"]
34
33
  extra_dev_deps << ["rake", ">= 10.0", "< 14"]
35
34
  extra_dev_deps << ["standard", "~> 1.0"]
@@ -42,11 +41,17 @@ namespace :mime do
42
41
  IANARegistry.download(to: args.destination)
43
42
  end
44
43
 
45
- desc "Download the current MIME type configuration from Apache."
44
+ desc "Download the current MIME type configuration from Apache httpd."
46
45
  task :apache, [:destination] do |_, args|
47
46
  require "apache_mime_types"
48
47
  ApacheMIMETypes.download(to: args.destination)
49
48
  end
49
+
50
+ desc "Download the current MIME type configuration from Apache Tika."
51
+ task :tika, [:destination] do |_, args|
52
+ require "tika_mime_types"
53
+ TikeMIMETypes.download(to: args.destination)
54
+ end
50
55
  end
51
56
 
52
57
  task :version do
@@ -81,13 +86,18 @@ namespace :release do
81
86
  end
82
87
  end
83
88
 
84
- desc "Default conversion from YAML to JSON and Columnar"
89
+ desc "Full data conversion for release"
85
90
  task :convert do
86
91
  require "prepare_release"
87
92
 
88
93
  PrepareRelease.new.convert_types
89
94
  end
90
95
 
96
+ task "convert:upgrade" do
97
+ require "convert"
98
+ Convert.from_yaml_to_yaml
99
+ end
100
+
91
101
  Rake::Task["gem"].prerequisites.unshift("convert")
92
102
  Rake::Task["gem"].prerequisites.unshift("git:manifest")
93
103
  Rake::Task["gem"].prerequisites.unshift("gemspec")