bullet_train-super_scaffolding 1.3.7 → 1.3.9

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: dc0266c5deb2c7f6439fc85cce19b17d0fbe329544491fb277ee0645a1123bef
4
- data.tar.gz: 2d471661b9acfcd1e60d705df2f79f13b0d1d613df29a33d4b56d30a4382d1b4
3
+ metadata.gz: 9a71f80cda28aef22300dd8b91a72cc85a9196040c8e731419963aa83c41df4d
4
+ data.tar.gz: e8a0c34167286b93dc840dcb464b7f284cfb298f26305a0356a91980650a4a19
5
5
  SHA512:
6
- metadata.gz: 29219565ccb9be7ceec79cd1afeaabd1d0f376e2fc067c42241dd641db767fd00243c9b1273df982cd07e355b6f85d2a13ced68ff71f0d6d0086985d6e7368da
7
- data.tar.gz: 22003776fa591fe523b8d9cd4509012bb1f619baf2014dc8a6bd9af64623c690f119c71dc00ae34ec74e91d7ed6c9dd932f70b0819907b590c9756a8c8a99ca8
6
+ metadata.gz: c8551639f4a76f437ceab94de9e488460c55c586eeecf822ea62132bb3c0db46b1e039810b8821291c00db2b3881c3fa20b43ed68dcd1e28e44808dc151aa5d3
7
+ data.tar.gz: f69bbc85e9a6e17c587edd6755101ec8abf1a8755cbdd7e9b74d9344c03448112c84356d417b5a4fa886479d4e203974f9f4f4af9cdf6dac6c04375b372f46cc
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.3.7"
3
+ VERSION = "1.3.9"
4
4
  end
5
5
  end
@@ -1602,14 +1602,24 @@ class Scaffolding::Transformer
1602
1602
 
1603
1603
  if top_level_model?
1604
1604
  icon_name = nil
1605
- if cli_options["sidebar"].present?
1606
- icon_name = cli_options["sidebar"]
1605
+ if cli_options["navbar"].present?
1606
+ icon_name = if cli_options["navbar"].match?(/^ti/)
1607
+ "ti #{cli_options["navbar"]}"
1608
+ elsif cli_options["navbar"].match?(/^fa/)
1609
+ "fal #{cli_options["navbar"]}"
1610
+ else
1611
+ puts ""
1612
+ puts "'#{cli_options["navbar"]}' is not a valid icon.".red
1613
+ puts "Please refer to the Themify or Font Awesome documentation and pass the value like so:"
1614
+ puts "--navbar=\"ti-world\""
1615
+ exit
1616
+ end
1607
1617
  else
1608
1618
  puts ""
1609
1619
  # TODO: Update this help text letting developers know they can Super Scaffold
1610
1620
  # models without a parent after the `--skip-parent` logic is implemented.
1611
1621
  puts "Hey, models that are scoped directly off of a Team are eligible to be added to the navbar."
1612
- puts "Do you want to add this resource to the sidebar menu? (y/N)"
1622
+ puts "Do you want to add this resource to the navbar menu? (y/N)"
1613
1623
  response = $stdin.gets.chomp
1614
1624
  if response.downcase[0] == "y"
1615
1625
  puts ""
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.3.7
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-17 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard