spaceship 0.31.9 → 0.31.10

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: 3007b65bb9eddd5604158b7c809a0e6f05c4e8d6
4
- data.tar.gz: 50ade9d99cea43718791fa7f48fa6f2855e91851
3
+ metadata.gz: 4b410b389cf8004d24c610840d5e830680c1725d
4
+ data.tar.gz: 18b0892ee506b0b7cd73df036d44d830c068d5f3
5
5
  SHA512:
6
- metadata.gz: 3c353f411cbd5de26fa6187889de6ebb47192f1e7a2fd151ebe3232adc4b171288716530ce89c155335b3379a94eeaff9a3cea0b4139bbca16b5a9f47d3b5cac
7
- data.tar.gz: 8d05c8f60cfa4b79c21e63f56b7bdac0d8bee1a5d38067aa641491875941207ea311c21bc91dd17e74ffe9c4714dfe7ee673785aa633522e82d29dfe02dbc9db
6
+ metadata.gz: 03390791a5a2bff1e17f109c649055ff8aff11e16bdf3cd6b1addb79e30128e7153ffe7d7e3e23e95386e94fd893102bb890b72b8bc266776695a47e4709e8dd
7
+ data.tar.gz: 453285e84082f6909f743eb4d39b5efdd130d809b6d5581cefe22d1f4248c08ffc6a162b042a0885013b7d1911ea18adcb275791f4865e3c1c8dba42c3fbd675
@@ -372,6 +372,10 @@ module Spaceship
372
372
  end
373
373
 
374
374
  def download_provisioning_profile(profile_id, mac: false)
375
+ # Calling provisioning_profiles uses a different api end point than creating or deleting them so we
376
+ # use a different entity to gather the csrf token
377
+ ensure_csrf(Spaceship::App)
378
+
375
379
  r = request(:get, "account/#{platform_slug(mac)}/profile/downloadProfileContent", {
376
380
  teamId: team_id,
377
381
  provisioningProfileId: profile_id
@@ -229,16 +229,16 @@ module Spaceship
229
229
  # Now fill in the values we have
230
230
  # some values are nil, that's why there is a hash
231
231
  data['versionString'] = { value: version }
232
- data['newApp']['name'] = { value: name }
233
- data['newApp']['bundleId']['value'] = bundle_id
234
- data['newApp']['primaryLanguage']['value'] = primary_language || 'English'
235
- data['newApp']['vendorId'] = { value: sku }
236
- data['newApp']['bundleIdSuffix']['value'] = bundle_id_suffix
237
- data['companyName']['value'] = company_name if company_name
238
- data['newApp']['appType'] = app_type
232
+ data['name'] = { value: name }
233
+ data['bundleId'] = { value: bundle_id }
234
+ data['primaryLanguage'] = { value: primary_language || 'English' }
235
+ data['vendorId'] = { value: sku }
236
+ data['bundleIdSuffix'] = { value: bundle_id_suffix }
237
+ data['companyName'] = { value: company_name } if company_name
238
+ data['enabledPlatformsForCreation'] = { value: [app_type] }
239
239
 
240
240
  data['initialPlatform'] = app_type
241
- data['enabledPlatformsForCreation']['value'] = [app_type]
241
+ data['enabledPlatformsForCreation'] = { value: [app_type] }
242
242
 
243
243
  # Now send back the modified hash
244
244
  r = request(:post) do |req|
@@ -1,4 +1,4 @@
1
1
  module Spaceship
2
- VERSION = "0.31.9".freeze
2
+ VERSION = "0.31.10".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.31.9
4
+ version: 0.31.10
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-08-24 00:00:00.000000000 Z
12
+ date: 2016-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager
@@ -391,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
391
391
  version: '0'
392
392
  requirements: []
393
393
  rubyforge_project:
394
- rubygems_version: 2.2.2
394
+ rubygems_version: 2.5.1
395
395
  signing_key:
396
396
  specification_version: 4
397
397
  summary: Ruby library to access the Apple Dev Center and iTunes Connect