bullet_train-super_scaffolding 1.3.7 → 1.3.8

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: 83f7d395dd39503cf6e9551007167f92eef28d0d25a385a0c367d19e962d95c7
4
+ data.tar.gz: 3442bab474f818d5699267b561937cc373a89d1c4a604f308f38b19d1aa90f10
5
5
  SHA512:
6
- metadata.gz: 29219565ccb9be7ceec79cd1afeaabd1d0f376e2fc067c42241dd641db767fd00243c9b1273df982cd07e355b6f85d2a13ced68ff71f0d6d0086985d6e7368da
7
- data.tar.gz: 22003776fa591fe523b8d9cd4509012bb1f619baf2014dc8a6bd9af64623c690f119c71dc00ae34ec74e91d7ed6c9dd932f70b0819907b590c9756a8c8a99ca8
6
+ metadata.gz: cf64ab266ab35bc3cb47dffe1e0f547e1b4ad6a4d473cd6c6d14cac3490b742b22e9379dd93f97b33079e8f13f50667f172328058435ba2d5bccdc973bddff8a
7
+ data.tar.gz: 1d91f2b308fc664543b6f804b809e0c6247e76f099e9204ca19deae8abfbe7172ec9caabb6c9c1e1ed3502000b0f8eb5a689428a233accda03a236c04a477845
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.3.7"
3
+ VERSION = "1.3.8"
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.8
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-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard