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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04dad5363dea685fe1e9e7ad2a852566927bd2804f0dab0ddecc8016da915dd0
4
- data.tar.gz: 5a8d82f9cfbcf65bef55d28dfdf8cdf5bb77fb04ba83ce9db6b7c4eb2ffb749d
3
+ metadata.gz: 6208a1cb77ee1f6925ddbadd6cec33e701e80f3cd5420158a126fce303abb262
4
+ data.tar.gz: fa1869355b55195682d551c040a0c477eae02682b83f6e983404973b8f735a8a
5
5
  SHA512:
6
- metadata.gz: 312c305aa1d69cfb57f93110c093cc7f8b5193a24c16aa5916efc60f8b284d86eba0090aa2e1831748526c7bf57ea6c8962b6d290d469d0ca1b0bdd014888431
7
- data.tar.gz: d118d7eecbc36163b8ef3789d9198da5c991aab64f6da739381878e7b045c1d365155d22be92226665ce7583f99e0d6d60fd6b01aeb94f5596371a359a242a6d
6
+ metadata.gz: bd4acb9dec8d3d3085ab544bf123ca86057043dba159dcc25e94743270b343a3def30e6261fe3631f539c2976d7aa97255a10bd229c37b2db8d23447c560e739
7
+ data.tar.gz: 38d22b44d55d01effc1cf3874e32de3d6139de5d355a4fde5a87f79d17aba181ced333ec92cfba937ef73cc0ff42af9a1b9d846dc09cc71030971150d5a0cc61
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## Vite Rails 2.0.0 (2020-02-09)
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', <<-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?
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', <<-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?
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', <<-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?
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
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: 2.0.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-10 00:00:00.000000000 Z
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.0/vite_rails
122
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.0/vite_rails/CHANGELOG.md
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: