spaceship 0.33.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spaceship/client.rb +0 -1
- data/lib/spaceship/portal/provisioning_profile.rb +19 -3
- data/lib/spaceship/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ca13fa72a2d10088004dfe32ecfdd9a359f67c
|
4
|
+
data.tar.gz: d993a2fb87cb6e9930b6a6732629a6a044752be1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20ce3c092e68512a693c4c434742d4aff1e23acd9e0e4da6a9a1f56e469efeea543c2324a73b11feff5cc27c4709bdc61e2fd66deed5b884aea604a98dea26d4
|
7
|
+
data.tar.gz: fb62f6f6849904d59a527213be6ce0fe758e7a2cdfbe004bbc6c2af21b293ef96db264a7e08537ede9447b151a344f7762b9662c41598fd216c49785167f730c
|
data/lib/spaceship/client.rb
CHANGED
@@ -29,6 +29,8 @@ module Spaceship
|
|
29
29
|
# "adhoc"
|
30
30
|
# @example Development Profile
|
31
31
|
# "limited"
|
32
|
+
# @example Mac Developer ID Profile
|
33
|
+
# "direct"
|
32
34
|
attr_accessor :distribution_method
|
33
35
|
|
34
36
|
# @return (String) The name of this profile
|
@@ -152,7 +154,7 @@ module Spaceship
|
|
152
154
|
# Create a new object based on a hash.
|
153
155
|
# This is used to create a new object based on the server response.
|
154
156
|
def factory(attrs)
|
155
|
-
# available values of `distributionMethod` at this point: ['adhoc', 'store', 'limited']
|
157
|
+
# available values of `distributionMethod` at this point: ['adhoc', 'store', 'limited', 'direct']
|
156
158
|
klass = case attrs['distributionMethod']
|
157
159
|
when 'limited'
|
158
160
|
Development
|
@@ -160,6 +162,8 @@ module Spaceship
|
|
160
162
|
AppStore
|
161
163
|
when 'inhouse'
|
162
164
|
InHouse
|
165
|
+
when 'direct'
|
166
|
+
Direct # Mac-only
|
163
167
|
else
|
164
168
|
raise "Can't find class '#{attrs['distributionMethod']}'"
|
165
169
|
end
|
@@ -205,7 +209,10 @@ module Spaceship
|
|
205
209
|
# Fill in sensible default values
|
206
210
|
name ||= [bundle_id, self.pretty_type].join(' ')
|
207
211
|
|
208
|
-
|
212
|
+
if self == AppStore || self == InHouse || self == Direct
|
213
|
+
# Distribution Profiles MUST NOT have devices
|
214
|
+
devices = []
|
215
|
+
end
|
209
216
|
|
210
217
|
certificate_parameter = certificate.collect(&:id) if certificate.kind_of? Array
|
211
218
|
certificate_parameter ||= [certificate.id]
|
@@ -308,6 +315,13 @@ module Spaceship
|
|
308
315
|
end
|
309
316
|
end
|
310
317
|
|
318
|
+
# Represents a Mac Developer ID profile from the Dev Portal
|
319
|
+
class Direct < ProvisioningProfile
|
320
|
+
def self.type
|
321
|
+
'direct'
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
311
325
|
# Download the current provisioning profile. This will *not* store
|
312
326
|
# the provisioning profile on the file system. Instead this method
|
313
327
|
# will return the content of the profile.
|
@@ -345,6 +359,8 @@ module Spaceship
|
|
345
359
|
if mac?
|
346
360
|
if self.kind_of? Development
|
347
361
|
self.certificates = [Spaceship::Certificate::MacDevelopment.all.first]
|
362
|
+
elsif self.kind_of? Direct
|
363
|
+
self.certificates = [Spaceship::Certificate::DeveloperIDApplication.all.first]
|
348
364
|
else
|
349
365
|
self.certificates = [Spaceship::Certificate::MacAppDistribution.all.first]
|
350
366
|
end
|
@@ -440,7 +456,7 @@ module Spaceship
|
|
440
456
|
def fetch_details
|
441
457
|
# Since 15th September 2016 certificates and devices are hidden behind another request
|
442
458
|
# see https://github.com/fastlane/fastlane/issues/6137 for more information
|
443
|
-
self.profile_details ||= client.provisioning_profile_details(provisioning_profile_id: self.id)
|
459
|
+
self.profile_details ||= client.provisioning_profile_details(provisioning_profile_id: self.id, mac: mac?)
|
444
460
|
end
|
445
461
|
end
|
446
462
|
end
|
data/lib/spaceship/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spaceship
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-09-
|
12
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: credentials_manager
|
@@ -394,7 +394,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
394
394
|
version: '0'
|
395
395
|
requirements: []
|
396
396
|
rubyforge_project:
|
397
|
-
rubygems_version: 2.
|
397
|
+
rubygems_version: 2.4.5.1
|
398
398
|
signing_key:
|
399
399
|
specification_version: 4
|
400
400
|
summary: Ruby library to access the Apple Dev Center and iTunes Connect
|