lamby 4.0.0 → 4.0.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
  SHA256:
3
- metadata.gz: 1c7b5f3442327670c35f81b025c05eb75a9fe02c3a33168c36ceb6d5695ff84d
4
- data.tar.gz: d42a578523d78d86d4092ae200d800f657329269f69e5c30dada57f57e84427a
3
+ metadata.gz: f576b9a1efb2d9ca0486e70fcb51bab087ca6555f586f74b6bc87f4aaf8ce4b0
4
+ data.tar.gz: 76b2f5f03c3b896d55012815a93f53ff5c2a02eb1248082b40513b0f067ca25e
5
5
  SHA512:
6
- metadata.gz: a196d5ca7d4b302ea0ba11f7d79b9d785c9fa5a0e8c58c9b9d859587bb389a59b6cafac995a855816cac3cc569ea5491fb6cd6be22d0bb26d2670d3df226b09d
7
- data.tar.gz: 3b8af072ca3bf8b307311b955cb8b971de1abce140984574481d18c342e69553eac589dbd6681e637f42290e119b4f6f7a1695d55815f69e41f70587d0ee55a0
6
+ metadata.gz: e111251628a0e30272ceaaa43f5a072a0ba2e67879d39d1fd2f5d2c557d0b22da055cfeb2c66f877ee04df4a8ce7ea6af0cbe43c792d24f88a1e12b5706fc7a2
7
+ data.tar.gz: dc78b125672bf71e4548bbe7c2de4acb498a11a166fddab0157213900d62326d43500a8ce8d4a43d9d3ce9894d5012fd51a127a70268c10f43f8168bfa1f94fd
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
4
 
5
+ ## v4.0.1
6
+
7
+ ### Added
8
+
9
+ - New `Lamby.config.handled_proc` called with ensure via `Lamby.cmd`
10
+
5
11
  ## v4.0.0
6
12
 
7
13
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lamby (4.0.0)
4
+ lamby (4.0.1)
5
5
  rack
6
6
 
7
7
  GEM
data/lib/lamby/config.rb CHANGED
@@ -56,5 +56,13 @@ module Lamby
56
56
  Runner::PATTERNS
57
57
  end
58
58
 
59
+ def handled_proc
60
+ @handled_proc ||= Proc.new { |_event, _context| }
61
+ end
62
+
63
+ def handled_proc=(proc)
64
+ @handled_proc = proc
65
+ end
66
+
59
67
  end
60
68
  end
data/lib/lamby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lamby
2
- VERSION = '4.0.0'
2
+ VERSION = '4.0.1'
3
3
  end
data/lib/lamby.rb CHANGED
@@ -22,6 +22,8 @@ module Lamby
22
22
 
23
23
  def cmd(event:, context:)
24
24
  handler(config.rack_app, event, context)
25
+ ensure
26
+ config.handled_proc.call(event, context)
25
27
  end
26
28
 
27
29
  def handler(app, event, context, options = {})
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.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-03 00:00:00.000000000 Z
11
+ date: 2022-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack