jets 1.8.5 → 1.8.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1363b9c561ffcb14e1c83b917eb1eed1fbaf4cf19c6a1a7d2346c7352a87c079
|
4
|
+
data.tar.gz: 7b1de276009c38da3e0fb2b684b231726aa2d268ba9e0e8c8452f402cfa38a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 477e804b7ef7079d6a8d2ccc0dbcf47cd674b4c031ab66ba16378a84a796435e708ec39fdf5407f4a95459bb4611096b10a58db55a15c33d1e23545da20cc59a
|
7
|
+
data.tar.gz: b053eb4f120db2dd750bb63fcb87914fb873a372c6157d85cf4aa6cb60949c65f14aee4a473ae85e2dd3f89f9b6cf44d852836558d3027b0b7df400029b9f610
|
data/CHANGELOG.md
CHANGED
@@ -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.8.6]
|
7
|
+
- #202 fix on_aws detection when using cloud9 hostname. Fixes #201
|
8
|
+
- user friendly error message when s3 bucket name has already been taken
|
9
|
+
|
6
10
|
## [1.8.5]
|
7
11
|
- #198 DynamoDB Stream Event Support
|
8
12
|
- #199 Kinesis Event support
|
@@ -12,6 +12,10 @@ module Jets::AwsServices
|
|
12
12
|
|
13
13
|
def ensure_exists
|
14
14
|
s3.create_bucket(bucket: @name) unless exists?
|
15
|
+
rescue Aws::S3::Errors::BucketAlreadyExists => e
|
16
|
+
puts "ERROR #{e.class}: #{e.message}".color(:red)
|
17
|
+
puts "Bucket name: #{@name}"
|
18
|
+
exit 1
|
15
19
|
end
|
16
20
|
|
17
21
|
def exists?
|
@@ -71,7 +71,8 @@ module Jets::Controller::Middleware
|
|
71
71
|
|
72
72
|
def on_aws?(env)
|
73
73
|
return false if ENV['TEST'] # usually with test we're passing in full API Gateway fixtures with the HTTP_X_AMZN_TRACE_ID
|
74
|
-
!!env['
|
74
|
+
on_cloud9 = !!(env['HTTP_HOST'] =~ /cloud9\..*\.amazonaws\.com/)
|
75
|
+
!!env['HTTP_X_AMZN_TRACE_ID'] && !on_cloud9
|
75
76
|
end
|
76
77
|
|
77
78
|
def routes_error_message(env)
|
@@ -14,7 +14,8 @@ module Jets::CommonMethods
|
|
14
14
|
memoize :add_stage?
|
15
15
|
|
16
16
|
def on_aws?
|
17
|
-
|
17
|
+
on_cloud9 = !!(request.headers['HTTP_HOST'] =~ /cloud9\..*\.amazonaws\.com/)
|
18
|
+
!request.headers['HTTP_X_AMZN_TRACE_ID'].nil? && !on_cloud9
|
18
19
|
end
|
19
20
|
memoize :on_aws?
|
20
21
|
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: 1.8.
|
4
|
+
version: 1.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|