vite_rails 3.0.0.beta.1 → 3.0.0.beta.2

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: 3baf934f36d5ce5e1322bcfb7a42257557ba9b9bb3dcf5b50ae001c0a42df799
4
- data.tar.gz: 46ca0c0bd1b4c7119b3eca66e7bb7db97514b43c29c8bcd3313ff060cb6e0933
3
+ metadata.gz: 49f10c830e43b7b67ad59db279db4ae2002c37db2353d9d8edb8102901a6a4aa
4
+ data.tar.gz: e8d67cd9b719eb36625c67ccffe87234efd8b5246b462c3602ef041c92bbd5b8
5
5
  SHA512:
6
- metadata.gz: 51efc3867b58d6db4d9874f306ef345d1165d15ebac7f4bd1e09a290ab6d4c27220a7de19e9a6e99d849eb5783c539f34fc9f075e1e1c6e499013c17dafb36ca
7
- data.tar.gz: 17f74f8d3f960a69935a82396f74e052869e82a20bf2e2ec5bc1005ba92bd55a688b491600cd3f0beefbb1fec431e5722da422cfbe91e21edb0ef6ebaaad8989
6
+ metadata.gz: e2127d6b8096054a0223c3c4a11e01b9c10f13f2a1fdd097bcd0794901a9b604db352bbedcaf54bc3209d9a93a70715961ba802a5b1229f3b786e0c911df5f67
7
+ data.tar.gz: 17bc09af3cb48f58c6171bae175c7df2b1936e0059784e537ed5c8f22615aadce3d72249f203db84735818fa72220630ddc63f56d757f9b4422fddd65a61585f
@@ -14,6 +14,7 @@ module ViteRails::Installation
14
14
  replace_first_line config.config_path, 'app/frontend', %( "sourceCodeDir": "#{ dir }",)
15
15
  end
16
16
  setup_content_security_policy root.join('config/initializers/content_security_policy.rb')
17
+ append root.join('Procfile.dev'), 'web: bin/rails s'
17
18
  end
18
19
 
19
20
  # Internal: Configure CSP rules that allow to load @vite/client correctly.
@@ -30,7 +31,7 @@ module ViteRails::Installation
30
31
  CSP
31
32
  inject_line_after csp_file, 'policy.script_src', <<~CSP
32
33
  # Allow @vite/client to hot reload changes in development
33
- # policy.script_src *policy.script_src, :unsafe_eval, "http://#{ ViteRuby.config.host_with_port }" if Rails.env.development?
34
+ # policy.script_src *policy.script_src, :unsafe_eval, "http://\#{ ViteRuby.config.host_with_port }" if Rails.env.development?
34
35
  CSP
35
36
  end
36
37
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = '3.0.0.beta.1'
4
+ VERSION = '3.0.0.beta.2'
5
5
  end
@@ -0,0 +1 @@
1
+ web: bin/rails server
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.0.beta.1
4
+ version: 3.0.0.beta.2
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.0.0.beta.1
39
+ version: 3.0.0.beta.1
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.0.0.beta.1
46
+ version: 3.0.0.beta.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: spring
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -75,14 +75,15 @@ files:
75
75
  - lib/vite_rails/installation.rb
76
76
  - lib/vite_rails/tag_helpers.rb
77
77
  - lib/vite_rails/version.rb
78
+ - templates/Procfile.dev
78
79
  - templates/config/rails-vite.json
79
80
  - templates/entrypoints/application.js
80
81
  homepage: https://github.com/ElMassimo/vite_ruby
81
82
  licenses:
82
83
  - MIT
83
84
  metadata:
84
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.0.beta.1/vite_rails
85
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.0.beta.1/vite_rails/CHANGELOG.md
85
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.0.beta.2/vite_rails
86
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.0.beta.2/vite_rails/CHANGELOG.md
86
87
  post_install_message:
87
88
  rdoc_options: []
88
89
  require_paths: