jets 2.1.2 → 2.1.3
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/.ruby-version +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/jets/application/defaults.rb +1 -1
- data/lib/jets/builders/md5.rb +2 -2
- data/lib/jets/controller/forgery_protection.rb +1 -1
- data/lib/jets/controller/redirection.rb +5 -0
- data/lib/jets/version.rb +1 -1
- metadata +3 -6
- data/buildspec.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53bcbf796cf41232761865eb567800adc8da8a7d73552d32d91e53ab90856bcc
|
4
|
+
data.tar.gz: '059c585e8256a80ae9aeefb4d3a621203358135a18ecfc020c9b46b20213872c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed4d1bfbab19202a51b40402dadb64603471e201bf4de836a575eb4d32c2cadb15c8809c3dd0b714d11d825df451678ec8a534f084dc8a930ee1bc4c760ab2cb
|
7
|
+
data.tar.gz: 57727d43f57beaa23dd17699c82f2919a1a989cf6d151799cae183519a2c03a69aa6d0ff29004d983aa9ff8730775476426a4fd7e21f47cd1b66d3ba20a5f302
|
@@ -67,7 +67,7 @@ With long logs, you can also use the <details> tag to keep the report readable.
|
|
67
67
|
<details>
|
68
68
|
<summary>Summary Goes Here</summary>
|
69
69
|
|
70
|
-
...this is hidden, collapsable content. start with a blank to get terminal output to format right...
|
70
|
+
...this is hidden, collapsable content. start with a blank line to get terminal output to format right...
|
71
71
|
</details>
|
72
72
|
-->
|
73
73
|
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.6
|
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/).
|
5
5
|
|
6
|
+
## [2.1.3]
|
7
|
+
- #359 redirect_back controller method
|
8
|
+
- fix default_protect_from_forgery to account for api mode
|
9
|
+
- fix md5 files.reject
|
10
|
+
|
6
11
|
## [2.1.2]
|
7
12
|
- improve start .env.development example for postgres
|
8
13
|
- #351 Update Turbine documentation
|
@@ -145,7 +145,7 @@ class Jets::Application
|
|
145
145
|
config.helpers.host = nil # nil by default. Other examples: https://myurl.com:8888
|
146
146
|
|
147
147
|
config.controllers = ActiveSupport::OrderedOptions.new
|
148
|
-
config.controllers.default_protect_from_forgery =
|
148
|
+
config.controllers.default_protect_from_forgery = nil
|
149
149
|
|
150
150
|
config
|
151
151
|
end
|
data/lib/jets/builders/md5.rb
CHANGED
@@ -40,8 +40,8 @@ module Jets::Builders
|
|
40
40
|
def dir(short_path)
|
41
41
|
path = "#{Jets.build_root}/#{short_path}"
|
42
42
|
files = Dir["#{path}/**/*"]
|
43
|
-
files.reject
|
44
|
-
|
43
|
+
files = files.reject { |f| File.directory?(f) }
|
44
|
+
.reject { |f| File.symlink?(f) }
|
45
45
|
content = files.map do |f|
|
46
46
|
Digest::MD5.file(f).to_s[0..7]
|
47
47
|
end.join
|
@@ -5,7 +5,7 @@ class Jets::Controller
|
|
5
5
|
included do
|
6
6
|
config = Jets.config
|
7
7
|
default_protect_from_forgery = config.dig(:controllers, :default_protect_from_forgery)
|
8
|
-
if default_protect_from_forgery
|
8
|
+
if default_protect_from_forgery.nil? && config.mode == "html" || default_protect_from_forgery # true
|
9
9
|
protect_from_forgery
|
10
10
|
end
|
11
11
|
end
|
@@ -31,6 +31,11 @@ class Jets::Controller
|
|
31
31
|
@rendered_data = resp
|
32
32
|
end
|
33
33
|
|
34
|
+
def redirect_back(fallback_location: '/')
|
35
|
+
location = request.headers["referer"] || fallback_location
|
36
|
+
redirect_to(location)
|
37
|
+
end
|
38
|
+
|
34
39
|
def ensure_protocol(url)
|
35
40
|
return url if url.starts_with?('http')
|
36
41
|
|
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: 2.1.
|
4
|
+
version: 2.1.3
|
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-
|
11
|
+
date: 2019-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -571,7 +571,6 @@ files:
|
|
571
571
|
- Rakefile
|
572
572
|
- backers.md
|
573
573
|
- bin/release
|
574
|
-
- buildspec.yml
|
575
574
|
- exe/jets
|
576
575
|
- jets.gemspec
|
577
576
|
- lib/jets.rb
|
@@ -970,8 +969,6 @@ files:
|
|
970
969
|
- lib/jets/version.rb
|
971
970
|
- readme/prerelease.md
|
972
971
|
- readme/testing.md
|
973
|
-
- vendor/aws_data/Gemfile.lock
|
974
|
-
- vendor/aws_data/pkg/aws_data-0.1.0.gem
|
975
972
|
homepage: https://rubyonjets.com
|
976
973
|
licenses:
|
977
974
|
- MIT
|
@@ -1031,7 +1028,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1031
1028
|
- !ruby/object:Gem::Version
|
1032
1029
|
version: '0'
|
1033
1030
|
requirements: []
|
1034
|
-
rubygems_version: 3.0.
|
1031
|
+
rubygems_version: 3.0.6
|
1035
1032
|
signing_key:
|
1036
1033
|
specification_version: 4
|
1037
1034
|
summary: Ruby Serverless Framework
|
data/buildspec.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
version: 0.2
|
2
|
-
|
3
|
-
phases:
|
4
|
-
build:
|
5
|
-
commands:
|
6
|
-
- echo Build started on `date`
|
7
|
-
# sync vendor
|
8
|
-
- git submodule sync
|
9
|
-
- git submodule update --init
|
10
|
-
- /usr/local/bin/dynamodb-local &
|
11
|
-
- bundle install
|
12
|
-
- bundle exec rspec # unit tests
|
13
|
-
# uncomment integration test for now
|
14
|
-
# - bash -eux .codebuild/integration.sh # test with newman and postman
|
15
|
-
|
16
|
-
artifacts:
|
17
|
-
files:
|
18
|
-
- README.md
|