bullet_train-super_scaffolding 1.28.0 → 1.30.0

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: 4977f0f19aed2c3f5de4c10afa11866723ca64513d47c41948f3cb834313998a
4
- data.tar.gz: 72786e0e2591a1b970e1b50fb1245920fe98e29aea7d9759e1d1b7716e2eb218
3
+ metadata.gz: f8cee89effdc4329321ba0709c21cc2ac2af45c15643cf86a15118c73d80e538
4
+ data.tar.gz: 45c046644f762aeb3f64d3e90f9364e653bb47660a5d1486b58e523a5c95d297
5
5
  SHA512:
6
- metadata.gz: 0f3fecb547abf0f81c05e78d53a1c0a88965187da6fec68c246bcdc3d2e9a6979c0478358dc2eb317b34f46974a3fb35384f92e2132c5814d203bd4b9a2d5180
7
- data.tar.gz: ab9a9f7d076542e067bcab7a3a3ae14397c29c78a92ab4b3bd0634962ca840dff4fefe20df7a7555014c785aa7ddc8be8bc24e6abd1c2f06940e5b6b9a6e1c9a
6
+ metadata.gz: ecb369388be2ff1126b6b1193aa4eba0432e1bb0e11616b0c4cb523a3048e3706e9e58cb04fb45ab822f702b18056529d1555cb34b633a0bc0c296eeda946a7b
7
+ data.tar.gz: d1ef2e4c91feb4b769f0d30c744a518579e31d28eca6cde7662a33d4fe0260a4f31b3c3efac5d5a7cbd282780036ac54720b3b9f96563d99f07f6941ba3ce56f
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.28.0"
3
+ VERSION = "1.30.0"
4
4
  end
5
5
  end
@@ -1454,7 +1454,25 @@ class Scaffolding::Transformer
1454
1454
 
1455
1455
  # add sortability.
1456
1456
  if cli_options["sortable"]
1457
- scaffold_replace_line_in_file("./app/views/account/scaffolding/completely_concrete/tangible_things/_index.html.erb", transform_string("<tbody data-controller=\"sortable\" data-sortable-reorder-path-value=\"<%= url_for [:reorder, :account, context, collection] %>\">"), "<tbody>")
1457
+ scaffold_replace_line_in_file(
1458
+ "./app/views/account/scaffolding/completely_concrete/tangible_things/_index.html.erb",
1459
+ transform_string("<tbody data-controller=\"sortable\" data-sortable-reorder-path-value=\"<%= url_for [:reorder, :account, context, collection] %>\">"),
1460
+ "<tbody>"
1461
+ )
1462
+
1463
+ # TODO: Is looking for particular markup valid here, or should we add new hooks to the files?
1464
+ scaffold_add_line_to_file(
1465
+ "./app/views/account/scaffolding/completely_concrete/tangible_things/_index.html.erb",
1466
+ "<th class=\"w-6\"></th>",
1467
+ "<%= render \"shared/tables/select_all\" %>",
1468
+ prepend: true
1469
+ )
1470
+ scaffold_add_line_to_file(
1471
+ "./app/views/account/scaffolding/completely_concrete/tangible_things/_tangible_thing.html.erb",
1472
+ "<td data-sortable-target=\"handle\" class=\"cursor-grab active:cursor-grabbing\"><i class=\"ti ti-menu opacity-25 group-hover:opacity-100\"></i></td>",
1473
+ "<%= render \"shared/tables/checkbox\", object: tangible_thing %>",
1474
+ prepend: true
1475
+ )
1458
1476
 
1459
1477
  unless cli_options["skip-model"]
1460
1478
  scaffold_add_line_to_file("./app/models/scaffolding/completely_concrete/tangible_thing.rb", "def collection\n absolutely_abstract_creative_concept.completely_concrete_tangible_things\nend\n\n", METHODS_HOOK, prepend: true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-super_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
@@ -104,7 +104,6 @@ files:
104
104
  - MIT-LICENSE
105
105
  - README.md
106
106
  - Rakefile
107
- - app/assets/config/bullet_train_super_scaffolding_manifest.js
108
107
  - app/controllers/account/scaffolding/absolutely_abstract/creative_concepts_controller.rb
109
108
  - app/controllers/account/scaffolding/completely_concrete/tangible_things_controller.rb
110
109
  - app/controllers/api.rb