jets 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +6 -6
- data/README.md +4 -2
- data/lib/jets/builders/code_builder.rb +2 -2
- data/lib/jets/cli.rb +3 -3
- data/lib/jets/commands/help/import/rack.md +1 -1
- data/lib/jets/commands/import/rack.rb +1 -1
- data/lib/jets/commands/import/sequence.rb +11 -3
- data/lib/jets/commands/main.rb +5 -2
- data/lib/jets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 751c93f86f093c6acb059fb618e50c6bf7afdcd643365bba49ea4b62cd3a0d2f
|
4
|
+
data.tar.gz: c542c41f988f565ef3fa19fa7790dc90961906a92d1d4c631a409febac512151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0c12539cc50ca7241c0b135964e22dda9b76fd96e3a8086c526a5ed7f6d4e54f771dd2d5e417f01063803e7553bf008680d24908988d14e39bef1ef959cc666
|
7
|
+
data.tar.gz: 5aa8d4a58de8ef1b24f0d5e137ce33846aea48138af7ff10a6cd4e329fafccc567af15dafbfff46ae4db5c8ce1dc2f40d21e108a417d9a7a0fcf1f480ff8c078
|
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/), even before v1.0.
|
5
5
|
|
6
|
+
## [1.3.6]
|
7
|
+
- Merge pull request #91 from mveer99/patch-1 jets deploy production docs
|
8
|
+
- #96 from tongueroo/mega-mode-prod-deploy fix mega mode prod deploy, fix typo
|
9
|
+
- #97 from tongueroo/jets-delete-env support jets delete ENV
|
10
|
+
- #98 from tongueroo/support-import-bb-and-gitlab add import support for bitbucket and gitlab also
|
11
|
+
|
6
12
|
## [1.3.5]
|
7
13
|
- Merge pull request #90 from tongueroo/on-exception fix on_exception hook
|
8
14
|
|
data/Gemfile.lock
CHANGED
@@ -11,7 +11,7 @@ GIT
|
|
11
11
|
PATH
|
12
12
|
remote: .
|
13
13
|
specs:
|
14
|
-
jets (1.3.
|
14
|
+
jets (1.3.6)
|
15
15
|
actionpack (>= 5.2.1)
|
16
16
|
actionview (>= 5.2.1)
|
17
17
|
activerecord (>= 5.2.1)
|
@@ -76,12 +76,12 @@ GEM
|
|
76
76
|
aws-sdk-cloudwatchlogs (1.12.0)
|
77
77
|
aws-sdk-core (~> 3, >= 3.39.0)
|
78
78
|
aws-sigv4 (~> 1.0)
|
79
|
-
aws-sdk-core (3.44.
|
79
|
+
aws-sdk-core (3.44.1)
|
80
80
|
aws-eventstream (~> 1.0)
|
81
81
|
aws-partitions (~> 1.0)
|
82
82
|
aws-sigv4 (~> 1.0)
|
83
83
|
jmespath (~> 1.0)
|
84
|
-
aws-sdk-dynamodb (1.18.
|
84
|
+
aws-sdk-dynamodb (1.18.1)
|
85
85
|
aws-sdk-core (~> 3, >= 3.39.0)
|
86
86
|
aws-sigv4 (~> 1.0)
|
87
87
|
aws-sdk-kms (1.13.0)
|
@@ -120,11 +120,11 @@ GEM
|
|
120
120
|
memoist (0.16.0)
|
121
121
|
method_source (0.9.2)
|
122
122
|
mimemagic (0.3.2)
|
123
|
-
mini_portile2 (2.
|
123
|
+
mini_portile2 (2.4.0)
|
124
124
|
minitest (5.11.3)
|
125
125
|
mysql2 (0.5.2)
|
126
|
-
nokogiri (1.
|
127
|
-
mini_portile2 (~> 2.
|
126
|
+
nokogiri (1.9.1)
|
127
|
+
mini_portile2 (~> 2.4.0)
|
128
128
|
rack (2.0.6)
|
129
129
|
rack-proxy (0.6.5)
|
130
130
|
rack
|
data/README.md
CHANGED
@@ -180,7 +180,10 @@ For more documentation, check out the official docs: [Ruby on Jets](http://rubyo
|
|
180
180
|
## Learning Content
|
181
181
|
|
182
182
|
* [Introducing Jets: A Ruby Serverless Framework](https://blog.boltops.com/2018/08/18/introducing-jets-a-ruby-serverless-framework)
|
183
|
-
* [AWS
|
183
|
+
* [Official AWS Ruby Support for Jets](https://blog.boltops.com/2018/12/12/official-aws-ruby-support-for-jets-serverless-framework)
|
184
|
+
* [Mega Mode: Rails Support](https://blog.boltops.com/2018/11/03/jets-mega-mode-run-rails-on-aws-lambda)
|
185
|
+
* [Toronto Serverless Presentation](https://blog.boltops.com/2018/09/25/toronto-serverless-presentation-jets-framework-on-aws-lambda)
|
186
|
+
* [Jets Image Uploads Tutorial with CarrierWave](https://blog.boltops.com/2018/12/13/jets-image-upload-carrierwave-tutorial-binary-support)
|
184
187
|
* [Jets Tutorial An Introductory CRUD App Part 1](https://blog.boltops.com/2018/09/07/jets-tutorial-crud-app-introduction-part-1)
|
185
188
|
* [Jets Tutorial Deploy to AWS Lambda Part 2](https://blog.boltops.com/2018/09/08/jets-tutorial-deploy-to-aws-lambda-part-2)
|
186
189
|
* [Jets Tutorial Debugging Logs Part 3](https://blog.boltops.com/2018/09/09/jets-tutorial-debugging-logs-part-3)
|
@@ -193,4 +196,3 @@ For more documentation, check out the official docs: [Ruby on Jets](http://rubyo
|
|
193
196
|
* [Jets Tutorial Polymorphic Support Part 9](https://blog.boltops.com/2018/09/27/jets-tutorial-polymorphic-support-part-9)
|
194
197
|
* [Jets Tutorial Polymorphic Support Part 9](https://blog.boltops.com/2018/09/27/jets-tutorial-polymorphic-support-part-9)
|
195
198
|
* [Jets Delete Tutorial](https://blog.boltops.com/2018/11/12/jets-tutorial-jets-delete)
|
196
|
-
* [Jets Image Uploads Tutorial with CarrierWave](https://blog.boltops.com/2018/12/13/jets-image-upload-carrierwave-tutorial-binary-support)
|
@@ -220,8 +220,8 @@ class Jets::Builders
|
|
220
220
|
|
221
221
|
def rails_assets(cmd)
|
222
222
|
# rake is available in both rails 4 and 5. rails command only in 5
|
223
|
-
command = "rake assets:#{cmd} --trace"
|
224
|
-
command = "RAILS_ENV=#{Jets.env} #{
|
223
|
+
command = "bundle exec rake assets:#{cmd} --trace"
|
224
|
+
command = "RAILS_ENV=#{Jets.env} #{command}" unless Jets.env.development?
|
225
225
|
sh("cd rack && #{command}")
|
226
226
|
end
|
227
227
|
|
data/lib/jets/cli.rb
CHANGED
@@ -44,7 +44,7 @@ class Jets::CLI
|
|
44
44
|
def boot_jets
|
45
45
|
command = thor_args.first
|
46
46
|
if !%w[new help].include?(command)
|
47
|
-
|
47
|
+
set_jets_env_from_cli_arg!
|
48
48
|
Jets.boot
|
49
49
|
end
|
50
50
|
end
|
@@ -56,9 +56,9 @@ class Jets::CLI
|
|
56
56
|
# at the time.
|
57
57
|
#
|
58
58
|
# Defaults to development when not set.
|
59
|
-
def
|
59
|
+
def set_jets_env_from_cli_arg!
|
60
60
|
command, env = thor_args[0..1]
|
61
|
-
return unless command
|
61
|
+
return unless %w[deploy delete].include?(command)
|
62
62
|
env = nil if env&.starts_with?('-')
|
63
63
|
ENV['JETS_ENV'] = env ? env : 'development'
|
64
64
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Imports a generic Rack application into a Jets project and configures it for [Mega Mode](http://rubyonjets.com/docs/megamode/).
|
2
2
|
|
3
|
-
Note, generic rack projects will likely need some adjustments to take into account API Gateway stages and logging. For more info refer to [Mega Mode Considerations](http://rubyonjets.com//megamode-
|
3
|
+
Note, generic rack projects will likely need some adjustments to take into account API Gateway stages and logging. For more info refer to [Mega Mode Considerations](http://rubyonjets.com//megamode-details/).
|
4
4
|
|
5
5
|
## Example
|
6
6
|
|
@@ -9,7 +9,7 @@ class Jets::Commands::Import
|
|
9
9
|
#{"="*30}
|
10
10
|
Congrats! The Rack project from #{@source} has been imported to the rack folder.
|
11
11
|
|
12
|
-
Note, generic rack projects will likely need some adjustments to take into account API Gateway stages and logging. For more info refer to [Mega Mode Considerations](http://rubyonjets.com//megamode-
|
12
|
+
Note, generic rack projects will likely need some adjustments to take into account API Gateway stages and logging. For more info refer to [Mega Mode Considerations](http://rubyonjets.com//megamode-details/).
|
13
13
|
EOL
|
14
14
|
end
|
15
15
|
end
|
@@ -39,7 +39,12 @@ class Jets::Commands::Import
|
|
39
39
|
puts "Creating rack folder"
|
40
40
|
template_path = File.expand_path(@source)
|
41
41
|
set_source_paths(template_path)
|
42
|
-
|
42
|
+
begin
|
43
|
+
directory ".", rack_folder, exclude_pattern: %r{.git}
|
44
|
+
rescue Thor::Error => e
|
45
|
+
puts e.message.colorize(:red)
|
46
|
+
exit 1
|
47
|
+
end
|
43
48
|
end
|
44
49
|
|
45
50
|
def set_source_paths(*paths)
|
@@ -54,15 +59,18 @@ class Jets::Commands::Import
|
|
54
59
|
|
55
60
|
# normalize repo_url
|
56
61
|
def repo_url
|
57
|
-
if
|
62
|
+
if repo?
|
58
63
|
@source # leave as is, user has provided full github url
|
59
64
|
else
|
65
|
+
# Defaults to GitHub
|
60
66
|
"https://github.com/#{@source}"
|
61
67
|
end
|
62
68
|
end
|
63
69
|
|
64
70
|
def repo?
|
65
|
-
@source.include?('github.com')
|
71
|
+
@source.include?('github.com') ||
|
72
|
+
@source.include?('bitbucket.org') ||
|
73
|
+
@source.include?('gitlab.com')
|
66
74
|
end
|
67
75
|
|
68
76
|
def check_git_installed
|
data/lib/jets/commands/main.rb
CHANGED
@@ -16,7 +16,7 @@ module Jets::Commands
|
|
16
16
|
long_desc Help.text(:deploy)
|
17
17
|
# Note the environment is here to trick the Thor parser to allowing an
|
18
18
|
# environment parameter. It is not actually set here. It is set earlier
|
19
|
-
# in cli.rb:
|
19
|
+
# in cli.rb: set_jets_env_from_cli_arg!
|
20
20
|
def deploy(environment=nil)
|
21
21
|
Deploy.new(options).run
|
22
22
|
end
|
@@ -25,7 +25,10 @@ module Jets::Commands
|
|
25
25
|
long_desc Help.text(:delete)
|
26
26
|
option :sure, type: :boolean, desc: "Skip are you sure prompt."
|
27
27
|
option :wait, type: :boolean, default: true, desc: "Wait for stack deletion to complete."
|
28
|
-
|
28
|
+
# Note the environment is here to trick the Thor parser to allowing an
|
29
|
+
# environment parameter. It is not actually set here. It is set earlier
|
30
|
+
# in cli.rb: set_jets_env_from_cli_arg!
|
31
|
+
def delete(environment=nil)
|
29
32
|
Delete.new(options).run
|
30
33
|
end
|
31
34
|
|
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.3.
|
4
|
+
version: 1.3.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: 2018-12-
|
11
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|