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 +4 -4
- data/lib/flaky.rb +1 -1
- data/lib/flaky/appium.rb +11 -2
- data/release_notes.md +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb98852ea1697b910a4ec91dd228399f96e1107d
|
|
4
|
+
data.tar.gz: 80993373a66b56bb78aa0929a9fe4fbe489df75e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
|
|
87
|
-
|
|
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
|