jets 4.0.0 → 4.0.1

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: 557e01dec1b92f8a04213ef4b7f5ee9d8a35f25dd20231c96ba24b0d9890b7cd
4
- data.tar.gz: 5c8c12ae959d76dc9e5a681c8f18a40d5d60defcc4eead52ed9d9ad2571a3fe1
3
+ metadata.gz: 822ebcd3afbcb8bc1f98310e874f0637bf6be2e8eac8ffa88047eabe37aa3b89
4
+ data.tar.gz: 7f7fef65966114c720ca1baf04b2ec9766a9f2c2f8a0052be0f5014d9dc08e46
5
5
  SHA512:
6
- metadata.gz: 944a1d09ba4da26110e292cdf42d73a240d283d066dbe1ca677787c20b03ee925cf12e3d92555bc16e6327c7096ce59782cd271ff802f5d8554819674f040020
7
- data.tar.gz: 987eac8ef96a9cc10b0ac071ff099c02245cf5143bb75d23622513aba73ba447414ab0c542f7a734c30ba6ce07f20cd479daecc030c02d9a5d3505c10c0a5c34
6
+ metadata.gz: 5ea8e9c62cd4a340d860f3da2c2849dc2c7a7472ffea80c7794002718eb139996fdf6d75cdbefaedde150d314b9e2bb6968afdccec5c585ba45e90ec78e959fe
7
+ data.tar.gz: dd5ae3f105882cd8fe057e3fcece81b5197e0c04bd0700384427c61ac6554a777d191d6682d3d2549a72905e7d9a8e1bcd36a4e726c53c7c776bde99c9cbd240
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [4.0.1] - 2023-06-06
7
+ - [#655](https://github.com/boltops-tools/jets/pull/655) fix cors when using authorizers
8
+ - [#656](https://github.com/boltops-tools/jets/pull/656) fix prewarming iam permission
9
+
6
10
  ## [4.0.0] - 2023-05-27
7
11
  - [#641](https://github.com/boltops-tools/jets/pull/641) bundle check and prevent error from getting to aws lambda
8
12
  - [#642](https://github.com/boltops-tools/jets/pull/642) Fix rack mounted apps: update interface with removed meth
@@ -17,11 +17,11 @@ class Jets::PreheatJob < ApplicationJob
17
17
  ]
18
18
  },
19
19
  {
20
- sid: "Statement2",
21
- action: ["lambda:InvokeFunction", "lambda:InvokeAsync"],
22
- effect: "Allow",
23
- resource: [
24
- sub("arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${WarmLambdaFunction}")
20
+ Sid: "Statement2",
21
+ Action: ["lambda:InvokeFunction", "lambda:InvokeAsync"],
22
+ Effect: "Allow",
23
+ Resource: [
24
+ sub("arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:#{Jets.project_namespace}-*")
25
25
  ]
26
26
  }
27
27
  )
@@ -234,11 +234,13 @@ module Jets::Lambda::Dsl
234
234
  end
235
235
 
236
236
  def ref(name)
237
- "!Ref #{name.to_s.camelize}"
237
+ name = name.is_a?(Symbol) ? name.to_s.camelize : name
238
+ "!Ref #{name}"
238
239
  end
239
240
 
240
241
  def sub(value)
241
- "!Sub #{value.to_s.camelize}"
242
+ value = value.is_a?(Symbol) ? value.to_s.camelize : value
243
+ "!Sub #{value}"
242
244
  end
243
245
 
244
246
  # meth is a Symbol
@@ -51,7 +51,7 @@ module Jets::Resource::ApiGateway
51
51
  end
52
52
 
53
53
  def cors_authorization_type
54
- Jets.config.api.cors_authorization_type || @route.authorization_type || "NONE"
54
+ Jets.config.api.cors_authorization_type || "NONE"
55
55
  end
56
56
 
57
57
  def cors_logical_id
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
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
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-27 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer