mimetype-xml 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb40f890e3dc197044e6987e83d02154b08c08ce
4
- data.tar.gz: 2cf4b31534b7dc77a5408277f8f8780d3a3b73aa
3
+ metadata.gz: b5f7ba1f1034886fb14c014024e828f7f8cf2beb
4
+ data.tar.gz: 0e6f7eee5ab3481f1bbb611661ba888c3f9ff0c3
5
5
  SHA512:
6
- metadata.gz: 3f1c9da292e760ba06908894f4f5e351dd34ad1d6e6e08f8dfd836e68fca9ef754852297855c798c358e0895573ca79b89759ea7ec2519caef42194848865fd9
7
- data.tar.gz: 2667203b4c8ab8ad877490541f281b1c904a8621859688dee475855e9db791f88a8f84a0cbe2db400eb3efb93f596016ebd1801635b133d1d419e06b36b1559f
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/package', # Make sure the dir is writable for the user, run `sudo chmod 777 /usr/share/mime/package/`
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
 
@@ -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 => 3 }
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 '.'
@@ -17,7 +17,7 @@ module MimetypeXML
17
17
  #end
18
18
 
19
19
  Dir[@xml_dir + '/*.xml'].each do |file|
20
- %x{ xdg-mime install #{file} }
20
+ %x{ xdg-mime install #{file} 2>/dev/null 2>/dev/null }
21
21
  end
22
22
 
23
23
  end
@@ -47,7 +47,7 @@ module MimetypeXML
47
47
  files = files_hash
48
48
 
49
49
  files.each do |file, contents|
50
- bare = contents.split("\n").map(&:rstrip).join("\n")
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mimetype-xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Demonstrandum