vite_ruby 3.9.3 → 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 +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/vite_ruby/cli/file_utils.rb +8 -1
- data/lib/vite_ruby/cli/install.rb +1 -1
- data/lib/vite_ruby/commands.rb +2 -1
- data/lib/vite_ruby/missing_entrypoint_error.rb +0 -1
- data/lib/vite_ruby/version.rb +3 -3
- metadata +5 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ddc716f7b27707603a02e9d398126d693cb9d84391e2b4fc4ccc1822499e15b0
|
|
4
|
+
data.tar.gz: fc725b283be746261059299df7af82cfbc3c6c2c626549ea862fe8d4da132cc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3aa45a8bbb24befee0b8991ee08b37b7f4f9edf8877e400da2b1b24fdae3519cd5ef4b0978c00c2203cf7078a8e5150419cb6d2d28c992dc97fadb90fffa3ffe
|
|
7
|
+
data.tar.gz: 8c386d2094d5b5508c931cb7106250bf9cba3171a00b87b25a0a7bb3a133c5935105633e8b772f257acb9f2342d2a03c2c6b947f0e36bbb848337734411e54d0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [3.10.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.9.3...vite_ruby@3.10.0) (2026-03-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* avoid displaying manifest contents (close [#568](https://github.com/ElMassimo/vite_ruby/issues/568)) ([edc8e13](https://github.com/ElMassimo/vite_ruby/commit/edc8e13d205e27332f8f1339588a7d007a1faa7a))
|
|
7
|
+
* binstub creation ([#589](https://github.com/ElMassimo/vite_ruby/issues/589)) ([cd2ad27](https://github.com/ElMassimo/vite_ruby/commit/cd2ad273ddf155f7c89098d5a25de4d58b31da16))
|
|
8
|
+
* 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))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* bump default plugin version ([9d8f3b4](https://github.com/ElMassimo/vite_ruby/commit/9d8f3b42e9020a1b6d91bf7432899bff0697fc5a))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
1
17
|
## [3.9.3](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.9.2...vite_ruby@3.9.3) (2026-02-25)
|
|
2
18
|
|
|
3
19
|
|
|
@@ -32,8 +32,15 @@ module ViteRuby::CLI::FileUtils
|
|
|
32
32
|
# @since 1.2.11
|
|
33
33
|
# @api private
|
|
34
34
|
def append(path, contents)
|
|
35
|
+
append_unless_present(path, contents, pattern: contents)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Adds a new line at the bottom of the file, unless any line matches the pattern.
|
|
39
|
+
#
|
|
40
|
+
# @api private
|
|
41
|
+
def append_unless_present(path, contents, pattern:)
|
|
35
42
|
content = read_lines(path)
|
|
36
|
-
return if content.
|
|
43
|
+
return if content.any? { |line| line.include?(pattern) }
|
|
37
44
|
|
|
38
45
|
content << "\n" unless content.last&.end_with?("\n")
|
|
39
46
|
content << "#{contents}\n"
|
|
@@ -61,7 +61,7 @@ private
|
|
|
61
61
|
|
|
62
62
|
def_delegators "ViteRuby", :config
|
|
63
63
|
|
|
64
|
-
%i[append cp inject_line_after inject_line_after_last inject_line_before replace_first_line write].each do |util|
|
|
64
|
+
%i[append append_unless_present cp inject_line_after inject_line_after_last inject_line_before replace_first_line write].each do |util|
|
|
65
65
|
define_method(util) { |*args|
|
|
66
66
|
ViteRuby::CLI::FileUtils.send(util, *args) rescue nil
|
|
67
67
|
}
|
data/lib/vite_ruby/commands.rb
CHANGED
|
@@ -30,7 +30,8 @@ class ViteRuby::Commands
|
|
|
30
30
|
|
|
31
31
|
# Internal: Installs the binstub for the CLI in the appropriate path.
|
|
32
32
|
def install_binstubs
|
|
33
|
-
`bundle
|
|
33
|
+
`bundle config set bin #{config.root.join("bin")}`
|
|
34
|
+
`bundle binstub vite_ruby`
|
|
34
35
|
`bundle config --delete bin`
|
|
35
36
|
end
|
|
36
37
|
|
|
@@ -16,7 +16,6 @@ class ViteRuby::MissingEntrypointError < ViteRuby::Error
|
|
|
16
16
|
#{possible_causes(last_build)}
|
|
17
17
|
:troubleshooting:
|
|
18
18
|
#{"Manifest files found:\n#{config.manifest_paths.map { |path| " #{path.relative_path_from(config.root)}" }.join("\n")}\n" if last_build.success}
|
|
19
|
-
#{"Content in your manifests:\n#{JSON.pretty_generate(manifest)}\n" if last_build.success}
|
|
20
19
|
#{"Last build in #{config.mode} mode:\n#{last_build.to_json}\n" if last_build.success}
|
|
21
20
|
MSG
|
|
22
21
|
end
|
data/lib/vite_ruby/version.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
class ViteRuby
|
|
4
|
-
VERSION = "3.
|
|
4
|
+
VERSION = "3.10.0"
|
|
5
5
|
|
|
6
6
|
# Internal: Versions used by default when running `vite install`.
|
|
7
|
-
DEFAULT_VITE_VERSION = "^
|
|
8
|
-
DEFAULT_PLUGIN_VERSION = "^5.
|
|
7
|
+
DEFAULT_VITE_VERSION = "^8.0.0"
|
|
8
|
+
DEFAULT_PLUGIN_VERSION = "^5.2.0"
|
|
9
9
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vite_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Máximo Mussini
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: dry-cli
|
|
@@ -190,7 +189,6 @@ dependencies:
|
|
|
190
189
|
- - "<"
|
|
191
190
|
- !ruby/object:Gem::Version
|
|
192
191
|
version: '0.23'
|
|
193
|
-
description:
|
|
194
192
|
email:
|
|
195
193
|
- maximomussini@gmail.com
|
|
196
194
|
executables:
|
|
@@ -236,8 +234,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
|
236
234
|
licenses:
|
|
237
235
|
- MIT
|
|
238
236
|
metadata:
|
|
239
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.
|
|
240
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.
|
|
237
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.10.0/vite_ruby
|
|
238
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.10.0/vite_ruby/CHANGELOG.md
|
|
241
239
|
rubygems_mfa_required: 'true'
|
|
242
240
|
post_install_message: "Thanks for installing Vite Ruby!\n\nIf you upgraded the gem
|
|
243
241
|
manually, please run:\n\tbundle exec vite upgrade"
|
|
@@ -255,8 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
255
253
|
- !ruby/object:Gem::Version
|
|
256
254
|
version: '0'
|
|
257
255
|
requirements: []
|
|
258
|
-
rubygems_version: 3.
|
|
259
|
-
signing_key:
|
|
256
|
+
rubygems_version: 3.6.9
|
|
260
257
|
specification_version: 4
|
|
261
258
|
summary: Use Vite in Ruby and bring joy to your JavaScript experience
|
|
262
259
|
test_files: []
|