belt 0.5.2 → 0.5.3

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: 6bc7f1c9dc1e95a012e77ad0b45dd86f387d51d9d84868fc833e64a86875bf32
4
- data.tar.gz: 4bdb7b2e6aa73f0dbb327b4639e95bbf0c19edd9200110f61e7cbd099984b6a2
3
+ metadata.gz: 2267465d1ad5fcc7e7e8b7d7c6be91919275a8bd6bc541c82c9751ac2265ab27
4
+ data.tar.gz: 12c71c5a5db0520f26ee6df68fbbbbd5403105cb9ab2c08da2719d6513a6269e
5
5
  SHA512:
6
- metadata.gz: 360ffa36c8bd746241454b4298ee0804d192e21b899817e2c31ba348683d00501894615cb5896afd2a49c5e36228de101a72efd566add9ca5ff96ce9c21bb7f5
7
- data.tar.gz: 3a0d97d2ead9d8a2c22e074cc0ad10bfdc3727c6de25e7f5eb4ab2efe91ddbd2a402109d3b3bc33d6b7ca3dbe011c34d1579677b132089419aeb1f582ebf8fbb
6
+ metadata.gz: 7716c4d8eebea928388accc998fb38f00ffedf9c5cd8585ef6e8540d2a524e5a139002d434b1a5644e3b656c394692438715b39e87d7e9682b05b948273a8213
7
+ data.tar.gz: 7259396f97e7e750c9b6f19092535deb3552e98a2d9af927f01a0bfef09352b0164ad9febf1de4572ca132ad82686d60f101c5b640a32013d88019395e0dd70a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.3
4
+
5
+ ### Fixed
6
+
7
+ - **New apps now package `lambda/config/` into every Lambda.** The generated
8
+ `infrastructure/modules/app/main.tf` listed `lambda_shared_dirs` without `config`, so
9
+ `lambda/config/environment.rb` never reached `/var/task`. Handlers generated by
10
+ belt-pay (`pay_webhooks.rb`) and belt-messaging (`messaging_events.rb`) start with
11
+ `require_relative 'config/environment'`, so they crashed on init with
12
+ `cannot load such file -- /var/task/config/environment`. Existing apps: add `"config"`
13
+ to `lambda_shared_dirs` in `infrastructure/modules/app/main.tf` and redeploy.
14
+
3
15
  ## 0.5.2
4
16
 
5
17
  ### Added
data/lib/belt/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Belt
4
- VERSION = '0.5.2'
4
+ VERSION = '0.5.3'
5
5
  end
@@ -25,7 +25,9 @@ resource "conveyor_belt" "main" {
25
25
  source = "${path.module}/../../../config/routes.rb"
26
26
  app_name = var.app_name
27
27
  lambda_source_dir = "${path.module}/../../../lambda"
28
- lambda_shared_dirs = ["controllers", "helpers", "lib", "models", "views"]
28
+ # "config" ships lambda/config/environment.rb, which the belt-pay and belt-messaging
29
+ # handlers require_relative at boot.
30
+ lambda_shared_dirs = ["config", "controllers", "helpers", "lib", "models", "views"]
29
31
  <% if @frontend -%>
30
32
  # CloudFront first so SPA→API CORS works out of the box (tutorial footgun fixed).
31
33
  # localhost stays via env frontend_urls for local `belt server` dev.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: belt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stowzilla