vite_rails 3.0.20 → 3.11.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: a1ce6f334500a1a02d65e6f1119330aaddc0d31313cd09fbd37ba732509bab92
4
+ data.tar.gz: 631e01abbb70f8d638a97990b43b00cf2247025b795871729c1b93b01fe7c6ae
5
5
  SHA512:
6
- metadata.gz: e427411358568362629b98d5cfa256929a77c783ead61671d571ff41bdc620de41637d4322f4bc5a469f2249c963a39b5b8aa64442fc619c413439ab97762192
7
- data.tar.gz: 36f4eb0fd7a2fca69f5c3a132bfd0cb7a11fdb5450864b57126ef89439d8511b887b9ff731d91c0267973659745d2346a7825dca49bbab841905032742d33d77
6
+ metadata.gz: fa4e32273e1ad14ca39791bec8a5c45f09d769c1808a7661a8286f8365890fd7cd0e1748b4e6382e72b00881a11c714eb56e455f45eede2c0d93d712a1e1a0be
7
+ data.tar.gz: d828b900c4a5f8919eb9df39364cc7ad6c90811333c9ef0c4bdf83f131dd2d8fdd97b92909c822a53bc34abc6a2d4d785ae863cfceb8b8cd5108e2c222a77be3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # [3.11.0](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.10.0...vite_rails@3.11.0) (2026-05-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * default to skipProxy in new installations ([2932c0e](https://github.com/ElMassimo/vite_ruby/commit/2932c0ed66143d1a1d05d71787c2a5b0a47403f3))
7
+
8
+
9
+
10
+ # [3.10.0](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.20...vite_rails@3.10.0) (2026-03-17)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * add crossorigin attribute to style tag ([#544](https://github.com/ElMassimo/vite_ruby/issues/544)) ([d57495e](https://github.com/ElMassimo/vite_ruby/commit/d57495ea9f0bd87682d997c54d9b352b5b986799))
16
+ * 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))
17
+
18
+
19
+
1
20
  ## [3.0.20](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.19...vite_rails@3.0.20) (2026-01-02)
2
21
 
3
22
 
@@ -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.11.0"
5
5
  end
@@ -5,6 +5,7 @@
5
5
  },
6
6
  "development": {
7
7
  "autoBuild": true,
8
+ "skipProxy": true,
8
9
  "publicOutputDir": "vite-dev",
9
10
  "port": 3036
10
11
  },
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.20
4
+ version: 3.11.0
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: 2026-01-02 00:00:00.000000000 Z
11
+ date: 2026-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -88,8 +88,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
88
88
  licenses:
89
89
  - MIT
90
90
  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
91
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.11.0/vite_rails
92
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.11.0/vite_rails/CHANGELOG.md
93
93
  rubygems_mfa_required: 'true'
94
94
  post_install_message:
95
95
  rdoc_options: []
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.2.32
109
+ rubygems_version: 3.5.16
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Use Vite in Rails and bring joy to your JavaScript experience