stimulus-rails 1.3.2 → 1.3.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: 26b4c5a3a8ad8343e36257e5dadadb2a455638b563e778cb3c91c2f6eb711f45
4
- data.tar.gz: 3cf5b9afc555a09d520622390b3acf67c5c5da746c1e2a79380a2100269e6966
3
+ metadata.gz: 73388b59b0405975a85b9e2c627167413e4fba70f6192dd2a2a0f9db32316144
4
+ data.tar.gz: 6cc20dd48030fe78738eca4b0416d0fcd6519ec4e3899ed7fe1e1e033e5c09c3
5
5
  SHA512:
6
- metadata.gz: caf8589004d8e06afc3bc0faef28c38052353bb468702690c3166ad12ca5c8e2ab8c3e46c6c851d2211f244cf9e0869985d929f6363b705b1f281f765d062bd9
7
- data.tar.gz: f046788a1b1523cd34da3303c8bb5b010173a9db9778509b36d67b671ba2d9181e748358feba6a05e390e0993f3107d16e9a2db46685556d1b7ccf3557c68da3
6
+ metadata.gz: 6cd0e5e11da726dd240e6edd651549bc7a84c320576470f9526728c960fb1769c12addcd76643abbc079c7d6683a2a1faa16f864e5b9bf139de7255971513bbc
7
+ data.tar.gz: 69146705608c0958eaf9950a12061000c604bd9962e58761ce65b554132d0e6147805ba846afadc731a932e4c8b41d76188254d70974c20d13c8924d3e649efe
data/README.md CHANGED
@@ -94,7 +94,7 @@ export { application }
94
94
 
95
95
  5. Add the following line to `app/javascript/application.js` to import all your controllers:
96
96
  ```javascript
97
- import "controllers"
97
+ import "./controllers"
98
98
  ```
99
99
 
100
100
  6. Finally, add the Stimulus package to yarn:
@@ -1,11 +1,4 @@
1
- // Import and register all your controllers from the importmap under controllers/*
2
-
1
+ // Import and register all your controllers from the importmap via controllers/**/*_controller
3
2
  import { application } from "controllers/application"
4
-
5
- // Eager load all controllers defined in the import map under controllers/**/*_controller
6
3
  import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
7
4
  eagerLoadControllersFrom("controllers", application)
8
-
9
- // Lazy load controllers as they appear in the DOM (remember not to preload controllers in import map!)
10
- // import { lazyLoadControllersFrom } from "@hotwired/stimulus-loading"
11
- // lazyLoadControllersFrom("controllers", application)
@@ -15,7 +15,7 @@ else
15
15
  end
16
16
 
17
17
  say "Install Stimulus"
18
- if Rails.root.join("bun.config.js")).exist?
18
+ if (Rails.root.join("bun.config.js")).exist?
19
19
  run "bun add @hotwired/stimulus"
20
20
  else
21
21
  run "yarn add @hotwired/stimulus"
@@ -1,3 +1,3 @@
1
1
  module Stimulus
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.4"
3
3
  end
@@ -4,7 +4,7 @@ module Stimulus
4
4
  module Tasks
5
5
  extend self
6
6
  def run_stimulus_install_template(path)
7
- system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path("../install/#{path}.rb", __dir__)}"
7
+ system RbConfig.ruby, "./bin/rails", "app:template", "LOCATION=#{File.expand_path("../install/#{path}.rb", __dir__)}"
8
8
  end
9
9
 
10
10
  def using_bun?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stephenson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-01-03 00:00:00.000000000 Z
13
+ date: 2024-08-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.4.14
80
+ rubygems_version: 3.5.17
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: A modest JavaScript framework for the HTML you already have.