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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5dfbf6918bc02ab0aa922e66411129fb177f79acbefd26f481b9d0b9e6fe046
4
- data.tar.gz: 81bde117ec85d14328dc523c20e757123c8e73ea7de508e0ab00f368cce7a38d
3
+ metadata.gz: 7d0438bdc5ee9aaa104aad58486eb1b45d8619ea9fc98d95c51bd569047a0238
4
+ data.tar.gz: 210532fb5b1c69b9463c824bbae2c4a40a7724aad5802f3b871aa386b643e745
5
5
  SHA512:
6
- metadata.gz: e7794943a90301a37af8dc14338e0504a53b0d3ff37ae6a15541c48130194e06078de0d66ef4be6b119db37284ae679c87095e7c252ef4860938aba31ff72af4
7
- data.tar.gz: 0b768fa41186630d876fd9690003c8c3ff3f70b46ace56a3f325d931dc4ae80dd2a777d2bfe3af0c8f6b73b377a83ab4c0bb3bd2158d3baddd6afcdd7a8cacb5
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 queue
11
- # Allow disabling in case use wants to add permission application-wide and not have extra IAM policy
12
- iam_policy_props = options.delete(:iam_policy) || @iam_policy || default_iam_policy
13
- iam_policy(iam_policy_props) unless iam_policy_props == :disable
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 queue
8
- # Allow disabling in case use wants to add permission application-wide and not have extra IAM policy
9
- iam_policy_props = options.delete(:iam_policy) || @iam_policy || default_iam_policy
10
- iam_policy(iam_policy_props) unless iam_policy_props == :disable
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
- # Allow disabling in case use wants to add permission application-wide and not have extra IAM policy
55
- iam_policy_props = options.delete(:iam_policy) || @iam_policy || default_iam_policy
56
- iam_policy(iam_policy_props) unless iam_policy_props == :disable
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 = {
@@ -245,13 +245,11 @@ module Jets::Lambda::Dsl
245
245
  end
246
246
 
247
247
  def ref(name)
248
- name = name.is_a?(Symbol) ? name.to_s.camelize : name
249
- "!Ref #{name}"
248
+ "!Ref #{name.to_s.camelize}"
250
249
  end
251
250
 
252
251
  def sub(value)
253
- value = value.is_a?(Symbol) ? value.to_s.camelize : value
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}Url", ref(id)) # useful for Stack.lookup method. IE: List.lookup(:waitlist_url)
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
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "5.0.4"
2
+ VERSION = "5.0.6"
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: 5.0.4
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-17 00:00:00.000000000 Z
11
+ date: 2023-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer