childprocess 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/childprocess.gemspec CHANGED
@@ -18,10 +18,10 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- spec/*`.split("\n")
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_development_dependency "rspec", [">= 2.0.0"]
22
- s.add_development_dependency "yard", [">= 0"]
23
- s.add_development_dependency "rake", ["~> 0.9.2"]
24
- s.add_runtime_dependency "ffi", ["~> 1.0.6"]
21
+ s.add_development_dependency "rspec", ">= 2.0.0"
22
+ s.add_development_dependency "yard", ">= 0"
23
+ s.add_development_dependency "rake", "~> 0.9.2"
24
+ s.add_runtime_dependency "ffi", "~> 1.0", ">= 1.0.6"
25
25
  end
26
26
 
27
27
 
data/lib/childprocess.rb CHANGED
@@ -4,9 +4,6 @@ require 'childprocess/abstract_io'
4
4
  require "fcntl"
5
5
 
6
6
  module ChildProcess
7
- autoload :Unix, 'childprocess/unix'
8
- autoload :Windows, 'childprocess/windows'
9
- autoload :JRuby, 'childprocess/jruby'
10
7
 
11
8
  @posix_spawn = false
12
9
 
@@ -172,3 +169,7 @@ module ChildProcess
172
169
  end # ChildProcess
173
170
 
174
171
  require 'jruby' if ChildProcess.jruby?
172
+
173
+ require 'childprocess/unix' if ChildProcess.unix?
174
+ require 'childprocess/windows' if ChildProcess.windows?
175
+ require 'childprocess/jruby' if ChildProcess.jruby?
@@ -1,3 +1,3 @@
1
1
  module ChildProcess
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
data/spec/unix_spec.rb CHANGED
@@ -12,7 +12,7 @@ if ChildProcess.unix? && !ChildProcess.jruby? && !ChildProcess.posix_spawn?
12
12
  process.stub!(:fork).and_return('fakepid')
13
13
  process.stub!(:send_term)
14
14
  process.stub!(:poll_for_exit).and_raise(ChildProcess::TimeoutError)
15
- process.stub!(:send_kill).and_raise(Errno::ECHILD)
15
+ process.stub!(:send_kill).and_raise(Errno::ECHILD.new)
16
16
 
17
17
  process.start
18
18
  lambda { process.stop }.should_not raise_error
@@ -26,7 +26,7 @@ if ChildProcess.unix? && !ChildProcess.jruby? && !ChildProcess.posix_spawn?
26
26
  process.stub!(:fork).and_return('fakepid')
27
27
  process.stub!(:send_term)
28
28
  process.stub!(:poll_for_exit).and_raise(ChildProcess::TimeoutError)
29
- process.stub!(:send_kill).and_raise(Errno::ESRCH)
29
+ process.stub!(:send_kill).and_raise(Errno::ESRCH.new)
30
30
 
31
31
  process.start
32
32
  lambda { process.stop }.should_not raise_error
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.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-28 00:00:00.000000000 Z
12
+ date: 2012-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -65,6 +65,9 @@ dependencies:
65
65
  none: false
66
66
  requirements:
67
67
  - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: '1.0'
70
+ - - ! '>='
68
71
  - !ruby/object:Gem::Version
69
72
  version: 1.0.6
70
73
  type: :runtime
@@ -73,6 +76,9 @@ dependencies:
73
76
  none: false
74
77
  requirements:
75
78
  - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: '1.0'
81
+ - - ! '>='
76
82
  - !ruby/object:Gem::Version
77
83
  version: 1.0.6
78
84
  description: This gem aims at being a simple and reliable solution for controlling