svelte-on-rails 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a2ed41a0affd2cea3341eba61240ed04d6faf5566b825cc2b5998ced521ac2a
4
- data.tar.gz: 66ea8b433279d645e7e7a4947031a167e3404bcdcbb65671851c0b1cd0feacc2
3
+ metadata.gz: 677cbdec13a7a29dad5a6601755976aebce32a9cd5d4d132d62682650887b81d
4
+ data.tar.gz: 3cd12a78ff280021ff44ba0bc29371a3268a4b50de93264f9388925cc6fdad21
5
5
  SHA512:
6
- metadata.gz: 9de5f9e82cad01f18ddbf0a9e579cc1de688cb679aebdf6108f4881885bb73c40e38e3d8f816ff8a023788ae76665370774d70ebb950c31ac852717e211f3d9d
7
- data.tar.gz: 2eb846846e3d664c4883df6db37c5afc37f62a887bc25f6c827c0ab867d9f3e3e41185b0f5dc3790db49add22e26f0bba043b1ac368bf99bd1bca87a8a0e24bb
6
+ metadata.gz: 289186502e09d9e27b75b17f633cd017f066470efeafcaf1c9ab979f716f60705f4b7d7505da496380171d00ef971eef14b22fcfbb83781be810732ed3f4d3dc
7
+ data.tar.gz: 620d66d405bfea65fc134c837c7832ea3c7dae6c566aaedea3431a2ebb8906700a9255afd088ff65ab607ea5789132760c2b12f3b3e2c4676ce36a6ecf540747
data/README.md CHANGED
@@ -39,7 +39,10 @@ If you have issues, please open one and contributors are welcome!
39
39
  If you want to start from a new rails app, follow theese tutorials
40
40
 
41
41
  - [Create a new rails app with vite_rails](https://dev.to/chmich/setup-vite-on-rails-7-f1i)
42
+ - create a controller and a view and you should see `Vite ⚡️ Rails` on the browser console.
43
+ - make sure vite is on its latest version, sometimes you have to `npm i vite@latest`
42
44
  - [Setup Svelte](https://dev.to/chmich/setup-inertia-and-svelte-on-rails-7-3glk)
45
+ - and restart the app
43
46
 
44
47
  ## Installation
45
48
 
@@ -49,7 +49,7 @@ namespace :svelte_on_rails do
49
49
  package_name = "@hotwired/turbo-rails"
50
50
  file_content = File.exist?(pkg_js) ? File.read(pkg_js) : ""
51
51
 
52
- if file_content.match?(/#{line}/)
52
+ if file_content.match?(/#{package_name}/)
53
53
  puts "#{package_name} is already installed."
54
54
  else
55
55
  puts "Installing #{package_name} via npm..."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svelte-on-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sedlmair