phlex-stimulus 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8b9c452165c2b08a52c6685507e9c1f94b22005458554346556e46a33998135
4
- data.tar.gz: 68a407b65227a84bca594379893193e45ac26f6801d19549e6de9b0813295d5d
3
+ metadata.gz: d5f51c97b602da2ffe25109fc4229e2980839134de4602912fcda7de9993331a
4
+ data.tar.gz: 16897e82b71726d0b84e33b1f3b7fdb00387408f892180d7e529aa48ce53b177
5
5
  SHA512:
6
- metadata.gz: 0c2f73b22f3dc37438baec632612c45bafb250f1269257c1d0b91913637d55956f122b85c6c92a50cea8b23b6b1b903624ee2dca9eb0cf3569541f0a259de210
7
- data.tar.gz: a9db4932ae974c748b8eab8f8935ed4e591f6f974b9c2f19e0edadf85fe542d79d5547b62db8dd69ccd78e99d0b05b7fdf1a4ff24103fc69126b325ade3189e4
6
+ metadata.gz: 304b3c3b6a8a9160a5e873864621cfa6a9f6047bd1808e93a595eb9f5a47a86fecde535b060278cdbaae49c546d24bc79dadba3ec1f3038920f4592b26e92fbe
7
+ data.tar.gz: b815213393ae0d157571a6fe46fc081386bd657bfa71a4f93afc369b9bc1d1b65f25c404d67d8ed17ad24a66fbae9294bc849527742dbd9508c411b7f5ee7717
data/CHANGELOG.md CHANGED
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  Add changes in new features here. Do not change the gem's version in pull/merge requests.
11
11
 
12
+ ## [0.1.2] - 27.07.2026
13
+
14
+ [Diff](https://github.com/espago/phlex-stimulus/compare/v0.1.1...v0.1.2)
15
+
16
+ - Fix controller generators
17
+
12
18
  ## [0.1.1] - 27.07.2026
13
19
 
14
20
  [Diff](https://github.com/espago/phlex-stimulus/compare/v0.1.0...v0.1.1)
@@ -12,13 +12,26 @@ module Phlex::Stimulus::Generators
12
12
  #: -> void
13
13
  def create_files
14
14
  template 'controller.ts.erb',
15
- File.join(destination_root, 'app', 'javascript', 'controllers', class_path, "#{file_name}_controller.ts")
15
+ File.join(
16
+ destination_root,
17
+ 'app',
18
+ 'javascript',
19
+ 'controllers',
20
+ *class_path,
21
+ "#{file_name}_controller.ts",
22
+ )
16
23
 
17
24
  template 'component.rb.erb',
18
- File.join(destination_root, 'app', 'components', class_path, "#{file_name}_controller.rb")
25
+ File.join(
26
+ destination_root,
27
+ 'app',
28
+ 'components',
29
+ *class_path,
30
+ "#{file_name}_controller.rb",
31
+ )
19
32
 
20
33
  append_to_file File.join(destination_root, 'app', 'javascript', 'controllers', 'index.ts'),
21
- "import \"./#{class_path}/#{file_name}_controller\"\n"
34
+ "import \"./#{File.join(*class_path)}/#{file_name}_controller\"\n"
22
35
  end
23
36
 
24
37
  private
@@ -1,4 +1,5 @@
1
1
  // import all your controllers here
2
+ import "./chain_controller"
2
3
  import "./log_controller"
3
4
  import "./sleep_controller"
4
5
  import "./classlist_controller"
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Phlex
5
5
  module Stimulus
6
- VERSION = '0.1.1'
6
+ VERSION = '0.1.2'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlex-stimulus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Espago