static-rails 0.0.14 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.standard.yml +1 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +51 -50
- data/lib/static-rails/gets_csrf_token.rb +4 -0
- data/lib/static-rails/site_plus_csrf_middleware.rb +2 -2
- data/lib/static-rails/validates_csrf_token.rb +4 -0
- data/lib/static-rails/version.rb +1 -1
- data/script/test +4 -3
- data/static-rails.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8846ca971b36ed95a7ba06212eef226adb0fbdacf9d9aa15762b187e6aec03f9
|
4
|
+
data.tar.gz: ddb2e471f12f203ce116caf877146e233747a914c7e1a658bc2e9aa3aff7532a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4f83928251c9b853b9085a9568d7f3209aa2f6b3b604ffd042e09970d18f2f45b896c08bfd2010abe6f25cc5b66306e85b00aa7048c49112ebe3133abea0eee
|
7
|
+
data.tar.gz: 3da16f4970943c2899d1c2ce908b3602fccf5f0076dee19e7b2bf082685d6d09085930a4d46b066ff74b8d89e81ef799ac4786f147ca602b17af313745a26e2b
|
data/.standard.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,50 +1,52 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
static-rails (0.0
|
4
|
+
static-rails (0.1.0)
|
5
5
|
rack-proxy (~> 0.6)
|
6
6
|
railties (>= 5.0.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (6.
|
12
|
-
actionview (= 6.
|
13
|
-
activesupport (= 6.
|
14
|
-
rack (~> 2.0, >= 2.0.
|
11
|
+
actionpack (6.1.3.2)
|
12
|
+
actionview (= 6.1.3.2)
|
13
|
+
activesupport (= 6.1.3.2)
|
14
|
+
rack (~> 2.0, >= 2.0.9)
|
15
15
|
rack-test (>= 0.6.3)
|
16
16
|
rails-dom-testing (~> 2.0)
|
17
17
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
18
|
-
actionview (6.
|
19
|
-
activesupport (= 6.
|
18
|
+
actionview (6.1.3.2)
|
19
|
+
activesupport (= 6.1.3.2)
|
20
20
|
builder (~> 3.1)
|
21
21
|
erubi (~> 1.4)
|
22
22
|
rails-dom-testing (~> 2.0)
|
23
23
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
24
|
-
activesupport (6.
|
24
|
+
activesupport (6.1.3.2)
|
25
25
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
26
|
-
i18n (>=
|
27
|
-
minitest (
|
28
|
-
tzinfo (~>
|
29
|
-
zeitwerk (~> 2.
|
30
|
-
ast (2.4.
|
26
|
+
i18n (>= 1.6, < 2)
|
27
|
+
minitest (>= 5.1)
|
28
|
+
tzinfo (~> 2.0)
|
29
|
+
zeitwerk (~> 2.3)
|
30
|
+
ast (2.4.2)
|
31
31
|
builder (3.2.4)
|
32
|
-
concurrent-ruby (1.1.
|
32
|
+
concurrent-ruby (1.1.8)
|
33
33
|
crass (1.0.6)
|
34
|
-
erubi (1.
|
35
|
-
i18n (1.8.
|
34
|
+
erubi (1.10.0)
|
35
|
+
i18n (1.8.10)
|
36
36
|
concurrent-ruby (~> 1.0)
|
37
|
-
loofah (2.
|
37
|
+
loofah (2.9.1)
|
38
38
|
crass (~> 1.0.2)
|
39
39
|
nokogiri (>= 1.5.9)
|
40
40
|
method_source (1.0.0)
|
41
|
-
mini_portile2 (2.
|
42
|
-
minitest (5.14.
|
43
|
-
nokogiri (1.
|
44
|
-
mini_portile2 (~> 2.
|
45
|
-
|
46
|
-
|
41
|
+
mini_portile2 (2.5.1)
|
42
|
+
minitest (5.14.4)
|
43
|
+
nokogiri (1.11.3)
|
44
|
+
mini_portile2 (~> 2.5.0)
|
45
|
+
racc (~> 1.4)
|
46
|
+
parallel (1.20.1)
|
47
|
+
parser (3.0.1.1)
|
47
48
|
ast (~> 2.4.1)
|
49
|
+
racc (1.5.2)
|
48
50
|
rack (2.2.3)
|
49
51
|
rack-proxy (0.6.5)
|
50
52
|
rack
|
@@ -55,40 +57,39 @@ GEM
|
|
55
57
|
nokogiri (>= 1.6)
|
56
58
|
rails-html-sanitizer (1.3.0)
|
57
59
|
loofah (~> 2.3)
|
58
|
-
railties (6.
|
59
|
-
actionpack (= 6.
|
60
|
-
activesupport (= 6.
|
60
|
+
railties (6.1.3.2)
|
61
|
+
actionpack (= 6.1.3.2)
|
62
|
+
activesupport (= 6.1.3.2)
|
61
63
|
method_source
|
62
64
|
rake (>= 0.8.7)
|
63
|
-
thor (
|
65
|
+
thor (~> 1.0)
|
64
66
|
rainbow (3.0.0)
|
65
|
-
rake (13.0.
|
66
|
-
regexp_parser (1.
|
67
|
-
rexml (3.2.
|
68
|
-
rubocop (
|
67
|
+
rake (13.0.3)
|
68
|
+
regexp_parser (2.1.1)
|
69
|
+
rexml (3.2.5)
|
70
|
+
rubocop (1.14.0)
|
69
71
|
parallel (~> 1.10)
|
70
|
-
parser (>=
|
72
|
+
parser (>= 3.0.0.0)
|
71
73
|
rainbow (>= 2.2.2, < 4.0)
|
72
|
-
regexp_parser (>= 1.
|
74
|
+
regexp_parser (>= 1.8, < 3.0)
|
73
75
|
rexml
|
74
|
-
rubocop-ast (>=
|
76
|
+
rubocop-ast (>= 1.5.0, < 2.0)
|
75
77
|
ruby-progressbar (~> 1.7)
|
76
|
-
unicode-display_width (>= 1.4.0, <
|
77
|
-
rubocop-ast (
|
78
|
-
parser (>=
|
79
|
-
rubocop-performance (1.
|
80
|
-
rubocop (>=
|
78
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
79
|
+
rubocop-ast (1.5.0)
|
80
|
+
parser (>= 3.0.1.1)
|
81
|
+
rubocop-performance (1.11.2)
|
82
|
+
rubocop (>= 1.7.0, < 2.0)
|
81
83
|
rubocop-ast (>= 0.4.0)
|
82
|
-
ruby-progressbar (1.
|
83
|
-
standard (
|
84
|
-
rubocop (=
|
85
|
-
rubocop-performance (= 1.
|
86
|
-
thor (1.0
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
zeitwerk (2.4.0)
|
84
|
+
ruby-progressbar (1.11.0)
|
85
|
+
standard (1.1.1)
|
86
|
+
rubocop (= 1.14.0)
|
87
|
+
rubocop-performance (= 1.11.2)
|
88
|
+
thor (1.1.0)
|
89
|
+
tzinfo (2.0.4)
|
90
|
+
concurrent-ruby (~> 1.0)
|
91
|
+
unicode-display_width (2.0.0)
|
92
|
+
zeitwerk (2.4.2)
|
92
93
|
|
93
94
|
PLATFORMS
|
94
95
|
ruby
|
@@ -100,4 +101,4 @@ DEPENDENCIES
|
|
100
101
|
static-rails!
|
101
102
|
|
102
103
|
BUNDLED WITH
|
103
|
-
2.
|
104
|
+
2.2.15
|
@@ -13,10 +13,10 @@ module StaticRails
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def call(env)
|
16
|
-
return @app.call(env) unless env["PATH_INFO"]&.start_with?(/\/?#{PATH_INFO_OBFUSCATION}/) || @determines_whether_to_handle_request.call(env)
|
16
|
+
return @app.call(env) unless env["PATH_INFO"]&.start_with?(/\/?#{PATH_INFO_OBFUSCATION}/o) || @determines_whether_to_handle_request.call(env)
|
17
17
|
|
18
18
|
env = env.merge(
|
19
|
-
"PATH_INFO" => env["PATH_INFO"].gsub(/^\/?#{PATH_INFO_OBFUSCATION}
|
19
|
+
"PATH_INFO" => env["PATH_INFO"].gsub(/^\/?#{PATH_INFO_OBFUSCATION}/o, "")
|
20
20
|
)
|
21
21
|
status, headers, body = super(env)
|
22
22
|
|
data/lib/static-rails/version.rb
CHANGED
data/script/test
CHANGED
data/static-rails.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.summary = "Build & serve static sites (e.g. Jekyll, Hugo) from your Rails app"
|
10
10
|
spec.homepage = "https://github.com/testdouble/static-rails"
|
11
11
|
spec.license = "MIT"
|
12
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
13
13
|
|
14
14
|
spec.metadata["homepage_uri"] = spec.homepage
|
15
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: static-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.6'
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- searls@gmail.com
|
44
44
|
executables: []
|
@@ -89,7 +89,7 @@ licenses:
|
|
89
89
|
- MIT
|
90
90
|
metadata:
|
91
91
|
homepage_uri: https://github.com/testdouble/static-rails
|
92
|
-
post_install_message:
|
92
|
+
post_install_message:
|
93
93
|
rdoc_options: []
|
94
94
|
require_paths:
|
95
95
|
- lib
|
@@ -97,15 +97,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
requirements:
|
98
98
|
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 2.
|
100
|
+
version: 2.5.0
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
|
-
rubygems_version: 3.1.
|
108
|
-
signing_key:
|
107
|
+
rubygems_version: 3.1.4
|
108
|
+
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Build & serve static sites (e.g. Jekyll, Hugo) from your Rails app
|
111
111
|
test_files: []
|