vite_rails 3.0.3 → 3.0.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 +9 -0
- data/lib/vite_rails/installation.rb +5 -1
- data/lib/vite_rails/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 769255d6138cadf72ef35e24b27b263ea5a3479926594b2b89c839bf5f5f0589
|
4
|
+
data.tar.gz: a9c177aea6373f4474d8ff95602bb84aabec2f14333cc92f7c06b1559555357d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d70ff02a04c074ae7df6a10398ee839a96c9b5624ac946fa1b3ea055e1358db98509457ffcb36b688da363ada663f45f7f212428ec63190003df93818792606
|
7
|
+
data.tar.gz: d25f4269593124a968ad0a4b14d7db008709393c7b30d9da82933b3f55195980ac02310d48969075d89e9db7dd1e73bce849ed0a420f5a50f76c708776ffb61d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [3.0.4](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.3...vite_rails@3.0.4) (2022-01-02)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* add style-src to suggestion Content Security Policy changes ([#169](https://github.com/ElMassimo/vite_ruby/issues/169)) ([ec7f4f7](https://github.com/ElMassimo/vite_ruby/commit/ec7f4f7a030a852115b38748dd3cdb22ec3b7e47))
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
## [3.0.3](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.2...vite_rails@3.0.3) (2021-12-22)
|
2
11
|
|
3
12
|
|
@@ -30,9 +30,13 @@ module ViteRails::Installation
|
|
30
30
|
# policy.connect_src *policy.connect_src, "ws://\#{ ViteRuby.config.host_with_port }" if Rails.env.development?
|
31
31
|
CSP
|
32
32
|
inject_line_after csp_file, 'policy.script_src', <<~CSP
|
33
|
-
# Allow @vite/client to hot reload changes in development
|
33
|
+
# Allow @vite/client to hot reload javascript changes in development
|
34
34
|
# policy.script_src *policy.script_src, :unsafe_eval, "http://\#{ ViteRuby.config.host_with_port }" if Rails.env.development?
|
35
35
|
CSP
|
36
|
+
inject_line_after csp_file, 'policy.style_src', <<~CSP
|
37
|
+
# Allow @vite/client to hot reload style changes in development
|
38
|
+
# policy.style_src *policy.style_src, :unsafe_inline if Rails.env.development?
|
39
|
+
CSP
|
36
40
|
end
|
37
41
|
|
38
42
|
# Override: Create a sample JS file and attempt to inject it in an HTML template.
|
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: 3.0.
|
4
|
+
version: 3.0.4
|
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:
|
11
|
+
date: 2022-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -82,8 +82,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
84
|
metadata:
|
85
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.
|
86
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.
|
85
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.4/vite_rails
|
86
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.4/vite_rails/CHANGELOG.md
|
87
87
|
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
|
-
rubygems_version: 3.
|
102
|
+
rubygems_version: 3.3.3
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Use Vite in Rails and bring joy to your JavaScript experience
|