lamby 3.0.1 → 3.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
  SHA256:
3
- metadata.gz: 95f582ba749eea50ebb7f2ff2dd334ad6a492c0ec533d27b447fd276b9cc1b1f
4
- data.tar.gz: 7de58022400c1ebfec03ee746afd1f16fbe72bb2dcd70814499014ff186324e8
3
+ metadata.gz: c6ae3826f4ce744519216bb6ab16623d5bdc883f001659ca5ad41587741bafce
4
+ data.tar.gz: 1121aba0a89a081171e4b22f6298982d289481b4a80c97e3d1593b24b08bb4aa
5
5
  SHA512:
6
- metadata.gz: b97cb42a10c869075b5c14c3e4637d78ccf910107f457efc961ecc97227d2b860f194b70d202f0dba4edb5ca2c281e54b64d0da882a3c5dce3abbbe77d4db1b8
7
- data.tar.gz: 685641d6d4e144d80fff5dce2e5f849e263224fff427766344324643fefade7cc99c83e3cac956574dc24d2307241357e47225b970ed37582c306f3a1f4ce546
6
+ metadata.gz: 51ed673525f7bb529bf9964c0d799db699c90605bf8e0156289069ad8e460dca8f82a0048544866f43e7add5a5f604281d4ba6e61be38cf27c24dd187bd2a523
7
+ data.tar.gz: 11e89941e727d448b0b9b5052a145cf813a3aded320c3dde45e8fd82b22eee52dbe74afa962e77a206befa22412a50d226492fa71d502bd92ab3724e51596b12
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  See this http://keepachangelog.com link for information on how we want this documented formatted.
6
6
 
7
+ ## v3.0.2
8
+
9
+ #### Added
10
+
11
+ - Runner now returns STDOUT/STDERR as body.
12
+
7
13
  ## v3.0.1
8
14
 
9
15
  #### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lamby (3.0.1)
4
+ lamby (3.0.2)
5
5
  rack
6
6
 
7
7
  GEM
data/lib/lamby/runner.rb CHANGED
@@ -23,16 +23,18 @@ module Lamby
23
23
 
24
24
  def initialize(event)
25
25
  @event = event
26
+ @body = ''
26
27
  end
27
28
 
28
29
  def call
29
30
  validate!
30
31
  status = Open3.popen3(command, chdir: chdir) do |_stdin, stdout, stderr, thread|
31
- puts stdout.read
32
- puts stderr.read
32
+ @body << stdout.read
33
+ @body << stderr.read
34
+ puts @body
33
35
  thread.value.exitstatus
34
36
  end
35
- [status, {}, StringIO.new('')]
37
+ [status, {}, StringIO.new(@body)]
36
38
  end
37
39
 
38
40
  def command
data/lib/lamby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lamby
2
- VERSION = '3.0.1'
2
+ VERSION = '3.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lamby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-25 00:00:00.000000000 Z
11
+ date: 2021-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack