shell_command 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/shell_command.rb CHANGED
@@ -50,6 +50,7 @@ module ShellCommand
50
50
  pid, stdin, stdout, stderr = Open4.open4(*args)
51
51
  _, status = Process.wait2(pid)
52
52
  command = Command.new(status, stdout.read, stderr.read)
53
+ [stdin, stdout, stderr].map(&:close)
53
54
 
54
55
  if block_given?
55
56
  yield command
@@ -1,3 +1,3 @@
1
1
  module ShellCommand
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shell_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: open4
16
- requirement: &70169586060480 !ruby/object:Gem::Requirement
16
+ requirement: &70243565275240 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70169586060480
24
+ version_requirements: *70243565275240
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70169586094980 !ruby/object:Gem::Requirement
27
+ requirement: &70243565310040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70169586094980
35
+ version_requirements: *70243565310040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &70169586092480 !ruby/object:Gem::Requirement
38
+ requirement: &70243565307780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70169586092480
46
+ version_requirements: *70243565307780
47
47
  description: shell_command tries to provide a better interface for communicating
48
48
  with commands you spawn on the shell
49
49
  email:
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  segments:
87
87
  - 0
88
- hash: 2310391994670122031
88
+ hash: 3071351823306739933
89
89
  requirements: []
90
90
  rubyforge_project: shell_command
91
91
  rubygems_version: 1.8.11