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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6527cb5f13885b7110623e37d316ad0b3e24bac3
4
- data.tar.gz: d0f1215849af1de633648dff9051dce6fd0f61c0
3
+ metadata.gz: 06ca13fa72a2d10088004dfe32ecfdd9a359f67c
4
+ data.tar.gz: d993a2fb87cb6e9930b6a6732629a6a044752be1
5
5
  SHA512:
6
- metadata.gz: 13b7d83d1a90279d13bd8b3eb5a0e08eee363f04c37cfac8bcfc318e7de17a93d24923dea9ce203020b7d37d70b0cf7a9a3f2d53246b1153c97b01a3a6f2e1b4
7
- data.tar.gz: 28e7c27957dce185f925de0575aa60779f1124dc1d0b060bd41ac7fe4716e5fafad4e040a59ff37d3bc18c4873a1c2d997a46bae7efeed36d9b565d34b2af628
6
+ metadata.gz: 20ce3c092e68512a693c4c434742d4aff1e23acd9e0e4da6a9a1f56e469efeea543c2324a73b11feff5cc27c4709bdc61e2fd66deed5b884aea604a98dea26d4
7
+ data.tar.gz: fb62f6f6849904d59a527213be6ce0fe758e7a2cdfbe004bbc6c2af21b293ef96db264a7e08537ede9447b151a344f7762b9662c41598fd216c49785167f730c
@@ -116,7 +116,6 @@ module Spaceship
116
116
  if ENV['DEBUG']
117
117
  # for debugging only
118
118
  # This enables tracking of networking requests using Charles Web Proxy
119
- c.response :logger
120
119
  c.proxy "https://127.0.0.1:8888"
121
120
  end
122
121
  end
@@ -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
- devices = [] if self == AppStore || self == InHouse # App Store Profiles MUST NOT have devices
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
@@ -1,4 +1,4 @@
1
1
  module Spaceship
2
- VERSION = "0.33.0".freeze
2
+ VERSION = "0.34.0".freeze
3
3
  DESCRIPTION = "Ruby library to access the Apple Dev Center and iTunes Connect".freeze
4
4
  end
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.33.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-20 00:00:00.000000000 Z
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.6.6
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