moto 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/listeners/webui.rb +4 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7550522b02155701cb2e5d0024dcb9e30aa824cc
4
- data.tar.gz: 41543499d254a63ca3c075e8cf1ab8cf0f92cfcd
3
+ metadata.gz: c94bb7f2fefa17c428807553a10595ef68cfcfc4
4
+ data.tar.gz: 480a4a33b77799351417effaa2d8fbe9f41bb4e7
5
5
  SHA512:
6
- metadata.gz: 12d0db076633022ac6438a195d4108d73d3cc0da4efd470095fa6155f25609f49a9e8169d64038051c9a9dd736e1faa2738fe888ba6901a6471db61b7c362fa2
7
- data.tar.gz: eed952611e3ca4296247d454b19f64371816c1a3a932c0eea8ee28d40fd6e71552381670750a3595d090f0604d67951bbd1473aa7be34ba38bfbdf290c8dab78
6
+ metadata.gz: f3aff69430e58ab6b5b4b175316e8dff36d1c84d0dc320fdc4fe9f0574a54245bd3a4121bc8aad8c017f6378acff6379de2d746f90fc6814b100d0e85d68b057
7
+ data.tar.gz: 52d57ac54c25c563e40dc7fe316772055e3c9709ef571ccb1c624e9c219ff7e25aad7dc59468a912c1952c121cb6f28a4f7ddcbea87f55b4db3f41b46289c1a0
@@ -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.13
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-17 00:00:00.000000000 Z
12
+ date: 2015-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport