testbot 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,4 @@
1
- 0.2.8
1
+ 0.2.9
2
2
 
3
3
  Made testbot into a gem. Simplified the design. Added a CLI. Removed git support.
4
4
 
@@ -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.2.8'
71
+ ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.2.9'
72
72
 
73
73
  The rails 2 config generator isn't done yet so you can look at the following examples instead:
74
74
  [lib/tasks/testbot.rake](https://gist.github.com/715836) and
@@ -189,10 +189,14 @@ class Runner
189
189
 
190
190
  successful_install = system "gem install testbot -v #{version}"
191
191
 
192
- # This closes the process and attempts to re-run the same command.
193
- exec "testbot #{ARGV.join(' ')}" if successful_install
192
+ if successful_install
193
+ File.open("/tmp/update_testbot.sh", "w") { |file| file.write("#!/bin/sh\nsleep 5\ntestbot #{ARGV.join(' ')}") }
194
+ system "chmod +x /tmp/update_testbot.sh"
195
+ system "nohup /tmp/update_testbot.sh &"
196
+ exit 0
197
+ end
194
198
  end
195
-
199
+
196
200
  def ping_params
197
201
  { :hostname => (@hostname ||= `hostname`.chomp), :max_instances => @config.max_instances,
198
202
  :idle_instances => (@config.max_instances - @instances.size), :username => ENV['USER'] }.merge(base_params)
@@ -6,7 +6,7 @@ module Testbot
6
6
  require 'railtie' if defined?(Rails)
7
7
 
8
8
  # Don't forget to update readme and changelog
9
- VERSION = "0.2.8"
9
+ VERSION = "0.2.9"
10
10
 
11
11
  SERVER_PID = "/tmp/testbot_server.pid"
12
12
  RUNNER_PID = "/tmp/testbot_runner.pid"
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
  - 2
9
- - 8
10
- version: 0.2.8
9
+ - 9
10
+ version: 0.2.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Joakim Kolsj\xC3\xB6"