jets 3.0.9 → 3.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: bccb565973aab7e6793924820d026a97e056a75fc5827f0e227d11d17f2c76d8
4
- data.tar.gz: c0935a069903b2406e4c06948d35e679d4a2837dc002bc56168f94a4c441774f
3
+ metadata.gz: 0b2e85111e507304b3bd11375499c70f4ba880e1f2523e5f7b2ff627e6558b76
4
+ data.tar.gz: 5e7bbb320f5e580726ab4d66e11cc47feca970edc61d6d01f1ed25fea2693bad
5
5
  SHA512:
6
- metadata.gz: a0368aad05b5cd49fb3e5f175e672306c62906b9f3909fc8e9df29ca722cff15695a8c9de2a9d5f34bfe404828fc06401f04bc1b63ed6486c57f963191d3de43
7
- data.tar.gz: 90eab98e9f5664bb27b67a14f5d3b2cba53f4cdfabd8828629d467cd0c00351746c6425ef5a38080cdec814ebd2d69aa480d132415bf6531bf1775f37bf944d1
6
+ metadata.gz: 7dbf8891880be71e8b40da911ebb13e5ad39365158efa9bd62426b17e94d8b264a9832f14e32f10a8b402daf34cecda8f5986bcfcc70cb9278a7793b398b61d0
7
+ data.tar.gz: 6397148e88442a557552397ab01c7b7697f3642593f0aaedcbddd15f01c824e47b64922d21208bf99e01dd2929b547fcc3ef07a0c91afb6e49a58fe46185667f
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
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
+ ## [3.0.10] - 2021-07-14
7
+ - [#575](https://github.com/boltops-tools/jets/pull/575) fix missing webpacker helpers
8
+ - [#576](https://github.com/boltops-tools/jets/pull/576) Fixes API Gateway base path Lambda not respecting various config opts
9
+ - [#577](https://github.com/boltops-tools/jets/pull/577) Adjust .jetskeep handling and add .jetsignore docs
10
+ - fix dbconsole (#568)
11
+
6
12
  ## [3.0.9] - 2021-06-14
7
13
  - fix content type s3 metadata (#564)
8
14
 
@@ -38,7 +38,7 @@ module Jets::Builders
38
38
  removals += get_removals("#{@project_root}/.jetsignore")
39
39
  removals = removals.reject do |p|
40
40
  jetskeep.find do |keep|
41
- p.include?(keep)
41
+ p == keep
42
42
  end
43
43
  end
44
44
  removals.uniq
@@ -56,7 +56,7 @@ module Jets::Builders
56
56
  # We clean out ignored files pretty aggressively. So provide
57
57
  # a way for users to keep files from being cleaned out.
58
58
  def jetskeep
59
- always = %w[.bundle packs vendor]
59
+ always = %w[.bundle /public/packs /public/packs-test vendor]
60
60
  path = "#{@project_root}/.jetskeep"
61
61
  return always unless File.exist?(path)
62
62
 
@@ -1,12 +1,15 @@
1
1
  # Thanks: Rails dbconsole_command.rb
2
2
  module Jets::Commands
3
3
  class Dbconsole
4
+ extend Memoist
5
+
4
6
  def self.start(*args)
5
7
  new(*args).start
6
8
  end
7
9
 
8
10
  def initialize(options = {})
9
- @options = options
11
+ defaults = {"include_password" => true}
12
+ @options = defaults.merge(options)
10
13
  end
11
14
 
12
15
  def start
@@ -85,14 +88,14 @@ module Jets::Commands
85
88
  end
86
89
 
87
90
  def config
88
- @config ||= begin
89
- if configurations[environment].blank?
90
- raise ActiveRecord::AdapterNotSpecified, "'#{environment}' database is not configured. Available configuration: #{configurations.inspect}"
91
- else
92
- configurations[environment]
93
- end
91
+ configs = configurations.configs_for(env_name: environment)
92
+ if configs.blank?
93
+ raise ActiveRecord::AdapterNotSpecified, "'#{environment}' database is not configured. Available configuration: #{configurations.inspect}"
94
+ else
95
+ configs.first.configuration_hash.dup.stringify_keys!
94
96
  end
95
97
  end
98
+ memoize :config
96
99
 
97
100
  def environment
98
101
  Jets.env.to_s
data/lib/jets/core.rb CHANGED
@@ -43,7 +43,7 @@ module Jets::Core
43
43
  memoize :logger
44
44
 
45
45
  def webpacker?
46
- Gem.loaded_specs.keys.include?("webpacker")
46
+ Gem.loaded_specs.keys.any?{|k| k.start_with?("webpacker")}
47
47
  end
48
48
  memoize :webpacker?
49
49
 
@@ -25,7 +25,9 @@ module Jets::Resource::ApiGateway::BasePath
25
25
  end
26
26
 
27
27
  def layers
28
- ["!Ref GemLayer"]
28
+ return Jets.config.lambda.layers if Jets.config.gems.disable
29
+
30
+ ["!Ref GemLayer"] + Jets.config.lambda.layers
29
31
  end
30
32
 
31
33
  def function_name
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "3.0.9"
2
+ VERSION = "3.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: 3.0.9
4
+ version: 3.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: 2021-06-14 00:00:00.000000000 Z
11
+ date: 2021-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer