imagetools 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: b53e3efd5ec9c6507d2d197ff9644cc9b7093fca11e1cac4494970e5d81dfced
4
- data.tar.gz: ff65e49971eb993341f6b8e0972340d8f9dc453ffd9c84bca2cebcaee14d6b58
3
+ metadata.gz: a27626f9fa56e75b65761b2144b1305ed25edd892b1bbfcd10807b199d3f6a19
4
+ data.tar.gz: 4a359005ed0cef5b0705637fad3a98f487924819159cfec45dbba57f59055525
5
5
  SHA512:
6
- metadata.gz: 056f07697d5d5132452839e8446094888e634b22f7f46f5dcfdfe524d9bed827352066015be8f7a3967b4cfc0c12318e3843fee160cb5dae66c9bfd823ac1389
7
- data.tar.gz: 3a1b4cfa5c91e435f9398a14630743c9688b80286af1366e32057277f3be42e80fe973513ac6b0670baee7b628e97748bc7e40d0c1d988867939c259f4914e9d
6
+ metadata.gz: 07b1595e3f58b96c3614e1fa0c65f96efb00e13a90f3fe8dcd3ae5b65c4e537ee8e4ad03244797805776c4364b2b39505b0276f138f809be020b6dcd0f39b175
7
+ data.tar.gz: 647150aa2b37e10d8eb653b1f709a7a9dd0d3373805c4be7b1b1b8ffa124642b92f309e61cf8cd2b545b0592352d7380d2c86ce4761eb7f7fc0a45e506bbbb93
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- imagetools (0.5.0)
4
+ imagetools (0.6.0)
5
5
  rmagick
6
6
 
7
7
  GEM
@@ -21,4 +21,4 @@ DEPENDENCIES
21
21
  rake (~> 10.0)
22
22
 
23
23
  BUNDLED WITH
24
- 1.16.1
24
+ 1.17.1
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
@@ -84,7 +84,7 @@ EOM
84
84
  EXTERNAL_CMDS.each do |cmd|
85
85
  args = cmd.split
86
86
  cmd_name = args[0]
87
- unless cmd_exists?(cmd)
87
+ unless cmd_exists?(cmd_name)
88
88
  puts "No command: #{cmd_name}"
89
89
  return 127
90
90
  end
@@ -1,3 +1,3 @@
1
1
  module Imagetools
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
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.5.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-10-10 00:00:00.000000000 Z
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