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 +4 -4
- data/README.md +1 -0
- data/lib/xcodeproj_utils.rb +2 -0
- data/lib/xcodeproj_utils/version.rb +1 -1
- data/spec/xcodeproj_utils_spec.rb +23 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55ee7bd293b3431e5b6f11f9f558f92eafb94364
|
4
|
+
data.tar.gz: e150d188075d3778de4bf57161adc7b8730368e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/xcodeproj_utils.rb
CHANGED
@@ -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
|