vite_rails 3.0.7 → 3.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/lib/tasks/vite.rake +1 -1
- data/lib/vite_rails/config.rb +2 -1
- data/lib/vite_rails/tag_helpers.rb +8 -0
- data/lib/vite_rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee2802ff9f648a2ed4246a3935a4ae4a4355cbd9b0f1a51a9b6e8e823e157d4d
|
4
|
+
data.tar.gz: e2c5a2de870d53a6fdc7347199f054e3c2af4179f47b7d8556c33f6d3ef896af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78497ecb931cf3c7979bf09f4c035a8caef64f14eb397ac3ebd0221751a6e71f1175cb5421d1b353528f4089e9f0f849fc92ed43d6041f775a479c906a7c5690
|
7
|
+
data.tar.gz: e0a2d4a9c9d546a7aa2001eb7a5ffba22b25b92f6c0d8c5d8999fe67b538aaedbf4e3fb29845f1da068f7f6c746cf7513b741b10b0cc50b28d434b02f9dbbdf1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
## [3.0.10](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.9...vite_rails@3.0.10) (2022-06-15)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* symbol error on rake enhance call ([#218](https://github.com/ElMassimo/vite_ruby/issues/218)) ([5507156](https://github.com/ElMassimo/vite_ruby/commit/550715624ceb39e1ea5e845e73dcaf5557caa66f)), closes [/github.com/ruby/rake/blob/master/lib/rake/task.rb#L116](https://github.com//github.com/ruby/rake/blob/master/lib/rake/task.rb/issues/L116)
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
## [3.0.9](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.8...vite_rails@3.0.9) (2022-04-29)
|
11
|
+
|
12
|
+
|
13
|
+
### Features
|
14
|
+
|
15
|
+
* add vite_asset_url helper ([#208](https://github.com/ElMassimo/vite_ruby/issues/208)) ([d269793](https://github.com/ElMassimo/vite_ruby/commit/d2697934b5a866ea5b14588b650a00dfe88454a3))
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
## [3.0.8](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.7...vite_rails@3.0.8) (2022-04-14)
|
20
|
+
|
21
|
+
|
22
|
+
### Bug Fixes
|
23
|
+
|
24
|
+
* prevent error when using a proc in asset_host (close [#202](https://github.com/ElMassimo/vite_ruby/issues/202)) ([#203](https://github.com/ElMassimo/vite_ruby/issues/203)) ([cb23a81](https://github.com/ElMassimo/vite_ruby/commit/cb23a81037651ac01d993935f68cc526ec2c844d))
|
25
|
+
|
26
|
+
|
27
|
+
|
1
28
|
## [3.0.7](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.6...vite_rails@3.0.7) (2022-03-17)
|
2
29
|
|
3
30
|
|
data/lib/tasks/vite.rake
CHANGED
data/lib/vite_rails/config.rb
CHANGED
@@ -4,8 +4,9 @@ module ViteRails::Config
|
|
4
4
|
# Override: Default values for a Rails application.
|
5
5
|
def config_defaults
|
6
6
|
require 'rails'
|
7
|
+
asset_host = Rails.application&.config&.action_controller&.asset_host
|
7
8
|
super(
|
8
|
-
asset_host:
|
9
|
+
asset_host: asset_host.is_a?(Proc) ? nil : asset_host,
|
9
10
|
mode: Rails.env.to_s,
|
10
11
|
root: Rails.root || Dir.pwd,
|
11
12
|
)
|
@@ -22,6 +22,14 @@ module ViteRails::TagHelpers
|
|
22
22
|
path_to_asset vite_manifest.path_for(name, **options)
|
23
23
|
end
|
24
24
|
|
25
|
+
# Public: Resolves the url for the specified Vite asset.
|
26
|
+
#
|
27
|
+
# Example:
|
28
|
+
# <%= vite_asset_url 'calendar.css' %> # => "https://example.com/vite/assets/calendar-1016838bab065ae1e122.css"
|
29
|
+
def vite_asset_url(name, **options)
|
30
|
+
url_to_asset vite_manifest.path_for(name, **options)
|
31
|
+
end
|
32
|
+
|
25
33
|
# Public: Renders a <script> tag for the specified Vite entrypoints.
|
26
34
|
def vite_javascript_tag(*names,
|
27
35
|
type: 'module',
|
data/lib/vite_rails/version.rb
CHANGED
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.
|
4
|
+
version: 3.0.10
|
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: 2022-
|
11
|
+
date: 2022-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -82,8 +82,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
84
|
metadata:
|
85
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.
|
86
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.
|
85
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.10/vite_rails
|
86
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.10/vite_rails/CHANGELOG.md
|
87
87
|
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|