mini_mime 1.0.3 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +2 -0
- data/CHANGELOG +12 -0
- data/lib/db/content_type_mime.db +2 -0
- data/lib/db/ext_mime.db +2 -0
- data/lib/mini_mime/version.rb +1 -1
- data/lib/mini_mime.rb +2 -2
- data/mini_mime.gemspec +3 -3
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ca27284c4e5ea1ed0cb7168b4f607f9b990f51ab4359e84b2e885e728b076d
|
4
|
+
data.tar.gz: fcea561edc2c9a3be7b6755cdb43b0b3cde7f6c34090f6271daf1760fd8ced2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65b3456107b00dcb2891f5b86cb4c134a7bdd187043670edbd2f8a7c6c8034b66efd40a5fd2a56711b53bb34249c792d88315d04b59327a775ce5483294769e
|
7
|
+
data.tar.gz: 1d488dc9b02a5a871dc313ab72860813b2e7245f9e889896e8072afaa5e31592850baa21249424765d7047c043431f61836a76078fc7b1ecc195c4f68465f97d
|
data/.github/workflows/ci.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
11-10-2021
|
2
|
+
- Version 1.1.2
|
3
|
+
- update mime types from upstream
|
4
|
+
|
5
|
+
23-08-2021
|
6
|
+
- Version 1.1.1
|
7
|
+
- update mime types from upstream
|
8
|
+
|
9
|
+
05-04-2021
|
10
|
+
- Version 1.1.0
|
11
|
+
- MiniMime.lookup_by_extension is now case insensitive
|
12
|
+
|
1
13
|
26-03-2021
|
2
14
|
- Version 1.0.3
|
3
15
|
- Update mime types from upstream
|
data/lib/db/content_type_mime.db
CHANGED
@@ -35,6 +35,7 @@ jsonml application/jsonml+json
|
|
35
35
|
lostxml application/lost+xml base64
|
36
36
|
hqx application/mac-binhex40 8bit
|
37
37
|
mads application/mads+xml base64
|
38
|
+
webmanifest application/manifest+json base64
|
38
39
|
mrc application/marc base64
|
39
40
|
mrcx application/marcxml+xml base64
|
40
41
|
ma application/mathematica base64
|
@@ -811,6 +812,7 @@ si text/vnd.wap.si
|
|
811
812
|
sl text/vnd.wap.sl quoted-printable
|
812
813
|
wml text/vnd.wap.wml quoted-printable
|
813
814
|
wmls text/vnd.wap.wmlscript quoted-printable
|
815
|
+
vtt text/vtt quoted-printable
|
814
816
|
asm text/x-asm quoted-printable
|
815
817
|
c text/x-c quoted-printable
|
816
818
|
coffee text/x-coffescript 8bit
|
data/lib/db/ext_mime.db
CHANGED
@@ -1055,6 +1055,7 @@ vsf application/vnd.vsf
|
|
1055
1055
|
vss application/vnd.visio base64
|
1056
1056
|
vst application/vnd.visio base64
|
1057
1057
|
vsw application/vnd.visio base64
|
1058
|
+
vtt text/vtt quoted-printable
|
1058
1059
|
vtu model/vnd.vtu base64
|
1059
1060
|
vxml application/voicexml+xml base64
|
1060
1061
|
w3d application/x-director base64
|
@@ -1071,6 +1072,7 @@ wdp image/vnd.ms-photo
|
|
1071
1072
|
weba audio/webm base64
|
1072
1073
|
webapp application/x-web-app-manifest+json base64
|
1073
1074
|
webm audio/webm base64
|
1075
|
+
webmanifest application/manifest+json base64
|
1074
1076
|
webp image/webp base64
|
1075
1077
|
wg application/vnd.pmi.widget base64
|
1076
1078
|
wgt application/widget base64
|
data/lib/mini_mime/version.rb
CHANGED
data/lib/mini_mime.rb
CHANGED
@@ -56,14 +56,14 @@ module MiniMime
|
|
56
56
|
extension = File.extname(filename)
|
57
57
|
return if extension.empty?
|
58
58
|
extension = extension[1..-1]
|
59
|
-
extension.downcase!
|
60
59
|
lookup_by_extension(extension)
|
61
60
|
end
|
62
61
|
|
63
62
|
def self.lookup_by_extension(extension)
|
64
63
|
LOCK.synchronize do
|
65
64
|
@db ||= new
|
66
|
-
@db.lookup_by_extension(extension)
|
65
|
+
@db.lookup_by_extension(extension) ||
|
66
|
+
@db.lookup_by_extension(extension.downcase)
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
data/mini_mime.gemspec
CHANGED
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_development_dependency "bundler"
|
26
|
-
spec.add_development_dependency "rake"
|
27
|
-
spec.add_development_dependency "minitest"
|
25
|
+
spec.add_development_dependency "bundler"
|
26
|
+
spec.add_development_dependency "rake"
|
27
|
+
spec.add_development_dependency "minitest"
|
28
28
|
spec.add_development_dependency "rubocop"
|
29
29
|
spec.add_development_dependency "rubocop-discourse"
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_mime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
128
|
+
rubygems_version: 3.1.6
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: A lightweight mime type lookup toy
|