imagetools 0.5.0 → 0.6.0
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/.ruby-version +1 -0
- data/Gemfile.lock +2 -2
- data/appicon.png +0 -0
- data/lib/imagetools/iconextractor.rb +2 -4
- data/lib/imagetools/imagefilter.rb +1 -1
- data/lib/imagetools/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a27626f9fa56e75b65761b2144b1305ed25edd892b1bbfcd10807b199d3f6a19
|
|
4
|
+
data.tar.gz: 4a359005ed0cef5b0705637fad3a98f487924819159cfec45dbba57f59055525
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07b1595e3f58b96c3614e1fa0c65f96efb00e13a90f3fe8dcd3ae5b65c4e537ee8e4ad03244797805776c4364b2b39505b0276f138f809be020b6dcd0f39b175
|
|
7
|
+
data.tar.gz: 647150aa2b37e10d8eb653b1f709a7a9dd0d3373805c4be7b1b1b8ffa124642b92f309e61cf8cd2b545b0592352d7380d2c86ce4761eb7f7fc0a45e506bbbb93
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.5.3
|
data/Gemfile.lock
CHANGED
data/appicon.png
CHANGED
|
Binary file
|
|
@@ -58,7 +58,7 @@ module Imagetools
|
|
|
58
58
|
def get_icns_path(app_path)
|
|
59
59
|
info_plist = File.join(app_path, 'Contents/Info.plist')
|
|
60
60
|
# puts info_plist
|
|
61
|
-
json_str = `plutil -convert json #{info_plist} -o - `
|
|
61
|
+
json_str = `plutil -convert json "#{info_plist}" -o - `
|
|
62
62
|
json_data = JSON.parse(json_str)
|
|
63
63
|
icns_base = json_data["CFBundleIconFile"]
|
|
64
64
|
if icns_base !~ /\.icns$/i
|
|
@@ -74,12 +74,10 @@ module Imagetools
|
|
|
74
74
|
|
|
75
75
|
def icns_to_png(icns_path)
|
|
76
76
|
outdir = @opts[:o] || '.'
|
|
77
|
-
|
|
78
77
|
icns_base = File.basename(icns_path)
|
|
79
78
|
png_base = icns_base.sub(/\.icns$/, '.png')
|
|
80
79
|
png_path = File.join(outdir, png_base)
|
|
81
|
-
|
|
82
|
-
cmd = "sips -s format png #{icns_path} --out #{png_path}"
|
|
80
|
+
cmd = "sips -s format png \"#{icns_path}\" --out #{png_path}"
|
|
83
81
|
puts cmd
|
|
84
82
|
if !system(cmd)
|
|
85
83
|
raise RuntimeError
|
data/lib/imagetools/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: imagetools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- src
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rmagick
|
|
@@ -87,6 +87,7 @@ files:
|
|
|
87
87
|
- ".idea/modules.xml"
|
|
88
88
|
- ".idea/vcs.xml"
|
|
89
89
|
- ".idea/workspace.xml"
|
|
90
|
+
- ".ruby-version"
|
|
90
91
|
- ".travis.yml"
|
|
91
92
|
- CODE_OF_CONDUCT.md
|
|
92
93
|
- Gemfile
|