bullet_train-super_scaffolding 1.0.20 → 1.0.23

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: a99ab79b243d73afc5fad26003dfd8fec704b86494417bf1fe714edc19c5386e
4
- data.tar.gz: e6b2da40c5450302bc41446ce68ec07b44f9f92d36b7df7e99b5c0e230a00046
3
+ metadata.gz: 70ece838f74f54649206711a4b47490b7b964a0f46a88b011f825991394b2b62
4
+ data.tar.gz: 340950b5e4178927adcb07af2a8c66c4cafefb12f6d19d4c2c325553ec2dfe50
5
5
  SHA512:
6
- metadata.gz: b1938ac92de1c33f3a100da37dd8916c8f1c33740e10dd9dcc698c4554443e1a935720bc064b057b56b3fd9d3a57387cfc7a4e79c8535189cc2ebcf9461a291f
7
- data.tar.gz: '09c7548dfcd53b9bb8e69728acac5bd1f442d82456e3b4817c71f5b11fa55e72e6d3a2f4c9bb717ce935eb7a4cf5170c082f91f41261be35266d849451219b90'
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
- <%= raw t(".contexts.#{context.class.name.underscore}.#{creative_concepts.any? ? 'description' : 'description_empty'}") %>
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/html', attribute: :description %>
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("]").first
42
- secondary_parent = argv[2].split("class_name=").last.split(",").first.split("]").first
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]]
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.0.20"
3
+ VERSION = "1.0.23"
4
4
  end
5
5
  end
@@ -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(/(\[)(.*)(\])/, '\[\2\]')}" : ""}(,?\s.*)? do(\s.*)?$/, parts, within)
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(/(\[)(.*)(\])/, '\[\2\]')}" : ""}(,?\s.*)?$/
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
 
@@ -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(/^(.*)\[(.*)\]/).first || type
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.20
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-24 00:00:00.000000000 Z
11
+ date: 2022-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails