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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f767af3b79b5e4b336cc28546b3c22ecd037d720
4
- data.tar.gz: c2a044bd66eea7b86e3c8b83df92b7604eb24d09
3
+ metadata.gz: 3438684fdc6e6ef10f2ca6b7807808800c235626
4
+ data.tar.gz: 20cdd9b5afa3db7ee84bdc70903102bff756f3c2
5
5
  SHA512:
6
- metadata.gz: 19415d3a4199d9194dc875200c59afe539604eaca57a0343d0463913f0082f79c80066bf0951679a842862025d668899d38b8794df1080d9281d3ca973b362f8
7
- data.tar.gz: 6224999f54d0a3a23574bcefa7c4666381d5216de9d6dd366fd476b642462b76cf4bc6ef1cae58963846a539fa893dec0955ea873f89b2aeb5419fbca03abf49
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. This method uses a headless browser
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
- open_app_page(app)
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
- if page.has_content?WAITING_FOR_REVIEW
18
- # That's either Upload Received or Waiting for Review
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
@@ -1,3 +1,3 @@
1
1
  module Deliver
2
- VERSION = "0.11.4"
2
+ VERSION = "0.11.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.11.4
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-23 00:00:00.000000000 Z
11
+ date: 2015-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core