jets 4.0.8 → 4.0.10

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: f5b660f342ae80eddb51bd6eb3bfdd8e8352e57edbad4593d80440b45b0baa3d
4
- data.tar.gz: 17d5c6b2791c53d5fa188e63f728eebd846760626346c2a485bdb88da16dcd92
3
+ metadata.gz: d8612274c29e1e3f75b05e46d4d6e47571abc9b3dbd76322486a2cb6626c0f5a
4
+ data.tar.gz: 9282f2d3543c0b9a02718e8078a276797104f1798d65d8a6617d08210c08361e
5
5
  SHA512:
6
- metadata.gz: b79a85f3afd33ee8245571c3369c1c6b1d6b416b74c10c49f653b533dec628868774bc2f906f3fd08f39a1599cec52d6c24e396bfeecffe928509d3388aa1fc7
7
- data.tar.gz: 103a1db2ac0657e4fdae3e15b3c029fbb1056293d3c72934517ecb312908f9ab24a845203dbb826f492270b7a2928080854fd0b18a9a5e5a7317d0ec643b10ca
6
+ metadata.gz: dd5f0ef934488eadaa573f00f693687eb352d18d46bffd927b5d3afaebc5010fcf0d04ef6622bc38af05501aa7d9eea4dccbdca8bc6d2ba64f25bb8ec88cc818
7
+ data.tar.gz: b661cc6ec392586322e2cf0f0cec81d186b9522545e9fb63f9335035411e8bb7937431da73614f44c963ddbb7d7582c4a5978226f5eaf9d7398d52b686ba5271
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
+ ## [4.0.10] - 2023-12-04
7
+ - [#678](https://github.com/boltops-tools/jets/pull/678) handle option method or http_method from route state
8
+
9
+ ## [4.0.9] - 2023-12-03
10
+ - [#674](https://github.com/boltops-tools/jets/pull/674) Fix broken --mode jobs new project generation
11
+ - [#675](https://github.com/boltops-tools/jets/pull/675) Add resource tags to CloudFormation stack
12
+
6
13
  ## [4.0.8] - 2023-12-03
7
14
  - [#677](https://github.com/boltops-tools/jets/pull/677) pin dynomite 1.2.7
8
15
 
@@ -183,6 +183,8 @@ class Jets::Application
183
183
  config.deploy.stagger.batch_size = 10
184
184
 
185
185
  config.hot_reload = Jets.env.development?
186
+
187
+ config.resource_tags = {}
186
188
 
187
189
  config.ruby = ActiveSupport::OrderedOptions.new
188
190
  config.ruby.check = true
data/lib/jets/cfn/ship.rb CHANGED
@@ -16,6 +16,7 @@ module Jets::Cfn
16
16
 
17
17
  puts "Deploying CloudFormation stack with jets app!"
18
18
  begin
19
+ set_resource_tags
19
20
  save_stack
20
21
  rescue Aws::CloudFormation::Errors::InsufficientCapabilitiesException => e
21
22
  capabilities = e.message.match(/\[(.*)\]/)[1]
@@ -49,6 +50,10 @@ module Jets::Cfn
49
50
  show_custom_domain
50
51
  end
51
52
 
53
+ def set_resource_tags
54
+ @tags = Jets.config.resource_tags.map { |key, value| { key: key, value: value } }
55
+ end
56
+
52
57
  def save_stack
53
58
  if stack_exists?(@parent_stack_name)
54
59
  update_stack
@@ -77,6 +82,7 @@ module Jets::Cfn
77
82
  stack_name: @parent_stack_name,
78
83
  capabilities: capabilities, # ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM"]
79
84
  # disable_rollback: !@options[:rollback],
85
+ tags: @tags,
80
86
  }.merge!(template.to_h)
81
87
  end
82
88
 
@@ -49,7 +49,6 @@ private
49
49
  %w[
50
50
  Procfile
51
51
  controllers
52
- helpers
53
52
  javascript
54
53
  models/application_
55
54
  views
@@ -14,9 +14,10 @@ class Jets::Resource::ApiGateway::RestApi::Routes::Change
14
14
  return [] if data.nil?
15
15
 
16
16
  data.map do |item|
17
+ method = item.dig('options','method') || item.dig('options','http_method')
17
18
  Jets::Router::Route.new(
18
19
  path: item['path'],
19
- method: item['options']['method'],
20
+ method: method,
20
21
  to: item['to'],
21
22
  )
22
23
  end
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "4.0.8"
2
+ VERSION = "4.0.10"
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.8
4
+ version: 4.0.10
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-03 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer