em-systemcommand 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/em-systemcommand.rb +2 -5
- data/lib/em-systemcommand/version.rb +1 -1
- metadata +10 -16
data/lib/em-systemcommand.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'open3'
|
2
2
|
|
3
3
|
require "em-systemcommand/version"
|
4
|
-
|
5
4
|
require "em-systemcommand/pipe"
|
6
5
|
require "em-systemcommand/pipe_handler"
|
7
6
|
|
@@ -16,18 +15,16 @@ module EventMachine
|
|
16
15
|
|
17
16
|
attr_accessor :pipes, :stdin, :stdout, :stderr
|
18
17
|
|
19
|
-
def initialize *
|
20
|
-
|
18
|
+
def initialize *args, &block
|
21
19
|
@pipes = {}
|
22
20
|
|
23
|
-
stdin, stdout, stderr, @wait_thr = Open3.popen3
|
21
|
+
stdin, stdout, stderr, @wait_thr = Open3.popen3 *args
|
24
22
|
|
25
23
|
@stdin = attach_pipe_handler :stdin, stdin
|
26
24
|
@stdout = attach_pipe_handler :stdout, stdout
|
27
25
|
@stderr = attach_pipe_handler :stderr, stderr
|
28
26
|
|
29
27
|
yield self if block_given?
|
30
|
-
|
31
28
|
end
|
32
29
|
|
33
30
|
def pid
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-systemcommand
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &10326480 !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: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *10326480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: guard
|
27
|
-
requirement: &
|
27
|
+
requirement: &10325560 !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: *
|
35
|
+
version_requirements: *10325560
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: guard-rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &10324360 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *10324360
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: eventmachine
|
49
|
-
requirement: &
|
49
|
+
requirement: &10340920 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *10340920
|
58
58
|
description: ! '`em-systemcommand` is a simple abstraction for invoking system commands
|
59
59
|
and handling their output easily with eventmachine.'
|
60
60
|
email:
|
@@ -91,18 +91,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
|
-
segments:
|
95
|
-
- 0
|
96
|
-
hash: -941213243736516933
|
97
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
95
|
none: false
|
99
96
|
requirements:
|
100
97
|
- - ! '>='
|
101
98
|
- !ruby/object:Gem::Version
|
102
99
|
version: '0'
|
103
|
-
segments:
|
104
|
-
- 0
|
105
|
-
hash: -941213243736516933
|
106
100
|
requirements: []
|
107
101
|
rubyforge_project:
|
108
102
|
rubygems_version: 1.8.17
|