mimemagic 0.3.10 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -7
- data/ext/mimemagic/Rakefile +2 -17
- data/lib/mimemagic/version.rb +1 -1
- metadata +1 -2
- data/lib/mimemagic/overlay.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2abd4f41baffb732279942648c4ad82c4d335f7c77c804c41a689336fb534e83
|
4
|
+
data.tar.gz: 9e4c8ed64398d1b07a817cca407b39baa585aabe68ee842fcd65a5ec8763cb23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ee087aa96e55b4c3d681eedecb06e6bcbe190ea8e36fb2968f02c8470c362bac64a983b13e4f1939efaa16e5969d59642f00dfc1f93e54e75ec1da277f8f066
|
7
|
+
data.tar.gz: 76833f505773b7e823f34b5334401185850a80fc9029d39ef09c0bf6a6ca3a306450ecc247f2bc343093dd4654931a532122c7ec5e7248746fa18481a21255ff
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@
|
|
4
4
|
|
5
5
|
### Breaking Changes
|
6
6
|
|
7
|
+
## 0.4.1
|
8
|
+
|
9
|
+
Remove `mimemagic/overlay` as it contains outdated, little used, data.
|
10
|
+
|
7
11
|
## 0.3.7 (2021-03-25)
|
8
12
|
|
9
13
|
You will now need to ensure you have a copy of the fd.o shared MIME
|
@@ -18,17 +22,25 @@ None
|
|
18
22
|
|
19
23
|
None
|
20
24
|
|
21
|
-
## 0.
|
25
|
+
## 0.4.2
|
22
26
|
|
23
|
-
*
|
27
|
+
* Resolve issues parsing the version of freedesktop.org.xml shipped with
|
28
|
+
Ubuntu Trusty.
|
24
29
|
|
25
|
-
*
|
30
|
+
* Make Rake a runtime dependency.
|
26
31
|
|
27
|
-
*
|
32
|
+
* Fix the test suite.
|
33
|
+
|
34
|
+
* Relax the dependency on Nokogiri to something less specific in order
|
35
|
+
to avoid conflicting with other dependencies in people's applications.
|
36
|
+
|
37
|
+
## 0.4.1
|
38
|
+
|
39
|
+
|
40
|
+
## 0.4.0
|
41
|
+
|
42
|
+
Yanked release.
|
28
43
|
|
29
|
-
* Allow using a dummy XML file in cases where the gem is just a transient
|
30
|
-
dependency. (@Scharrels)
|
31
|
-
|
32
44
|
## 0.3.9 (2021-03-25)
|
33
45
|
|
34
46
|
* Resolve issues parsing the version of freedesktop.org.xml shipped with
|
data/ext/mimemagic/Rakefile
CHANGED
@@ -18,28 +18,13 @@ def locate_mime_database
|
|
18
18
|
Ensure you have either installed the shared-mime-info package for your distribution, or
|
19
19
|
obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
|
20
20
|
of that file.
|
21
|
-
|
22
|
-
This gem might be installed as a dependency of some bigger package, such as rails, activestorage,
|
23
|
-
axlsx or cucumber. While most of these packages use the functionality of this gem, some gems have
|
24
|
-
included this gem by accident. Set USE_FREEDESKTOP_PLACEHOLDER=true if you are certain that you
|
25
|
-
do not need this gem, and wish to skip the inclusion of freedesktop.org.xml.
|
26
|
-
|
27
|
-
The FREEDESKTOP_PLACEHOLDER option is meant as a transitional feature, and will be deprecated in
|
28
|
-
the next release.
|
29
21
|
ERROR
|
30
22
|
end
|
31
23
|
|
32
24
|
desc "Build a file pointing at the database"
|
33
25
|
task :default do
|
34
|
-
mime_database_path =
|
35
|
-
|
36
|
-
File.write("../../dummy.xml", "")
|
37
|
-
mime_database_path = File.expand_path("../../dummy.xml")
|
38
|
-
else
|
39
|
-
mime_database_path = locate_mime_database
|
40
|
-
end
|
41
|
-
|
42
|
-
target_dir = "#{ENV.fetch("RUBYARCHDIR", "../lib")}/mimemagic"
|
26
|
+
mime_database_path = locate_mime_database
|
27
|
+
target_dir = "#{ENV.fetch("RUBYARCHDIR")}/mimemagic"
|
43
28
|
mkdir_p target_dir
|
44
29
|
|
45
30
|
open("#{target_dir}/path.rb", "w") do |f|
|
data/lib/mimemagic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mimemagic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Mendler
|
@@ -73,7 +73,6 @@ files:
|
|
73
73
|
- Rakefile
|
74
74
|
- ext/mimemagic/Rakefile
|
75
75
|
- lib/mimemagic.rb
|
76
|
-
- lib/mimemagic/overlay.rb
|
77
76
|
- lib/mimemagic/tables.rb
|
78
77
|
- lib/mimemagic/version.rb
|
79
78
|
- mimemagic.gemspec
|
data/lib/mimemagic/overlay.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Extra magic
|
3
|
-
|
4
|
-
[['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0, "PK\003\004", [[0..5000, '[Content_Types].xml', [[0..5000, 'ppt/']]]]]]],
|
5
|
-
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', [[0, "PK\003\004", [[0..5000, '[Content_Types].xml', [[0..5000, 'xl/']]]]]]],
|
6
|
-
['application/vnd.openxmlformats-officedocument.wordprocessingml.document', [[0, "PK\003\004", [[0..5000, '[Content_Types].xml', [[0..5000, 'word/']]]]]]]].each do |magic|
|
7
|
-
MimeMagic.add(magic[0], magic: magic[1])
|
8
|
-
end
|