komenda 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -9
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e9f8fb8dbfd89bfe6f02a03ab9b9916152cd9a1
|
4
|
+
data.tar.gz: ccd5136b7c00ee0da50df39d6845985242d0c414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 936da7f196c29f3d145731f74ac98e29344c0478c506dcd45aecdb8ef717fbe37f2b9049c07feefa3d2201f5874a07efb8a6d5b6747bea16082cc6686a67d92a
|
7
|
+
data.tar.gz: c968d4eeafd91c117e94a4de47eb2399136f8e560a119dc00aefa55f32dce2336353dc7d9dd2349e38d9d0bfd2631d4378bd923cfe0dae8b4329bc318ec64232
|
data/README.md
CHANGED
@@ -32,14 +32,7 @@ The `run()` method has a second argument `options`, which expects these keys:
|
|
32
32
|
- **`cwd`** (String): Directory to change to before running the process. Defaults to `nil`.
|
33
33
|
|
34
34
|
### Advanced usage
|
35
|
-
The `create()` method creates a `Process` which can be `
|
36
|
-
```ruby
|
37
|
-
process = Komenda.create('date')
|
38
|
-
thread = process.start
|
39
|
-
result = process.wait_for
|
40
|
-
```
|
41
|
-
|
42
|
-
To start a process and wait for it to finish, call the process' `run()` method:
|
35
|
+
The `create()` method creates a `Process` which can be `run()` (or `start()`ed as a Thread).
|
43
36
|
```
|
44
37
|
process = Komenda.create('date')
|
45
38
|
result = process.run
|
@@ -49,7 +42,7 @@ Event callbacks can be registered with `Process.on()`, for example for when outp
|
|
49
42
|
```ruby
|
50
43
|
process = Komenda.create('date')
|
51
44
|
process.on(:stdout) { |output| puts "STDOUT: #{output}" }
|
52
|
-
result = process.
|
45
|
+
result = process.run
|
53
46
|
```
|
54
47
|
The following events are emitted:
|
55
48
|
- **`.on(:stdout) { |output| }`**: When data is available on STDOUT.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: komenda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cargo Media
|
@@ -9,64 +9,64 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: event_emitter
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
21
|
-
type: :
|
20
|
+
version: '0.2'
|
21
|
+
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0.2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '1.3'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '1.3'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '10.1'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '10.1'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '0
|
62
|
+
version: '2.0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0
|
69
|
+
version: '2.0'
|
70
70
|
description: Convenience wrapper around `Open3` to run shell commands in Ruby.
|
71
71
|
email: hello@cargomedia.ch
|
72
72
|
executables: []
|