ghunit 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ghunit/project.rb +11 -2
- metadata +28 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a66f630cc8d025fc49e667d21003270f4801852
|
4
|
+
data.tar.gz: 17b660998273b7c109caf58cd00052acc6983516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f9ea6fdc8920b70a7b1c136cf1afc6ae42ad6a4d0742f0619281f46734e14b8a23984fc280b238269903b7193125134b331df20938c7e4ad99011f149dd37bd
|
7
|
+
data.tar.gz: 034250b2339e8bb010a47d074a8f2b170ee3d39792d6f81174da28165a5f8ee3f35d1eddab19c169571ba5ca29bf98344af19a3b12573afcd53bf8e1921e50ab
|
data/lib/ghunit/project.rb
CHANGED
@@ -133,12 +133,21 @@ class GHUnit::Project
|
|
133
133
|
create_test_file("main.m", template("main.m"), true)
|
134
134
|
create_test("MyTest")
|
135
135
|
|
136
|
+
#
|
137
|
+
# No longer doing this (using same resource build phase as main target).
|
138
|
+
# It causes crashes in latest xCode.
|
139
|
+
#
|
136
140
|
# Use same resources build phase as main target
|
137
141
|
# Have to compare with class name because of funky const loading in xcodeproj gem
|
138
|
-
resources_build_phase = main_target.build_phases.select { |p|
|
142
|
+
# resources_build_phase = main_target.build_phases.select { |p|
|
143
|
+
# p.class == Xcodeproj::Project::Object::PBXResourcesBuildPhase }.first
|
144
|
+
# test_target.build_phases << resources_build_phase if resources_build_phase
|
145
|
+
|
146
|
+
# Add resources build phase if one doesn't exist
|
147
|
+
resources_build_phase = test_target.build_phases.select { |p|
|
139
148
|
p.class == Xcodeproj::Project::Object::PBXResourcesBuildPhase }.first
|
140
|
-
test_target.build_phases << resources_build_phase if resources_build_phase
|
141
149
|
|
150
|
+
test_target.build_phases << project.new(Xcodeproj::Project::Object::PBXResourcesBuildPhase) unless resources_build_phase
|
142
151
|
else
|
143
152
|
logger.debug "Test target already exists, skipping..."
|
144
153
|
end
|
metadata
CHANGED
@@ -1,55 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghunit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Handford
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: slop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: colorize
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: xcpretty
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
description: Utilities for GHUnit iOS/MacOSX test framework.
|
@@ -59,14 +73,14 @@ executables:
|
|
59
73
|
extensions: []
|
60
74
|
extra_rdoc_files: []
|
61
75
|
files:
|
76
|
+
- bin/ghunit
|
77
|
+
- lib/ghunit.rb
|
62
78
|
- lib/ghunit/project.rb
|
63
|
-
- lib/ghunit/templates/main.m
|
64
79
|
- lib/ghunit/templates/Podfile
|
65
80
|
- lib/ghunit/templates/RunTests.sh
|
66
81
|
- lib/ghunit/templates/Test.m.erb
|
67
82
|
- lib/ghunit/templates/TestKiwi.m.erb
|
68
|
-
- lib/ghunit.
|
69
|
-
- bin/ghunit
|
83
|
+
- lib/ghunit/templates/main.m
|
70
84
|
homepage: https://github.com/gh-unit/gh-unit
|
71
85
|
licenses:
|
72
86
|
- MIT
|
@@ -77,17 +91,17 @@ require_paths:
|
|
77
91
|
- lib
|
78
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- -
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
83
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
98
|
requirements:
|
85
|
-
- -
|
99
|
+
- - ">="
|
86
100
|
- !ruby/object:Gem::Version
|
87
101
|
version: '0'
|
88
102
|
requirements: []
|
89
103
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.2.2
|
91
105
|
signing_key:
|
92
106
|
specification_version: 4
|
93
107
|
summary: GHUnit
|