testbot 0.7.3 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/README.markdown +0 -1
- data/lib/server/job.rb +1 -1
- data/lib/shared/version.rb +1 -1
- data/test/server/server_test.rb +8 -0
- data/testbot.gemspec +1 -1
- metadata +5 -5
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -112,7 +112,6 @@ Features
|
|
112
112
|
* You can use the same testbot network with multiple projects.
|
113
113
|
* You can abort a test run with ctrl+c and all remote processes will be stopped.
|
114
114
|
* It shows you the output as it happens.
|
115
|
-
* Testbot is continuously tested for compatibility with Ruby 1.8.7 and 1.9.2.
|
116
115
|
|
117
116
|
Contributing to testbot
|
118
117
|
----
|
data/lib/server/job.rb
CHANGED
@@ -25,7 +25,7 @@ module Testbot::Server
|
|
25
25
|
|
26
26
|
def build_results(build)
|
27
27
|
self.last_result_position ||= 0
|
28
|
-
new_results = self.result.to_s[self.last_result_position..-1]
|
28
|
+
new_results = self.result.to_s[self.last_result_position..-1] || ""
|
29
29
|
self.last_result_position = self.result.to_s.size
|
30
30
|
|
31
31
|
# Don't know why this is needed as the job should cleanup
|
data/lib/shared/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Testbot
|
2
2
|
# Don't forget to update readme and changelog
|
3
3
|
def self.version
|
4
|
-
version = "0.7.
|
4
|
+
version = "0.7.5"
|
5
5
|
dev_version_file = File.join(File.dirname(__FILE__), '..', '..', 'DEV_VERSION')
|
6
6
|
if File.exists?(dev_version_file)
|
7
7
|
version += File.read(dev_version_file)
|
data/test/server/server_test.rb
CHANGED
@@ -440,6 +440,14 @@ module Testbot::Server
|
|
440
440
|
assert_equal "Running tests..Running other tests. done...", build.results
|
441
441
|
end
|
442
442
|
|
443
|
+
should "not break when updating without new results" do
|
444
|
+
build = Build.create
|
445
|
+
job1 = Job.create :files => 'spec/models/car_spec.rb', :taken_at => Time.now - 30, :build => build
|
446
|
+
put "/jobs/#{job1.id}", :result => 'Running tests..', :status => "running"
|
447
|
+
put "/jobs/#{job1.id}", :result => '', :status => "successful"
|
448
|
+
assert_equal "Running tests..", build.results
|
449
|
+
end
|
450
|
+
|
443
451
|
end
|
444
452
|
|
445
453
|
context "GET /version" do
|
data/testbot.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.files = Dir.glob("lib/**/*") + Dir.glob("test/**/*") + %w(Gemfile .gemtest Rakefile testbot.gemspec CHANGELOG README.markdown bin/testbot) +
|
15
15
|
(File.exists?("DEV_VERSION") ? [ "DEV_VERSION" ] : [])
|
16
16
|
|
17
|
-
s.add_dependency('sinatra', '
|
17
|
+
s.add_dependency('sinatra', '~> 1.0.0')
|
18
18
|
s.add_dependency('httparty', '>= 0.6.1')
|
19
19
|
s.add_dependency('net-ssh', '>= 2.0.23')
|
20
20
|
s.add_dependency('json_pure', '>= 1.4.6')
|
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:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 5
|
10
|
+
version: 0.7.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:
|
18
|
+
date: 2014-02-17 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
hash: 23
|
30
30
|
segments:
|