xcodeproj_utils 0.2.2 → 0.2.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
  SHA1:
3
- metadata.gz: 8b97e19cb660c03d2dac830379b18fecc001fdbe
4
- data.tar.gz: 0c45210537770eaca61bfd679935cdbfee7c4f62
3
+ metadata.gz: d18025fc6fe836ad1ea81d823e9db87250e794b5
4
+ data.tar.gz: 0a222d8b1e1556910082da38563d832bbe912138
5
5
  SHA512:
6
- metadata.gz: ea0178c1832c1393d4e73d76ee5f8dec240137fab290c1004b91319ffc9f256af7bc794d15128651e84d1ad9fc1a2101b4d42e80db9681a3d0aaf3ed1e9f13b5
7
- data.tar.gz: 6577c78df48e1bf1f50f478c478da801f09545f6cf6ae8b7ceaef0502a5a68942b10548dc38975a2d870b0e0b12554963f0851ba48de67f0704142af61f3199f
6
+ metadata.gz: 538a55a51766c559587564bd826ece1cfb6f3b4c97b86a17ba54ebfb5a13538cac8c539ea6191e63e7237a89e3def02ae34c967a5c66cfa168db3c980a8ff9dd
7
+ data.tar.gz: 49ae7fdb51ce955d6205cbbd9884b8b90c0f41eeb7205acacad11e210c852d9d92b40e47bf4c2581e2c58f02b51fe1022cc7408eb35b36a5310b02622860cf24
@@ -29,10 +29,22 @@ class CLI < Thor
29
29
  end
30
30
 
31
31
  desc "xcp_utils unused_images PROJECT_PATH TARGET_NAME", "Show unused images"
32
+ option :html, :type => :boolean, :default => false, :desc => 'output as html'
32
33
  def unused_images(proj_name, target_name)
33
34
  proj = XcodeprojUtils::Project.new(proj_name, target_name)
34
- for image in proj.search_unused_images
35
- puts image.display_name
35
+ output_html = options[:html]
36
+
37
+ if not output_html
38
+ for image in proj.search_unused_images
39
+ puts image.display_name
40
+ end
41
+ else
42
+ rows = ''
43
+ for image in proj.search_unused_images
44
+ rows += "<tr><td>#{image.path}</td><td><img src=\"#{image.real_path}\"></td></tr>\n"
45
+ end
46
+ html = "<html><body bgcolor=\"#eeeeee\"><table>#{rows}</table></body></html>"
47
+ puts html
36
48
  end
37
49
  end
38
50
 
@@ -1,3 +1,3 @@
1
1
  module XcodeprojUtils
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcodeproj_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matsumoto Taichi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-20 00:00:00.000000000 Z
11
+ date: 2014-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler