mime-types-data 3.2025.0507.pre1 → 3.2025.0514

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/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
@@ -28,7 +28,7 @@ Hoe.spec "mime-types-data" do
28
28
 
29
29
  extra_dev_deps << ["hoe", "~> 4.0"]
30
30
  extra_dev_deps << ["hoe-halostatue", "~> 2.0"]
31
- extra_dev_deps << ["mime-types", ">= 3.7.0.pre2", "< 4"]
31
+ extra_dev_deps << ["mime-types", "> 3.6.2", "< 5"]
32
32
  extra_dev_deps << ["nokogiri", "~> 1.6"]
33
33
  extra_dev_deps << ["rake", ">= 10.0", "< 14"]
34
34
  extra_dev_deps << ["standard", "~> 1.0"]
@@ -41,11 +41,17 @@ namespace :mime do
41
41
  IANARegistry.download(to: args.destination)
42
42
  end
43
43
 
44
- desc "Download the current MIME type configuration from Apache."
44
+ desc "Download the current MIME type configuration from Apache httpd."
45
45
  task :apache, [:destination] do |_, args|
46
46
  require "apache_mime_types"
47
47
  ApacheMIMETypes.download(to: args.destination)
48
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
49
55
  end
50
56
 
51
57
  task :version do