deliver 0.7.4 → 0.7.5

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: 0217b3b47b8f821e8631dc4921a635a4a1b1e4e1
4
- data.tar.gz: da09c3a5e524ec94b3a9c756112740fcb55a25bd
3
+ metadata.gz: 089acac08178e7f84ae6d641492f60475b2c2693
4
+ data.tar.gz: 6263f492502f8d0ca5cfbcbc79f0296e0aca6876
5
5
  SHA512:
6
- metadata.gz: 12fc7548c00a3eff33bfcc0c83577eb352083635dcbe70e7396eab0d7bc60658a33c26e79f655608ba67c52f6ac90832e83d709c1b5eecda2e4d9fda3318c362
7
- data.tar.gz: f62ede335bc1ac021ca49fa3587b28b2462e64d87e0c4480db4720daf6644d00a4cd9a8d383f4e5118962eb43846d4ed2701c9ade8a3e63c73a7aed8e6dbc621
6
+ metadata.gz: 715d8debe79c253472902c7d9f192c0b7757c2a2d63c0f1de5776bf42e3b2809462f9f72fed0abda83d758ed4ad4305e179f0724bd1ddc6036dbfbcdc8a509a2
7
+ data.tar.gz: a040c70bd087d4f221919479494a98017aeecc975c33a5974a3209c62aa3b6ab644cc988177389dfd1f39de0eec2e1ba7177d1c59ac8d7983e0e54f91c8a8203
@@ -205,6 +205,7 @@ module Deliver
205
205
  raise "Invalid price tier '#{tier}' given, must be 0 to 94".red unless (tier.to_i >= 0 and tier.to_i <= 87)
206
206
 
207
207
  price = fetch_value("//x:wholesale_price_tier").last
208
+ raise "No initial pricing found, please set the pricing at least once on iTunes Connect.".red unless price
208
209
  price.content = tier
209
210
  end
210
211
 
@@ -9,20 +9,20 @@ module Deliver
9
9
  # this action
10
10
  # @raise [ItunesConnectLoginError] Login data is wrong
11
11
  def open_app_page(app)
12
- verify_app(app)
12
+ verify_app(app)
13
13
 
14
- Helper.log.info "Opening detail page for app #{app}"
14
+ Helper.log.info "Opening detail page for app #{app}"
15
15
 
16
- visit APP_DETAILS_URL.gsub("[[app_id]]", app.apple_id.to_s)
16
+ visit APP_DETAILS_URL.gsub("[[app_id]]", app.apple_id.to_s)
17
17
 
18
- wait_for_elements('.page-subnav')
19
- sleep 5
18
+ wait_for_elements('.page-subnav')
19
+ sleep 5
20
20
 
21
- if current_url.include?"wa/defaultError" # app could not be found
22
- raise "Could not open app details for app '#{app}'. Make sure you're using the correct Apple ID and the correct Apple developer account (#{CredentialsManager::PasswordManager.shared_manager.username}).".red
23
- end
21
+ if current_url.include?"wa/defaultError" # app could not be found
22
+ raise "Could not open app details for app '#{app}'. Make sure you're using the correct Apple ID and the correct Apple developer account (#{CredentialsManager::PasswordManager.shared_manager.username}).".red
23
+ end
24
24
 
25
- true
25
+ true
26
26
  rescue => ex
27
27
  error_occured(ex)
28
28
  end
@@ -49,7 +49,7 @@ module Deliver
49
49
  started = Time.now
50
50
 
51
51
  # Wait, while iTunesConnect is processing the uploaded file
52
- while (page.has_content?"Uploaded" or page.has_content?"Processing")
52
+ while (page.has_content?"Uploaded")
53
53
  # iTunesConnect is super slow... so we have to wait...
54
54
  Helper.log.info("Sorry, we have to wait for iTunesConnect, since it's still processing the uploaded ipa file\n" +
55
55
  "If this takes longer than 45 minutes, you have to re-upload the ipa file again.\n" +
@@ -10,27 +10,28 @@ module Deliver
10
10
 
11
11
  Helper.log.info("Choosing the latest build on iTunesConnect for beta distribution")
12
12
 
13
+ sleep 3
13
14
  click_on "Prerelease"
15
+ sleep 3
14
16
 
15
17
  wait_for_preprocessing
16
-
17
- beta_switch = (all(".switcher.ng-binding").first rescue nil)
18
18
 
19
- unless beta_switch
20
- raise "Could not find beta build on '#{current_url}'. Make sure it is available there"
19
+ # Beta Switches
20
+ if all(".switcher.ng-binding.checked").count == 0
21
+ raise "Looks like Beta Testing is not yet enabled for this app. Open '#{current_url}' and enable TestFlight Beta Testing.".red
21
22
  end
22
-
23
-
24
- # Toggeling beta builds, since Apple's TestFlight does not publish the update to testers automatically
25
- if beta_switch['class'].include?"checked"
26
- # Disable beta tests first
27
- beta_switch.click
28
- all("a").find { |a| a.text == "Stop Testing" }.click
23
+
24
+ if all(".bt-version > a").count == 0
25
+ raise "Couldn't find any builds. Please check the iTunes Conncet page: '#{current_url}'".red
29
26
  end
30
27
 
31
- beta_switch.click
32
- if page.has_content?"Are you sure you want to start testing" # this only happens on the first time
33
- click_on "Start"
28
+ first(".bt-version > a").click
29
+
30
+ email = wait_for_elements("input[ng-model='testinfo.data.details[currentLoc].feedbackEmail.value']").first
31
+ if email.value.to_s.length == 0
32
+ # Some value is needed to actually distribute the beta version
33
+ email.set CredentialsManager::PasswordManager.shared_manager.username
34
+ click_on "Save"
34
35
  end
35
36
 
36
37
  Helper.log.info "Successfully enabled latest beta build.".green
@@ -1,3 +1,3 @@
1
1
  module Deliver
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deliver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-01 00:00:00.000000000 Z
11
+ date: 2015-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json