vite_rails_legacy 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +1 -1
- data/lib/vite_rails_legacy/config.rb +2 -1
- data/lib/vite_rails_legacy/version.rb +1 -1
- data/templates/entrypoints/application.js +3 -5
- 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: 4347cead738ec144b5703663270dba6f3a69e84cadf836059dd4c724fc8e936a
|
4
|
+
data.tar.gz: 3fa152cafa91ae2406a5a362710f75733d9aabfa5ee9aa0085bfb406601a704e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02c6446bf8b303b0e4a099c934595efd4b884cc29f1074b2a4dd646b6164f19922746cc05647428017edc814f9be1889c3bff7c80cdca4b195d2217aa734ae02
|
7
|
+
data.tar.gz: bcd044be365649796c3959e44b08a6a1074db98613b8310bc3ef770e29db1e58c1a5400d73401b25e20c26327b35691500976628a702d512cfacdbe6be007ccd
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## [3.0.4](https://github.com/ElMassimo/vite_ruby/compare/vite_rails_legacy@3.0.3...vite_rails_legacy@3.0.4) (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
|
+
* update example setup from turbolinks to @hotwired/turbo ([e1750bf](https://github.com/ElMassimo/vite_ruby/commit/e1750bfb4b22a9a73a2b86950fb203d3e489ced6))
|
8
|
+
|
9
|
+
|
10
|
+
|
1
11
|
## [3.0.3](https://github.com/ElMassimo/vite_ruby/compare/vite_rails_legacy@3.0.2...vite_rails_legacy@3.0.3) (2021-12-23)
|
2
12
|
|
3
13
|
|
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>
|
@@ -4,8 +4,9 @@ module ViteRailsLegacy::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
|
)
|
@@ -15,16 +15,14 @@ console.log('Visit the guide for more information: ', 'https://vite-ruby.netlify
|
|
15
15
|
|
16
16
|
// Example: Load Rails libraries in Vite.
|
17
17
|
//
|
18
|
-
// import '@
|
18
|
+
// import * as Turbo from '@hotwired/turbo'
|
19
|
+
// Turbo.start()
|
19
20
|
//
|
20
|
-
// import Turbolinks from 'turbolinks'
|
21
21
|
// import ActiveStorage from '@rails/activestorage'
|
22
|
+
// ActiveStorage.start()
|
22
23
|
//
|
23
24
|
// // Import all channels.
|
24
25
|
// const channels = import.meta.globEager('./**/*_channel.js')
|
25
|
-
//
|
26
|
-
// Turbolinks.start()
|
27
|
-
// ActiveStorage.start()
|
28
26
|
|
29
27
|
// Example: Import a stylesheet in app/frontend/index.css
|
30
28
|
// import '~/index.css'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_rails_legacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
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: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -61,8 +61,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
61
61
|
licenses:
|
62
62
|
- MIT
|
63
63
|
metadata:
|
64
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails_legacy@3.0.
|
65
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails_legacy@3.0.
|
64
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails_legacy@3.0.4/vite_rails_legacy
|
65
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails_legacy@3.0.4/vite_rails_legacy/CHANGELOG.md
|
66
66
|
post_install_message:
|
67
67
|
rdoc_options: []
|
68
68
|
require_paths:
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
81
|
+
rubygems_version: 3.3.7
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Use Vite in Rails 4 and bring joy to your JavaScript experience
|