bullet_train-super_scaffolding 1.0.36 → 1.0.37
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: 1ca43f2f490c937c87fcc1493b3e194d56f2e39bccd57e01ba7eda9bbaa230fa
|
4
|
+
data.tar.gz: f027670522cf4faf29a93bf237874ccffcee91f88fece103522ec2e0c0e21508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27dba84c5f1fa859f612c33897b747eb5cdcb850d6774dd1a95846c7f7dcf646630d8e8093e023e3084342cc864f2a58a669605147de16fa02fde8b74fcf2cdc
|
7
|
+
data.tar.gz: 647922cfdf4696130bf23c1fe15544792ca257cc358acd98baa1f2932f09521d3457ba429fb3c8ff2e6b3a9a3f9d1e53c754b1b92d0f708ee37d6012da49a10f
|
@@ -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,12 @@ 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
|
+
|
9
15
|
def initialize(child, parents, cli_options = {})
|
10
16
|
self.child = child
|
11
17
|
self.parent = parents.first
|
@@ -91,6 +97,10 @@ class Scaffolding::Transformer
|
|
91
97
|
"tangible-things",
|
92
98
|
"Creative Concepts",
|
93
99
|
"Tangible Things",
|
100
|
+
"Creative concepts",
|
101
|
+
"Tangible things",
|
102
|
+
"creative concepts",
|
103
|
+
"tangible things",
|
94
104
|
|
95
105
|
# just class name plural.
|
96
106
|
"creative_concept",
|
@@ -99,6 +109,10 @@ class Scaffolding::Transformer
|
|
99
109
|
"tangible-thing",
|
100
110
|
"Creative Concept",
|
101
111
|
"Tangible Thing",
|
112
|
+
"Creative concept",
|
113
|
+
"Tangible thing",
|
114
|
+
"creative concept",
|
115
|
+
"tangible thing",
|
102
116
|
|
103
117
|
# Account namespace vs. others.
|
104
118
|
":account",
|
@@ -1291,6 +1305,8 @@ class Scaffolding::Transformer
|
|
1291
1305
|
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"))
|
1292
1306
|
end
|
1293
1307
|
|
1308
|
+
update_models_abstract_class
|
1309
|
+
|
1294
1310
|
# add user permissions.
|
1295
1311
|
add_ability_line_to_roles_yml
|
1296
1312
|
end
|
@@ -1301,7 +1317,12 @@ class Scaffolding::Transformer
|
|
1301
1317
|
|
1302
1318
|
# add children to the show page of their parent.
|
1303
1319
|
unless cli_options["skip-parent"] || parent == "None"
|
1304
|
-
scaffold_add_line_to_file(
|
1320
|
+
scaffold_add_line_to_file(
|
1321
|
+
"./app/views/account/scaffolding/absolutely_abstract/creative_concepts/show.html.erb",
|
1322
|
+
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 %>",
|
1323
|
+
"<%# 🚅 super scaffolding will insert new children above this line. %>",
|
1324
|
+
prepend: true
|
1325
|
+
)
|
1305
1326
|
end
|
1306
1327
|
|
1307
1328
|
unless cli_options["skip-model"]
|
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.37
|
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-15 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: []
|