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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1b7c8972a1a7909719acde920d17104b4e6d382
4
- data.tar.gz: aed3543ae957e4b8ef85a8417237d1684e659086
3
+ metadata.gz: 07fdccee83b14a65491106d5934e4518dbb48407
4
+ data.tar.gz: d3d4d563344b7a380b747444c166c1f862188c73
5
5
  SHA512:
6
- metadata.gz: fe6a1c24b8657dfc8527c1f8d76558ee2f540675b433c7a483f0d3bfde6aa74bef00d6b0e50a1cc4e9aae61dce6b6fa41b42ab2cf425a182aa56b26fa6412c30
7
- data.tar.gz: 661353e09d8e41de56e4ad0d88358ef80306be4f3dba615d9f3ebaa9881c5aff0a4bbf17344b00fae1c65bbaa35f05287e02c9ce2922cfe43ba78d9ce362f992
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 system, ssh processes, capturing output in realtime,
4
- allow to set temeouts and read timeouts.
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 yourself as:
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
- Below is a small snippet that demonstrates how to use
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 happened, spawn raises ```Evrone::Common::Spawn::TimeoutError``` or
68
- ```Evrone::Common::Spawn::ReadTimeoutError```, both exception classes inherited
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, if process was killed by signal, for example
74
- KILL or INT, return negative signal number (for KILL was -9)
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
 
@@ -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 system, ssh processes, capturing output in realtime,
12
- allow to set temeouts and read timeouts }
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
 
@@ -1,7 +1,7 @@
1
1
  module Evrone
2
2
  module Common
3
3
  module Spawn
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'rspec/autorun'
2
- require File.expand_path('../../lib/evrone-common-spawn', __FILE__)
2
+ require File.expand_path('../../lib/evrone/common/spawn', __FILE__)
3
3
 
4
4
  RSpec.configure do |c|
5
5
  end
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.1
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: " Spawn system, ssh processes, capturing output in realtime,\nallow to
84
- set temeouts and read timeouts "
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 system, ssh processes, capturing output in realtime,
135
- allow to set temeouts and read timeouts
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