xcodeproj_utils 0.1.3 → 0.1.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: 5e2bd370d6188f2ed6a712db876fbbdedcb3d42d
4
- data.tar.gz: b27e71db3b0f1a6d45a5c20c8e4d9daf90fd87a2
3
+ metadata.gz: 55ee7bd293b3431e5b6f11f9f558f92eafb94364
4
+ data.tar.gz: e150d188075d3778de4bf57161adc7b8730368e4
5
5
  SHA512:
6
- metadata.gz: c3fc43db23774bf30adfd4fc7d386002812aa798c8fb75e8987bd847837a45f2e635d4293273ead6db979f0994fc35450b02363bfb847dc8669cd894c329ff27
7
- data.tar.gz: 1b67f7a500f053c5c080d5706630a70cd83827be00c5c97dfff48b5402cc6fb3b4e3867ab24c1b1cbdf1042f623a5b7b5ac20ec6d3bfbcc83037ea8d7c22330c
6
+ metadata.gz: 47560fe8914a3eac5d6984a28cc52a436851568d466e9ad63fab257c7816001f5bed463e91291c7e9dac074119c4dc9cdc32e681e788823dbac93500376404d2
7
+ data.tar.gz: d73e4b7ed8075940f201207b334057d500398f445adaa907012ef8d604f09e2caa054d8e1adba338492553d0dee32c9abf2a8e82bd3371dcc1118f83a95f2f36
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # XcodeprojUtils
2
2
  [![Build Status](https://travis-ci.org/taichino/xcodeproj_utils.png?branch=master)](https://travis-ci.org/taichino/xcodeproj_utils)
3
3
  [![Coverage Status](https://coveralls.io/repos/taichino/xcodeproj_utils/badge.png?branch=master)](https://coveralls.io/r/taichino/xcodeproj_utils?branch=master)
4
+ [![Gem Version](https://badge.fury.io/rb/xcodeproj_utils.png)](http://badge.fury.io/rb/xcodeproj_utils)
4
5
 
5
6
  Util commands for xcode project. Following commands are supported for now.
6
7
 
@@ -51,6 +51,8 @@ module XcodeprojUtils
51
51
 
52
52
  if files
53
53
  for file in files
54
+ next if file.class != Xcodeproj::Project::Object::PBXFileReference
55
+
54
56
  if fullpath
55
57
  puts file.real_path
56
58
  else
@@ -1,3 +1,3 @@
1
1
  module XcodeprojUtils
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -22,6 +22,29 @@ describe XcodeprojUtils do
22
22
  source = proj.wc(false, true)
23
23
  expect(total).to eq(header + source)
24
24
  end
25
+
26
+ it "lists all source/resource files" do
27
+ require 'stringio'
28
+
29
+ proj = XcodeprojUtils::Project.new(fixture_path('RSpecTest/RSpecTest.xcodeproj'), 'RSpecTest')
30
+ orig_stdout = $stdout
31
+ capture_stdout = StringIO.new
32
+ $stdout = capture_stdout
33
+ proj.show('source')
34
+ $stdout = orig_stdout
35
+ capture_stdout.rewind()
36
+ lines = capture_stdout.readlines()
37
+ expect(lines.length).to eq(3)
38
+
39
+ capture_stdout = StringIO.new
40
+ $stdout = capture_stdout
41
+ proj.show('resource', true)
42
+ capture_stdout.close_write()
43
+ $stdout = orig_stdout
44
+ capture_stdout.rewind()
45
+ lines = capture_stdout.readlines()
46
+ expect(lines.length).to eq(1)
47
+ end
25
48
  end
26
49
 
27
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcodeproj_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matsumoto Taichi