evrone-common-spawn 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07fdccee83b14a65491106d5934e4518dbb48407
4
- data.tar.gz: d3d4d563344b7a380b747444c166c1f862188c73
3
+ metadata.gz: 186b7bf9721b478698a2b3c77f9b119fe4b02176
4
+ data.tar.gz: e79c0efd2b8f572299f088779a871843e7c8fa82
5
5
  SHA512:
6
- metadata.gz: dcc43b9fec771151d4ad70e7642a75a5499ba40c72fe2dd7c1ac4c8def28733ca40953cd51b23bdd5fcdbf2259a0a6dd70881d66acdef15c155266d6f8838e8b
7
- data.tar.gz: 72f96c65fb10d679fdb1fb611e0ed7b71825a6666b9f14f442de2ded65f50e1881365ac63aa3d9d6697a5d7f1771ede28f2a421d1884812231b2e73b1606e6d0
6
+ metadata.gz: 234dcc6871880e9f2eda18613d30ff59270def67cf1afa4f2cde93fd8cd90b004877f374ba8dacdf5e87e179e7690c1f48473cb0954296318e1d62ec59de671d
7
+ data.tar.gz: 3b6cf25ec501c7b7c2302334061805ab5c6d6129522a672c56379eeb82691dfc4ead3250a31936a31bd345aaf507a7aea3bd92f1d8932edeac6b4cf27fa412e3
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Evrone::Common::Spawn
2
2
 
3
3
  This gem helps to spawn processes in a shell capturing output in realtime.
4
- It also allows to set or read the temeouts.
4
+ It also allows to set 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)
@@ -8,8 +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 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. }
11
+ spec.description = %q{ Spawn processes in a shell capturing output in realtime. It also allows to set the temeouts. }
12
+ spec.summary = %q{ This gem helps to spawn processes in a shell capturing output in realtime. It also allows to set the temeouts. }
13
13
  spec.homepage = "https://github.com/evrone/evrone-common-spawn"
14
14
  spec.license = "MIT"
15
15
 
@@ -55,7 +55,7 @@ module Evrone
55
55
 
56
56
  if rs
57
57
  break if rs[0].eof?
58
- yield rs[0].readpartial(8192)
58
+ yield rs[0].readpartial(8192) if block_given?
59
59
  read_timeout.reset
60
60
  else
61
61
  break if read_timeout.happened?
@@ -1,7 +1,7 @@
1
1
  module Evrone
2
2
  module Common
3
3
  module Spawn
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evrone-common-spawn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-04 00:00:00.000000000 Z
11
+ date: 2013-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: ' Spawn processes in a shell capturing output in realtime. It also allows
84
- to set or read the temeouts. '
84
+ to set the temeouts. '
85
85
  email:
86
86
  - dima.exe@gmail.com
87
87
  executables: []
@@ -132,7 +132,7 @@ rubygems_version: 2.0.2
132
132
  signing_key:
133
133
  specification_version: 4
134
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.
135
+ It also allows to set the temeouts.
136
136
  test_files:
137
137
  - spec/lib/spawn/process_spec.rb
138
138
  - spec/lib/spawn/read_timeout_spec.rb