bullet_train-super_scaffolding 1.0.11 → 1.0.14
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/controllers/account/scaffolding/completely_concrete/tangible_things_controller.rb +0 -1
- data/app/controllers/api/v1/scaffolding/completely_concrete/tangible_things_endpoint.rb +0 -1
- data/app/serializers/api/v1/scaffolding/completely_concrete/tangible_thing_serializer.rb +0 -1
- data/app/views/account/scaffolding/completely_concrete/tangible_things/_form.html.erb +0 -1
- data/app/views/account/scaffolding/completely_concrete/tangible_things/_tangible_thing.json.jbuilder +0 -1
- data/app/views/account/scaffolding/completely_concrete/tangible_things/show.html.erb +0 -1
- data/config/locales/en/scaffolding/completely_concrete/tangible_things.en.yml +0 -5
- data/lib/bullet_train/super_scaffolding/engine.rb +5 -2
- data/lib/bullet_train/super_scaffolding/exceptions.rb +2 -0
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- data/lib/bullet_train/super_scaffolding.rb +1 -0
- data/lib/scaffolding/routes_file_manipulator.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7653545746de78868a01ce7718e90382615904726066a0cdb180f1446c540dfb
|
4
|
+
data.tar.gz: f8a0983dc2f0198d09b982fe31e6267b57ef4bf0fb44289c41d432377b87330e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7a4596b301931b49186cc773bdc8644534893be87d349c4a7dd99c33188562e7e5d953d5504b00d963ae4f006aa3733a2f194c3b00c5185720af5e1b1990db3
|
7
|
+
data.tar.gz: 03acef9ffa63ff52cd11e70ef37d5b7d682a632b4b7255c84ec59836269d4f709fc48f49035ef6c7bd254170ee70aa481590b89718d3f55af5d3c971b9b61ae7
|
@@ -22,7 +22,6 @@ class Api::V1::Scaffolding::CompletelyConcrete::TangibleThingsEndpoint < Api::V1
|
|
22
22
|
optional :super_select_value, type: String, allow_blank: true, desc: Api.heading(:super_select_value)
|
23
23
|
optional :text_area_value, type: String, allow_blank: true, desc: Api.heading(:text_area_value)
|
24
24
|
optional :action_text_value, type: String, allow_blank: true, desc: Api.heading(:action_text_value)
|
25
|
-
optional :ckeditor_value, type: String, allow_blank: true, desc: Api.heading(:ckeditor_value)
|
26
25
|
# 🚅 stop any skipping we're doing now.
|
27
26
|
# 🚅 super scaffolding will insert new fields above this line.
|
28
27
|
# 🚅 skip this section when scaffolding.
|
@@ -20,7 +20,6 @@ class Api::V1::Scaffolding::CompletelyConcrete::TangibleThingSerializer < Api::V
|
|
20
20
|
# :multiple_super_select_values,
|
21
21
|
# :text_area_value,
|
22
22
|
# :action_text_value,
|
23
|
-
# :ckeditor_value,
|
24
23
|
# 🚅 stop any skipping we're doing now.
|
25
24
|
# 🚅 super scaffolding will insert new fields above this line.
|
26
25
|
:created_at,
|
@@ -49,7 +49,6 @@
|
|
49
49
|
|
50
50
|
<%= render 'shared/fields/text_area', method: :text_area_value %>
|
51
51
|
<%= render 'shared/fields/trix_editor', method: :action_text_value %>
|
52
|
-
<%= render 'shared/fields/ckeditor', method: :ckeditor_value %>
|
53
52
|
<%# 🚅 stop any skipping we're doing now. %>
|
54
53
|
<%# 🚅 super scaffolding will insert new fields above this line. %>
|
55
54
|
<% end %>
|
@@ -15,7 +15,6 @@
|
|
15
15
|
<%= render 'shared/attributes/boolean', attribute: :boolean_button_value %>
|
16
16
|
<%= render 'shared/attributes/option', attribute: :button_value %>
|
17
17
|
<%= render 'shared/attributes/options', attribute: :multiple_button_values %>
|
18
|
-
<%= render 'shared/attributes/html', attribute: :ckeditor_value %>
|
19
18
|
<%= render 'shared/attributes/text', attribute: :cloudinary_image_value %>
|
20
19
|
<%= render 'shared/attributes/date', attribute: :date_field_value %>
|
21
20
|
<%= render 'shared/attributes/date_and_time', attribute: :date_and_time_field_value %>
|
@@ -141,10 +141,6 @@ en:
|
|
141
141
|
_: &action_text_value Trix Editor Value
|
142
142
|
label: *action_text_value
|
143
143
|
heading: *action_text_value
|
144
|
-
ckeditor_value:
|
145
|
-
_: &ckeditor_value CKEditor Value
|
146
|
-
label: *ckeditor_value
|
147
|
-
heading: *ckeditor_value
|
148
144
|
# 🚅 stop any skipping we're doing now.
|
149
145
|
# 🚅 super scaffolding will insert new fields above this line.
|
150
146
|
created_at:
|
@@ -222,7 +218,6 @@ en:
|
|
222
218
|
super_select_value: *super_select_value
|
223
219
|
text_area_value: *text_area_value
|
224
220
|
action_text_value: *action_text_value
|
225
|
-
ckeditor_value: *ckeditor_value
|
226
221
|
# 🚅 stop any skipping we're doing now.
|
227
222
|
# 🚅 super scaffolding will insert new activerecord attributes above this line.
|
228
223
|
created_at: *created_at
|
@@ -11,14 +11,17 @@ module BulletTrain
|
|
11
11
|
end
|
12
12
|
|
13
13
|
initializer "bullet_train.super_scaffolding.templates.register_api_endpoints" do |app|
|
14
|
-
if BulletTrain::Api
|
14
|
+
if defined?(BulletTrain::Api)
|
15
15
|
BulletTrain::Api.endpoints << "Api::V1::Scaffolding::AbsolutelyAbstract::CreativeConceptsEndpoint"
|
16
16
|
BulletTrain::Api.endpoints << "Api::V1::Scaffolding::CompletelyConcrete::TangibleThingsEndpoint"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
20
|
initializer "bullet_train.super_scaffolding.register" do |app|
|
21
|
-
BulletTrain
|
21
|
+
# Older versions of Bullet Train have a `BulletTrain` module, but it doesn't have `linked_gems`.
|
22
|
+
if BulletTrain.respond_to?(:linked_gems)
|
23
|
+
BulletTrain.linked_gems << "bullet_train-super_scaffolding"
|
24
|
+
end
|
22
25
|
end
|
23
26
|
end
|
24
27
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require "bullet_train/super_scaffolding/version"
|
2
2
|
require "bullet_train/super_scaffolding/engine"
|
3
|
+
require "bullet_train/super_scaffolding/exceptions"
|
3
4
|
require "bullet_train/super_scaffolding/scaffolder"
|
4
5
|
require "bullet_train/super_scaffolding/scaffolders/crud_scaffolder"
|
5
6
|
require "bullet_train/super_scaffolding/scaffolders/crud_field_scaffolder"
|
@@ -270,7 +270,7 @@ class Scaffolding::RoutesFileManipulator
|
|
270
270
|
lines[resource_line_number].gsub!("\n", " do\n")
|
271
271
|
insert_after(["end"], resource_line_number)
|
272
272
|
else
|
273
|
-
raise "the parent resource (`#{parent_resource}`) doesn't appear to exist in `#{@filename}`."
|
273
|
+
raise BulletTrain::SuperScaffolding::CannotFindParentResourceException.new("the parent resource (`#{parent_resource}`) doesn't appear to exist in `#{@filename}`.")
|
274
274
|
end
|
275
275
|
end
|
276
276
|
|
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.14
|
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-
|
11
|
+
date: 2022-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- db/migrate/20210602230736_add_option_fields_to_scaffolding_completely_concrete_tangible_things.rb
|
109
109
|
- lib/bullet_train/super_scaffolding.rb
|
110
110
|
- lib/bullet_train/super_scaffolding/engine.rb
|
111
|
+
- lib/bullet_train/super_scaffolding/exceptions.rb
|
111
112
|
- lib/bullet_train/super_scaffolding/scaffolder.rb
|
112
113
|
- lib/bullet_train/super_scaffolding/scaffolders/crud_field_scaffolder.rb
|
113
114
|
- lib/bullet_train/super_scaffolding/scaffolders/crud_scaffolder.rb
|