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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2e8422c6d212031f8e62a6af629466e57abe65be76dc13f67b8b1bda2a44119
4
- data.tar.gz: 8b6c78104ff090d81efe9640a8df8da4b27e1c31dd44cd96f8ceacde1190c64e
3
+ metadata.gz: 4347cead738ec144b5703663270dba6f3a69e84cadf836059dd4c724fc8e936a
4
+ data.tar.gz: 3fa152cafa91ae2406a5a362710f75733d9aabfa5ee9aa0085bfb406601a704e
5
5
  SHA512:
6
- metadata.gz: 49f75b9e07555742235d2489e523d119a917bd9d0113505dad6a1eb66206856313ab5670bcd6021158a103d7d4b7bc850287f2842f19e2531d482009d3962e87
7
- data.tar.gz: 98a12a027a628c0f211658b87fbd0af1c67976755cd3377ab0ba42219bb8ca67184b3aac6bcbb43509d2518c8acfd3dbf7325894eaa71d28112ff1cbce2d7486
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/docs/public/logo.svg" width="120px"/>
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: Rails.application&.config&.action_controller&.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
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRailsLegacy
4
- VERSION = '3.0.3'
4
+ VERSION = '3.0.4'
5
5
  end
@@ -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 '@rails/ujs'
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.3
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: 2021-12-23 00:00:00.000000000 Z
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.3/vite_rails_legacy
65
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails_legacy@3.0.3/vite_rails_legacy/CHANGELOG.md
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.1.4
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