mimemagic 0.3.10 → 0.4.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bea73bdcae338c252c11c8277843f7eb8dc44973bd5914d7196dba814c0bb857
4
- data.tar.gz: 6896a7a176e4adb7d4d27b8f99680176511d0c0db910fa339b20333adf394f78
3
+ metadata.gz: 2abd4f41baffb732279942648c4ad82c4d335f7c77c804c41a689336fb534e83
4
+ data.tar.gz: 9e4c8ed64398d1b07a817cca407b39baa585aabe68ee842fcd65a5ec8763cb23
5
5
  SHA512:
6
- metadata.gz: d1a8cad78a3938f61c11e9e8f8ab751db7e02f6f778f4128a215b186f71836ecf2169e81133f1cd5f6171214108ca46526ab161edc618127983fe92c51847546
7
- data.tar.gz: 1e5bc77bb41ec5b3be0d19c7f1d8883e5e313df1b1035b6429c05eb7082f33323cdf48152be3f400853e3bbf0dc5b40c7ace4ffec50a39006d2494ea9835a10a
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.3.10
25
+ ## 0.4.2
22
26
 
23
- * Improve the development/test experience (@coldnebo, @kachick)
27
+ * Resolve issues parsing the version of freedesktop.org.xml shipped with
28
+ Ubuntu Trusty.
24
29
 
25
- * Ensure the gem works in environments with gem caching (@haines)
30
+ * Make Rake a runtime dependency.
26
31
 
27
- * Add support for MacPorts installed dependencies (@brlanier)
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
@@ -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 = nil
35
- if ENV["USE_FREEDESKTOP_PLACEHOLDER"] == "true"
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|
@@ -1,5 +1,5 @@
1
1
  class MimeMagic
2
2
  # MimeMagic version string
3
3
  # @api public
4
- VERSION = '0.3.10'
4
+ VERSION = '0.4.3'
5
5
  end
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.10
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
@@ -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