AmazonEchoJS 0.0.05 → 0.0.06
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/AmazonEchoJS/echo.rb +3 -3
- data/lib/AmazonEchoJS/version.rb +1 -1
- 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: f793f294705917da2976099f032d22d987213ba1
|
4
|
+
data.tar.gz: c00db2d003b91d9a1da3f7bcfe8ca23010212cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c7a53507ff8140461db8ca10851752cc87db555cd0e0f43c41d6abdc476709ed83b2c49a1454236fabfbace99b25c7290100e5ef7784b0a0ad088498fb62847
|
7
|
+
data.tar.gz: 2d488d13d57ef42e9f7061a5be7083cc596a5c10dbe9ea144ab1a3116e488f2bc354384d556c6d008de2377e3a6b8b000b72f1ec5fdc3b004f5c6e748c1451a9
|
data/lib/AmazonEchoJS/echo.rb
CHANGED
@@ -19,7 +19,7 @@ module AmazonEchoJS
|
|
19
19
|
#keep_alive
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
22
|
+
def kill_browser
|
23
23
|
if @running
|
24
24
|
(@browser.close rescue nil) if @browser
|
25
25
|
@running = false
|
@@ -30,7 +30,7 @@ module AmazonEchoJS
|
|
30
30
|
def keep_alive
|
31
31
|
while @running
|
32
32
|
begin
|
33
|
-
#
|
33
|
+
#kill_browser no need to kill browser, just refresh the page.
|
34
34
|
sleep(1)
|
35
35
|
open_browser
|
36
36
|
start_watcher
|
@@ -38,7 +38,7 @@ module AmazonEchoJS
|
|
38
38
|
rescue Exception => e
|
39
39
|
puts e.message
|
40
40
|
ensure
|
41
|
-
|
41
|
+
kill_browser
|
42
42
|
puts "Killed browser."
|
43
43
|
#@running = false #keep running even if error encountered.
|
44
44
|
end
|
data/lib/AmazonEchoJS/version.rb
CHANGED