testbot 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.4.5
2
+
3
+ Made auto_update a bit more reliable.
4
+
1
5
  0.4.4
2
6
 
3
7
  Changed to using the deamons gem. Seems to fix some problems with old processes
data/README.markdown CHANGED
@@ -68,7 +68,7 @@ Using testbot with Rails 3:
68
68
 
69
69
  Using testbot with Rails 2:
70
70
 
71
- ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.4.4'
71
+ ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.4.5'
72
72
  script/generate testbot --connect 192.168.0.100
73
73
 
74
74
  rake testbot:spec (or :test, :features)
data/lib/runner.rb CHANGED
@@ -8,7 +8,7 @@ require File.dirname(__FILE__) + '/adapters/adapter'
8
8
  TIME_BETWEEN_NORMAL_POLLS = 1
9
9
  TIME_BETWEEN_QUICK_POLLS = 0.1
10
10
  TIME_BETWEEN_PINGS = 5
11
- TIME_BETWEEN_VERSION_CHECKS = Testbot.version.include?('.DEV.') ? 5 : 60
11
+ TIME_BETWEEN_VERSION_CHECKS = Testbot.version.include?('.DEV.') ? 10 : 60
12
12
  MAX_CPU_USAGE_WHEN_IDLE = 50
13
13
 
14
14
  class CPU
@@ -205,12 +205,7 @@ class Runner
205
205
  end
206
206
  end
207
207
 
208
- if successful_install
209
- File.open("/tmp/update_testbot.sh", "w") { |file| file.write("#!/bin/sh\nsleep 5\ntestbot #{ARGV.join(' ')}") }
210
- system "chmod +x /tmp/update_testbot.sh"
211
- system "nohup /tmp/update_testbot.sh &"
212
- exit 0
213
- end
208
+ system "testbot #{ARGV.join(' ')}" if successful_install
214
209
  end
215
210
 
216
211
  def ping_params
data/lib/testbot.rb CHANGED
@@ -9,7 +9,7 @@ unless defined?(Testbot)
9
9
 
10
10
  # Don't forget to update readme and changelog
11
11
  def self.version
12
- version = "0.4.4"
12
+ version = "0.4.5"
13
13
  dev_version_file = File.join(File.dirname(__FILE__), '..', 'DEV_VERSION')
14
14
  if File.exists?(dev_version_file)
15
15
  version += File.read(dev_version_file)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testbot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ version: 0.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Joakim Kolsj\xC3\xB6"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-04 00:00:00 +01:00
18
+ date: 2010-12-05 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency