stimulus-rails 1.3.3 → 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: be2be60e05d885133174285ba4471e9f803ba726e510182c97d4a143557260c4
4
- data.tar.gz: 573d92262ab2561e3db821fa43c7655d01f952071657334295dd3835600d4fe7
3
+ metadata.gz: 73388b59b0405975a85b9e2c627167413e4fba70f6192dd2a2a0f9db32316144
4
+ data.tar.gz: 6cc20dd48030fe78738eca4b0416d0fcd6519ec4e3899ed7fe1e1e033e5c09c3
5
5
  SHA512:
6
- metadata.gz: 93754d610f6aef77f449f82b9b8645d58fc083da757ab94bc95fc36514e3fd2b491ab5972def68a63d28c07f93db3805c9fc7d4fd7363b3f3e06c26383e342e2
7
- data.tar.gz: 0e7ab3703fe291a10daeb0319de8de402c8bdd3c93122fa8b78a523e8990e658249e5595acbe9cf4ea03eb16054f23528bbb907c64735c574fb81f98a5d88cbc
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)
@@ -1,3 +1,3 @@
1
1
  module Stimulus
2
- VERSION = "1.3.3"
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.3
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.