runciter 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/VERSION +1 -1
  3. data/lib/runciter/run.rb +4 -4
  4. metadata +9 -13
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 52391a2e3281be1b940c6804fe0aac51dd9e87a8
4
+ data.tar.gz: e5c2d048b4865ddd70284eb06f436952b64d0aad
5
+ SHA512:
6
+ metadata.gz: 19454a7dd7c5d63bf7fd4f56dee5a0e9d607ea0d564e30c49363f7a1c945a1353c7603c43c0111650d9fc9b674aeb277eb5fc51889fa7646f80fac76ddc95236
7
+ data.tar.gz: 7ba0012022028416feb727b331945251ef1e43519a6f5600888584d2dbeb2f0bc6edcc7776ae2426beeb5755ca1c8303a5562df8c4c7e207ede176d9ca7d6081
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
data/lib/runciter/run.rb CHANGED
@@ -14,20 +14,20 @@ module Runciter
14
14
  end
15
15
 
16
16
  def step!(num = 1)
17
- @app.api[:runs].incr_step(@id, num)
17
+ @app.api[:runs].incr_step(@task.id, @id, num)
18
18
  rescue
19
19
  warn $!
20
20
  end
21
21
 
22
22
  def finish!
23
- @app.api[:runs].finish(@id)
23
+ @app.api[:runs].finish(@task.id, @id)
24
24
  @heart.terminate
25
25
  rescue
26
26
  warn $!
27
27
  end
28
28
 
29
29
  def die!(e)
30
- @app.api[:runs].die(@id, [e.message, e.backtrace.join("\n")].join("\n"))
30
+ @app.api[:runs].die(@task.id, @id, [e.message, e.backtrace.join("\n")].join("\n"))
31
31
  @heart.terminate
32
32
  rescue
33
33
  warn $!
@@ -45,7 +45,7 @@ module Runciter
45
45
  def run_heartbeat_thread!
46
46
  @heart = Thread.new do
47
47
  loop do
48
- @app.api[:runs].heartbeat(@id)
48
+ @app.api[:runs].heartbeat(@task.id, @id)
49
49
  sleep @opts[:heartbeat_interval]
50
50
  end
51
51
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runciter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Kite
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-28 00:00:00.000000000 Z
11
+ date: 2013-04-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: jimson
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.9.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.9.1
30
27
  description:
@@ -48,27 +45,26 @@ files:
48
45
  - spec/app_spec.rb
49
46
  homepage: http://www.github.com/chriskite/runciter
50
47
  licenses: []
48
+ metadata: {}
51
49
  post_install_message:
52
50
  rdoc_options: []
53
51
  require_paths:
54
52
  - lib
55
53
  required_ruby_version: !ruby/object:Gem::Requirement
56
- none: false
57
54
  requirements:
58
- - - ! '>='
55
+ - - '>='
59
56
  - !ruby/object:Gem::Version
60
57
  version: '0'
61
58
  required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
59
  requirements:
64
- - - ! '>='
60
+ - - '>='
65
61
  - !ruby/object:Gem::Version
66
62
  version: '0'
67
63
  requirements: []
68
64
  rubyforge_project:
69
- rubygems_version: 1.8.24
65
+ rubygems_version: 2.0.0.rc.2
70
66
  signing_key:
71
- specification_version: 3
67
+ specification_version: 4
72
68
  summary: Ruby client for the Runciter task monitor
73
69
  test_files:
74
70
  - spec/spec_helper.rb