childprocess 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
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.4"
8
+ s.version = "0.0.5"
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"]
@@ -13,11 +13,11 @@ module ChildProcess
13
13
  false
14
14
  end
15
15
 
16
- def stop
16
+ def stop(timeout = nil)
17
17
  assert_started
18
18
 
19
19
  @process.destroy
20
- @process.waitFor
20
+ @process.waitFor # no way to actually use the timeout here..
21
21
 
22
22
  @exit_code = @process.exitValue
23
23
  end
@@ -32,6 +32,11 @@ describe ChildProcess do
32
32
  process.should be_exited
33
33
  end
34
34
 
35
+ it "accepts a timeout argument to #stop" do
36
+ process = sleeping_ruby.start
37
+ process.stop(EXIT_TIMEOUT)
38
+ end
39
+
35
40
  it "lets child process inherit the environment of the current process" do
36
41
  Tempfile.open("env-spec") do |file|
37
42
  with_env('env-spec' => 'yes') do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: childprocess
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken