jets 2.3.12 → 2.3.13
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/.cody/docs/bin/git_setup.sh +0 -9
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -0
- data/lib/jets/booter.rb +1 -1
- data/lib/jets/dotenv.rb +5 -5
- data/lib/jets/internal/turbines/jets/mailer.rb +1 -0
- data/lib/jets/resource.rb +4 -4
- data/lib/jets/resource/api_gateway/method.rb +1 -1
- data/lib/jets/resource/api_gateway/resource.rb +2 -2
- 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: b1c15ea91434727519b1531096940a485671580c71718567d2f2789d49b52919
|
4
|
+
data.tar.gz: 16b9fad79824140e0733c9753093d8e0ba969d6f8658cc0a2d846953cbbda3db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f51fcf5b4ddb7bcfd2423556c6bb6871471ae487dc83a5ed080896276236dfedc8785e310e6862659f54dce8a61decb8baedf3f61b62c65f0bf79438d86d6ac1
|
7
|
+
data.tar.gz: 9d4c6f4924acc0c62ea93265a94d1acc68436b5a41c9e9d1ae56c0b3325542f5a947b6b294ae88d6c7b17089aeab834ff675a1d60601b3365f7e282ae66e0526
|
data/.cody/docs/bin/git_setup.sh
CHANGED
@@ -10,12 +10,3 @@
|
|
10
10
|
git config --global user.email "tongueroo@gmail.com"
|
11
11
|
git config --global user.name "Tung Nguyen"
|
12
12
|
|
13
|
-
set +u # cb start will not have CODEBUILD_WEBHOOK_TRIGGER set
|
14
|
-
if [ -n "$CODEBUILD_WEBHOOK_TRIGGER" ]; then # git push
|
15
|
-
BRANCH=$(echo $CODEBUILD_WEBHOOK_TRIGGER | sed "s/.*\///")
|
16
|
-
elif [ -n "$CODEBUILD_SOURCE_VERSION" ]; then # cb start
|
17
|
-
BRANCH=$CODEBUILD_SOURCE_VERSION # contains the actual branch
|
18
|
-
else
|
19
|
-
BRANCH=UNKNOWN-BRANCH
|
20
|
-
fi
|
21
|
-
git checkout $BRANCH
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.7
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,15 @@
|
|
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
|
+
## [2.3.13]
|
7
|
+
- #430 Remove out-of-date note about FIFO Queue
|
8
|
+
- #433 Fixed ApiResources with long names not included in the main CloudFormation template
|
9
|
+
- #435 fix typo SMTP
|
10
|
+
- #437 Ignore *.local files when JETS_ENV_REMOTE=1
|
11
|
+
- #438 Forcing sort of initializers
|
12
|
+
- #446 temp fix for actionmailer turbine initializer
|
13
|
+
- update to ruby 2.5.7
|
14
|
+
|
6
15
|
## [2.3.12]
|
7
16
|
- #421 use underscore for database name in database.yml
|
8
17
|
- #422 url_for: allow any activemodel compatiable object to work
|
data/lib/jets/booter.rb
CHANGED
data/lib/jets/dotenv.rb
CHANGED
@@ -22,18 +22,18 @@ class Jets::Dotenv
|
|
22
22
|
# dotenv files with the following precedence:
|
23
23
|
#
|
24
24
|
# - .env.development.jets_env_extra (highest)
|
25
|
-
# - .env.development.remote (2nd highest)
|
26
|
-
# - .env.development.local
|
25
|
+
# - .env.development.remote (2nd highest, only if JETS_ENV_REMOTE=1)
|
26
|
+
# - .env.development.local (unless JETS_ENV_REMOTE=1)
|
27
27
|
# - .env.development
|
28
|
-
# - .env.local - This file is loaded for all environments _except_ `test
|
28
|
+
# - .env.local - This file is loaded for all environments _except_ `test` or unless JETS_ENV_REMOTE=1
|
29
29
|
# - .env - The original (lowest)
|
30
30
|
#
|
31
31
|
def dotenv_files
|
32
32
|
files = [
|
33
33
|
root.join(".env"),
|
34
|
-
(root.join(".env.local") unless Jets.env.test?),
|
34
|
+
(root.join(".env.local") unless (Jets.env.test? || @remote)),
|
35
35
|
root.join(".env.#{Jets.env}"),
|
36
|
-
root.join(".env.#{Jets.env}.local"),
|
36
|
+
(root.join(".env.#{Jets.env}.local") unless @remote),
|
37
37
|
]
|
38
38
|
files << root.join(".env.#{Jets.env}.remote") if @remote
|
39
39
|
if ENV["JETS_ENV_EXTRA"]
|
@@ -8,6 +8,7 @@ module Jets
|
|
8
8
|
end
|
9
9
|
|
10
10
|
initializer "action_mailer.set_configs" do |app|
|
11
|
+
app.config.action_mailer ||= ActiveSupport::OrderedOptions.new # TODO: temp fix. only happens sometimes?
|
11
12
|
options = app.config.action_mailer
|
12
13
|
options.default_url_options ||= {}
|
13
14
|
options.default_url_options[:protocol] ||= "https"
|
data/lib/jets/resource.rb
CHANGED
@@ -26,14 +26,14 @@ class Jets::Resource
|
|
26
26
|
Jets::Resource.truncate_id(id)
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.truncate_id(id)
|
29
|
+
def self.truncate_id(id, postfix = '')
|
30
30
|
# Api Gateway resource name has a limit of 64 characters.
|
31
31
|
# Yet it throws not found when ID is longer than 62 characters and I don't know why.
|
32
32
|
# To keep it safe, let's stick to the 62 characters limit.
|
33
|
-
if id.size > 62
|
34
|
-
"#{id[0..55]}#{Digest::MD5.hexdigest(id)[0..5]}"
|
33
|
+
if id.size + postfix.size > 62
|
34
|
+
"#{id[0..(55 - postfix.size)]}#{Digest::MD5.hexdigest(id)[0..5]}#{postfix}"
|
35
35
|
else
|
36
|
-
id
|
36
|
+
"#{id}#{postfix}"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
@@ -83,7 +83,7 @@ module Jets::Resource::ApiGateway
|
|
83
83
|
def resource_id
|
84
84
|
@route.path == '' ?
|
85
85
|
"RootResourceId" :
|
86
|
-
Jets::Resource.truncate_id(
|
86
|
+
Jets::Resource.truncate_id(resource_logical_id.camelize, "ApiResource")
|
87
87
|
end
|
88
88
|
|
89
89
|
# Example: Posts
|
@@ -28,7 +28,7 @@ module Jets::Resource::ApiGateway
|
|
28
28
|
if @path == ''
|
29
29
|
"RootResourceId"
|
30
30
|
else
|
31
|
-
Jets::Resource.truncate_id
|
31
|
+
Jets::Resource.truncate_id path_logical_id(@path), "ApiResource"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -41,7 +41,7 @@ module Jets::Resource::ApiGateway
|
|
41
41
|
if @path.include?('/') # posts/:id or posts/:id/edit
|
42
42
|
parent_path = @path.split('/')[0..-2].join('/')
|
43
43
|
parent_logical_id = path_logical_id(parent_path)
|
44
|
-
Jets::Resource.truncate_id("
|
44
|
+
Jets::Resource.truncate_id(parent_logical_id, "ApiResource")
|
45
45
|
else
|
46
46
|
"RootResourceId"
|
47
47
|
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: 2.3.
|
4
|
+
version: 2.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|