stimulus-rails 1.0.3 → 1.0.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: 79e7cd48f25a99d585cf5a257256a1d52d26d131e7cdb7a7de81135752e19ca3
4
- data.tar.gz: bead4bdbef70c56d7343755884185eb399d93b0718f37b9988163a74aad9fe81
3
+ metadata.gz: 0ffd052c8f30205c21d994289dc5f4938f7926db658ac93a9e6264f1ff63810f
4
+ data.tar.gz: bafd756e667681009804b4387a04674d8af0b8a868873978f17bfea2759196de
5
5
  SHA512:
6
- metadata.gz: 83eb18cb343693c7535aa193fe16251b69a29196225c019672404ea02a45280296f6d5c2c163923e5fee4611ea12493d48040a9b1872f00d89cc0955e9677970
7
- data.tar.gz: 4056db548e949647e7a7d66ba5e8759bb8e0a17f74f2fb4e8e23ddbb41d6d8eab5e729e430a07351554d893c756cc07cf0e15b71d236afb0bc0e23838f8b67df
6
+ metadata.gz: 9fb58d85d883bd881b1ad7a9d1478a98f57d26b41f9c844d27ffebe6020f0f7d578952e401e8057ab5555b69df63def79f8900f4b54b6115c83f25afb5080fa3
7
+ data.tar.gz: 386899154a67d5e79c9ca964757ba40d387367ce65309cbb704d1075d898d095f748478198eb30918af3783b9a7a6938e697b75f8bcf3f20bd014146d753f7d3
@@ -78,6 +78,8 @@ function controllerFilename(name, under) {
78
78
  }
79
79
 
80
80
  function registerController(name, module, application) {
81
- application.register(name, module.default)
82
- registeredControllers[name] = true
81
+ if (!(name in registeredControllers)) {
82
+ application.register(name, module.default)
83
+ registeredControllers[name] = true
84
+ }
83
85
  }
@@ -1,3 +1,3 @@
1
1
  module Stimulus
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
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.0.3
4
+ version: 1.0.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: 2022-02-19 00:00:00.000000000 Z
13
+ date: 2022-02-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties