ztk 3.3.0 → 3.3.1

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: b10754427c1aed100e39c3cd178622b005566eee
4
- data.tar.gz: 882ac060f7e0b6cc5563d8b0ffdb58f15edbbf13
3
+ metadata.gz: af11dbab71ae32f23c81221e541b24e9c92b3647
4
+ data.tar.gz: 30d538e35a264f242cafa10c119a8b830db623c7
5
5
  SHA512:
6
- metadata.gz: 7e12a4e9dff48c3c9b6c7add1a5acd651ec5186b680a6a5608f3ca8170b34f5f1a9ab25c4e9c63aa2fde85a626a7a30a419e5b3f648c6613c1599b2ecc4a2057
7
- data.tar.gz: de17d0a7941af5fddde4c37f5a8c01de33e4fcac472b7266e38893ff7a6064507221517172818c48a8399222cd4c1205d14b625707c4593cef90fa6813a31991
6
+ metadata.gz: cd6a20e985bbbb958a4ee86ecb1d3ef508f4e535b71232e0d8d20f997e261beba4095a5675ad367ffe03d5a2b736aa994cf99a1fdad25a3c07f64f34f3766346
7
+ data.tar.gz: fb28716f179ec5641410278921d7e3a5edb0d788d2d861fd2fdd9c3b48909816911a008b6d144132c4d912d38bad2a7d090186bfa9abe223c603e605f3f31bad
@@ -1,5 +1,6 @@
1
1
  require 'base64'
2
2
  require 'timeout'
3
+ require 'zlib'
3
4
 
4
5
  module ZTK
5
6
 
@@ -163,9 +164,10 @@ module ZTK
163
164
  end
164
165
 
165
166
  if !data.nil?
166
- config.ui.logger.debug { "write(#{data.inspect})" }
167
167
  begin
168
- child_writer.write(Base64.encode64(Marshal.dump(data)))
168
+ encoded_data = Base64.encode64(Zlib::Deflate.deflate(Marshal.dump(data)))
169
+ config.ui.logger.debug { "write(#{encoded_data.length}B: #{data.inspect})" }
170
+ child_writer.write(encoded_data)
169
171
  rescue Exception => e
170
172
  config.ui.logger.warn { "Exception while writing data to child_writer! - #{e.inspect}" }
171
173
  end
@@ -206,10 +208,10 @@ module ZTK
206
208
 
207
209
  return nil if @forks.count <= 0
208
210
 
209
- pid, status = (Process.wait2(-1, flags) rescue nil)
211
+ pid, status = (Process.wait2(-1, Process::WUNTRACED) rescue nil)
210
212
 
211
213
  if !pid.nil? && !status.nil? && !(fork = @forks.select{ |f| f[:pid] == pid }.first).nil?
212
- data = (Marshal.load(Base64.decode64(fork[:reader].read.to_s)) rescue nil)
214
+ data = Marshal.load(Zlib::Inflate.inflate(Base64.decode64(fork[:reader].read).to_s))
213
215
  config.ui.logger.debug { "read(#{data.inspect})" }
214
216
 
215
217
  data = process_data(data)
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "3.3.0"
4
+ VERSION = "3.3.1"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Patten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport