systemu 2.6.3 → 2.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/systemu.rb +8 -8
  3. data/systemu.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjQwYjgxOGUxYjU4YWVmNTkwNzM1OWM0YjVlZDJjNGU5ZmM5OWQyZQ==
4
+ YThhNzY1MjdmMzZiNzQyMDFkNDFhNjQ3MTY5ZWFlYmVkNWRhMzZhNA==
5
5
  data.tar.gz: !binary |-
6
- ODU1Y2MxZGE2YzVlOWEwZDE2MTY0NWJkNmFmYzlkNWRmODExZTdiOQ==
6
+ N2NhYmJkYjVhOTRiZTlmM2RkN2I0ZGY5MWFkN2VlY2RkYjQ5MjYyNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGU0OTc3Y2FmNWVkNjEzYmE2NDc4Y2ViYmRlZDBiZjg3OTIwZWI2NTJlNWQz
10
- NjcyNGIzYWZhMDdkODUyMTM1NjI5NTRkYzgxODBkNGFlZTJkZDRlMDk0MjM0
11
- YWUzNTIzYjYwNDQzNWFiNmFmNjc1NzdjZmVlMjk3NjZjYzYzMjc=
9
+ OWI3ZmRiYzBlYWQwMTFlNjBjODYxZDVjZDQ5MTBlNzkzZDI0NTU0Y2Q3MzMy
10
+ MDQyZjNjOTA5OGZkMjNmYTc5N2VkYjAzNjExOWI4NmJhZTMyNmUxZGUyZGM3
11
+ NzVkODJiNDNiMzc2NWY1NWFmNGJiYWJlOWRiNzRiMjU0NDg3Y2I=
12
12
  data.tar.gz: !binary |-
13
- ZjBjNDkxZjBkMmEzYTE2ODZlZTlhZjg0NGZkNDc3ZTdmODUzNDljMDQ4YmU4
14
- OTAyZDgzZWFhYzlkMDY0YzkzNmE2MzcwYzBlYWRkZDdiNTBjMTQwYjNmZjMx
15
- MjM4MjcyODQxODQ1OTJjMzIxYTI0NDI1MzY3ZDIwMjIxNGQ2YmU=
13
+ ZjBmOWIwZmU5ZGYxNjhmYzA1NDdiMGVmOGYwNWVjZjUzZDMzMTE3NjBkNmEy
14
+ NDdmOTRhNGQ5YjE4OGJjNDE0OTJiYTZiYTFiNjI0NTExYjkxZjQzYzY0ZWY3
15
+ ZGE4YTMxNzZiNjExNTQxMTFmYjg1YjY4NzI2OTViZjVhODRjMDE=
@@ -14,7 +14,7 @@ class SystemUniversal
14
14
  #
15
15
  # constants
16
16
  #
17
- SystemUniversal::VERSION = '2.6.3' unless SystemUniversal.send(:const_defined?, :VERSION)
17
+ SystemUniversal::VERSION = '2.6.4' unless SystemUniversal.send(:const_defined?, :VERSION)
18
18
  def SystemUniversal.version() SystemUniversal::VERSION end
19
19
  def version() SystemUniversal::VERSION end
20
20
  def SystemUniversal.description
@@ -124,9 +124,9 @@ class SystemUniversal
124
124
  SystemUniversal.quote(*args, &block)
125
125
  end
126
126
 
127
- def new_thread cid, block
127
+ def new_thread child_pid, block
128
128
  q = Queue.new
129
- Thread.new(cid) do |cid|
129
+ Thread.new(child_pid) do |cid|
130
130
  current = Thread.current
131
131
  current.abort_on_exception = true
132
132
  q.push current
@@ -208,9 +208,9 @@ class SystemUniversal
208
208
  end
209
209
 
210
210
  def relay srcdst
211
- src, dst, ignored = srcdst.to_a.first
211
+ src, dst, _ = srcdst.to_a.first
212
212
  if src.respond_to? 'read'
213
- while((buf = src.read(8192))); dst << buf; end
213
+ while((buffer = src.read(8192))); dst << buffer; end
214
214
  else
215
215
  if src.respond_to?(:each_line)
216
216
  src.each_line{|buf| dst << buf}
@@ -259,11 +259,11 @@ class SystemUniversal
259
259
 
260
260
  def getopts opts = {}
261
261
  lambda do |*args|
262
- keys, default, ignored = args
262
+ keys, default, _ = args
263
263
  catch(:opt) do
264
264
  [keys].flatten.each do |key|
265
- [key, key.to_s, key.to_s.intern].each do |key|
266
- throw :opt, opts[key] if opts.has_key?(key)
265
+ [key, key.to_s, key.to_s.intern].each do |k|
266
+ throw :opt, opts[k] if opts.has_key?(k)
267
267
  end
268
268
  end
269
269
  default
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "systemu"
6
- spec.version = "2.6.3"
6
+ spec.version = "2.6.4"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "systemu"
9
9
  spec.description = "universal capture of stdout and stderr and handling of child process pid for windows, *nix, etc."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: systemu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-22 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: universal capture of stdout and stderr and handling of child process
14
14
  pid for windows, *nix, etc.