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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14f4e12068a48f8ff8d9114f69f9b01da482d89c78a4f7027a42c4c33995de93
4
- data.tar.gz: 2a078028215d546115310857ec3c37ec629b0be726182e4c6a4f1d6ddd2f9dd2
3
+ metadata.gz: b1c15ea91434727519b1531096940a485671580c71718567d2f2789d49b52919
4
+ data.tar.gz: 16b9fad79824140e0733c9753093d8e0ba969d6f8658cc0a2d846953cbbda3db
5
5
  SHA512:
6
- metadata.gz: ae698eaaba985b224cb01b43e2ac90015ae5e7a5fd1eaf4a4c9a97e76303b9fc700fe3e251843bc7fb6c209a94c51f7a07743a98203bdb27e79c6dc19c18c026
7
- data.tar.gz: 40142abe6a735a848f1931fa1f044f5964191b1c0326cce0b00d3850b05023ab238b97b5c793d13e7c7b78bf5e4e3a1baa747f0fb233c7fd5f4e3535c9207e44
6
+ metadata.gz: f51fcf5b4ddb7bcfd2423556c6bb6871471ae487dc83a5ed080896276236dfedc8785e310e6862659f54dce8a61decb8baedf3f61b62c65f0bf79438d86d6ac1
7
+ data.tar.gz: 9d4c6f4924acc0c62ea93265a94d1acc68436b5a41c9e9d1ae56c0b3325542f5a947b6b294ae88d6c7b17089aeab834ff675a1d60601b3365f7e282ae66e0526
@@ -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
@@ -1 +1 @@
1
- 2.5.6
1
+ 2.5.7
@@ -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
@@ -120,7 +120,7 @@ class Jets::Booter
120
120
 
121
121
  # All Turbines
122
122
  def app_initializers
123
- Dir.glob("#{Jets.root}/config/initializers/**/*").each do |path|
123
+ Dir.glob("#{Jets.root}/config/initializers/**/*").sort.each do |path|
124
124
  load path
125
125
  end
126
126
  end
@@ -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"
@@ -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("#{resource_logical_id.camelize}ApiResource")
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 "#{path_logical_id(@path)}ApiResource"
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("#{parent_logical_id}ApiResource")
44
+ Jets::Resource.truncate_id(parent_logical_id, "ApiResource")
45
45
  else
46
46
  "RootResourceId"
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "2.3.12"
2
+ VERSION = "2.3.13"
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: 2.3.12
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-01-19 00:00:00.000000000 Z
11
+ date: 2020-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer