mime-types-data 3.2023.0218.1 → 3.2024.0604

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/Rakefile CHANGED
@@ -6,29 +6,30 @@ 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
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"]
31
- extra_dev_deps << ["psych", "~> 3.0"]
30
+ extra_dev_deps << ["nokogiri", "~> 1.6"]
31
+ extra_dev_deps << ["rake", ">= 10.0", "< 14"]
32
+ extra_dev_deps << ["standard", "~> 1.0"]
32
33
  end
33
34
 
34
35
  $LOAD_PATH.unshift "lib"
@@ -36,7 +37,7 @@ $LOAD_PATH.unshift "support"
36
37
 
37
38
  def new_version
38
39
  version =
39
- IO.read("lib/mime/types/data.rb").scan(/VERSION = ['"](\d\.\d{4}\.\d{4})['"]/).flatten.first
40
+ IO.read("lib/mime/types/data.rb").scan(/VERSION = ['"](\d\.\d{4}\.\d{4}(?:\.\d+)?)['"]/).flatten.first
40
41
 
41
42
  major = Gem::Version.new(version).canonical_segments.first
42
43
  minor = Date.today.strftime("%Y.%m%d")
@@ -74,6 +75,19 @@ namespace :release do
74
75
  }
75
76
  end
76
77
 
78
+ desc "Prepare a new release for use with GitHub Actions"
79
+ task :gha do
80
+ require "prepare_release"
81
+
82
+ pr = PrepareRelease.new
83
+ pr.download_and_convert
84
+ pr.write_updated_version
85
+ pr.write_updated_history
86
+ pr.rake_git_manifest
87
+ pr.rake_gemspec
88
+ pr.as_gha_vars
89
+ end
90
+
77
91
  desc "Prepare a new automatic release"
78
92
  task automatic: :__pull do
79
93
  if system("git diff --quiet --exit-code") == false
@@ -89,29 +103,29 @@ end
89
103
  namespace :convert do
90
104
  namespace :yaml do
91
105
  desc "Convert from YAML to JSON"
92
- task :json, [:source, :destination, :multiple_files] => :support do |_, args|
106
+ task :json, [:source, :destination, :multiple_files] do |_, args|
93
107
  require "convert"
94
- Convert.from_yaml_to_json(args)
108
+ Convert.from_yaml_to_json(from: args.source, to: args.destination, multiple_files: args.multiple_files)
95
109
  end
96
110
 
97
111
  desc "Convert from YAML to Columnar"
98
- task :columnar, [:source, :destination] => :support do |_, args|
112
+ task :columnar, [:source, :destination] do |_, args|
99
113
  require "convert/columnar"
100
- Convert::Columnar.from_yaml_to_columnar(args)
114
+ Convert::Columnar.from_yaml_to_columnar(from: args.source, to: args.destination)
101
115
  end
102
116
 
103
117
  desc "Convert from YAML to mini_mime db format"
104
- task :mini_mime, [:source, :destination] => :support do |_, args|
118
+ task :mini_mime, [:source, :destination] do |_, args|
105
119
  require "convert/mini_mime_db"
106
- Convert::MiniMimeDb.from_yaml_to_mini_mime(args)
120
+ Convert::MiniMimeDb.from_yaml_to_mini_mime(from: args.source, to: args.destination)
107
121
  end
108
122
  end
109
123
 
110
124
  namespace :json do
111
125
  desc "Convert from JSON to YAML"
112
- task :yaml, [:source, :destination, :multiple_files] => :support do |_, args|
126
+ task :yaml, [:source, :destination, :multiple_files] do |_, args|
113
127
  require "convert"
114
- Convert.from_json_to_yaml(args)
128
+ Convert.from_json_to_yaml(from: args.source, to: args.destination, multiple_files: args.multiple_files)
115
129
  end
116
130
  end
117
131
  end
@@ -138,7 +152,7 @@ namespace :update do
138
152
  - Updated the Apache and IANA media registry entries as of release date.
139
153
  NOTE
140
154
 
141
- updated = history.sub(/<!-- automatic-release -->\n/, note)
155
+ updated = history.sub("<!-- automatic-release -->\n", note)
142
156
 
143
157
  IO.write("History.md", updated)
144
158
  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
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
@@ -475,6 +477,7 @@ m14 application/x-msmediaview
475
477
  m1v video/mpeg base64
476
478
  m21 application/mp21 base64
477
479
  m2a audio/mpeg base64
480
+ m2t video/MP2T base64
478
481
  m2ts video/MP2T base64
479
482
  m2v video/mpeg base64
480
483
  m3a audio/mpeg base64
@@ -725,6 +728,7 @@ pqa application/vnd.palm
725
728
  prc application/vnd.palm base64
726
729
  pre application/vnd.lotus-freelance base64
727
730
  prf application/pics-rules base64
731
+ prql application/prql base64
728
732
  ps application/postscript 8bit
729
733
  ps1 application/x-msdos-program base64
730
734
  psb application/vnd.3gpp.pic-bw-small base64