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 +4 -4
- data/README.md +1 -1
- data/lib/install/app/javascript/controllers/index_for_importmap.js +1 -8
- data/lib/stimulus/version.rb +1 -1
- data/lib/tasks/stimulus_tasks.rake +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73388b59b0405975a85b9e2c627167413e4fba70f6192dd2a2a0f9db32316144
|
4
|
+
data.tar.gz: 6cc20dd48030fe78738eca4b0416d0fcd6519ec4e3899ed7fe1e1e033e5c09c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cd0e5e11da726dd240e6edd651549bc7a84c320576470f9526728c960fb1769c12addcd76643abbc079c7d6683a2a1faa16f864e5b9bf139de7255971513bbc
|
7
|
+
data.tar.gz: 69146705608c0958eaf9950a12061000c604bd9962e58761ce65b554132d0e6147805ba846afadc731a932e4c8b41d76188254d70974c20d13c8924d3e649efe
|
data/README.md
CHANGED
@@ -1,11 +1,4 @@
|
|
1
|
-
// Import and register all your controllers from the importmap
|
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)
|
data/lib/stimulus/version.rb
CHANGED
@@ -4,7 +4,7 @@ module Stimulus
|
|
4
4
|
module Tasks
|
5
5
|
extend self
|
6
6
|
def run_stimulus_install_template(path)
|
7
|
-
system
|
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.
|
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-
|
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.
|
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.
|