jets 0.10.2 → 0.10.3

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: 004fd07357a95e0e3510618961b5a6f34519ef3a63d8a701495cfdd778dbf0ae
4
- data.tar.gz: 42f440db1cedab8d1fd125e2982bc3e1a4f142bce303cbdcab3ef4708c46c896
3
+ metadata.gz: c44b41d2b76b96588efa60f037a9428b7116c817906b653088c163acbccfd2b8
4
+ data.tar.gz: a49185d012396c06b1e01b47df7174bd2abc7438e73bfffafa47e8864a7463d8
5
5
  SHA512:
6
- metadata.gz: df31a2191ad694d664527d0fe2ab07d0e6d7f63193798ad5ccd06230ce6ed936cdef4350befd8d85b7f64a5ad2e8f02aa9ae813e467a0f3dd3a1497d666f95de
7
- data.tar.gz: 071f98800a1e24d70390baec349ecf91111932c002e03f7ad63cd9f0605260d0d69cdbaf609af960e70db2e118133b07592e7e24477eab0fae6f83ddae224b54
6
+ metadata.gz: 5bd0117da8ed1de85ceff306f472e7e8cafbfdbb03342adc8d55f140368f0e2a7f6fb4d6b98b48e94b9908ed7249583217592348505505563d8872bd06a3e2d2
7
+ data.tar.gz: 05e867a383e52d8c3c6f98b0814e626040539a83b8975d5c599e3c88d5ace3f99324f66b7d667ad93354b36ea9a43f7f038d99eaaaf851fa8670ff4f094a1c26
@@ -3,6 +3,9 @@
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/), even before v1.0.
5
5
 
6
+ ## [0.10.3]
7
+ - expose Jets::Application.default_iam_policy so user can re-use
8
+
6
9
  ## [0.10.2]
7
10
  - fix cloudformation config rule permission race condition with depends on
8
11
  - simplify --templates only cli option
@@ -14,9 +17,9 @@ This project *loosely tries* to adhere to [Semantic Versioning](http://semver.or
14
17
  - update upgrade notes
15
18
 
16
19
  ## [0.10.0]
20
+ - Breaking: Changed logical ids. Refer to upgrading notes: http://rubyonjets.com/docs/upgrading/
17
21
  - Merge pull request #45 from tongueroo/remove-internal-welcome
18
22
  - Fix routing: Allow multiple paths to point to same controller action
19
- - Refer to upgrading notes: http://rubyonjets.com/docs/upgrading/
20
23
 
21
24
  ## [0.9.2]
22
25
  - s3 assets support: Merge pull request #44 from tongueroo/s3-assets
@@ -26,12 +29,12 @@ This project *loosely tries* to adhere to [Semantic Versioning](http://semver.or
26
29
  - fix iam policies: flatten
27
30
 
28
31
  ## [0.9.0]
32
+ - Breaking: Changed logical ids. Refer to upgrading notes: http://rubyonjets.com/docs/upgrading/
29
33
  - Pretty big update: introduce concept of Shared Resources and Stack DSL
30
34
  - Stack DSL: To support the concept of Custom Shared Resources. Supports extensions and simple functions also.
31
35
  - Stack DSL: Allow for control of DependsOn attribute.
32
36
  - Stack DSL: `MyStack.lookup` method
33
37
  - Remove class name from the namespace. So namespace only has method name now. NOTE: This means upgrading from 0.8.x to 0.9.x requires a blue-green update.
34
- - Add upgrading docs.
35
38
  - Associated resource extensions support
36
39
  - Associated resources multiple form support: long, medium, short
37
40
  - Add `jets new --mode`: 3 modes: html, api, job. Remove the `--api`
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- jets (0.10.2)
14
+ jets (0.10.3)
15
15
  actionpack (>= 5.2.1)
16
16
  actionview (>= 5.2.1)
17
17
  activerecord (>= 5.2.1)
@@ -101,16 +101,16 @@ class Jets::Application
101
101
  # table_namespace does not have the env_extra, more common case desired.
102
102
  config.table_namespace = [config.project_name, config.short_env].compact.join('-')
103
103
 
104
- project_namespace = [config.project_name, config.short_env, config.env_extra].compact.join('-')
105
- config.project_namespace = project_namespace
104
+ config.project_namespace = Jets.project_namespace
106
105
 
107
106
  # Must set default iam_policy here instead of `def config` because we need access to
108
107
  # the project_namespace and if we call it from `def config` we get an infinit loop
109
- config.iam_policy ||= default_iam_policy(project_namespace)
108
+ config.iam_policy ||= self.class.default_iam_policy
110
109
  config.managed_policy_definitions ||= [] # default empty
111
110
  end
112
111
 
113
- def default_iam_policy(project_namespace)
112
+ def self.default_iam_policy
113
+ project_namespace = Jets.project_namespace
114
114
  logs = {
115
115
  action: ["logs:*"],
116
116
  effect: "Allow",
@@ -162,4 +162,8 @@ module Jets::Core
162
162
  @@prewarm_count
163
163
  end
164
164
 
165
+ def project_namespace
166
+ [config.project_name, config.short_env, config.env_extra].compact.join('-')
167
+ end
168
+
165
169
  end
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "0.10.2"
2
+ VERSION = "0.10.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen