bullet_train-super_scaffolding 1.6.28 → 1.6.29

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: 5d263c8deaaa07065318df5fbac2b205f62d98ce245a7a18f651d6a67d957716
4
- data.tar.gz: 96675ef652f9583d7d8177bfc32b29459d42518ef72cfc8bc52c180c720bd454
3
+ metadata.gz: fb02e88f12ee2cdfa44d3d0826a9d584e646f652251e4a91fbd9c67d349f03f7
4
+ data.tar.gz: ed7646f2315b22d2661f756da5147ea7423a20f3b06f074c2a1ac0b188dc9415
5
5
  SHA512:
6
- metadata.gz: c83102d9bb1b1a7a807363bc50121923c75a05a14a97e50290326040c5e3095523bdcac3c2d8a77e4ff3e5a66eb651da0ef1138a44e04909234c75a4aa0d3279
7
- data.tar.gz: c46aa1fba24841cfe0a33363c14f5f1a34d82fa19f09efde55eaab51ee913533b2a7fa0ab7e12ae1a7a3e2a4ecf10a50f70b5ad68ceb72970749cbc668cb0983
6
+ metadata.gz: 6574a89f3a561f690eb68af1048ab7c1a62f9b46e7c9d073d7e25733c71f2d71f5c7734f2b306a04de76cb9c90be0a4cccbfd3710de99e8db650ae86417199f4
7
+ data.tar.gz: 21adfe3bf3cb602c1c25564be1cc973b93efb628311f5b10e7772eabe5bcda701037aecbe9c846f39ff670e36586367864a933205fd55284f13e7e322bee4c63
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.6.28"
3
+ VERSION = "1.6.29"
4
4
  end
5
5
  end
@@ -13,3 +13,24 @@ Example:
13
13
  config/locales/en/projects.en.yml
14
14
  app/controllers/account/projects_controller.rb
15
15
  app/controllers/api/v1/projects_controller.rb
16
+
17
+ Field Partial Types:
18
+ address_field: nil
19
+ boolean: boolean
20
+ buttons: string
21
+ cloudinary_image: string
22
+ color_picker: string
23
+ date_and_time_field: datetime
24
+ date_field: date
25
+ email_field: string
26
+ emoji_field: string
27
+ file_field: attachment
28
+ image: attachment
29
+ options: string
30
+ password_field: string
31
+ phone_field: string
32
+ super_select: string
33
+ text_area: text
34
+ text_field: string
35
+ number_field: integer
36
+ trix_editor: text
@@ -45,11 +45,6 @@ ARGV.each do |arg|
45
45
  end
46
46
  end
47
47
 
48
- def standard_protip
49
- puts "🏆 Protip: Commit your other changes before running Super Scaffolding so it's easy to undo if you (or we) make any mistakes."
50
- puts "If you do that, you can reset to your last commit state by using `git checkout .` and `git clean -d -f` ."
51
- end
52
-
53
48
  def get_untracked_files
54
49
  `git ls-files --other --exclude-standard`.split("\n")
55
50
  end
@@ -208,58 +203,10 @@ def check_required_options_for_attributes(scaffolding_type, attributes, child, p
208
203
  end
209
204
  end
210
205
 
211
- def show_usage
212
- puts ""
213
- puts "🚅 usage: bin/super-scaffold [type] (... | --help | --field-partials)"
214
- puts ""
215
- puts "Supported types of scaffolding:"
216
- puts ""
217
- BulletTrain::SuperScaffolding.scaffolders.each do |key, _|
218
- puts " #{key}"
219
- end
220
- puts ""
221
- puts "Try `bin/super-scaffold [type]` for usage examples.".blue
222
- puts ""
223
- end
224
-
225
206
  # grab the _type_ of scaffold we're doing.
226
207
  scaffolding_type = argv.shift
227
208
 
228
209
  if BulletTrain::SuperScaffolding.scaffolders.include?(scaffolding_type)
229
210
  scaffolder = BulletTrain::SuperScaffolding.scaffolders[scaffolding_type].constantize
230
211
  scaffolder.new(argv, @options).run
231
- elsif argv.empty? || !BulletTrain::SuperScaffolding.scaffolders.include?(scaffolding_type)
232
- show_usage
233
- elsif argv.count > 1
234
- puts ""
235
- puts "👋"
236
- puts "The command line options for Super Scaffolding have changed slightly:".yellow
237
- puts "To use the original Super Scaffolding that you know and love, use the `crud` option.".yellow
238
-
239
- show_usage
240
- elsif ARGV.first.present?
241
- case ARGV.first
242
- when "--field-partials"
243
- puts "Bullet Train uses the following field partials for Super Scaffolding".blue
244
- puts ""
245
-
246
- max_name_length = 0
247
- FIELD_PARTIALS.each do |key, value|
248
- if key.to_s.length > max_name_length
249
- max_name_length = key.to_s.length
250
- end
251
- end
252
-
253
- printf "\t%#{max_name_length}s:Data Type\n".bold, "Field Partial Name"
254
- FIELD_PARTIALS.each { |key, value| printf "\t%#{max_name_length}s:#{value}\n", key }
255
-
256
- puts ""
257
- puts "For more details, check out the documentation:"
258
- puts "https://bullettrain.co/docs/field-partials"
259
- when "--help"
260
- show_usage
261
- else
262
- puts "Invalid scaffolding type \"#{ARGV.first}\".".red
263
- show_usage
264
- end
265
212
  end
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.6.28
4
+ version: 1.6.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-22 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard