childprocess 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
data/childprocess.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{childprocess}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jari Bakken"]
@@ -11,6 +11,8 @@ module ChildProcess
11
11
  @exit_code = @process.exitValue
12
12
  rescue java.lang.IllegalThreadStateException
13
13
  false
14
+ ensure
15
+ log(:exit_code => @exit_code)
14
16
  end
15
17
 
16
18
  def stop(timeout = nil)
@@ -32,7 +32,7 @@ module ChildProcess
32
32
  assert_started
33
33
  pid, status = ::Process.waitpid2(@pid, ::Process::WNOHANG)
34
34
 
35
- log(pid, status)
35
+ log(:pid => pid, :status => status)
36
36
 
37
37
  if pid
38
38
  @exit_code = status.exitstatus || status.termsig
@@ -21,7 +21,7 @@ module ChildProcess
21
21
  code = @handle.exit_code
22
22
  exited = code != PROCESS_STILL_ACTIVE
23
23
 
24
- log(exited, code)
24
+ log(:exited? => exited, :code => code)
25
25
 
26
26
  if exited
27
27
  @exit_code = code
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: childprocess
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jari Bakken