xcoder 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +2 -0
- data/README.md +56 -3
- data/Rakefile +8 -2
- data/lib/xcode/buildfile.rb +1 -1
- data/lib/xcode/configuration.rb +77 -4
- data/lib/xcode/configuration_owner.rb +86 -0
- data/lib/xcode/configurations/array_property.rb +6 -2
- data/lib/xcode/configurations/boolean_property.rb +4 -0
- data/lib/xcode/configurations/key_value_array_property.rb +42 -0
- data/lib/xcode/configurations/space_delimited_string_property.rb +4 -0
- data/lib/xcode/configurations/string_property.rb +4 -0
- data/lib/xcode/configurations/targeted_device_family_property.rb +13 -3
- data/lib/xcode/project.rb +13 -31
- data/lib/xcode/project_reference.rb +55 -0
- data/lib/xcode/provisioning_profile.rb +19 -1
- data/lib/xcode/registry.rb +9 -4
- data/lib/xcode/resource.rb +7 -5
- data/lib/xcode/target.rb +0 -64
- data/lib/xcode/test/ocunit_report_parser.rb +11 -2
- data/lib/xcode/version.rb +1 -1
- data/lib/xcoder/rake_task.rb +218 -0
- data/spec/Provisioning/AdHoc.mobileprovision +0 -0
- data/spec/Provisioning/AppStore.mobileprovision +0 -0
- data/spec/configuration_spec.rb +152 -34
- data/spec/project_spec.rb +14 -0
- data/spec/provisioning_profile_spec.rb +53 -0
- metadata +22 -12
@@ -0,0 +1,53 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
|
3
|
+
describe Xcode::ProvisioningProfile do
|
4
|
+
|
5
|
+
let(:adhoc) do
|
6
|
+
path = "#{File.dirname(__FILE__)}/Provisioning/AdHoc.mobileprovision"
|
7
|
+
Xcode::ProvisioningProfile.new(path)
|
8
|
+
end
|
9
|
+
|
10
|
+
let(:appstore) do
|
11
|
+
path = "#{File.dirname(__FILE__)}/Provisioning/AppStore.mobileprovision"
|
12
|
+
Xcode::ProvisioningProfile.new(path)
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
context "app store provisionig profile" do
|
17
|
+
it "should read the uuid from the profile" do
|
18
|
+
appstore.uuid.should=="81289CB8-4CC2-4A11-B3D6-82D8FA2BEC81"
|
19
|
+
end
|
20
|
+
it "should read the name from the profile" do
|
21
|
+
appstore.name.should=="App Store"
|
22
|
+
end
|
23
|
+
it "should read identifiers from the profile" do
|
24
|
+
appstore.identifiers.count.should==1
|
25
|
+
appstore.identifiers.first.should=="ZKVD5XDZZZ"
|
26
|
+
end
|
27
|
+
it "should know its an app store profile" do
|
28
|
+
appstore.appstore?.should==true
|
29
|
+
appstore.devices.count.should==0
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
context "ad hoc provisionig profile" do
|
35
|
+
it "should read the uuid from the profile" do
|
36
|
+
adhoc.uuid.should=="3FD4C48D-DD38-42E2-B535-C0F73198E52B"
|
37
|
+
end
|
38
|
+
it "should read the name from the profile" do
|
39
|
+
adhoc.name.should=="AdHoc Distribution"
|
40
|
+
end
|
41
|
+
it "should read identifiers from the profile" do
|
42
|
+
adhoc.identifiers.count.should==1
|
43
|
+
adhoc.identifiers.first.should=="ZKVD5XDZZZ"
|
44
|
+
end
|
45
|
+
it "should know its an ad hoc profile" do
|
46
|
+
adhoc.appstore?.should==false
|
47
|
+
adhoc.devices.count.should==2
|
48
|
+
adhoc.devices[0].should=="13cdd5c65c9c14f1e9a6f9885867d24fe77a2168"
|
49
|
+
adhoc.devices[1].should=="b330b956d2b5a904a3da10224878d30ea96acaf4"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-02-
|
13
|
+
date: 2012-02-28 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
17
|
-
requirement: &
|
17
|
+
requirement: &70110993243560 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70110993243560
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: plist
|
28
|
-
requirement: &
|
28
|
+
requirement: &70110987983600 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70110987983600
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: nokogiri
|
39
|
-
requirement: &
|
39
|
+
requirement: &70110987983180 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70110987983180
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: builder
|
50
|
-
requirement: &
|
50
|
+
requirement: &70110987982760 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70110987982760
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: rest-client
|
61
|
-
requirement: &
|
61
|
+
requirement: &70110987982340 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70110987982340
|
70
70
|
description: Provides a ruby based object-model for parsing project structures and
|
71
71
|
invoking builds
|
72
72
|
email:
|
@@ -90,8 +90,10 @@ files:
|
|
90
90
|
- lib/xcode/buildfile.rb
|
91
91
|
- lib/xcode/configuration.rb
|
92
92
|
- lib/xcode/configuration_list.rb
|
93
|
+
- lib/xcode/configuration_owner.rb
|
93
94
|
- lib/xcode/configurations/array_property.rb
|
94
95
|
- lib/xcode/configurations/boolean_property.rb
|
96
|
+
- lib/xcode/configurations/key_value_array_property.rb
|
95
97
|
- lib/xcode/configurations/space_delimited_string_property.rb
|
96
98
|
- lib/xcode/configurations/string_property.rb
|
97
99
|
- lib/xcode/configurations/targeted_device_family_property.rb
|
@@ -106,6 +108,7 @@ files:
|
|
106
108
|
- lib/xcode/keychain.rb
|
107
109
|
- lib/xcode/parsers/plutil_project_parser.rb
|
108
110
|
- lib/xcode/project.rb
|
111
|
+
- lib/xcode/project_reference.rb
|
109
112
|
- lib/xcode/provisioning_profile.rb
|
110
113
|
- lib/xcode/registry.rb
|
111
114
|
- lib/xcode/resource.rb
|
@@ -123,7 +126,10 @@ files:
|
|
123
126
|
- lib/xcode/version.rb
|
124
127
|
- lib/xcode/workspace.rb
|
125
128
|
- lib/xcoder.rb
|
129
|
+
- lib/xcoder/rake_task.rb
|
126
130
|
- xcoder.gemspec
|
131
|
+
- spec/Provisioning/AdHoc.mobileprovision
|
132
|
+
- spec/Provisioning/AppStore.mobileprovision
|
127
133
|
- spec/Provisioning/Test.keychain
|
128
134
|
- spec/Provisioning/TestUser.p12
|
129
135
|
- spec/TestProject/Buildfile
|
@@ -154,6 +160,7 @@ files:
|
|
154
160
|
- spec/integration/reachability_install_spec.rb
|
155
161
|
- spec/keychain_spec.rb
|
156
162
|
- spec/project_spec.rb
|
163
|
+
- spec/provisioning_profile_spec.rb
|
157
164
|
- spec/scheme_spec.rb
|
158
165
|
- spec/spec_helper.rb
|
159
166
|
- spec/target_spec.rb
|
@@ -185,6 +192,8 @@ signing_key:
|
|
185
192
|
specification_version: 3
|
186
193
|
summary: Ruby wrapper around xcodebuild, xcrun, agvtool and pbxproj files
|
187
194
|
test_files:
|
195
|
+
- spec/Provisioning/AdHoc.mobileprovision
|
196
|
+
- spec/Provisioning/AppStore.mobileprovision
|
188
197
|
- spec/Provisioning/Test.keychain
|
189
198
|
- spec/Provisioning/TestUser.p12
|
190
199
|
- spec/TestProject/Buildfile
|
@@ -215,6 +224,7 @@ test_files:
|
|
215
224
|
- spec/integration/reachability_install_spec.rb
|
216
225
|
- spec/keychain_spec.rb
|
217
226
|
- spec/project_spec.rb
|
227
|
+
- spec/provisioning_profile_spec.rb
|
218
228
|
- spec/scheme_spec.rb
|
219
229
|
- spec/spec_helper.rb
|
220
230
|
- spec/target_spec.rb
|