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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5f51c97b602da2ffe25109fc4229e2980839134de4602912fcda7de9993331a
|
|
4
|
+
data.tar.gz: 16897e82b71726d0b84e33b1f3b7fdb00387408f892180d7e529aa48ce53b177
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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(
|
|
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(
|
|
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
|