vite_ruby 3.11.0 → 3.11.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: 8349aea6809e111e73935d71ab1bd256abb988a20207b155f44efc86f99af61a
4
- data.tar.gz: 8c43f3fc3bd96ae6ceea8c47f57c5807ff282a1055c84ae0be2c3763f80b5527
3
+ metadata.gz: 7b123a02b4b5ed8154b52f7b15f1ffed680818dc6f823c7cb3a7f466a9c0b3e3
4
+ data.tar.gz: 61310dc93fb66de90968b00a1b65f9cd8269501c9451c06b13152727e414f317
5
5
  SHA512:
6
- metadata.gz: 8d92c2da929fa6664b2f08427606daf86dea0eae6d068d8cd527fb947f4083068e5f6fa8327b8d505d51316d502df60538a8b9adeec4d62d67eaeb1126d62bca
7
- data.tar.gz: e9425003b0d0b8a6c7d29e72a65d9a529ee4035f23228b31f28e35ea5ccb905e5e47e9d63d276111f9aa2e3b1167a0077a25675c93449f8dc863c38e1cef2c50
6
+ metadata.gz: f63402050f71af9335a59737209f985c8671416be2be27a08c6b7281eedb825bb0b213b5d2d11bc473aa6371daaeec39f0b91a11159638ec068b3e8e02df241b
7
+ data.tar.gz: 17c238e9ddef2890f8fbf0508fcd2b1194198821290bcf8673ba897d34f64758d1e3108dd804be0173f7c7c503bfad4596829ffdefd66815b867470828a6264a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [3.11.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.11.0...vite_ruby@3.11.1) (2026-09-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * scope dev server metadata to Ruby mode ([#632](https://github.com/ElMassimo/vite_ruby/issues/632)) ([#633](https://github.com/ElMassimo/vite_ruby/issues/633)) ([d3d8e6f](https://github.com/ElMassimo/vite_ruby/commit/d3d8e6f50524e9415df5e0621fe92117175f6dfd))
7
+
8
+
9
+
1
10
  # [3.11.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.10.6...vite_ruby@3.11.0) (2026-09-17)
2
11
 
3
12
 
@@ -5,8 +5,8 @@ require "json"
5
5
  # Public: Allows to resolve configuration sourced from `config/vite.json` and
6
6
  # environment variables, combining them with the default options.
7
7
  class ViteRuby::Config
8
- # Internal: Name of the metadata file written by the Vite dev server.
9
- DEV_SERVER_META_FILENAME = "vite-ruby.json"
8
+ # Internal: Base name of the metadata file written by the Vite dev server.
9
+ DEV_SERVER_META_BASENAME = "vite-ruby"
10
10
 
11
11
  def origin
12
12
  "#{protocol}://#{host_with_port}"
@@ -43,7 +43,7 @@ class ViteRuby::Config
43
43
 
44
44
  # Internal: Path to the metadata file written by the Vite dev server.
45
45
  def dev_server_meta_path
46
- root.join("tmp", DEV_SERVER_META_FILENAME)
46
+ root.join("tmp", "#{DEV_SERVER_META_BASENAME}-#{mode}.json")
47
47
  end
48
48
 
49
49
  # Public: The directory where the entries are located.
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ViteRuby
4
- VERSION = "3.11.0"
4
+ VERSION = "3.11.1"
5
5
 
6
6
  # Internal: Versions used by default when running `vite install`.
7
7
  DEFAULT_VITE_VERSION = "^8.0.0"
8
- DEFAULT_PLUGIN_VERSION = "^5.2.0"
8
+ DEFAULT_PLUGIN_VERSION = "^5.2.5"
9
9
  end
data/lib/vite_ruby.rb CHANGED
@@ -87,7 +87,8 @@ class ViteRuby
87
87
  return false unless dev_mode?
88
88
  return dev_server_connected? if config.dev_server_connection_check
89
89
 
90
- !dev_server_meta.nil?
90
+ meta = dev_server_meta
91
+ meta.is_a?(Hash) && meta["port"] == config.port
91
92
  end
92
93
 
93
94
  # Public: Additional environment variables to pass to Vite.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0
4
+ version: 3.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
@@ -228,8 +228,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
228
228
  licenses:
229
229
  - MIT
230
230
  metadata:
231
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.11.0/vite_ruby
232
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.11.0/vite_ruby/CHANGELOG.md
231
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.11.1/vite_ruby
232
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.11.1/vite_ruby/CHANGELOG.md
233
233
  rubygems_mfa_required: 'true'
234
234
  post_install_message: "Thanks for installing Vite Ruby!\n\nIf you upgraded the gem
235
235
  manually, please run:\n\tbundle exec vite upgrade"