jets 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdc43f68b08d9c92593eeb3ccfc2477a1080af2cd4430e32f4766c2756c70b23
4
- data.tar.gz: f842a52a1c9a448545f3a7ade22e1c14c8ce2a4d556169c574b4f5a58675c450
3
+ metadata.gz: 53bcbf796cf41232761865eb567800adc8da8a7d73552d32d91e53ab90856bcc
4
+ data.tar.gz: '059c585e8256a80ae9aeefb4d3a621203358135a18ecfc020c9b46b20213872c'
5
5
  SHA512:
6
- metadata.gz: e4efe902131423d3aa95b2e9e42e9b7cdefc78871d0c6eedbc1bbc98ee5cb2771ce7e9ba6c908c00f018960ddbba6aa1e3d5ea745b31c3cb1593770f20bb1ebc
7
- data.tar.gz: 363c2292150bf101d9ee5196de2bf82465d59cbb255d3c541c4fc3e44e08421b83bafe52c797a6ef07a7bdae63a727cc476000eadc914397243d1a587ad9824d
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
 
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.5.6
@@ -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 = true
148
+ config.controllers.default_protect_from_forgery = nil
149
149
 
150
150
  config
151
151
  end
@@ -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! { |f| File.directory?(f) }
44
- .reject! { |f| File.symlink?(f) }
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
 
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
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.2
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-08-25 00:00:00.000000000 Z
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.3
1031
+ rubygems_version: 3.0.6
1035
1032
  signing_key:
1036
1033
  specification_version: 4
1037
1034
  summary: Ruby Serverless Framework
@@ -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