jets 1.9.0 → 1.9.1

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: 1e5eb71c2230e8be8a4ba872178be6c843c14792bbad449cea6f2d0a21578e46
4
- data.tar.gz: 8602cef734ac3f5579163914341e484a6a95a5e8dd4a4256dfa44a3585663779
3
+ metadata.gz: 9350d2ad41ae1ab0874e259483e40f971c1d0505d21f5ffb6506595e1a79c65b
4
+ data.tar.gz: 138152a71d392822710657ba7998b5fc26faba03ec5039615239ca7a9bcf54b5
5
5
  SHA512:
6
- metadata.gz: 705d88b52c979388120c9a7d325b3e4616d1706b1e648f5a60971504eac7030995301f70b3ea7172098f4f11411797901366847b5c1179dc6ce8d34f9b458361
7
- data.tar.gz: 227b1f84bac367c6acae699eebee9836695e4c9fe62178ee015df48bcf3f6aa708fca85abc60fa663f0524cb50e7b3e350e85b0c34cf800a247e97039c51c334
6
+ metadata.gz: 8b81b4344b3176063e195ed18a40cb19e3c79dc3d4ac8708f6bc0a25e302628ee72024d2a707584f449f424270d3d20fdca183688374ef8c8d795c7422b07353
7
+ data.tar.gz: 225bad7d48c93975fd92a4adfbcf4daf2e77c56b7c96e2d7a35c0768087b5c5c1439347759bc223afcfd745dfe5edf1a36472d134121d8d93cebed744293ee74
@@ -3,6 +3,10 @@
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
+ ## [1.9.1]
7
+ - #257 dont generate handlers for concerns
8
+ - #258 from Fix custom domain base mapping
9
+
6
10
  ## [1.9.0]
7
11
  - #249 docs grammar improvements
8
12
  - #252 docs cli improvements
@@ -113,6 +113,7 @@ module Jets::Commands
113
113
  Dir.glob(expression).each do |path|
114
114
  return false unless File.file?(path)
115
115
  next unless app_file?(path)
116
+ next if concerns?(path)
116
117
 
117
118
  relative_path = path.sub("#{Jets.root}/", '')
118
119
  # Rids of the Jets.root at beginning
@@ -215,6 +216,10 @@ module Jets::Commands
215
216
  false
216
217
  end
217
218
 
219
+ def self.concerns?(path)
220
+ path =~ %r{app/\w+/concerns/}
221
+ end
222
+
218
223
  def self.tmp_code(full_build_path=false)
219
224
  full_build_path ? "#{Jets.build_root}/stage/code" : "stage/code"
220
225
  end
@@ -52,6 +52,7 @@ Jets.application.configure do
52
52
  # config.api.authorization_type = "AWS_IAM" # default is 'NONE' https://amzn.to/2qZ7zLh
53
53
 
54
54
 
55
+ # More info: http://rubyonjets.com/docs/routing/custom-domain/
55
56
  # config.domain.hosted_zone_name = "example.com"
56
57
  # us-west-2 REGIONAL endpoint
57
58
  # config.domain.cert_arn = "arn:aws:acm:us-west-2:112233445566:certificate/8d8919ce-a710-4050-976b-b33da991e123"
@@ -106,7 +106,11 @@ class BasePathMapping
106
106
  domain_name: @domain_name, # required
107
107
  base_path: '(none)',
108
108
  )
109
- rescue Aws::APIGateway::Errors::NotFoundException => e
109
+ # https://github.com/tongueroo/jets/issues/255
110
+ # Used to return: Aws::APIGateway::Errors::NotFoundException
111
+ # Now returns: Aws::APIGateway::Errors::InternalFailure
112
+ # So we'll use a more generic error
113
+ rescue Aws::APIGateway::Errors::ServiceError => e
110
114
  raise(e) unless fail_silently
111
115
  end
112
116
 
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.9.0"
2
+ VERSION = "1.9.1"
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: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen