flaky 0.0.26 → 0.0.27

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: 752ccabfa98b60bf491925462e7499943f4b64c7
4
- data.tar.gz: 169a03a438dac6bb9d8f1bb232eba39f6c559931
3
+ metadata.gz: bb98852ea1697b910a4ec91dd228399f96e1107d
4
+ data.tar.gz: 80993373a66b56bb78aa0929a9fe4fbe489df75e
5
5
  SHA512:
6
- metadata.gz: 3f9600cdf874c364cd613aae907b91063938bb8872d1b9c931b4df2c00f806a737421dc01e21d59d173bbe8ed9ea442ae458d64cfc7d39a222a863cdabb6a144
7
- data.tar.gz: b73ac1fed7d6413891b651969838f9cbf07e3bbb4e30206982e7a05dd6d28222880bfefb490c2d8722135e37f79273c606fa7c277832ebb6ca3f661c074ab703
6
+ metadata.gz: e751fb9f7a6ea9466c153ebc122f429466d18072f8d140c740b8d28f917711eed2cf6407f8d5cfc7531f875523f93c230bcc1cbd4f9f1e6eb380dac01b850b20
7
+ data.tar.gz: 8bfcfd7504e30a10a8612866ae0417a7574213e4416728b620ec5697b2d240eab54142fb306ec6a610cd69bcf15c5033649703add9dda28903b58646b1eb5cbe
data/lib/flaky.rb CHANGED
@@ -9,7 +9,7 @@ require 'posix/spawn' # http://rubygems.org/gems/posix-spawn
9
9
  require 'digest/md5'
10
10
 
11
11
  module Flaky
12
- VERSION = '0.0.26' unless defined? ::Flaky::VERSION
12
+ VERSION = '0.0.27' unless defined? ::Flaky::VERSION
13
13
  DATE = '2014-01-18' unless defined? ::Flaky::DATE
14
14
 
15
15
  class << self; attr_accessor :no_video; end
data/lib/flaky/appium.rb CHANGED
@@ -83,8 +83,17 @@ module Flaky
83
83
  self.launch.wait
84
84
  end
85
85
 
86
- while !self.ready
87
- sleep 0.5
86
+ begin
87
+ timeout 60 do # timeout in seconds
88
+ while !self.ready
89
+ sleep 0.5
90
+ end
91
+ end
92
+ rescue Timeout::Error
93
+ # try again if appium fails to become ready
94
+ # sometimes the simulator never launches.
95
+ # the sim crashes or any number of issues.
96
+ self.start
88
97
  end
89
98
 
90
99
  # -e = -A = include other user's processes
data/release_notes.md CHANGED
@@ -1,3 +1,10 @@
1
+ #### v0.0.26 2014-01-18
2
+
3
+ - [844516a](https://github.com/appium/flaky/commit/844516a79eb5753aec263fc9fd88dd2fbda9147c) Release 0.0.26
4
+ - [4a2b1f5](https://github.com/appium/flaky/commit/4a2b1f5a5d663e8110cb58188450c6d1d80973b5) Rescue Errno::EAGAIN
5
+ - [a547503](https://github.com/appium/flaky/commit/a547503c3c05b434947a9bb5bc693c0559fdf828) Update readme.md
6
+
7
+
1
8
  #### v0.0.25 2014-01-13
2
9
 
3
10
  - [8df71ee](https://github.com/appium/flaky/commit/8df71eebc6830c7d8375dfc1d2fc17e2a4829540) Release 0.0.25
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flaky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com