deliver 0.7.4 → 0.7.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 089acac08178e7f84ae6d641492f60475b2c2693
|
4
|
+
data.tar.gz: 6263f492502f8d0ca5cfbcbc79f0296e0aca6876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 715d8debe79c253472902c7d9f192c0b7757c2a2d63c0f1de5776bf42e3b2809462f9f72fed0abda83d758ed4ad4305e179f0724bd1ddc6036dbfbcdc8a509a2
|
7
|
+
data.tar.gz: a040c70bd087d4f221919479494a98017aeecc975c33a5974a3209c62aa3b6ab644cc988177389dfd1f39de0eec2e1ba7177d1c59ac8d7983e0e54f91c8a8203
|
data/lib/deliver/app_metadata.rb
CHANGED
@@ -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
|
-
|
12
|
+
verify_app(app)
|
13
13
|
|
14
|
-
|
14
|
+
Helper.log.info "Opening detail page for app #{app}"
|
15
15
|
|
16
|
-
|
16
|
+
visit APP_DETAILS_URL.gsub("[[app_id]]", app.apple_id.to_s)
|
17
17
|
|
18
|
-
|
19
|
-
|
18
|
+
wait_for_elements('.page-subnav')
|
19
|
+
sleep 5
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
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"
|
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
|
-
|
20
|
-
|
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
|
-
|
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
|
-
|
32
|
-
|
33
|
-
|
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
|
data/lib/deliver/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|