trix-genius 0.0.6 → 0.0.8

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: 69aab70216630eae6d36245864533c5e84ff68be1259f5e85b8c4ffd41d6174a
4
- data.tar.gz: 4909e2ccf1bf89d944f4d9d36b48c783cdf23639f1f11ce3eee09f9b9d4581cc
3
+ metadata.gz: d006bd37517426d61673324d04b661125babdc8d501437aaa094da28b6e42d99
4
+ data.tar.gz: ef0cf9b0a7336082c31d68d52df51d4bc4fee1552c45de588fe7de908fdb15d0
5
5
  SHA512:
6
- metadata.gz: 145251d38e443f44c2b54527e9749edc10091ec3286a3b9b10fa26a5a8244862c31b874702ee0bdf2084a36c38f44b219f6b0fa155fdf8cd3db9bd1d77637111
7
- data.tar.gz: 171d51e1c8cbea5e2b9ca5f53a27c2b7e65880b8858be34beed6c165d032a02496758f1c41343f15778f38e64d1851a3db7552e68ee2fc5c1db69b2129d99aae
6
+ metadata.gz: 449e3747ce3c97a00b967e0abb0380441b60c07c5e3ac7d6954f569179b2ea3bfdf4f6b153068a7e5fbb8b90021e9e062da079e6bbeef1111b69a39daa89b8b0
7
+ data.tar.gz: 22accf18c4ec5ec0432fe8f163286728f31b141a5e2fb12db59210b692a535a0c1270960af6721151aedb5b6b1aaf287d6c7c3c25f4bbc662742055e42652dfd
@@ -15,7 +15,9 @@ module TrixGenius
15
15
 
16
16
  def add_import_to_application_js
17
17
  js_application_path = "app/javascript/application.js"
18
- application_lines = ["import \"controllers\"", "import \"trix\"", "import \"@rails/actiontext\""]
18
+ application_lines = []
19
+ application_lines << "import \"controllers\""
20
+ application_lines << "import \"trix\"", "import \"@rails/actiontext\""
19
21
 
20
22
  if File.exists?(js_application_path)
21
23
  application_file = File.read(js_application_path)
@@ -24,9 +26,11 @@ module TrixGenius
24
26
  say_status("error", "Could not find #{js_application_path}", :red)
25
27
  end
26
28
 
27
-
28
29
  js_application_controller_path ="app/javascript/controllers/application.js"
29
- application_controller_lines = ["import TrixController from \"controllers/trix-controller"\", "application.register(\"trix\", TrixController)"]
30
+
31
+ application_controller_lines = []
32
+ application_controller_lines << "import TrixController from \"controllers/trix-controller\""
33
+ application_controller_lines << "application.register(\"trix\", TrixController)"
30
34
 
31
35
  if File.exists?(js_application_controller_path)
32
36
  application_controller_file = File.read(js_application_controller_path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trix-genius
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giménez Silva Germán Alberto https://rubystacknews.com/
@@ -13,16 +13,22 @@ dependencies:
13
13
  name: rails
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
17
  - !ruby/object:Gem::Version
18
18
  version: '6.0'
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '9.0'
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
22
25
  requirements:
23
- - - "~>"
26
+ - - ">="
24
27
  - !ruby/object:Gem::Version
25
28
  version: '6.0'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '9.0'
26
32
  - !ruby/object:Gem::Dependency
27
33
  name: stimulus-rails
28
34
  requirement: !ruby/object:Gem::Requirement