childprocess 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -62,12 +62,18 @@ r, w = IO.pipe
62
62
  proc = ChildProcess.build("echo", "foo")
63
63
  proc.io.stdout = proc.io.stderr = w
64
64
  proc.start
65
- proc.wait
66
-
67
65
  w.close
68
- r.read #=> "test\n"
66
+
67
+ begin
68
+ loop { print r.readpartial(8192) }
69
+ rescue EOFError
70
+ end
71
+
72
+ proc.wait
69
73
  ```
70
74
 
75
+ Note that if you just want to get the output of a command, the backtick method on Kernel may be a better fit.
76
+
71
77
  #### Write to stdin
72
78
 
73
79
  ```ruby
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_development_dependency "rspec", ">= 2.0.0"
22
22
  s.add_development_dependency "yard", ">= 0"
23
23
  s.add_development_dependency "rake", "~> 0.9.2"
24
- s.add_runtime_dependency "ffi", "~> 1.0", ">= 1.0.6"
24
+ s.add_runtime_dependency "ffi", "~> 1.0", ">= 1.0.11"
25
25
  end
26
26
 
27
27
 
@@ -1,3 +1,3 @@
1
1
  module ChildProcess
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
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.7
4
+ version: 0.3.8
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: 2013-01-23 00:00:00.000000000 Z
12
+ date: 2013-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -69,7 +69,7 @@ dependencies:
69
69
  version: '1.0'
70
70
  - - ! '>='
71
71
  - !ruby/object:Gem::Version
72
- version: 1.0.6
72
+ version: 1.0.11
73
73
  type: :runtime
74
74
  prerelease: false
75
75
  version_requirements: !ruby/object:Gem::Requirement
@@ -80,7 +80,7 @@ dependencies:
80
80
  version: '1.0'
81
81
  - - ! '>='
82
82
  - !ruby/object:Gem::Version
83
- version: 1.0.6
83
+ version: 1.0.11
84
84
  description: This gem aims at being a simple and reliable solution for controlling
85
85
  external programs running in the background on any Ruby / OS combination.
86
86
  email:
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project: childprocess
156
- rubygems_version: 1.8.24
156
+ rubygems_version: 1.8.25
157
157
  signing_key:
158
158
  specification_version: 3
159
159
  summary: This gem aims at being a simple and reliable solution for controlling external