lambda_punch 1.1.1 → 1.1.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
  SHA256:
3
- metadata.gz: edd0fcb9d2a3d808ef2f2209f7d2b9c344e372fecb918bd6d2e25dfe375b3c55
4
- data.tar.gz: 4a0972320ed7f3734e43b9cfe9a9fde1134a2148b44532914361c99bc4b1f4fa
3
+ metadata.gz: b826578d6414ae21136aaf6fded729bdad3e8371a9188893ddf19b4fda605c4a
4
+ data.tar.gz: 5b48b72138fd2ffa9fb652a211cf3ae3381d4c683cc8332c7c1282731e259c83
5
5
  SHA512:
6
- metadata.gz: 07bb2eccf539f0322316520fb0b45ee95110e7e6d47165cc3460542de6629c6f72a616901616fbf93a8fc75fb6fa1208619fcf17e80c059c0f204a21893cc261
7
- data.tar.gz: d1414ca50a4bcaca75dd346eab56b360d447f8f7e31736e4fe2a9d62ffafcd79cf9f4f77c5b8b687ce8eba1b3405daa34e06f576aebd64fd5dfe38076fcadd19
6
+ metadata.gz: b9a83c78d41c2da7b6c6383052742820a7ac75cd7fe196de72034c7ae9a3cd65b6aa0d65005f311845e3af92464663efd97e7cdc8abb96cb47449795c11f62bd
7
+ data.tar.gz: ecc1490c19bf505e14c0957de2570d59c54ebccd9158d96d9e24d388b4abc54cb4960676bdcbb0df71ae00e9e9b60967643aacddf64c71dcd4ab841138b21d04
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.1.2] - 2023-04-22
2
+
3
+ ### Added
4
+
5
+ - The `error_handler` will now print the first 10 lines of a stack trace.
6
+
1
7
  ## [1.1.1] - 2023-04-16
2
8
 
3
9
  ### Fixed
data/README.md CHANGED
@@ -24,12 +24,18 @@ Add this line to your project's `Gemfile` and then make sure to `bundle install`
24
24
  gem 'lambda_punch'
25
25
  ```
26
26
 
27
- Within your project or [Rails application's](https://lamby.custominktech.com/docs/anatomy) `Dockerfile`, add the following. Make sure you do this before you `COPY` your code. The idea is to implicitly use the default `USER root` since it needs permissions to create an `/opt/extensions` directory.
27
+ Within your project or [Rails application's](https://lamby.custominktech.com/docs/anatomy) `Dockerfile`, add the following. Make sure you do this before you `COPY` your code. The idea is to implicitly use the default `USER root` since it needs permission to create an `/opt/extensions` directory.
28
28
 
29
29
  ```dockerfile
30
30
  RUN gem install lambda_punch && lambda_punch install
31
31
  ```
32
32
 
33
+ LambdaPunch uses the `LAMBDA_TASK_ROOT` environment variable to find your project's Gemfile. If you are using a provided AWS Runtime container, this should be set for you to `/var/task`. However, if you are using your own base image, make sure to set this to your project directory.
34
+
35
+ ```dockerfile
36
+ ENV LAMBDA_TASK_ROOT=/app
37
+ ```
38
+
33
39
  Installation with AWS Lambda via the [Lamby](https://lamby.custominktech.com/) v4 (or higher) gem can be done using Lamby's `handled_proc` config. For example, appends these to your `config/environments/production.rb` file. Here we are ensuring that the LambdaPunch DRb server is running and that after each Lamby request we notify LambdaPunch.
34
40
 
35
41
  ```ruby
@@ -1,3 +1,3 @@
1
1
  module LambdaPunch
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
data/lib/lambda_punch.rb CHANGED
@@ -51,6 +51,7 @@ module LambdaPunch
51
51
  def error_handler
52
52
  @error_handler ||= lambda do |e|
53
53
  logger.error "Queue#call::error => #{e.message}"
54
+ logger.error e.backtrace[0..10].join("\n")
54
55
  end
55
56
  end
56
57
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lambda_punch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-16 00:00:00.000000000 Z
11
+ date: 2023-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -153,7 +153,7 @@ metadata:
153
153
  homepage_uri: https://github.com/customink/lambda_punch
154
154
  source_code_uri: https://github.com/customink/lambda_punch
155
155
  changelog_uri: https://github.com/customink/lambda_punch/blob/main/CHANGELOG.md
156
- post_install_message:
156
+ post_install_message:
157
157
  rdoc_options: []
158
158
  require_paths:
159
159
  - lib
@@ -168,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  requirements: []
171
- rubygems_version: 3.4.7
172
- signing_key:
171
+ rubygems_version: 3.0.3.1
172
+ signing_key:
173
173
  specification_version: 4
174
174
  summary: 'LambdaPunch: Async Processing using Lambda Extensions'
175
175
  test_files: []