vite_rails 3.0.18 → 3.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ede0ef32c351958c4c12499648568751d2aebd9561e60ad42f5c984ae4cb229c
4
- data.tar.gz: c393946685e7f6c4f40fab8a018a2349cff3d176b55c1ecfef63458c677bb85e
3
+ metadata.gz: bec6203fd13439bda514b7bc060fa686a092d5abe246c0c7e3bc9bb94d57f3be
4
+ data.tar.gz: 5528b478eeaf0f21630f0c546bd624879520d36ac50dd03414da68da06125998
5
5
  SHA512:
6
- metadata.gz: 071ac2b4197e30d83fd0f2e4dd8707723634dff0fb9a290b89f8381cc4f465d60c4f065e8bb2ebc1a2f95794efe8e6e556dd87e1a2816f602b8d9be4de3f5354
7
- data.tar.gz: 5bf6b923ad934b7f66e7fd802f24a904e4196bf65f08d4bda5f36e6de40fe26c1c3c5bc4db4392652f52a72b425bb5736d7a19fa95f65b27e18ce3e694276913
6
+ metadata.gz: ba27baf7621e86dc14fafd03b965e8f24c7aade5763ce68e94a044e93c047716cf674e2c738047e4ed17d961898e16571c80a568435a24b8c299509592d1630c
7
+ data.tar.gz: d9918d6bc2f636882ac336ea29bcc66e603f654ddcc1002bb53b59026c6b066684b01b19c14ac5e957fc861162851119e05c5ff62d1e0ec093b84e907bc0c9f1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [3.0.19](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.18...vite_rails@3.0.19) (2024-11-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * respect host and protocol options in vite_preload_tag ([#413](https://github.com/ElMassimo/vite_ruby/issues/413)) ([bcd8151](https://github.com/ElMassimo/vite_ruby/commit/bcd8151e77e90b5c219650db604ccf6bb6617720))
7
+
8
+
9
+
1
10
  ## [3.0.18](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.17...vite_rails@3.0.18) (2024-10-21)
2
11
 
3
12
 
@@ -101,7 +101,8 @@ private
101
101
 
102
102
  # Internal: Renders a modulepreload link tag.
103
103
  def vite_preload_tag(*sources, crossorigin:, **options)
104
- asset_paths = sources.map { |source| path_to_asset(source) }
104
+ url_options = options.extract!(:host, :protocol)
105
+ asset_paths = sources.map { |source| path_to_asset(source, **url_options) }
105
106
  try(:request).try(
106
107
  :send_early_hints,
107
108
  'Link' => asset_paths.map { |href|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRails
4
- VERSION = '3.0.18'
4
+ VERSION = '3.0.19'
5
5
  end
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.18
4
+ version: 3.0.19
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: 2024-10-21 00:00:00.000000000 Z
11
+ date: 2024-11-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.18/vite_rails
92
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.18/vite_rails/CHANGELOG.md
91
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@3.0.19/vite_rails
92
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.19/vite_rails/CHANGELOG.md
93
93
  post_install_message:
94
94
  rdoc_options: []
95
95
  require_paths: