lamby 4.0.0 → 4.0.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 +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -5
- data/lib/lamby/config.rb +8 -0
- data/lib/lamby/runner.rb +5 -1
- data/lib/lamby/version.rb +1 -1
- data/lib/lamby.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab238754427b550d4af87b1ed22f474f538aa4ccb8b7b25c003a514c4aef7f26
|
4
|
+
data.tar.gz: ad971104829c43cb962b08d04df0783fa7bb5f803150249bae6ccce5e643c506
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85f8251a51591b1fbbd245e3168b03924ece75c2ac03f8db1a66d6b6b8e1a6a55950ad2e8d5de8dda9ee4ff1a33bf150fd23d07cb42337ae7b73c50f3cce130c
|
7
|
+
data.tar.gz: 19c768ec3b3bd1d349a5c9fc7e36a45e52ecd679191e8f0a83ea8bfe23c0cdefe0524c4f9a0087ae7838aef2b1b828fa8a414f3bd93910c8e50c1b8862b5e642
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,18 @@
|
|
2
2
|
|
3
3
|
See this http://keepachangelog.com link for information on how we want this documented formatted.
|
4
4
|
|
5
|
+
## v4.0.2
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
- Runner's Open3 uses crypteia friendly env.
|
10
|
+
|
11
|
+
## v4.0.1
|
12
|
+
|
13
|
+
### Added
|
14
|
+
|
15
|
+
- New `Lamby.config.handled_proc` called with ensure via `Lamby.cmd`
|
16
|
+
|
5
17
|
## v4.0.0
|
6
18
|
|
7
19
|
### Added
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,24 +1,23 @@
|
|
1
1
|
# Lamby [](https://github.com/customink/lamby/actions) [](https://github.com/features/codespaces)
|
2
2
|
|
3
3
|
<h2>Simple Rails & AWS Lambda Integration using Rack</h2>
|
4
|
+
<a href="https://lamby.custominktech.com"><img src="https://raw.githubusercontent.com/customink/lamby/master/images/social2.png" alt="Lamby: Simple Rails & AWS Lambda Integration using Rack." align="right" width="450" style="margin-left:1rem;margin-bottom:1rem;" /></a>
|
4
5
|
|
5
6
|
Lamby is an [AWS Lambda Web Adapter](https://github.com/awslabs/aws-lambda-web-adapter) for Rack applications.
|
6
7
|
|
7
|
-
<img src="https://raw.githubusercontent.com/customink/lamby_site/master/app/assets/images/lamby-arch-hero.png" alt="Lamby: Simple Rails & AWS Lambda Integration"/>
|
8
|
-
|
9
8
|
We support Lambda [Function URLs](https://docs.aws.amazon.com/lambda/latest/dg/lambda-urls.html), [API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html) (HTTP or REST, all payload versions), and even [Application Load Balancer](https://docs.aws.amazon.com/lambda/latest/dg/services-alb.html) integrations.
|
10
9
|
|
11
10
|
## Quick Start
|
12
11
|
|
13
|
-
https://lamby.custominktech.com/docs/
|
12
|
+
https://lamby.custominktech.com/docs/quick-start
|
14
13
|
|
15
14
|
## Full Documentation
|
16
15
|
|
17
|
-
https://lamby.custominktech.com
|
16
|
+
https://lamby.custominktech.com/docs/anatomy
|
18
17
|
|
19
18
|
## Contributing
|
20
19
|
|
21
|
-
This project is built for [GitHub
|
20
|
+
This project is built for [GitHub Codespaces](https://github.com/features/codespaces) using the [Development Container](https://containers.dev) specification. Once you have the repo cloned and setup with a dev container using either Codespaces or [VS Code](#using-vs-code), run the following commands. This will install packages and run tests.
|
22
21
|
|
23
22
|
```shell
|
24
23
|
$ ./bin/setup
|
data/lib/lamby/config.rb
CHANGED
data/lib/lamby/runner.rb
CHANGED
@@ -28,7 +28,7 @@ module Lamby
|
|
28
28
|
|
29
29
|
def call
|
30
30
|
validate!
|
31
|
-
status = Open3.popen3(command, chdir: chdir) do |_stdin, stdout, stderr, thread|
|
31
|
+
status = Open3.popen3(env, command, chdir: chdir) do |_stdin, stdout, stderr, thread|
|
32
32
|
@body << stdout.read
|
33
33
|
@body << stderr.read
|
34
34
|
puts @body
|
@@ -56,5 +56,9 @@ module Lamby
|
|
56
56
|
PATTERNS.any? { |p| p === command }
|
57
57
|
end
|
58
58
|
|
59
|
+
def env
|
60
|
+
Hash[ENV.to_hash.map { |k,v| [k, ENV[k]] }]
|
61
|
+
end
|
62
|
+
|
59
63
|
end
|
60
64
|
end
|
data/lib/lamby/version.rb
CHANGED
data/lib/lamby.rb
CHANGED
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: 4.0.
|
4
|
+
version: 4.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:
|
11
|
+
date: 2023-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|