stimulus-rails 1.3.0 → 1.3.1
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 +4 -4
- data/README.md +2 -2
- data/lib/install/stimulus_with_importmap.rb +4 -4
- data/lib/stimulus/manifest.rb +3 -1
- data/lib/stimulus/version.rb +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: 69b084be3551f786f8c2a0cb0c6cd0f098e5c2064e81f0a9de90ff700cce6e3d
|
4
|
+
data.tar.gz: c1a0c4e89b409e57cef7cd3e717c3c1c3ad53ba1576e23a2e36d1b9e2ae0b39a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 640d28e1cd8348e222f2e04b73048ec337752304b1cd70d9dea29a9e6f9818b3ee4821ba32da6bdce07a4147150673e56954adabc86f1360dc8bdc8590102ddf
|
7
|
+
data.tar.gz: 8547fe5f060ecbe8d9a2235154f83285aa02b5ffabf2e69f93c5a9b9fde386f1759051fc67f400002e35d74e1dc0b804b9d3b6d0489de320ffbba955e140768f
|
data/README.md
CHANGED
@@ -57,8 +57,8 @@ import "controllers"
|
|
57
57
|
|
58
58
|
6. Finally, Pin Stimulus and controllers in `config/importmap.rb` by adding:
|
59
59
|
```ruby
|
60
|
-
pin "@hotwired/stimulus", to: "stimulus.min.js"
|
61
|
-
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
60
|
+
pin "@hotwired/stimulus", to: "stimulus.min.js"
|
61
|
+
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
62
62
|
pin_all_from "app/javascript/controllers", under: "controllers"
|
63
63
|
|
64
64
|
```
|
@@ -11,11 +11,11 @@ say "Import Stimulus controllers"
|
|
11
11
|
append_to_file "app/javascript/application.js", %(import "controllers"\n)
|
12
12
|
|
13
13
|
say "Pin Stimulus"
|
14
|
-
say %(Appending: pin "@hotwired/stimulus", to: "stimulus.min.js"
|
15
|
-
append_to_file "config/importmap.rb", %(pin "@hotwired/stimulus", to: "stimulus.min.js"
|
14
|
+
say %(Appending: pin "@hotwired/stimulus", to: "stimulus.min.js"")
|
15
|
+
append_to_file "config/importmap.rb", %(pin "@hotwired/stimulus", to: "stimulus.min.js"\n)
|
16
16
|
|
17
|
-
say %(Appending: pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
18
|
-
append_to_file "config/importmap.rb", %(pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"
|
17
|
+
say %(Appending: pin "@hotwired/stimulus-loading", to: "stimulus-loading.js")
|
18
|
+
append_to_file "config/importmap.rb", %(pin "@hotwired/stimulus-loading", to: "stimulus-loading.js"\n)
|
19
19
|
|
20
20
|
say "Pin all controllers"
|
21
21
|
say %(Appending: pin_all_from "app/javascript/controllers", under: "controllers")
|
data/lib/stimulus/manifest.rb
CHANGED
@@ -2,9 +2,11 @@ module Stimulus::Manifest
|
|
2
2
|
extend self
|
3
3
|
|
4
4
|
def generate_from(controllers_path)
|
5
|
-
extract_controllers_from(controllers_path).collect do |controller_path|
|
5
|
+
manifest = extract_controllers_from(controllers_path).collect do |controller_path|
|
6
6
|
import_and_register_controller(controllers_path, controller_path)
|
7
7
|
end
|
8
|
+
|
9
|
+
manifest.uniq
|
8
10
|
end
|
9
11
|
|
10
12
|
def import_and_register_controller(controllers_path, controller_path)
|
data/lib/stimulus/version.rb
CHANGED
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.1
|
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:
|
13
|
+
date: 2024-01-03 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.
|
80
|
+
rubygems_version: 3.4.14
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: A modest JavaScript framework for the HTML you already have.
|