trix-genius 0.0.8 → 0.0.10
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/lib/generators/trix_genius/install_generator.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2ddb31fb89d2c3c905bfdf4eb9a338e6586246719261a620f7b2d7699532e89
|
4
|
+
data.tar.gz: 13cacd38012d4349942c990a66a95ab92b2523c73102e568b7077bd8cc863b55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2ca48c48b1210fe80ea7f5baf8c0633e0e7d14c1d9f018176996b371dc835271d793e72ca265ef87eae6103f25a842f641eebc350d7985131874cd840be1419
|
7
|
+
data.tar.gz: ee45b0be8956f65df16edb341f100bfa891515aeb5e4b1fa9c4c089e97503b715c0f1658606d7e79b8c354fcd19c3a6831759a3baf2ce58dc286af3cce620d45
|
@@ -17,9 +17,10 @@ module TrixGenius
|
|
17
17
|
js_application_path = "app/javascript/application.js"
|
18
18
|
application_lines = []
|
19
19
|
application_lines << "import \"controllers\""
|
20
|
-
application_lines << "import \"trix\""
|
20
|
+
application_lines << "import \"trix\""
|
21
|
+
application_lines << "import \"@rails/actiontext\""
|
21
22
|
|
22
|
-
if File.
|
23
|
+
if File.exist?(js_application_path)
|
23
24
|
application_file = File.read(js_application_path)
|
24
25
|
update_file application_lines, application_file
|
25
26
|
else
|
@@ -32,7 +33,7 @@ module TrixGenius
|
|
32
33
|
application_controller_lines << "import TrixController from \"controllers/trix-controller\""
|
33
34
|
application_controller_lines << "application.register(\"trix\", TrixController)"
|
34
35
|
|
35
|
-
if File.
|
36
|
+
if File.exist?(js_application_controller_path)
|
36
37
|
application_controller_file = File.read(js_application_controller_path)
|
37
38
|
update_file application_controller_lines, application_controller_file
|
38
39
|
else
|