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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df8aad50611a9b82888115c9af6e6706c34e80970c6ecbed8e15b49b4c89b0f3
4
- data.tar.gz: 1f3719f831f68dff1f34350113b1bd3e8fd39300c4e85b9d37d678ebe8963b43
3
+ metadata.gz: 69556eafe9fdb5824e36659f2a2b9eb55b0a597fd9f0d1322bb73292b0a4d57d
4
+ data.tar.gz: d33bf0cc0a22f7e6dd83cce09e6c4a1087943cacc2e859976d3f0fa43137db01
5
5
  SHA512:
6
- metadata.gz: f0aa56114e007f96d3a75a2efb377b7caf1d9ace2a439e6c251c8f41e427009f804253dff5576765695d9ad4c2311e205aa49c783b6012e45db13e0f61a7f4c1
7
- data.tar.gz: 8f5838019e28c672c82c795e4720896fc3c984be1237c5b9a4d4bacf5cea8280b40b90f923a39059c9eb48767ae5dadf6095c86c72222c8432fa87459998343f
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. 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.
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
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- jets (1.6.6)
14
+ jets (1.6.7)
15
15
  activerecord (~> 5.2.1)
16
16
  activesupport (~> 5.2.1)
17
17
  aws-sdk-apigateway
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 compatiable with API Gateway
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 compatiable structure
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
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "1.6.6"
2
+ VERSION = "1.6.7"
3
3
  end
@@ -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
- FileUtils.mkdir_p(File.dirname(@agree_file))
21
- IO.write(@agree_file, value)
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.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-29 00:00:00.000000000 Z
11
+ date: 2019-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord