hookit 0.12.1 → 0.12.2

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: f1166ad562b7d6e479259099ddbeba5701af937f
4
- data.tar.gz: cb488d1c42236de29dcd3cec65c3af1963add939
3
+ metadata.gz: 8342f4bd71401634e0c6cd7da2cf5b37e23ecda8
4
+ data.tar.gz: ad113427e8d79d9e1c27e751ad5fa8c11b74dc9b
5
5
  SHA512:
6
- metadata.gz: a85a5b79957525b56c811461254ee136eff9282dc9b524e31988311977eef9b56929b840a18728e6f9505662c291403c7a43ee55c12850b84d9e31383387590e
7
- data.tar.gz: 90d66e0fe4244a5cc647d28ab7ae9a0fe87fddb429ac7c41433822f9bf6395ca6ff5b8a39b685e48a14dca77db9f2562e9b2482d434eba959b04f30d7bff153c
6
+ metadata.gz: 229e522aee79dcb860982f47645e858001f76538c7601d345e841fb2ba7a1da2d725b687ecafe46478d7343e44705061dedd6bac9cf5307e3569e60293bc3020
7
+ data.tar.gz: 809767c393d6f170a29dec272d70f0c6d5ed478d6b976aa83179e9601d5795d15ac979716b86ed866d3a0a447b34f65d5dcecfd3c48dcafeadc4fa7bb63da941
@@ -4,7 +4,7 @@ require 'open3'
4
4
  module Hookit
5
5
  module Resource
6
6
  class Execute < Base
7
-
7
+
8
8
  field :command
9
9
  field :cwd
10
10
  field :environment
@@ -83,7 +83,7 @@ module Hookit
83
83
  ready_pipes.each_with_index do |socket|
84
84
  if socket == stdout
85
85
  begin
86
- chunk = socket.readpartial(4096)
86
+ chunk = socket.readpartial(1)
87
87
  if on_data and on_data.respond_to? :call
88
88
  on_data.call(chunk)
89
89
  end
@@ -96,7 +96,7 @@ module Hookit
96
96
  result << chunk.to_s
97
97
  elsif socket == stderr
98
98
  begin
99
- chunk = socket.readpartial(4096)
99
+ chunk = socket.readpartial(1)
100
100
  if on_data and on_data.respond_to? :call
101
101
  on_data.call(chunk)
102
102
  end
@@ -142,7 +142,7 @@ module Hookit
142
142
  com = su(user, com)
143
143
  end
144
144
 
145
- com
145
+ com
146
146
  end
147
147
 
148
148
  # strategy:
@@ -182,4 +182,4 @@ module Hookit
182
182
 
183
183
  end
184
184
  end
185
- end
185
+ end
@@ -1,3 +1,3 @@
1
1
  module Hookit
2
- VERSION = "0.12.1"
2
+ VERSION = "0.12.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hookit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Flint