spaceship 0.32.2 → 0.32.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 010a554b4530a8b685e143222a21bfd705f8caab
4
- data.tar.gz: a4b26002dc65587712276a58a27467fc9f30983c
3
+ metadata.gz: f86e2d7063e85473a86952fb951e76229f569ef1
4
+ data.tar.gz: c9eaae0e51a6afa2f528b7c9dc1e479425b50e33
5
5
  SHA512:
6
- metadata.gz: 15c8c9e26278b4a2f3eee1b4757c3b6d7c42a3cc1d56009d10969ede7cafb5f8e5e66131786c02a5fa771c060b72d8db73bbe688b5d4f08872a12bd55caa8b35
7
- data.tar.gz: 70ace5af593f571835f8827892e79f557f3bf2d3b3547144917524664449a8c4f60b53a18c7d8c5ddd64030426739a6b89cc1ce7ea879d36058bc3db6e031bc2
6
+ metadata.gz: d3b222516451a9fe5e7cb22c8d0bd27a13e1bcc394bf1aa182859d22305594dd819310d7a3d0e8668f7a675086497a8ca180d78959859112a0b45c56dfdbdf82
7
+ data.tar.gz: fc66e1542b2ee6879e5255258ad25b001a88fef898f122a8995a9e01d47b911bf070e265662bc3227d178be18aae97670e2bdee4506a7da1881b7a808f51c2a5
@@ -329,6 +329,14 @@ module Spaceship
329
329
  parse_response(req, 'provisioningProfiles')
330
330
  end
331
331
 
332
+ def provisioning_profile_details(provisioning_profile_id: nil, mac: false)
333
+ r = request(:post, "account/#{platform_slug(mac)}/profile/getProvisioningProfile.action", {
334
+ teamId: team_id,
335
+ provisioningProfileId: provisioning_profile_id
336
+ })
337
+ parse_response(r, 'provisioningProfile')
338
+ end
339
+
332
340
  def create_provisioning_profile!(name, distribution_method, app_id, certificate_ids, device_ids, mac: false, sub_platform: nil)
333
341
  ensure_csrf(Spaceship::ProvisioningProfile) do
334
342
  fetch_csrf_token_for_provisioning
@@ -164,10 +164,9 @@ module Spaceship
164
164
  raise "Can't find class '#{attrs['distributionMethod']}'"
165
165
  end
166
166
 
167
- # eagerload the Apps, Devices, and Certificates using the same client if we have to.
167
+ # eagerload the Apps and Devices using the same client if we have to.
168
168
  attrs['appId'] = App.set_client(@client).factory(attrs['appId'])
169
169
  attrs['devices'].map! { |device| Device.set_client(@client).factory(device) }
170
- attrs['certificates'].map! { |cert| Certificate.set_client(@client).factory(cert) }
171
170
 
172
171
  klass.client = @client
173
172
  klass.new(attrs)
@@ -391,6 +390,19 @@ module Spaceship
391
390
  def mac?
392
391
  platform == 'mac'
393
392
  end
393
+
394
+ # Since 15th September 2016 this hidden behind another request
395
+ # see https://github.com/fastlane/fastlane/issues/6137 for more information
396
+ def certificates
397
+ @internal_certificates ||= (details["certificates"] || []).collect do |cert|
398
+ Certificate.set_client(client).factory(cert)
399
+ end
400
+ end
401
+
402
+ # This is data that can only be fetched from the getProvisioningProfile.action API endpoint
403
+ def details
404
+ @details ||= client.provisioning_profile_details(provisioning_profile_id: self.id)
405
+ end
394
406
  end
395
407
  end
396
408
  end
@@ -1,4 +1,4 @@
1
1
  module Spaceship
2
- VERSION = "0.32.2".freeze
2
+ VERSION = "0.32.3".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.32.2
4
+ version: 0.32.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause