bullet_train-super_scaffolding 1.0.20 → 1.0.23
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/app/views/account/scaffolding/absolutely_abstract/creative_concepts/_index.html.erb +1 -1
- data/app/views/account/scaffolding/absolutely_abstract/creative_concepts/show.html.erb +1 -1
- data/lib/bullet_train/super_scaffolding/scaffolders/join_model_scaffolder.rb +2 -2
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- data/lib/scaffolding/routes_file_manipulator.rb +2 -2
- data/lib/scaffolding/script.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70ece838f74f54649206711a4b47490b7b964a0f46a88b011f825991394b2b62
|
4
|
+
data.tar.gz: 340950b5e4178927adcb07af2a8c66c4cafefb12f6d19d4c2c325553ec2dfe50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8cb9655bb6ec31eda2d3f3a4b8cd06a888e40b840ac4f49757f980b645188dbf8f29f5e8f7e748fa64eaf55cc3b89af94ba5ff75407eb5b52628f461c9b0fa8
|
7
|
+
data.tar.gz: 6f7cc7408eacecdcb81038d582fafec8b8085ce42929ce21c5976f53cff277d3506754f16c9a13eddc41f76b45bb7f2daa9f82c3a10ee4b0568ba5ca9213ce2b
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<%= render 'account/shared/box' do |p| %>
|
7
7
|
<% p.content_for :title, t(".contexts.#{context.class.name.underscore}.header") %>
|
8
8
|
<% p.content_for :description do %>
|
9
|
-
<%=
|
9
|
+
<%= t(".contexts.#{context.class.name.underscore}.#{creative_concepts.any? ? 'description' : 'description_empty'}") %>
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<% if creative_concepts.any? %>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<% p.content_for :body do %>
|
9
9
|
<% with_attribute_settings object: @creative_concept, strategy: :label do %>
|
10
10
|
<%= render 'shared/attributes/text', attribute: :name %>
|
11
|
-
<%= render 'shared/attributes/
|
11
|
+
<%= render 'shared/attributes/text', attribute: :description %>
|
12
12
|
<%# 🚅 super scaffolding will insert new fields above this line. %>
|
13
13
|
|
14
14
|
<div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-3">
|
@@ -38,8 +38,8 @@ module BulletTrain
|
|
38
38
|
end
|
39
39
|
|
40
40
|
child = argv[0]
|
41
|
-
primary_parent = argv[1].split("class_name=").last.split(",").first.split("
|
42
|
-
secondary_parent = argv[2].split("class_name=").last.split(",").first.split("
|
41
|
+
primary_parent = argv[1].split("class_name=").last.split(",").first.split("}").first
|
42
|
+
secondary_parent = argv[2].split("class_name=").last.split(",").first.split("}").first
|
43
43
|
|
44
44
|
# There should only be two attributes.
|
45
45
|
attributes = [argv[1], argv[2]]
|
@@ -194,13 +194,13 @@ class Scaffolding::RoutesFileManipulator
|
|
194
194
|
parts = parts.dup
|
195
195
|
resource = parts.pop
|
196
196
|
# TODO this doesn't take into account any options like we do in `find_resource`.
|
197
|
-
find_in_namespace(/resources :#{resource}#{options[:options] ? ", #{options[:options].gsub(/(
|
197
|
+
find_in_namespace(/resources :#{resource}#{options[:options] ? ", #{options[:options].gsub(/({)(.*)(})/, '{\2}')}" : ""}(,?\s.*)? do(\s.*)?$/, parts, within)
|
198
198
|
end
|
199
199
|
|
200
200
|
def find_resource(parts, options = {})
|
201
201
|
parts = parts.dup
|
202
202
|
resource = parts.pop
|
203
|
-
needle = /resources :#{resource}#{options[:options] ? ", #{options[:options].gsub(/(
|
203
|
+
needle = /resources :#{resource}#{options[:options] ? ", #{options[:options].gsub(/({)(.*)(})/, '{\2}')}" : ""}(,?\s.*)?$/
|
204
204
|
find_in_namespace(needle, parts, options[:within], options[:ignore])
|
205
205
|
end
|
206
206
|
|
data/lib/scaffolding/script.rb
CHANGED
@@ -36,7 +36,7 @@ def check_required_options_for_attributes(scaffolding_type, attributes, child, p
|
|
36
36
|
type = parts.join(":")
|
37
37
|
|
38
38
|
# extract any options they passed in with the field.
|
39
|
-
type, attribute_options = type.scan(/^(.*)
|
39
|
+
type, attribute_options = type.scan(/^(.*){(.*)}/).first || type
|
40
40
|
|
41
41
|
# create a hash of the options.
|
42
42
|
attribute_options = if attribute_options
|
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.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|