evrone-common-spawn 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/evrone-common-spawn.gemspec +2 -4
- data/lib/evrone/common/spawn/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07fdccee83b14a65491106d5934e4518dbb48407
|
4
|
+
data.tar.gz: d3d4d563344b7a380b747444c166c1f862188c73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcc43b9fec771151d4ad70e7642a75a5499ba40c72fe2dd7c1ac4c8def28733ca40953cd51b23bdd5fcdbf2259a0a6dd70881d66acdef15c155266d6f8838e8b
|
7
|
+
data.tar.gz: 72f96c65fb10d679fdb1fb611e0ed7b71825a6666b9f14f442de2ded65f50e1881365ac63aa3d9d6697a5d7f1771ede28f2a421d1884812231b2e73b1606e6d0
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Evrone::Common::Spawn
|
2
2
|
|
3
|
-
This gem helps to spawn
|
4
|
-
|
3
|
+
This gem helps to spawn processes in a shell capturing output in realtime.
|
4
|
+
It also allows to set or read the temeouts.
|
5
5
|
|
6
6
|
* [![Build Status](https://travis-ci.org/evrone/evrone-common-spawn.png)](https://travis-ci.org/evrone/evrone-common-spawn)
|
7
7
|
* [![Code Climate](https://codeclimate.com/github/evrone/evrone-common-spawn.png)](https://codeclimate.com/github/evrone/evrone-common-spawn)
|
@@ -16,17 +16,17 @@ Add this line to your application's Gemfile:
|
|
16
16
|
|
17
17
|
gem 'evrone-common-spawn'
|
18
18
|
|
19
|
-
And then execute:
|
19
|
+
And then execute the bundler:
|
20
20
|
|
21
21
|
$ bundle
|
22
22
|
|
23
|
-
Or install it
|
23
|
+
Or install it via `gem` command:
|
24
24
|
|
25
25
|
$ gem install evrone-common-spawn
|
26
26
|
|
27
27
|
## Quick Start
|
28
28
|
|
29
|
-
|
29
|
+
The following snippet demonstrates the usage:
|
30
30
|
|
31
31
|
```ruby
|
32
32
|
# Spawn system processes example
|
@@ -64,14 +64,14 @@ end
|
|
64
64
|
|
65
65
|
### Timeouts
|
66
66
|
|
67
|
-
When timeout
|
68
|
-
```Evrone::Common::Spawn::ReadTimeoutError
|
67
|
+
When a timeout is reached spawn raises ```Evrone::Common::Spawn::TimeoutError``` or
|
68
|
+
```Evrone::Common::Spawn::ReadTimeoutError```. Both exceptions inherit
|
69
69
|
from Timeout::Error
|
70
70
|
|
71
71
|
### Return values
|
72
72
|
|
73
|
-
Both ```spawn``` methods return process exit code
|
74
|
-
KILL or INT, return negative signal number (for KILL
|
73
|
+
Both ```spawn``` methods return process exit code. If a process was terminated by a signal, for example
|
74
|
+
KILL or INT, the methods return negative number identical to a signal number (-9 for KILL, etc.)
|
75
75
|
|
76
76
|
## Contributing
|
77
77
|
|
data/evrone-common-spawn.gemspec
CHANGED
@@ -8,10 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Evrone::Common::Spawn::VERSION
|
9
9
|
spec.authors = ["Dmitry Galinsky"]
|
10
10
|
spec.email = ["dima.exe@gmail.com"]
|
11
|
-
spec.description = %q{ Spawn
|
12
|
-
|
13
|
-
spec.summary = %q{ This gem helps to spawn system, ssh processes, capturing output in realtime,
|
14
|
-
allow to set temeouts and read timeouts }
|
11
|
+
spec.description = %q{ Spawn processes in a shell capturing output in realtime. It also allows to set or read the temeouts. }
|
12
|
+
spec.summary = %q{ This gem helps to spawn processes in a shell capturing output in realtime. It also allows to set or read the temeouts. }
|
15
13
|
spec.homepage = "https://github.com/evrone/evrone-common-spawn"
|
16
14
|
spec.license = "MIT"
|
17
15
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evrone-common-spawn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
@@ -80,8 +80,8 @@ dependencies:
|
|
80
80
|
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
84
|
-
set
|
83
|
+
description: ' Spawn processes in a shell capturing output in realtime. It also allows
|
84
|
+
to set or read the temeouts. '
|
85
85
|
email:
|
86
86
|
- dima.exe@gmail.com
|
87
87
|
executables: []
|
@@ -131,8 +131,8 @@ rubyforge_project:
|
|
131
131
|
rubygems_version: 2.0.2
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
|
-
summary: This gem helps to spawn
|
135
|
-
|
134
|
+
summary: This gem helps to spawn processes in a shell capturing output in realtime.
|
135
|
+
It also allows to set or read the temeouts.
|
136
136
|
test_files:
|
137
137
|
- spec/lib/spawn/process_spec.rb
|
138
138
|
- spec/lib/spawn/read_timeout_spec.rb
|