deliver 0.11.4 → 0.11.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 +4 -4
- data/lib/deliver/itunes_connect/itunes_connect_reader.rb +9 -17
- data/lib/deliver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3438684fdc6e6ef10f2ca6b7807808800c235626
|
4
|
+
data.tar.gz: 20cdd9b5afa3db7ee84bdc70903102bff756f3c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abf99b7b6c46c3764996aca2929b80a4bfc7edf342160335a3f637a5a4586fc9602d4935a9af5b26deb2004fc2a86b98f0252527fb5754177fb9f30855242d31
|
7
|
+
data.tar.gz: b2448ddda2e9eacb0b874e1eb322972b252f52119fc5116f40d22995402d719fa7bc2175110e4150274e214e4bdf7fafc2d062474a55719df007094630a62cb7
|
@@ -2,8 +2,7 @@ module Deliver
|
|
2
2
|
# For all the information reading (e.g. version number)
|
3
3
|
class ItunesConnect < FastlaneCore::ItunesConnect
|
4
4
|
# This method will fetch the current status ({Deliver::App::AppStatus})
|
5
|
-
# of your app and return it.
|
6
|
-
# under the hood, so it might take some time until you get the result
|
5
|
+
# of your app and return it.
|
7
6
|
# @param app (Deliver::App) the app you want this information from
|
8
7
|
# @raise [ItunesConnectGeneralError] General error while executing
|
9
8
|
# this action
|
@@ -12,22 +11,15 @@ module Deliver
|
|
12
11
|
begin
|
13
12
|
verify_app(app)
|
14
13
|
|
15
|
-
|
14
|
+
status = (get_app_information(app)['status'] rescue nil)
|
15
|
+
|
16
|
+
return Deliver::App::AppStatus::PREPARE_FOR_SUBMISSION if status == 'prepareForUpload'
|
17
|
+
return Deliver::App::AppStatus::PREPARE_FOR_SUBMISSION if status == 'devRejected' # that's the same thing
|
18
|
+
return Deliver::App::AppStatus::WAITING_FOR_REVIEW if status == 'waitingForReview'
|
19
|
+
return Deliver::App::AppStatus::READY_FOR_SALE if status == 'readyForSale'
|
16
20
|
|
17
|
-
|
18
|
-
|
19
|
-
if page.has_content?"To submit a new build, you must remove this version from review"
|
20
|
-
return Deliver::App::AppStatus::WAITING_FOR_REVIEW
|
21
|
-
else
|
22
|
-
return Deliver::App::AppStatus::UPLOAD_RECEIVED
|
23
|
-
end
|
24
|
-
elsif page.has_content?BUTTON_STRING_NEW_VERSION
|
25
|
-
return Deliver::App::AppStatus::READY_FOR_SALE
|
26
|
-
elsif page.has_content?BUTTON_STRING_SUBMIT_FOR_REVIEW
|
27
|
-
return Deliver::App::AppStatus::PREPARE_FOR_SUBMISSION
|
28
|
-
else
|
29
|
-
raise "App status not yet implemented"
|
30
|
-
end
|
21
|
+
Helper.log.info "App Status '#{status}' not yet implemented, please submit an issue on GitHub"
|
22
|
+
return nil
|
31
23
|
rescue Exception => ex
|
32
24
|
error_occured(ex)
|
33
25
|
end
|
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.11.
|
4
|
+
version: 0.11.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-05-
|
11
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|