moto 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/listeners/webui.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c94bb7f2fefa17c428807553a10595ef68cfcfc4
|
4
|
+
data.tar.gz: 480a4a33b77799351417effaa2d8fbe9f41bb4e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3aff69430e58ab6b5b4b175316e8dff36d1c84d0dc320fdc4fe9f0574a54245bd3a4121bc8aad8c017f6378acff6379de2d746f90fc6814b100d0e85d68b057
|
7
|
+
data.tar.gz: 52d57ac54c25c563e40dc7fe316772055e3c9709ef571ccb1c624e9c219ff7e25aad7dc59468a912c1952c121cb6f28a4f7ddcbea87f55b4db3f41b46289c1a0
|
data/lib/listeners/webui.rb
CHANGED
@@ -21,6 +21,7 @@ module Moto
|
|
21
21
|
pid: Process.pid
|
22
22
|
}
|
23
23
|
@run = JSON.parse( RestClient.post( "#{@url}/api/runs", data.to_json, :content_type => :json, :accept => :json ) )
|
24
|
+
@tests = {}
|
24
25
|
end
|
25
26
|
|
26
27
|
def end_run
|
@@ -50,7 +51,7 @@ module Moto
|
|
50
51
|
error: nil,
|
51
52
|
failures: nil,
|
52
53
|
}
|
53
|
-
@test = JSON.parse( RestClient.post( "#{@url}/api/tests", data.to_json, :content_type => :json, :accept => :json ) )
|
54
|
+
@tests[test.name] = JSON.parse( RestClient.post( "#{@url}/api/tests", data.to_json, :content_type => :json, :accept => :json ) )
|
54
55
|
end
|
55
56
|
|
56
57
|
def end_test(test)
|
@@ -61,8 +62,8 @@ module Moto
|
|
61
62
|
error: @runner.result[test.name][:error].nil? ? nil : @runner.result[test.name][:error].message,
|
62
63
|
failures: @runner.result[test.name][:failures].join("\n\t"),
|
63
64
|
duration: @runner.result[test.name][:duration]
|
64
|
-
}
|
65
|
-
@test = JSON.parse( RestClient.put( "#{@url}/api/tests/#{@test['id']}", data.to_json, :content_type => :json, :accept => :json ) )
|
65
|
+
}
|
66
|
+
@tests[test.name] = JSON.parse( RestClient.put( "#{@url}/api/tests/#{@tests[test.name]['id']}", data.to_json, :content_type => :json, :accept => :json ) )
|
66
67
|
end
|
67
68
|
|
68
69
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bartek Wilczek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|