stimulus-rails 0.4.0 → 0.4.1

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: aa026a69205d5d12a6f7dfe43892b6e832ac6d7331cb87fab2e1ae6ea6fd3a1f
4
- data.tar.gz: 0b4534ef0afb61a881a8e702b6ccb61e8c24fddff649992269f2b7348546a412
3
+ metadata.gz: 3658754f53d1cec9d1cd7fa3296712e68ec6707e8f0688e3024a9b69954aaf3a
4
+ data.tar.gz: 289338078bfe2df5c3b8f6ddd8d5315d498b329fadd551d96f1e928555caf644
5
5
  SHA512:
6
- metadata.gz: 4512fadf940a7893da2ac9b906f6591a2829bca71f957d46693c5e1085480c9088877c70adb4c72e10b93a8c6f995d8525441bfcbb29677d1f47dea9e539dbfc
7
- data.tar.gz: 3ba7838345956e406dc51183365e05f78e0b92b7102debb74b17a702d5e82b24e2173861f899704532ab0ab1fc06d0312e82f6969734f687d9b6a0186e2cbc0d
6
+ metadata.gz: bf15c39c9e961d069748a0ffbe22d23382ce926973753b73a38ee084bc98b4332888690d39ab60f1ce479e8963c437ca6cbe610b5686cc9b4df2c5f855073906
7
+ data.tar.gz: b9d374fcfc36a1372aafd653ec1837265b864a08ccef95651b4a93059073b9a99b536d92e8c8298eb34793395dbdaa9d21ba866454401c7fb26f1bc787da4714
@@ -8,5 +8,4 @@ application.debug = false
8
8
  window.Stimulus = application
9
9
 
10
10
  // Import and register all your controllers
11
- import HelloController from "./hello_controller"
12
- application.register("hello", HelloController)
11
+ import("./hello_controller").then(c => application.register("hello", c.default))
@@ -6,7 +6,7 @@ copy_file "#{__dir__}/app/javascript/controllers/hello_controller.js",
6
6
  "app/javascript/controllers/hello_controller.js"
7
7
 
8
8
  say "Import Stimulus controllers"
9
- append_to_file "app/javascript/application.js", %(import "./controllers"\n)
9
+ append_to_file "app/javascript/application.js", %(import "controllers"\n)
10
10
 
11
11
  say "Pin Stimulus"
12
12
  append_to_file "config/importmap.rb" do <<-RUBY
@@ -1,3 +1,3 @@
1
1
  module Stimulus
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
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: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stephenson