bullet_train-super_scaffolding 1.0.35 → 1.0.38
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a36a703d8509e5993686df499797d268e89052936db3e63ed98aeaacf7741c9
|
4
|
+
data.tar.gz: 7063b0438647c5eda64995c73c595c841acc316264e6dd13d1688a4e322ebb13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e725720d304a946448d34222a42c8d2bbe4c781e35fa7cfb345728cba4608a4275067e3a25c80b05edaee47a25f2359faae1940c04b42fd7856d6dc362dd74f
|
7
|
+
data.tar.gz: 512af4dc843dd9da18d5f1a7592b595e100dc01cb2c1e17789d9a5a5c0f0677c1a90d00c66099073820e0697c078b95b2fdda6ff87da338a8e9d81978b91438c
|
@@ -160,6 +160,14 @@ class Scaffolding::ClassNamesTransformer
|
|
160
160
|
parent_in_namespace_class_name.titlecase.pluralize
|
161
161
|
when "Tangible Things"
|
162
162
|
in_namespace_class_name.titlecase.pluralize
|
163
|
+
when "Creative concepts"
|
164
|
+
parent_in_namespace_class_name.titlecase.downcase.capitalize.pluralize
|
165
|
+
when "Tangible things"
|
166
|
+
in_namespace_class_name.titlecase.downcase.capitalize.pluralize
|
167
|
+
when "creative concepts"
|
168
|
+
parent_in_namespace_class_name.titlecase.downcase.pluralize
|
169
|
+
when "tangible things"
|
170
|
+
in_namespace_class_name.titlecase.downcase.pluralize
|
163
171
|
when "creative-concepts"
|
164
172
|
parent_in_namespace_class_name.underscore.gsub(/[\/_]/, "-").pluralize
|
165
173
|
when "tangible-things"
|
@@ -173,6 +181,14 @@ class Scaffolding::ClassNamesTransformer
|
|
173
181
|
parent_in_namespace_class_name.titlecase
|
174
182
|
when "Tangible Thing"
|
175
183
|
in_namespace_class_name.titlecase
|
184
|
+
when "Creative concept"
|
185
|
+
parent_in_namespace_class_name.titlecase.downcase.capitalize
|
186
|
+
when "Tangible thing"
|
187
|
+
in_namespace_class_name.titlecase.downcase.capitalize
|
188
|
+
when "creative concept"
|
189
|
+
parent_in_namespace_class_name.titlecase.downcase
|
190
|
+
when "tangible thing"
|
191
|
+
in_namespace_class_name.titlecase.downcase
|
176
192
|
when "creative-concept"
|
177
193
|
parent_in_namespace_class_name.underscore.gsub(/[\/_]/, "-")
|
178
194
|
when "tangible-thing"
|
@@ -6,6 +6,27 @@ require "scaffolding/class_names_transformer"
|
|
6
6
|
class Scaffolding::Transformer
|
7
7
|
attr_accessor :child, :parent, :parents, :class_names_transformer, :cli_options, :additional_steps, :namespace, :suppress_could_not_find
|
8
8
|
|
9
|
+
def code_for_child_on_parent_show_page
|
10
|
+
end
|
11
|
+
|
12
|
+
def update_models_abstract_class
|
13
|
+
end
|
14
|
+
|
15
|
+
def created_by_reference(created_by_index_name)
|
16
|
+
end
|
17
|
+
|
18
|
+
def approved_by_reference(approved_by_index_name)
|
19
|
+
end
|
20
|
+
|
21
|
+
def has_one_team_replacement
|
22
|
+
end
|
23
|
+
|
24
|
+
def has_one_to_dedupe
|
25
|
+
end
|
26
|
+
|
27
|
+
def update_action_models_abstract_class(targets_n)
|
28
|
+
end
|
29
|
+
|
9
30
|
def initialize(child, parents, cli_options = {})
|
10
31
|
self.child = child
|
11
32
|
self.parent = parents.first
|
@@ -91,6 +112,10 @@ class Scaffolding::Transformer
|
|
91
112
|
"tangible-things",
|
92
113
|
"Creative Concepts",
|
93
114
|
"Tangible Things",
|
115
|
+
"Creative concepts",
|
116
|
+
"Tangible things",
|
117
|
+
"creative concepts",
|
118
|
+
"tangible things",
|
94
119
|
|
95
120
|
# just class name plural.
|
96
121
|
"creative_concept",
|
@@ -99,6 +124,10 @@ class Scaffolding::Transformer
|
|
99
124
|
"tangible-thing",
|
100
125
|
"Creative Concept",
|
101
126
|
"Tangible Thing",
|
127
|
+
"Creative concept",
|
128
|
+
"Tangible thing",
|
129
|
+
"creative concept",
|
130
|
+
"tangible thing",
|
102
131
|
|
103
132
|
# Account namespace vs. others.
|
104
133
|
":account",
|
@@ -625,8 +654,10 @@ class Scaffolding::Transformer
|
|
625
654
|
"text"
|
626
655
|
when "file_field"
|
627
656
|
"file"
|
657
|
+
when "password_field"
|
658
|
+
"string"
|
628
659
|
else
|
629
|
-
raise "Invalid
|
660
|
+
raise "Invalid field type: #{type}."
|
630
661
|
end
|
631
662
|
|
632
663
|
cell_attributes = if boolean_buttons
|
@@ -1289,6 +1320,8 @@ class Scaffolding::Transformer
|
|
1289
1320
|
scaffold_replace_line_in_file("./app/models/scaffolding/completely_concrete/tangible_thing.rb", transform_string("belongs_to :absolutely_abstract_creative_concept, class_name: \"Scaffolding::AbsolutelyAbstract::CreativeConcept\"\n"), transform_string("belongs_to :absolutely_abstract_creative_concept\n"))
|
1290
1321
|
end
|
1291
1322
|
|
1323
|
+
update_models_abstract_class
|
1324
|
+
|
1292
1325
|
# add user permissions.
|
1293
1326
|
add_ability_line_to_roles_yml
|
1294
1327
|
end
|
@@ -1299,7 +1332,12 @@ class Scaffolding::Transformer
|
|
1299
1332
|
|
1300
1333
|
# add children to the show page of their parent.
|
1301
1334
|
unless cli_options["skip-parent"] || parent == "None"
|
1302
|
-
scaffold_add_line_to_file(
|
1335
|
+
scaffold_add_line_to_file(
|
1336
|
+
"./app/views/account/scaffolding/absolutely_abstract/creative_concepts/show.html.erb",
|
1337
|
+
code_for_child_on_parent_show_page || "<%= render 'account/scaffolding/completely_concrete/tangible_things/index', tangible_things: @creative_concept.completely_concrete_tangible_things, hide_back: true %>",
|
1338
|
+
"<%# 🚅 super scaffolding will insert new children above this line. %>",
|
1339
|
+
prepend: true
|
1340
|
+
)
|
1303
1341
|
end
|
1304
1342
|
|
1305
1343
|
unless cli_options["skip-model"]
|
data/lib/scaffolding.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-super_scaffolding
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -178,7 +178,7 @@ licenses:
|
|
178
178
|
metadata:
|
179
179
|
homepage_uri: https://github.com/bullet-train-co/bullet_train-super_scaffolding
|
180
180
|
source_code_uri: https://github.com/bullet-train-co/bullet_train-super_scaffolding
|
181
|
-
post_install_message:
|
181
|
+
post_install_message:
|
182
182
|
rdoc_options: []
|
183
183
|
require_paths:
|
184
184
|
- lib
|
@@ -193,8 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
|
-
rubygems_version: 3.
|
197
|
-
signing_key:
|
196
|
+
rubygems_version: 3.1.6
|
197
|
+
signing_key:
|
198
198
|
specification_version: 4
|
199
199
|
summary: Bullet Train Super Scaffolding
|
200
200
|
test_files: []
|