cert 0.1.6 → 0.1.7

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: 7ff22472df7fc31ad34231a5c4652d7adb1ae4db
4
- data.tar.gz: 6d6c76b55783218621b76d521083aef09629113e
3
+ metadata.gz: ed6412cf072e6198aae7dd266538b80e74a10387
4
+ data.tar.gz: 3f8590f423c261819c8c80c2b4d20075eb87cc77
5
5
  SHA512:
6
- metadata.gz: 5443f3d7e94cd525f36109c4f8fbd03d6cae2b862a99f7993ae2a22dd90dc2fe6ab17d56ea99a062c4a647f13ec3667b49681b09a494421c7df0e50f3ce3b9ab
7
- data.tar.gz: 02406b36e3e0a7e03b467b1796449f5532c762ce672f9ee8a899d310c4f7f46bde3c2433548caba202af1a814b255d8d66a3e977b60b7531f776d6e8cb4f00cd
6
+ metadata.gz: ac87b388768480359586536612f66998ed920c2ad2a1edd8ffda1f0315d8b1093a45d1e97e410b48de3265bfb7aebd18a5d8960f6a50bf9522eef56c40335b43
7
+ data.tar.gz: 656321e8b1f1347ddf6c41ecfadc6ef23fca29fd5b79ad7ea4e438ccd68ae96de6a104660328c148699118744d89c127337671ac28619a1cc361647835c1c948
@@ -160,7 +160,6 @@ module Cert
160
160
  certificateStatuses = wait_for_variable('certificateStatuses')
161
161
 
162
162
  url = [certificateDataURL, certificateRequestTypes, certificateStatuses].join('')
163
- url += "&pageSize=5000&pageNumber=1&sort=name=asc"
164
163
 
165
164
  # https://developer.apple.com/services-account/.../account/ios/certificate/listCertRequests.action?content-type=application/x-www-form-urlencoded&accept=application/json&requestId=...&userLocale=en_US&teamId=...&types=...&status=4&certificateStatus=0&type=distribution&pageSize=50&pageNumber=1&sort=name=asc
166
165
 
@@ -168,7 +167,9 @@ module Cert
168
167
 
169
168
  certTypeName = 'iOS Distribution'
170
169
  certTypeName = 'iOS Development' if @type == DEVELOPMENT
171
- certs = post_ajax(url)['certRequests']
170
+ certs = post_ajax(url, "{pageNumber: 1, pageSize: 500, sort: 'name%3dasc'}")['certRequests']
171
+
172
+ raise "Something went wrong with request to #{url}" unless certs
172
173
  certs.each do |current_cert|
173
174
  if current_cert['typeString'] == certTypeName
174
175
  # The other profiles are push profiles
data/lib/cert/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cert
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause