bullet_train-super_scaffolding 1.0.10 → 1.0.13

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: befdf948a83be89983605eebe89d8d50cb5195de572f972f53a4a678af07fce8
4
- data.tar.gz: 6391715f9efeb97738a9912987a0d4984676721c4b6db3a9708e556cae6031b8
3
+ metadata.gz: 5585041419ffd4159ecd8df3148f4aaa784aed3fa891b599263258afb393857a
4
+ data.tar.gz: c6a202d8ae578be5d347a557fdd2a2ce20443d7cfa17cb803f02f13876c3c76f
5
5
  SHA512:
6
- metadata.gz: 803dd84fea9c1bae1ddc957059394482bdf7b2789048609625aa89056122e6ebe982f622785eaf0ca448fd46f6328bd3e0053ab6d8d7d03511e521886b128844
7
- data.tar.gz: fea78d2105111e9ee26e8657fab3ed881fc22fbf635c01a03db9e4af210ef7f6f8d8d1d319f6e569b1197c297b83d744ba0d134137942336fd18ec3cd1866bf4
6
+ metadata.gz: 2dcbf80601d5967d016ce24d94d6617e65a59767358da4316d045e4867798150414a3d185a9f98521dcf7650987fc063fedf996c63c37c8b95cacb2cc6f21a56
7
+ data.tar.gz: 8b77ecbffa7552a2bc6b880f1b8fe1c405f8826320ae3f48cc1fbaf2096303dac878da31e364c0a45fe4ac8468ba33b53505bf3a9dfffc9077e963bd65f7fd0b
@@ -70,7 +70,6 @@ class Account::Scaffolding::CompletelyConcrete::TangibleThingsController < Accou
70
70
  :boolean_button_value,
71
71
  :button_value,
72
72
  :color_picker_value,
73
- :ckeditor_value,
74
73
  :cloudinary_image_value,
75
74
  :date_field_value,
76
75
  :date_and_time_field_value,
@@ -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 @@ json.extract! tangible_thing,
15
15
  :super_select_value,
16
16
  :text_area_value,
17
17
  :action_text_value,
18
- :ckeditor_value,
19
18
  # 🚅 stop any skipping we're doing now.
20
19
  # 🚅 super scaffolding will insert new fields above this line.
21
20
  :created_at,
@@ -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,11 +11,18 @@ 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
+
20
+ initializer "bullet_train.super_scaffolding.register" do |app|
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
25
+ end
19
26
  end
20
27
  end
21
28
  end
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.0.10"
3
+ VERSION = "1.0.13"
4
4
  end
5
5
  end
@@ -265,6 +265,7 @@ class Scaffolding::RoutesFileManipulator
265
265
 
266
266
  def find_or_convert_resource_block(parent_resource, options = {})
267
267
  unless find_resource_block([parent_resource], options)
268
+ binding.pry
268
269
  if (resource_line_number = find_resource([parent_resource], options))
269
270
  # convert it.
270
271
  lines[resource_line_number].gsub!("\n", " do\n")
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.10
4
+ version: 1.0.13
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-02-16 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails