childprocess 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{childprocess}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
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"]
@@ -57,7 +57,8 @@ Gem::Specification.new do |s|
57
57
  s.rubygems_version = %q{1.3.7}
58
58
  s.summary = %q{Cross-platform ruby library for managing child processes.}
59
59
  s.test_files = [
60
- "spec/childprocess_spec.rb",
60
+ "spec/abstract_io_spec.rb",
61
+ "spec/childprocess_spec.rb",
61
62
  "spec/jruby_spec.rb",
62
63
  "spec/spec_helper.rb",
63
64
  "spec/unix_spec.rb"
@@ -2,6 +2,11 @@ module ChildProcess
2
2
  class AbstractIO
3
3
  attr_reader :stderr, :stdout
4
4
 
5
+ def inherit!
6
+ @stdout = STDOUT
7
+ @stderr = STDERR
8
+ end
9
+
5
10
  def stderr=(io)
6
11
  check_type io
7
12
  @stderr = io
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../spec_helper', __FILE__)
2
+
3
+ describe ChildProcess::AbstractIO do
4
+ let(:io) { ChildProcess::AbstractIO.new }
5
+
6
+ it "inherits the parent's IO streams" do
7
+ io.inherit!
8
+
9
+ io.stdout.should == STDOUT
10
+ io.stderr.should == STDERR
11
+ end
12
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jari Bakken
@@ -103,6 +103,7 @@ files:
103
103
  - spec/spec.opts
104
104
  - spec/spec_helper.rb
105
105
  - spec/unix_spec.rb
106
+ - spec/abstract_io_spec.rb
106
107
  has_rdoc: true
107
108
  homepage: http://github.com/jarib/childprocess
108
109
  licenses: []
@@ -136,6 +137,7 @@ signing_key:
136
137
  specification_version: 3
137
138
  summary: Cross-platform ruby library for managing child processes.
138
139
  test_files:
140
+ - spec/abstract_io_spec.rb
139
141
  - spec/childprocess_spec.rb
140
142
  - spec/jruby_spec.rb
141
143
  - spec/spec_helper.rb