deliver 0.7.2 → 0.7.3

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: 2e53e55611e6ae56d0fa0371a3b4bd08716d43c8
4
- data.tar.gz: c1d9817f3fd4e7f58c372d41ec69b85b2457e2ad
3
+ metadata.gz: 78d849164108dd65b5c77fa073754ee65e347a56
4
+ data.tar.gz: 115c89bc18e3b45967740c8e3d0fa9676835d681
5
5
  SHA512:
6
- metadata.gz: a599b7c21a251ada077bdd22e5540fa31e372d4d5d5d6ccc285532e47cd74b8ad04b6a52d261258d7eb21472aa60984940beb11223505e07235130a3fe3670b3
7
- data.tar.gz: 52abde10badcc9ee4e87e6b19d4b8d763752b50813b623c73ba02374592bfb79b3e8621979f9ed6783be3ef264d25c77aa63fb0b45496b5a7fe7b2a54bfe3800
6
+ metadata.gz: 927ca5a578b8f7a3b1b88e9e18f500b6a5ba015e3328993f68de22ae3ab4db5b61d6522002ef31be0262ee041a0c2806a8f7fa6254666c2a9579a360e85e9db3
7
+ data.tar.gz: b57239a10535ff16f527ec771e5370f2da26bcc3e7a168625e5d24ca049cfdee789691b768584d53cf189f7fb089ff40c6ad04a585621086127fe4eec6a088c3
data/README.md CHANGED
@@ -206,9 +206,9 @@ success do
206
206
  system("Say 'success'")
207
207
  end
208
208
 
209
- error do |exception|
209
+ error do |information|
210
210
  # custom exception handling here
211
- raise "Something went wrong: #{exception}"
211
+ raise "Something went wrong: #{information['error']}"
212
212
  end
213
213
  ```
214
214
 
@@ -13,23 +13,28 @@ module Deliver
13
13
  click_on "Prerelease"
14
14
 
15
15
  wait_for_preprocessing
16
+
17
+ beta_switch = (all(".switcher.ng-binding").first rescue nil)
16
18
 
17
- if all(".switcher.ng-binding").count == 0
19
+ unless beta_switch
18
20
  raise "Could not find beta build on '#{current_url}'. Make sure it is available there"
19
21
  end
20
22
 
21
- if first(".switcher.ng-binding")['class'].include?"checked"
22
- Helper.log.info("Beta is already active. Take a look at '#{current_url}'.")
23
- return true
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
24
29
  end
25
30
 
26
- first(".switcher.ng-binding").click
27
- if page.has_content?"Are you sure you want to start testing"
31
+ beta_switch.click
32
+ if page.has_content?"Are you sure you want to start testing" # this only happens on the first time
28
33
  click_on "Start"
29
-
30
- Helper.log.info "Successfully enabled beta builds".green
31
34
  end
32
35
 
36
+ Helper.log.info "Successfully enabled latest beta build.".green
37
+
33
38
  return true
34
39
  rescue => ex
35
40
  error_occured(ex)
@@ -1,3 +1,3 @@
1
1
  module Deliver
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
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.2
4
+ version: 0.7.3
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-01-28 00:00:00.000000000 Z
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: multi_json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: highline
29
43
  requirement: !ruby/object:Gem::Requirement