jets 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -1
- data/lib/jets/commands/templates/skeleton/config/application.rb.tt +1 -1
- data/lib/jets/dotenv.rb +8 -7
- 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: ae289aa2da32e256d9ae5b77875f5ce31fdbf2c8a687c597374df58edd5f57bf
|
4
|
+
data.tar.gz: 8eb54c6ce7061421ba3289789ae006e6131138b89f4d3451138c08774beeeb7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de47e9c10f3aced4b8d7f0cbcc262bdf2300a236e2cc1583d8a084b597b17cc120e35bbf19d20344e58b08c6edf98f329e719bf09aba223c6becf66d94da3577
|
7
|
+
data.tar.gz: '0695ba32ead51365dd60609fdc1384120f9cc46fa5b5faea8a9016c9fc0e6b5d1685874ff2222a71a3e69d000d2f8941837428a19ff22fa97130f98d5178551b'
|
data/CHANGELOG.md
CHANGED
@@ -3,8 +3,13 @@
|
|
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.4]
|
7
|
+
- #171 fix precedence of dotenv files
|
8
|
+
- update cors comment on generated skeleton app
|
9
|
+
|
6
10
|
## [1.6.3]
|
7
11
|
- #168 cors specific authorization_type, default none
|
12
|
+
- cors defaults to false. enabled with config.cors = true in config/application.rb
|
8
13
|
|
9
14
|
## [1.6.2]
|
10
15
|
- #165 remove always trailing slash from Jets.root
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -147,6 +147,7 @@ After deployment, you can test the Lambda functions with the AWS Lambda console
|
|
147
147
|
Here are some demos of Jets applications:
|
148
148
|
|
149
149
|
* [Quintessential CRUD Jets app](https://demo.rubyonjets.com/)
|
150
|
+
* [API Demo](https://api.demo.rubyonjets.com/)
|
150
151
|
* [Jets Afterburner: Easy Rails Support](https://afterburner.demo.rubyonjets.com/)
|
151
152
|
* [Mega Mode: Jets and Rails Combined](https://mega.demo.rubyonjets.com/)
|
152
153
|
* [Image Upload with CarrierWave](https://upload.demo.rubyonjets.com/)
|
@@ -183,6 +184,9 @@ For more documentation, check out the official docs: [Ruby on Jets](http://rubyo
|
|
183
184
|
|
184
185
|
* [Introducing Jets: A Ruby Serverless Framework](https://blog.boltops.com/2018/08/18/introducing-jets-a-ruby-serverless-framework)
|
185
186
|
* [Official AWS Ruby Support for Jets](https://blog.boltops.com/2018/12/12/official-aws-ruby-support-for-jets-serverless-framework)
|
187
|
+
* [Build an API with Jets](https://blog.boltops.com/2019/01/13/build-an-api-service-with-jets-ruby-serverless-framework)
|
188
|
+
* [Serverless Ruby Cron Jobs Tutorial: Route53 Backup](https://blog.boltops.com/2019/01/03/serverless-ruby-cron-jobs-with-jets-route53-backup)
|
189
|
+
* [Serverless Slack Commands: Fun with AWS Image Recognition](https://blog.boltops.com/2019/01/14/serverless-slack-commands-with-ruby)
|
186
190
|
* [Jets Afterburner: Rails Support](https://blog.boltops.com/2018/12/21/jets-afterburner-serverless-rails-on-aws-lambda-in-5-minutes)
|
187
191
|
* [Jets Mega Mode: Jets and Rails](https://blog.boltops.com/2018/11/03/jets-mega-mode-run-rails-on-aws-lambda)
|
188
192
|
* [Toronto Serverless Presentation](https://blog.boltops.com/2018/09/25/toronto-serverless-presentation-jets-framework-on-aws-lambda)
|
@@ -197,4 +201,3 @@ For more documentation, check out the official docs: [Ruby on Jets](http://rubyo
|
|
197
201
|
* [Jets Tutorial Different Environments Part 8](https://blog.boltops.com/2018/09/26/jets-tutorial-different-environments-part-8)
|
198
202
|
* [Jets Tutorial Polymorphic Support Part 9](https://blog.boltops.com/2018/09/27/jets-tutorial-polymorphic-support-part-9)
|
199
203
|
* [Jets Delete Tutorial](https://blog.boltops.com/2018/11/12/jets-tutorial-jets-delete)
|
200
|
-
* [Serverless Ruby Cron Jobs Tutorial: Route53 Backup](https://blog.boltops.com/2019/01/03/serverless-ruby-cron-jobs-with-jets-route53-backup)
|
@@ -16,7 +16,7 @@ Jets.application.configure do
|
|
16
16
|
|
17
17
|
# config.asset_base_url = 'https://cloudfront.domain.com/assets' # example
|
18
18
|
|
19
|
-
# config.cors = true # for '*'' # defaults to
|
19
|
+
# config.cors = true # for '*'' # defaults to false
|
20
20
|
# config.cors = '*.mydomain.com' # for specific domain
|
21
21
|
|
22
22
|
# config.function.timeout = 30 # defaults to 30
|
data/lib/jets/dotenv.rb
CHANGED
@@ -14,12 +14,13 @@ class Jets::Dotenv
|
|
14
14
|
::Dotenv.load(*dotenv_files)
|
15
15
|
end
|
16
16
|
|
17
|
-
# dotenv files
|
18
|
-
|
19
|
-
# -
|
20
|
-
# -
|
21
|
-
# -
|
22
|
-
# -
|
17
|
+
# dotenv files with the following precedence:
|
18
|
+
#
|
19
|
+
# - .env.development.remote (highest)
|
20
|
+
# - .env.development.local
|
21
|
+
# - .env.development
|
22
|
+
# - .env.local - This file is loaded for all environments _except_ `test`.
|
23
|
+
# - .env` - The original (lowest)
|
23
24
|
#
|
24
25
|
def dotenv_files
|
25
26
|
files = [
|
@@ -29,7 +30,7 @@ class Jets::Dotenv
|
|
29
30
|
root.join(".env.#{Jets.env}.local"),
|
30
31
|
]
|
31
32
|
files << root.join(".env.#{Jets.env}.remote") if @remote
|
32
|
-
files.compact
|
33
|
+
files.reverse.compact # reverse so the precedence is right
|
33
34
|
end
|
34
35
|
|
35
36
|
def root
|
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.6.
|
4
|
+
version: 1.6.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-
|
11
|
+
date: 2019-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|