vite_rails 3.0.16 → 3.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/vite_rails/tag_helpers.rb +13 -0
- data/lib/vite_rails/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ede0ef32c351958c4c12499648568751d2aebd9561e60ad42f5c984ae4cb229c
|
4
|
+
data.tar.gz: c393946685e7f6c4f40fab8a018a2349cff3d176b55c1ecfef63458c677bb85e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 071ac2b4197e30d83fd0f2e4dd8707723634dff0fb9a290b89f8381cc4f465d60c4f065e8bb2ebc1a2f95794efe8e6e556dd87e1a2816f602b8d9be4de3f5354
|
7
|
+
data.tar.gz: 5bf6b923ad934b7f66e7fd802f24a904e4196bf65f08d4bda5f36e6de40fe26c1c3c5bc4db4392652f52a72b425bb5736d7a19fa95f65b27e18ce3e694276913
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
## [3.0.18](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.17...vite_rails@3.0.18) (2024-10-21)
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## [3.0.17](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.16...vite_rails@3.0.17) (2023-10-05)
|
6
|
+
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
* add vite_picture_tag for Rails 7.1 ([#409](https://github.com/ElMassimo/vite_ruby/issues/409)) ([4e3762a](https://github.com/ElMassimo/vite_ruby/commit/4e3762a978b7879206dbc48137ba525d0d0ad971))
|
11
|
+
|
12
|
+
|
13
|
+
|
1
14
|
## [3.0.16](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.15...vite_rails@3.0.16) (2023-09-22)
|
2
15
|
|
3
16
|
|
@@ -79,6 +79,19 @@ module ViteRails::TagHelpers
|
|
79
79
|
image_tag(vite_asset_path(name), options)
|
80
80
|
end
|
81
81
|
|
82
|
+
# Public: Renders a <picture> tag with one or more Vite asset sources.
|
83
|
+
def vite_picture_tag(*sources, &block)
|
84
|
+
unless Rails.gem_version >= Gem::Version.new('7.1.0')
|
85
|
+
raise NotImplementedError, '`vite_picture_tag` is only available for Rails 7.1 or above.'
|
86
|
+
end
|
87
|
+
|
88
|
+
sources.flatten!
|
89
|
+
options = sources.extract_options!
|
90
|
+
|
91
|
+
vite_sources = sources.map { |src| vite_asset_path(src) }
|
92
|
+
picture_tag(*vite_sources, options, &block)
|
93
|
+
end
|
94
|
+
|
82
95
|
private
|
83
96
|
|
84
97
|
# Internal: Returns the current manifest loaded by Vite Ruby.
|
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.18
|
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:
|
11
|
+
date: 2024-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '9'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '9'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: vite_ruby
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.
|
92
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.
|
91
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.18/vite_rails
|
92
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.18/vite_rails/CHANGELOG.md
|
93
93
|
post_install_message:
|
94
94
|
rdoc_options: []
|
95
95
|
require_paths:
|