vite_rails 3.0.5 → 3.0.8
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/README.md +1 -1
- data/lib/tasks/vite.rake +1 -0
- data/lib/vite_rails/config.rb +2 -1
- data/lib/vite_rails/tag_helpers.rb +1 -1
- data/lib/vite_rails/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c95faa7682d2b74a570535ab3834e124ecae38cd76baa4c58f8f028db6a6cbd0
|
4
|
+
data.tar.gz: 040f805cb829565e3d505381e29e8f3a13f087a1f294af528b5c113165329e48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8d7c695b4125ccd567df64d6046cb13d2197f0f03e4fe2355e79d359ad6b2e4f30b25ded11715d0af2d55ea73e9406251f5cb5a9c9fc5b7084b0866dc081ac1
|
7
|
+
data.tar.gz: 9283af4e7fbe5a037ad37b24c5a5e0c0ad8ab566b39dfe11eda96938a7c4b998ba8597e734acc3a9b7e84e183dd4fbd836858e5f298ba0a4c73659b578a806af
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
+
## [3.0.8](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.7...vite_rails@3.0.8) (2022-04-14)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* 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))
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
## [3.0.7](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.6...vite_rails@3.0.7) (2022-03-17)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* load rails environment before rake tasks (close [#193](https://github.com/ElMassimo/vite_ruby/issues/193)) ([72afbc7](https://github.com/ElMassimo/vite_ruby/commit/72afbc7ab5ca33833e9330954499bcf460fd7669))
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
## [3.0.6](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.5...vite_rails@3.0.6) (2022-02-04)
|
20
|
+
|
21
|
+
|
22
|
+
### Bug Fixes
|
23
|
+
|
24
|
+
* don't add crossorigin to included stylesheet tags (close [#189](https://github.com/ElMassimo/vite_ruby/issues/189)) ([#190](https://github.com/ElMassimo/vite_ruby/issues/190)) ([575c731](https://github.com/ElMassimo/vite_ruby/commit/575c73192fb485e8844f67b821c856d1a09db8f5))
|
25
|
+
|
26
|
+
|
27
|
+
|
1
28
|
## [3.0.5](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@3.0.4...vite_rails@3.0.5) (2022-01-18)
|
2
29
|
|
3
30
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<h1 align="center">
|
2
2
|
<a href="https://vite-ruby.netlify.app/">
|
3
|
-
<img src="https://raw.githubusercontent.com/ElMassimo/vite_ruby/main/
|
3
|
+
<img src="https://raw.githubusercontent.com/ElMassimo/vite_ruby/main/logo.svg" width="120px"/>
|
4
4
|
</a>
|
5
5
|
|
6
6
|
<br>
|
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
|
)
|
@@ -34,7 +34,7 @@ module ViteRails::TagHelpers
|
|
34
34
|
entries = vite_manifest.resolve_entries(*names, type: asset_type)
|
35
35
|
tags = javascript_include_tag(*entries.fetch(:scripts), crossorigin: crossorigin, type: type, extname: false, **options)
|
36
36
|
tags << vite_preload_tag(*entries.fetch(:imports), crossorigin: crossorigin, **options) unless skip_preload_tags
|
37
|
-
tags << stylesheet_link_tag(*entries.fetch(:stylesheets), media: media,
|
37
|
+
tags << stylesheet_link_tag(*entries.fetch(:stylesheets), media: media, **options) unless skip_style_tags
|
38
38
|
tags
|
39
39
|
end
|
40
40
|
|
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.8
|
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-04-14 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.8/vite_rails
|
86
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@3.0.8/vite_rails/CHANGELOG.md
|
87
87
|
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
|
-
rubygems_version: 3.
|
102
|
+
rubygems_version: 3.3.7
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Use Vite in Rails and bring joy to your JavaScript experience
|