vite_rails 3.0.20 → 3.10.0

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: c3c69cfbf18379399d201573533ffce912b113999e8f9ac7aecae0f65de91408
4
- data.tar.gz: 6bf2c273452988e5c918894647207a00003f09881b24aef59ad1ad3d651656ee
3
+ metadata.gz: d820706d13e470c21682a486091d851a9fc52ba5df2a90793bc75395eb481757
4
+ data.tar.gz: 9c223574257301bbc34998347bc1b2181873ca2f1210558b16aaa7fad49e5881
5
5
  SHA512:
6
- metadata.gz: e427411358568362629b98d5cfa256929a77c783ead61671d571ff41bdc620de41637d4322f4bc5a469f2249c963a39b5b8aa64442fc619c413439ab97762192
7
- data.tar.gz: 36f4eb0fd7a2fca69f5c3a132bfd0cb7a11fdb5450864b57126ef89439d8511b887b9ff731d91c0267973659745d2346a7825dca49bbab841905032742d33d77
6
+ metadata.gz: 3c48cd977f395272bde70643fed94f1b16ea99d62e1279051939ec9b1614448ee64abf31745ca04a80320384445fefa7235b49ee460f2be7992fa7fe154e627e
7
+ data.tar.gz: eb8f2eefae91019649127d0ecd50b3699d9ffa80a5be68df2758d7ec3813cfacc7e017319c834b921b53f0c85ae81b764d59a2b3323e5a8ba5fcd5430ecb9e72
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # [3.10.0](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.20...vite_rails@3.10.0) (2026-03-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add crossorigin attribute to style tag ([#544](https://github.com/ElMassimo/vite_ruby/issues/544)) ([d57495e](https://github.com/ElMassimo/vite_ruby/commit/d57495ea9f0bd87682d997c54d9b352b5b986799))
7
+ * Check if `web` entry already on `Procfile.dev` before appending it ([#542](https://github.com/ElMassimo/vite_ruby/issues/542)) ([4546cf4](https://github.com/ElMassimo/vite_ruby/commit/4546cf48cbef881b4b57deb0fd9e43440e9897f4))
8
+
9
+
10
+
1
11
  ## [3.0.20](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.19...vite_rails@3.0.20) (2026-01-02)
2
12
 
3
13
 
@@ -24,14 +24,14 @@ end
24
24
  module ViteRails::CLI::Install
25
25
  RAILS_TEMPLATES = Pathname.new(File.expand_path("../../templates", __dir__))
26
26
 
27
- # Override: Setup a typical apps/web Hanami app to use Vite.
27
+ # Override: Setup a typical apps/web Rails app to use Vite.
28
28
  def setup_app_files
29
29
  cp RAILS_TEMPLATES.join("config/rails-vite.json"), config.config_path
30
30
  if dir = %w[app/javascript app/packs].find { |path| root.join(path).exist? }
31
31
  replace_first_line config.config_path, "app/frontend", %( "sourceCodeDir": "#{dir}",)
32
32
  end
33
33
  setup_content_security_policy root.join("config/initializers/content_security_policy.rb")
34
- append root.join("Procfile.dev"), "web: bin/rails s"
34
+ append_unless_present root.join("Procfile.dev"), "web: bin/rails s", pattern: "web:"
35
35
  end
36
36
 
37
37
  # Internal: Configure CSP rules that allow to load @vite/client correctly.
@@ -40,7 +40,7 @@ module ViteRails::TagHelpers
40
40
  asset_type: :javascript,
41
41
  skip_preload_tags: false,
42
42
  skip_style_tags: false,
43
- crossorigin: "anonymous",
43
+ crossorigin: "",
44
44
  media: "screen",
45
45
  **options)
46
46
  entries = vite_manifest.resolve_entries(*names, type: asset_type)
@@ -49,7 +49,7 @@ module ViteRails::TagHelpers
49
49
 
50
50
  options[:extname] = false if Rails::VERSION::MAJOR >= 7
51
51
 
52
- tags << stylesheet_link_tag(*entries.fetch(:stylesheets), media: media, **options) unless skip_style_tags
52
+ tags << stylesheet_link_tag(*entries.fetch(:stylesheets), media: media, crossorigin: crossorigin, **options) unless skip_style_tags
53
53
 
54
54
  tags
55
55
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = "3.0.20"
4
+ VERSION = "3.10.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.20
4
+ version: 3.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-01-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: railties
@@ -64,7 +63,6 @@ dependencies:
64
63
  - - "~>"
65
64
  - !ruby/object:Gem::Version
66
65
  version: '2.1'
67
- description:
68
66
  email:
69
67
  - maximomussini@gmail.com
70
68
  executables: []
@@ -88,10 +86,9 @@ homepage: https://github.com/ElMassimo/vite_ruby
88
86
  licenses:
89
87
  - MIT
90
88
  metadata:
91
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.20/vite_rails
92
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.20/vite_rails/CHANGELOG.md
89
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.10.0/vite_rails
90
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.10.0/vite_rails/CHANGELOG.md
93
91
  rubygems_mfa_required: 'true'
94
- post_install_message:
95
92
  rdoc_options: []
96
93
  require_paths:
97
94
  - lib
@@ -106,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
103
  - !ruby/object:Gem::Version
107
104
  version: '0'
108
105
  requirements: []
109
- rubygems_version: 3.2.32
110
- signing_key:
106
+ rubygems_version: 3.6.9
111
107
  specification_version: 4
112
108
  summary: Use Vite in Rails and bring joy to your JavaScript experience
113
109
  test_files: []