sheepsafe 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.7
2
+
3
+ - example.com changed, updating content length
4
+
1
5
  === 0.2.6
2
6
 
3
7
  - Fix error with proxy when ssh_port is not configured
@@ -51,7 +51,7 @@ module Sheepsafe
51
51
  loop do
52
52
  require 'open-uri'
53
53
  length = open("http://example.com") {|f| f.meta['content-length'] } rescue nil
54
- break if length == "596" # successful contact w/ example.com
54
+ break if length == "3067" # successful contact w/ example.com
55
55
  notify_warning("Waiting for internet connection before switching") unless notified
56
56
  notified = true
57
57
  sleep 5
@@ -112,7 +112,7 @@ module Sheepsafe
112
112
  Process.waitpid(pid)
113
113
  exit_count += 1
114
114
  if exit_count % 2 == 1 && exit_count < 10
115
- log "command exited #{exit_count} times:\n#{}\nlast time with #{$?.exitstatus}"
115
+ log "command '#{ssh_command}' exited #{exit_count} times:\nlast time with #{$?.exitstatus}"
116
116
  end
117
117
  sleep 1
118
118
  end
data/lib/sheepsafe.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Sheepsafe
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
4
4
 
5
5
  require 'sheepsafe/config'
data/sheepsafe.gemspec CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sheepsafe'
5
- s.version = '0.2.6'
6
- s.date = '2011-01-31'
5
+ s.version = '0.2.7'
6
+ s.date = '2011-02-13'
7
7
 
8
8
  s.rubyforge_project = %q{caldersphere}
9
9
 
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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 6
10
- version: 0.2.6
9
+ - 7
10
+ version: 0.2.7
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-01-31 00:00:00 -06:00
18
+ date: 2011-02-13 00:00:00 +01:00
19
19
  default_executable: sheepsafe
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency