jets 1.5.3 → 1.5.4

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: acc1ca8f19a2a3312ebcd7d401233a81cd59a50332b12714efea1c7eb2630f70
4
- data.tar.gz: 6c2dc27bca44f067688800db2bd02d0b9082996aa5fd6c4fdb59d677355f107e
3
+ metadata.gz: 409b1640766c778fd1f82e4908636aa9fe44e3d8f174eee18ce143c97f04b63c
4
+ data.tar.gz: a451911e27f40e6ba0ae0daacf16112602b16dad128a776592467b9f900a4f63
5
5
  SHA512:
6
- metadata.gz: 9701f2ab97be26f14ff47b657717f6c973d183eb2d5de6342fa04bb79b1f01260c982aef592c33d4c897e8cfb4de8961d5d47b1bd05b55a1ffaae3cd578e9ffc
7
- data.tar.gz: 2f15bff8efd7ea3ea3908704c526ad4c9f617be934caa77b2e3bdfee6e0ad5e99dcbd1dbf98fe6c621fb3259b5f5a7342213f044902e1762303a620d966f84f0
6
+ metadata.gz: ed233926d5d210e17d24dca768dffe47a432f338dbd75132a7308251d79309879b932dd96a52e6be52a472700f8e51963514c23b7a9e077f9f34f1f7acbd86ec
7
+ data.tar.gz: 405b7a50ad0c5002958de5d4dc236aca0adedd1dbb2cad231ab00806f43e18871bc4d5b52b21eb8c2b1c06b98f7fc56e917b70ebb66b9d8687c6d77a11f3bd71
@@ -48,16 +48,16 @@ What is it you expected to happen? This should be a description of how the funct
48
48
 
49
49
  ## Current Behavior
50
50
 
51
- <!--
51
+ <!--
52
52
  Describe the details of the bug. Try to keep this to one-paragraph.
53
53
  -->
54
54
 
55
55
  ## Step-by-step reproduction instructions
56
56
 
57
- <!--
57
+ <!--
58
58
  Be sure to include any steps you took for the problem to exist. This is likely the longest part of the report.
59
59
 
60
- Please include any logs you think relevant here. If the logs are long (more than 50 lines) please make a gist of the logs and link to it. https://gist.github.com
60
+ Please include any logs you think relevant here. If the logs are long (more than 50 lines) please make a gist of the logs and link to it. https://gist.github.com
61
61
  -->
62
62
 
63
63
  ## Code Sample
@@ -65,3 +65,9 @@ Please include any logs you think relevant here. If the logs are long (more than
65
65
  <!--
66
66
  Please provide a code repository, gist, code snippet or sample files to reproduce the issue.
67
67
  -->
68
+
69
+ ## Solution Suggestion
70
+
71
+ <!--
72
+ Please provide possible solutions. If you can't think of anything, feel free to omit. Please be kind and add helpful possible solutions. For example, "Fix it!" is not a helpful solution suggestion. We are mere mortals. Please be constructive.
73
+ -->
data/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
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/), even before v1.0.
5
5
 
6
+ ## [1.5.4]
7
+ - #146 add and point to helpful docs on deploy error
8
+ - #147 update turbo Gemfile.lock, fixes Jets afterburner when using custom layers
9
+ - slimmer job mode Gemfile
10
+
6
11
  ## [1.5.3]
7
12
  - #142 from tongueroo/rails-api-afterburner fix jets afterburner for rails api mode apps
8
13
 
@@ -23,7 +28,7 @@ This project *loosely tries* to adhere to [Semantic Versioning](http://semver.or
23
28
 
24
29
  ## [1.5.0]
25
30
  - #135 from tongueroo/remove-rails-constant Remove Rails Constant
26
- - #136 from tongueroo/routes-namespace routes namespace support
31
+ - #136 from tongueroo/routes-namespace routes namespace support (will be adjusted)
27
32
 
28
33
  ## [1.4.11]
29
34
  - #133 from tongueroo/custom-layer add custom lambda layer support
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- jets (1.5.3)
14
+ jets (1.5.4)
15
15
  activerecord (>= 5.2.1)
16
16
  activesupport (>= 5.2.1)
17
17
  aws-sdk-apigateway
@@ -115,7 +115,7 @@ GEM
115
115
  gems (1.1.1)
116
116
  json
117
117
  hashie (3.6.0)
118
- i18n (1.5.1)
118
+ i18n (1.5.2)
119
119
  concurrent-ruby (~> 1.0)
120
120
  jets-html-sanitizer (1.0.4)
121
121
  loofah (~> 2.2, >= 2.2.2)
data/lib/jets/cfn/ship.rb CHANGED
@@ -31,7 +31,18 @@ class Jets::Cfn
31
31
  end
32
32
  end
33
33
 
34
- wait_for_stack
34
+ success = wait_for_stack
35
+ unless success
36
+ puts <<~EOL
37
+ The Jets application failed to deploy. Jets creates a few CloudFormation stacks to deploy your application.
38
+ The logs above show the CloudFormation parent stack events and points to the stack with the error.
39
+ Please go to the CloudFormation console and look for the specific stack with the error.
40
+ The specific child stack usually shows more detailed information and can be used to resolve the issue.
41
+ Example of checking the CloudFormation console: http://rubyonjets.com/docs/debugging-cloudformation/
42
+ EOL
43
+ return
44
+ end
45
+
35
46
  prewarm
36
47
  clean_deploy_logs
37
48
  show_api_endpoint
@@ -54,6 +54,7 @@ class Jets::Cfn
54
54
  return
55
55
  end
56
56
 
57
+ success = false
57
58
  if last_event_status =~ /_FAILED/
58
59
  puts "Stack failed: #{last_event_status}".colorize(:red)
59
60
  puts "Stack reason #{@events[0]["resource_status_reason"]}".colorize(:red)
@@ -61,6 +62,7 @@ class Jets::Cfn
61
62
  puts "Stack rolled back: #{last_event_status}".colorize(:red)
62
63
  else # success
63
64
  puts "Stack success status: #{last_event_status}".colorize(:green)
65
+ success = true
64
66
  end
65
67
 
66
68
  # Never gets here when deleting a stack because the describe stack returns nothing
@@ -68,6 +70,8 @@ class Jets::Cfn
68
70
  return if @hide_time_took # set in run
69
71
  took = Time.now - start_time
70
72
  puts "Time took for stack deployment: #{pretty_time(took).green}."
73
+
74
+ success
71
75
  end
72
76
 
73
77
  def completed
@@ -13,17 +13,23 @@ gem "pg", "~> 1.1.3"
13
13
  # Include mysql2 gem if you are using ActiveRecord, remove if you are not
14
14
  gem "mysql2", "~> 0.5.2"
15
15
  <% end %>
16
+ <% unless options[:mode] == 'job' -%>
16
17
  gem "dynomite"
18
+ <% end -%>
17
19
 
18
20
  group :development, :test do
19
21
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
20
22
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
23
+ <% unless options[:mode] == 'job' -%>
21
24
  gem 'shotgun'
22
25
  gem 'rack'
26
+ <% end -%>
23
27
  end
24
28
 
25
29
  group :test do
26
30
  gem 'rspec' # rspec test group only or we get the "irb: warn: can't alias context from irb_context warning" when starting jets console
31
+ <% unless options[:mode] == 'job' -%>
27
32
  gem 'launchy'
28
33
  gem 'capybara'
34
+ <% end -%>
29
35
  end
@@ -29,7 +29,7 @@ GEM
29
29
  public_suffix (>= 2.0.2, < 4.0)
30
30
  arel (9.0.0)
31
31
  aws-eventstream (1.0.1)
32
- aws-partitions (1.126.0)
32
+ aws-partitions (1.131.0)
33
33
  aws-sdk-apigateway (1.23.0)
34
34
  aws-sdk-core (~> 3, >= 3.39.0)
35
35
  aws-sigv4 (~> 1.0)
@@ -39,12 +39,12 @@ GEM
39
39
  aws-sdk-cloudwatchlogs (1.12.0)
40
40
  aws-sdk-core (~> 3, >= 3.39.0)
41
41
  aws-sigv4 (~> 1.0)
42
- aws-sdk-core (3.44.1)
42
+ aws-sdk-core (3.45.0)
43
43
  aws-eventstream (~> 1.0)
44
44
  aws-partitions (~> 1.0)
45
45
  aws-sigv4 (~> 1.0)
46
46
  jmespath (~> 1.0)
47
- aws-sdk-dynamodb (1.18.1)
47
+ aws-sdk-dynamodb (1.19.0)
48
48
  aws-sdk-core (~> 3, >= 3.39.0)
49
49
  aws-sigv4 (~> 1.0)
50
50
  aws-sdk-kms (1.13.0)
@@ -53,7 +53,7 @@ GEM
53
53
  aws-sdk-lambda (1.16.0)
54
54
  aws-sdk-core (~> 3, >= 3.39.0)
55
55
  aws-sigv4 (~> 1.0)
56
- aws-sdk-s3 (1.30.0)
56
+ aws-sdk-s3 (1.30.1)
57
57
  aws-sdk-core (~> 3, >= 3.39.0)
58
58
  aws-sdk-kms (~> 1)
59
59
  aws-sigv4 (~> 1.0)
@@ -78,16 +78,14 @@ GEM
78
78
  concurrent-ruby (1.1.4)
79
79
  crass (1.0.4)
80
80
  diff-lcs (1.3)
81
- dotenv (2.5.0)
81
+ dotenv (2.6.0)
82
82
  erubi (1.8.0)
83
83
  gems (1.1.1)
84
84
  json
85
85
  hashie (3.6.0)
86
- i18n (1.3.0)
86
+ i18n (1.5.2)
87
87
  concurrent-ruby (~> 1.0)
88
- jets (1.3.9)
89
- actionpack (>= 5.2.1)
90
- actionview (>= 5.2.1)
88
+ jets (1.5.3)
91
89
  activerecord (>= 5.2.1)
92
90
  activesupport (>= 5.2.1)
93
91
  aws-sdk-apigateway
@@ -102,6 +100,7 @@ GEM
102
100
  dotenv
103
101
  gems
104
102
  hashie
103
+ jets-html-sanitizer
105
104
  json
106
105
  kramdown
107
106
  memoist
@@ -111,6 +110,8 @@ GEM
111
110
  recursive-open-struct
112
111
  text-table
113
112
  thor
113
+ jets-html-sanitizer (1.0.4)
114
+ loofah (~> 2.2, >= 2.2.2)
114
115
  jmespath (1.4.0)
115
116
  json (2.1.0)
116
117
  kramdown (1.17.0)
@@ -125,7 +126,7 @@ GEM
125
126
  mini_mime (1.0.1)
126
127
  mini_portile2 (2.4.0)
127
128
  minitest (5.11.3)
128
- nokogiri (1.9.1)
129
+ nokogiri (1.10.1)
129
130
  mini_portile2 (~> 2.4.0)
130
131
  public_suffix (3.0.3)
131
132
  rack (2.0.6)
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.5.3"
2
+ VERSION = "1.5.4"
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: 1.5.3
4
+ version: 1.5.4
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-01-13 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord