spaceship 0.25.1 → 0.26.0

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: 95dd5766d877287f8924aac6a13d6665f80d2467
4
- data.tar.gz: 7f0a92788bda6a1bf3882d953b90602e84e3c91d
3
+ metadata.gz: 0a927608535658f7e684c82ee86a04fb7980e8b1
4
+ data.tar.gz: 01865989c48f28ca3163699b098c131cc6b7b587
5
5
  SHA512:
6
- metadata.gz: 91b5e194252881a52a1094510c44ea2725c38679d2c0b5e632ec1b48b30f6b45fb2692c12865bb09a11d2900424cf7261de0001c3db79df47e6834234ea45b34
7
- data.tar.gz: 5d2dccb60aeadf6752f0339895e690b22a0e3cb23c8f3110e6299f6605d9421cc56f1dfc298d31d6fb71c472f37358ac48e9a9ba707d9fc4d77fb5f4a919f5d5
6
+ metadata.gz: 8912466f115a44cae2c2b6feae5a66bd18bb2126baab9c8ffb94e2a4ac169ea2f54f2edb0a440adde113a3156c8c78d53bbc5ac78ca678868477cedc3882e336
7
+ data.tar.gz: db63e6d19f123aa3f2874566dba2629106c5639b4da8d7934f711e0ece0cf7810fb9b54d8363af0b1746d6f56e1451827e54b081f9634d6b5beee6cac2cd4427
@@ -326,17 +326,20 @@ module Spaceship
326
326
  parse_response(req, 'provisioningProfiles')
327
327
  end
328
328
 
329
- def create_provisioning_profile!(name, distribution_method, app_id, certificate_ids, device_ids, mac: false)
329
+ def create_provisioning_profile!(name, distribution_method, app_id, certificate_ids, device_ids, mac: false, sub_platform: nil)
330
330
  ensure_csrf
331
331
 
332
- r = request(:post, "account/#{platform_slug(mac)}/profile/createProvisioningProfile.action", {
332
+ params = {
333
333
  teamId: team_id,
334
334
  provisioningProfileName: name,
335
335
  appIdId: app_id,
336
336
  distributionType: distribution_method,
337
337
  certificateIds: certificate_ids,
338
338
  deviceIds: device_ids
339
- })
339
+ }
340
+ params[:subPlatform] = sub_platform if sub_platform
341
+
342
+ r = request(:post, "account/#{platform_slug(mac)}/profile/createProvisioningProfile.action", params)
340
343
  parse_response(r, 'provisioningProfile')
341
344
  end
342
345
 
@@ -193,8 +193,9 @@ module Spaceship
193
193
  # It is recommend to not pass devices as spaceship will automatically add all devices for AdHoc
194
194
  # and Development profiles and add none for AppStore and Enterprise Profiles
195
195
  # @param mac (Bool) (optional): Pass true if you're making a Mac provisioning profile
196
+ # @param sub_platform (String) Used to create tvOS profiles at the moment. Value should equal 'tvOS' or nil.
196
197
  # @return (ProvisioningProfile): The profile that was just created
197
- def create!(name: nil, bundle_id: nil, certificate: nil, devices: [], mac: false)
198
+ def create!(name: nil, bundle_id: nil, certificate: nil, devices: [], mac: false, sub_platform: nil)
198
199
  raise "Missing required parameter 'bundle_id'" if bundle_id.to_s.empty?
199
200
  raise "Missing required parameter 'certificate'. e.g. use `Spaceship::Certificate::Production.all.first`" if certificate.to_s.empty?
200
201
 
@@ -217,8 +218,10 @@ module Spaceship
217
218
  # For Development and AdHoc we usually want all compatible devices by default
218
219
  if mac
219
220
  devices = Spaceship::Device.all_macs
221
+ elsif sub_platform == 'tvOS'
222
+ devices = Spaceship::Device.all_apple_tvs
220
223
  else
221
- devices = Spaceship::Device.all_for_profile_type(self.type)
224
+ devices = Spaceship::Device.all_ios_profile_devices
222
225
  end
223
226
  end
224
227
  end
@@ -229,7 +232,8 @@ module Spaceship
229
232
  app.app_id,
230
233
  certificate_parameter,
231
234
  devices.map(&:id),
232
- mac: mac)
235
+ mac: mac,
236
+ sub_platform: sub_platform)
233
237
  end
234
238
 
235
239
  self.new(profile)
@@ -78,6 +78,11 @@ module Spaceship
78
78
  # @return (String) App Review Information Email Address
79
79
  attr_accessor :review_email
80
80
 
81
+ # @return (Boolean) The checkbox that indiciates if a demo account
82
+ # is needed. Is set automatically depending on if a user and pass
83
+ # are set
84
+ attr_reader :review_user_needed
85
+
81
86
  # @return (String) App Review Information Demo Account User Name
82
87
  attr_accessor :review_demo_user
83
88
 
@@ -141,6 +146,7 @@ module Spaceship
141
146
  'appReviewInfo.phoneNumber.value' => :review_phone_number,
142
147
  'appReviewInfo.emailAddress.value' => :review_email,
143
148
  'appReviewInfo.reviewNotes.value' => :review_notes,
149
+ 'appReviewInfo.accountRequired.value' => :review_user_needed,
144
150
  'appReviewInfo.userName.value' => :review_demo_user,
145
151
  'appReviewInfo.password.value' => :review_demo_password
146
152
  })
@@ -180,6 +186,10 @@ module Spaceship
180
186
  is_live
181
187
  end
182
188
 
189
+ def review_user_needed
190
+ (self.review_demo_user.to_s + self.review_demo_password.to_s).length > 0
191
+ end
192
+
183
193
  # Call this method to make sure the given languages are available for this app
184
194
  # You should call this method before accessing the name, description and other localized values
185
195
  # This will create the new language if it's not available yet and do nothing if everything's there
@@ -618,6 +618,7 @@ module Spaceship
618
618
  build_info['testInfo']['reviewLastName']['value'] = last_name if last_name
619
619
  build_info['testInfo']['reviewPhone']['value'] = phone_number if phone_number
620
620
  build_info['testInfo']['reviewEmail']['value'] = review_email if review_email
621
+ build_info['testInfo']['reviewAccountRequired']['value'] = ((review_user_name || "").to_s + (review_password || "").to_s).length > 0
621
622
  build_info['testInfo']['reviewUserName']['value'] = review_user_name if review_user_name
622
623
  build_info['testInfo']['reviewPassword']['value'] = review_password if review_password
623
624
  build_info['testInfo']['reviewNotes']['value'] = review_notes if review_notes
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.25.1".freeze
2
+ VERSION = "0.26.0".freeze
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.25.1
4
+ version: 0.26.0
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-04-08 00:00:00.000000000 Z
12
+ date: 2016-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager