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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f86e2d7063e85473a86952fb951e76229f569ef1
|
4
|
+
data.tar.gz: c9eaae0e51a6afa2f528b7c9dc1e479425b50e33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/spaceship/version.rb
CHANGED