jets 1.6.6 → 1.6.7
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 +4 -4
- data/.github/ISSUE_TEMPLATE/bug_report.md +1 -1
- data/.github/PULL_REQUEST_TEMPLATE.md +3 -1
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/jets/controller/rack/adapter.rb +1 -1
- data/lib/jets/version.rb +1 -1
- data/vendor/jets-gems/lib/jets/gems/agree.rb +17 -2
- 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: 69556eafe9fdb5824e36659f2a2b9eb55b0a597fd9f0d1322bb73292b0a4d57d
|
|
4
|
+
data.tar.gz: d33bf0cc0a22f7e6dd83cce09e6c4a1087943cacc2e859976d3f0fa43137db01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ffaf7153c8ad19c8d744fc9b87aff4929b4734b39a04c2d2494ec82c2615965c2b6a2a56ecaef0a1a20bc504d1a8ba9181bf1a062057ba6276cb5be7882b9511
|
|
7
|
+
data.tar.gz: 6b7655a80691cf8cbc455a303a2dfe2a633be92927dc90810d83c4cf81b4130561f4ff8f3e074085c89f26a3fd9fe20f3e7f30810048ade7bb4a5c5bb34d723e
|
|
@@ -21,7 +21,7 @@ Thanks!
|
|
|
21
21
|
## Checklist
|
|
22
22
|
|
|
23
23
|
<!--
|
|
24
|
-
Make sure that you've done all of these. To mark a checkbox done, replace [ ] with [x].
|
|
24
|
+
Make sure that you've done all of these. To mark a checkbox done, replace [ ] with [x]. Or after you create the issue you can click the checkbox.
|
|
25
25
|
-->
|
|
26
26
|
|
|
27
27
|
- [ ] Upgrade Jets: Are you using the latest version of Jets? This allows Jets to fix issues fast. There's a `jets upgrade` command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/
|
|
@@ -13,7 +13,9 @@ Make our lives easier! Choose one of the following by uncommenting it:
|
|
|
13
13
|
<!-- This is a 🧐 documentation change. -->
|
|
14
14
|
|
|
15
15
|
<!--
|
|
16
|
-
Before you submit this pull request, make sure to have a look at the following checklist.
|
|
16
|
+
Before you submit this pull request, make sure to have a look at the following checklist. To mark a checkbox done, replace [ ] with [x]. Or after you create the issue you can click the checkbox.
|
|
17
|
+
|
|
18
|
+
If you don't know how to do some of these, that's fine! Submit your pull request and we will help you out on the way.
|
|
17
19
|
-->
|
|
18
20
|
|
|
19
21
|
- [ ] I've added tests (if it's a bug, feature or enhancement)
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
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.6.7]
|
|
7
|
+
- update faq: JETS_AGREE no interruption flag
|
|
8
|
+
|
|
6
9
|
## [1.6.6]
|
|
7
10
|
- #175 Fix invalid route changes reading routine when route contains more than one variable in path
|
|
8
11
|
- #175 Fix invalid lambda function names for controllers in deep namespaces like A::B::MyController
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -53,7 +53,7 @@ app/controllers/posts_controller.rb:
|
|
|
53
53
|
```ruby
|
|
54
54
|
class PostsController < ApplicationController
|
|
55
55
|
def index
|
|
56
|
-
# renders Lambda Proxy structure
|
|
56
|
+
# renders Lambda Proxy structure compatible with API Gateway
|
|
57
57
|
render json: {hello: "world", action: "index"}
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -27,7 +27,7 @@ module Jets::Controller::Rack
|
|
|
27
27
|
end
|
|
28
28
|
memoize :env
|
|
29
29
|
|
|
30
|
-
# Transform the structure to AWS_PROXY
|
|
30
|
+
# Transform the structure to AWS_PROXY compatible structure
|
|
31
31
|
# http://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format
|
|
32
32
|
def convert_to_api_gateway(status, headers, body)
|
|
33
33
|
base64 = headers["x-jets-base64"] == 'yes'
|
data/lib/jets/version.rb
CHANGED
|
@@ -6,6 +6,7 @@ module Jets::Gems
|
|
|
6
6
|
|
|
7
7
|
# Only prompts if hasnt prompted before and saved a ~/.jets/agree file
|
|
8
8
|
def prompt
|
|
9
|
+
return if bypass_prompt
|
|
9
10
|
return if File.exist?(@agree_file)
|
|
10
11
|
|
|
11
12
|
puts <<~EOL
|
|
@@ -17,8 +18,22 @@ module Jets::Gems
|
|
|
17
18
|
answer = $stdin.gets.strip
|
|
18
19
|
value = answer =~ /y/i ? 'yes' : 'no'
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
write_file(value)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Allow user to bypass prompt with JETS_AGREE=1 JETS_AGREE=yes etc
|
|
25
|
+
# Useful for CI/CD pipelines.
|
|
26
|
+
def bypass_prompt
|
|
27
|
+
agree = ENV['JETS_AGREE']
|
|
28
|
+
return false unless agree
|
|
29
|
+
|
|
30
|
+
if %w[1 yes true].include?(agree.downcase)
|
|
31
|
+
write_file('yes')
|
|
32
|
+
else
|
|
33
|
+
write_file('no')
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
true
|
|
22
37
|
end
|
|
23
38
|
|
|
24
39
|
def yes?
|
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.6.
|
|
4
|
+
version: 1.6.7
|
|
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-
|
|
11
|
+
date: 2019-01-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|