vite_rails 3.0.3 → 3.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e1edf19004f473e3926fd24187617149c3c1d95d7849b2ce6e754bd12c710c8
4
- data.tar.gz: 92d282223f58f5109abc2b5766cd670c2a6e78e96f1ffd79646ce5fcf250656a
3
+ metadata.gz: 769255d6138cadf72ef35e24b27b263ea5a3479926594b2b89c839bf5f5f0589
4
+ data.tar.gz: a9c177aea6373f4474d8ff95602bb84aabec2f14333cc92f7c06b1559555357d
5
5
  SHA512:
6
- metadata.gz: ec1c469414cab1afaf05a841d0a7a7fb00d7314a1960c0d8e40b3707a3c0b31de8d59ca745b4ca39807920ac7a3e45dfc29854c3e830a9b2347eaac6dd984a86
7
- data.tar.gz: 86a2cd35794dc28f94ca84d1cbb971874a89e4863f44dbab9efa21bf16463d8f66c4d1f56813f3f6d6440e053734591b517cf2eb853dbf82d00a21d94e4c85fd
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = '3.0.3'
4
+ VERSION = '3.0.4'
5
5
  end
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.3
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: 2021-12-22 00:00:00.000000000 Z
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.3/vite_rails
86
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.3/vite_rails/CHANGELOG.md
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.1.4
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