jets 5.0.5 → 5.0.6

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: 9188a490c6d04a0c7b0f947442718008cc8724979dfe0f0f49d1302d90185efc
4
- data.tar.gz: a3f42abadc033434cb21af8b43ed7ecccdfbd41a4da8a4eb23bd959506a3c5e9
3
+ metadata.gz: 7d0438bdc5ee9aaa104aad58486eb1b45d8619ea9fc98d95c51bd569047a0238
4
+ data.tar.gz: 210532fb5b1c69b9463c824bbae2c4a40a7724aad5802f3b871aa386b643e745
5
5
  SHA512:
6
- metadata.gz: f8d64806385a02832b1c14de77f2262b7507dc4090afad9e240740d7ec4ce8fa0c4970cd30d80ccdbd960d70d4248ad7ed1d2efc1bf4e5ddde473c0bc4705279
7
- data.tar.gz: 7f5cb632fe2bc2de10a986db14921d48b867c352af313192825180fd2a9d7687b75b2ed55772d66b60e266b788297b2e97aabdbfa07a07a466d774861906b3cd
6
+ metadata.gz: 2667161cd40b1f8356ad8fcb107d43be6086a92312fe2efc9eba8af246f1f0709c9a04f3e6782cbfc79502a6de190a5c328094cd5a29d63609030f034de558e6
7
+ data.tar.gz: 3de7ac271c630fe8014e0d2a9468645a4ed097ea5d70d6c6ec4707d48c4aa5de4b6dbd4fa45501e3cbbb30dfc8ba63905d3392efb487758958ef9feb4c90aeb6
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
+ ## [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
+
6
10
  ## [5.0.5] - 2023-12-19
7
11
  - [#697](https://github.com/rubyonjets/jets/pull/697) fix sqs_queue output url camelcase name
8
12
 
@@ -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 = {
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "5.0.5"
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.5
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-19 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