spaceship 0.15.0 → 0.15.1

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: 193c64d9d18c91250a1b79c4ba14ebc1acc04447
4
- data.tar.gz: 45621bf70cad9244851cb6cdb22e6f7ac86ba837
3
+ metadata.gz: 0a05323b6eb94cdb6d2e6cfd569a474b0b9d4458
4
+ data.tar.gz: 1b7dfa2048823baf113f92c5f85dca8c3e01ff27
5
5
  SHA512:
6
- metadata.gz: 048dbc075a88165e383aefb420fcafb2f3fac027f80479d18fcfddab5bd1071502a36ed77602c6d1efe8fefd85dc2b64db2ebe8417290f58f0d466dfdf3d0d2f
7
- data.tar.gz: 9b02bb4b3aa146aa2f9bd4a436067f40ac7663c801bcee6c1e898bc8fc3fa8b542ca5f4ca2cec3fe29451da48ad23d61d43429ee4600206c1752a883c927e971
6
+ metadata.gz: 99c39230b509ed3e03be4bce69ba620f193c92b0646e7a64c095f00557fc9832f30c125ac8ac631de5ad7331087aacb4ca7641dfd0de4055a7371053e7d69336
7
+ data.tar.gz: acf379e3595f63f345b5d7fad8a8612cdd0338e97ef3eff38a8023b49b979060cfc0511fad5847eef01a63baf2af181ffabd437d1bc708466ace4539892add08
@@ -271,6 +271,12 @@ module Spaceship
271
271
  end
272
272
 
273
273
  def create_certificate!(type, csr, app_id = nil)
274
+ if csrf_tokens.count == 0
275
+ # If we directly create a new certificate without querying anything before
276
+ # we don't have a valid csrf token, that's why we have to do at least one request
277
+ certificates([Certificate::CERTIFICATE_TYPE_IDS.keys.first])
278
+ end
279
+
274
280
  r = request(:post, 'account/ios/certificate/submitCertificateRequest.action', {
275
281
  teamId: team_id,
276
282
  type: type,
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.15.0"
2
+ VERSION = "0.15.1"
3
3
  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.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause