mimetype-xml 1.2.3 → 1.2.4
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 +4 -4
- data/README.md +1 -1
- data/lib/mimetype_xml.rb +1 -1
- data/lib/mimetype_xml/install.rb +1 -1
- data/lib/mimetype_xml/xml.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f7ba1f1034886fb14c014024e828f7f8cf2beb
|
4
|
+
data.tar.gz: 0e6f7eee5ab3481f1bbb611661ba888c3f9ff0c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0f8c48736d32e2706a9a293c060ab1081e98b1a4921577799a6fc191c0422806baf1589f86f444648f22c42bf8bd8db207e5291e5498e9c3f4718ba10bf1d9b
|
7
|
+
data.tar.gz: fa31c6ab899f7d4e3462cd6f05e9c388b0d3efe198d10bb1663c04e0fc7f727d9b81fd3af8b0836d1b918693968cb12c171fac796867e6b347c762aa174edaad
|
data/README.md
CHANGED
@@ -58,7 +58,7 @@ require 'toml' # `toml` comes with this gem (`mimetype_xml`)
|
|
58
58
|
|
59
59
|
xml = MimetypeXML::Generate.toml_file(
|
60
60
|
:file => './custom-mime.toml', # The location of the TOML config
|
61
|
-
:xml_dir => '/usr/share/mime/
|
61
|
+
:xml_dir => '/usr/share/mime/packages/', # Make sure the dir is writable for the user, run `sudo chmod 777 /usr/share/mime/packages/`
|
62
62
|
:icon_pack => '~/.icons/YOUR_ICON_PACK' # Replace this with the install dir of your iconpack
|
63
63
|
)
|
64
64
|
|
data/lib/mimetype_xml.rb
CHANGED
@@ -6,7 +6,7 @@ require_relative 'mimetype_xml/xml'
|
|
6
6
|
require_relative 'mimetype_xml/generate'
|
7
7
|
|
8
8
|
module MimetypeXML
|
9
|
-
VERSIONS = { :major => 1, :minor => 2, :tiny =>
|
9
|
+
VERSIONS = { :major => 1, :minor => 2, :tiny => 4 }
|
10
10
|
|
11
11
|
def self.version *args
|
12
12
|
VERSIONS.flatten.select.with_index { |val, i| i.odd? }.join '.'
|
data/lib/mimetype_xml/install.rb
CHANGED
data/lib/mimetype_xml/xml.rb
CHANGED
@@ -47,7 +47,7 @@ module MimetypeXML
|
|
47
47
|
files = files_hash
|
48
48
|
|
49
49
|
files.each do |file, contents|
|
50
|
-
bare
|
50
|
+
bare = contents.split("\n").map(&:strip).join("\n").squeeze("\n")
|
51
51
|
File.open("#{@dir}/#{file}", 'w') { |f| f.write bare }
|
52
52
|
end
|
53
53
|
|