sheepsafe 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/sheepsafe.rb +1 -1
- data/lib/sheepsafe/controller.rb +2 -2
- data/sheepsafe.gemspec +2 -2
- metadata +4 -4
data/History.txt
CHANGED
data/lib/sheepsafe.rb
CHANGED
data/lib/sheepsafe/controller.rb
CHANGED
@@ -50,8 +50,8 @@ module Sheepsafe
|
|
50
50
|
notified = false
|
51
51
|
loop do
|
52
52
|
require 'open-uri'
|
53
|
-
|
54
|
-
break if
|
53
|
+
is_example_com = open("http://example.com") {|f| f.read[/(RFC 2606)/] == "RFC 2606"} rescue nil
|
54
|
+
break if is_example_com
|
55
55
|
notify_warning("Waiting for internet connection before switching") unless notified
|
56
56
|
notified = true
|
57
57
|
sleep 5
|
data/sheepsafe.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sheepsafe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 8
|
10
|
+
version: 0.2.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nick Sieger
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-22 00:00:00 -05:00
|
19
19
|
default_executable: sheepsafe
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|