vite_rails 2.0.0 → 2.0.1
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/CHANGELOG.md +5 -1
- data/lib/vite_rails/installation.rb +9 -9
- data/lib/vite_rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6208a1cb77ee1f6925ddbadd6cec33e701e80f3cd5420158a126fce303abb262
|
|
4
|
+
data.tar.gz: fa1869355b55195682d551c040a0c477eae02682b83f6e983404973b8f735a8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd4acb9dec8d3d3085ab544bf123ca86057043dba159dcc25e94743270b343a3def30e6261fe3631f539c2976d7aa97255a10bd229c37b2db8d23447c560e739
|
|
7
|
+
data.tar.gz: 38d22b44d55d01effc1cf3874e32de3d6139de5d355a4fde5a87f79d17aba181ced333ec92cfba937ef73cc0ff42af9a1b9d846dc09cc71030971150d5a0cc61
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
## Vite Rails 2.0.
|
|
1
|
+
## Vite Rails 2.0.1 (2020-02-11)
|
|
2
|
+
|
|
3
|
+
- Add the CSP rules commented out when installing, in case the user hasn't uncommented them yet.
|
|
4
|
+
|
|
5
|
+
## Vite Rails 2.0.0 (2020-02-10)
|
|
2
6
|
|
|
3
7
|
- Extracted core functionality to `vite_ruby`.
|
|
4
8
|
- User-facing API hasn't really changed, but internal classes have been renamed.
|
|
@@ -17,17 +17,17 @@ module ViteRails::Installation
|
|
|
17
17
|
def setup_content_security_policy(csp_file)
|
|
18
18
|
return unless csp_file.exist?
|
|
19
19
|
|
|
20
|
-
inject_line_after csp_file, 'policy.script_src',
|
|
21
|
-
|
|
22
|
-
policy.script_src *policy.script_src, :blob if Rails.env.test?
|
|
20
|
+
inject_line_after csp_file, 'policy.script_src', <<~CSP
|
|
21
|
+
# You may need to enable this in production as well depending on your setup.
|
|
22
|
+
# policy.script_src *policy.script_src, :blob if Rails.env.test?
|
|
23
23
|
CSP
|
|
24
|
-
inject_line_after csp_file, 'policy.connect_src',
|
|
25
|
-
|
|
26
|
-
policy.connect_src *policy.connect_src, "ws://\#{ ViteRuby.config.host_with_port }" if Rails.env.development?
|
|
24
|
+
inject_line_after csp_file, 'policy.connect_src', <<~CSP
|
|
25
|
+
# Allow @vite/client to hot reload changes in development
|
|
26
|
+
# policy.connect_src *policy.connect_src, "ws://\#{ ViteRuby.config.host_with_port }" if Rails.env.development?
|
|
27
27
|
CSP
|
|
28
|
-
inject_line_after csp_file, 'policy.script_src',
|
|
29
|
-
|
|
30
|
-
policy.script_src *policy.script_src, :unsafe_eval, "http://#{ ViteRuby.config.host_with_port }" if Rails.env.development?
|
|
28
|
+
inject_line_after csp_file, 'policy.script_src', <<~CSP
|
|
29
|
+
# Allow @vite/client to hot reload changes in development
|
|
30
|
+
# policy.script_src *policy.script_src, :unsafe_eval, "http://#{ ViteRuby.config.host_with_port }" if Rails.env.development?
|
|
31
31
|
CSP
|
|
32
32
|
end
|
|
33
33
|
|
data/lib/vite_rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vite_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Máximo Mussini
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-02-
|
|
11
|
+
date: 2021-02-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -118,8 +118,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
|
118
118
|
licenses:
|
|
119
119
|
- MIT
|
|
120
120
|
metadata:
|
|
121
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.
|
|
122
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.
|
|
121
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.1/vite_rails
|
|
122
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.1/vite_rails/CHANGELOG.md
|
|
123
123
|
post_install_message:
|
|
124
124
|
rdoc_options: []
|
|
125
125
|
require_paths:
|