jets 5.0.4 → 5.0.6
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 +7 -0
- data/lib/jets/generators/overrides/app/templates/config/environments/production.rb.tt +2 -0
- data/lib/jets/job/dsl/dynamodb_event.rb +5 -4
- data/lib/jets/job/dsl/kinesis_event.rb +5 -4
- data/lib/jets/job/dsl/sqs_event.rb +4 -3
- data/lib/jets/lambda/dsl.rb +2 -4
- data/lib/jets/stack/main/dsl/sqs.rb +1 -1
- data/lib/jets/version.rb +1 -1
- 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: 7d0438bdc5ee9aaa104aad58486eb1b45d8619ea9fc98d95c51bd569047a0238
|
4
|
+
data.tar.gz: 210532fb5b1c69b9463c824bbae2c4a40a7724aad5802f3b871aa386b643e745
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2667161cd40b1f8356ad8fcb107d43be6086a92312fe2efc9eba8af246f1f0709c9a04f3e6782cbfc79502a6de190a5c328094cd5a29d63609030f034de558e6
|
7
|
+
data.tar.gz: 3de7ac271c630fe8014e0d2a9468645a4ed097ea5d70d6c6ec4707d48c4aa5de4b6dbd4fa45501e3cbbb30dfc8ba63905d3392efb487758958ef9feb4c90aeb6
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,13 @@
|
|
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
|
+
## [5.0.6] - 2023-12-21
|
7
|
+
- [#698](https://github.com/rubyonjets/jets/pull/698) make iam_policy additive to default_iam_policy for event
|
8
|
+
- jets new environments/production.rb dont include assets.compile for api mode
|
9
|
+
|
10
|
+
## [5.0.5] - 2023-12-19
|
11
|
+
- [#697](https://github.com/rubyonjets/jets/pull/697) fix sqs_queue output url camelcase name
|
12
|
+
|
6
13
|
## [5.0.4] - 2023-12-17
|
7
14
|
- [#695](https://github.com/rubyonjets/jets/pull/695) dont run reconfigure webpacker unless using
|
8
15
|
- [#696](https://github.com/rubyonjets/jets/pull/696) improve deploy failure message by showing nested stack failure message
|
@@ -7,7 +7,9 @@ Jets.application.configure do
|
|
7
7
|
<%- unless options[:mode] == 'job' -%>
|
8
8
|
config.consider_all_requests_local = false
|
9
9
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
10
|
+
<%- if options[:mode] == 'html' -%>
|
10
11
|
config.assets.compile = false
|
12
|
+
<%- end -%>
|
11
13
|
|
12
14
|
# Ignore bad email addresses and do not raise email delivery errors.
|
13
15
|
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
@@ -7,10 +7,11 @@ module Jets::Job::Dsl
|
|
7
7
|
stream_arn = full_dynamodb_stream_arn(table_name)
|
8
8
|
default_iam_policy = default_dynamodb_stream_policy(stream_arn)
|
9
9
|
|
10
|
-
# Create iam policy allows access to
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
# Create iam policy allows access to dynamodb
|
11
|
+
iam_policy_option = [options.delete(:iam_policy)].compact.flatten
|
12
|
+
user_iam_policy = [@iam_policy].compact.flatten
|
13
|
+
iam_policy_props = iam_policy_option + user_iam_policy + [default_iam_policy]
|
14
|
+
iam_policy(iam_policy_props)
|
14
15
|
|
15
16
|
props = options # by this time options only has EventSourceMapping properties
|
16
17
|
default = {
|
@@ -4,10 +4,11 @@ module Jets::Job::Dsl
|
|
4
4
|
stream_arn = full_kinesis_stream_arn(stream_name)
|
5
5
|
default_iam_policy = default_kinesis_stream_policy(stream_arn)
|
6
6
|
|
7
|
-
# Create iam policy allows access to
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
# Create iam policy allows access to kinesis
|
8
|
+
iam_policy_option = [options.delete(:iam_policy)].compact.flatten
|
9
|
+
user_iam_policy = [@iam_policy].compact.flatten
|
10
|
+
iam_policy_props = iam_policy_option + user_iam_policy + [default_iam_policy]
|
11
|
+
iam_policy(iam_policy_props)
|
11
12
|
|
12
13
|
props = options # by this time options only has EventSourceMapping properties
|
13
14
|
default = {
|
@@ -51,9 +51,10 @@ module Jets::Job::Dsl
|
|
51
51
|
end
|
52
52
|
|
53
53
|
# Create iam policy allows access to queue
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
iam_policy_option = [options.delete(:iam_policy)].compact.flatten
|
55
|
+
user_iam_policy = [@iam_policy].compact.flatten
|
56
|
+
iam_policy_props = iam_policy_option + user_iam_policy + [default_iam_policy]
|
57
|
+
iam_policy(iam_policy_props)
|
57
58
|
|
58
59
|
props = options # by this time options only has EventSourceMapping properties
|
59
60
|
default = {
|
data/lib/jets/lambda/dsl.rb
CHANGED
@@ -245,13 +245,11 @@ module Jets::Lambda::Dsl
|
|
245
245
|
end
|
246
246
|
|
247
247
|
def ref(name)
|
248
|
-
|
249
|
-
"!Ref #{name}"
|
248
|
+
"!Ref #{name.to_s.camelize}"
|
250
249
|
end
|
251
250
|
|
252
251
|
def sub(value)
|
253
|
-
|
254
|
-
"!Sub #{value}"
|
252
|
+
"!Sub #{value.to_s.camelize}"
|
255
253
|
end
|
256
254
|
|
257
255
|
# meth is a Symbol
|
@@ -4,7 +4,7 @@ module Jets::Stack::Main::Dsl
|
|
4
4
|
# props[:queue_name] ||= id.to_s # comment out to allow CloudFormation to generate name
|
5
5
|
resource(id, "AWS::SQS::Queue", props)
|
6
6
|
output(id, Value: get_att("#{id}.Arn")) # normal !Ref returns the sqs url the ARN is useful for nested stacks depends_on
|
7
|
-
output("#{id}
|
7
|
+
output("#{id}_url", ref(id)) # useful for Stack.lookup method. IE: List.lookup(:waitlist_url)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/jets/version.rb
CHANGED
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: 5.0.
|
4
|
+
version: 5.0.6
|
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-12-
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|