bullet_train-super_scaffolding 1.3.6 → 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: bf6b36260afec320e2f735dc6823ed693799fc6eb44ac6de6df0f5f06996e3f4
4
- data.tar.gz: 39aa0099d48304375cc0b2cfb4229d2392b550f7ee2ce21bc356e6a396d17ae4
3
+ metadata.gz: 83f7d395dd39503cf6e9551007167f92eef28d0d25a385a0c367d19e962d95c7
4
+ data.tar.gz: 3442bab474f818d5699267b561937cc373a89d1c4a604f308f38b19d1aa90f10
5
5
  SHA512:
6
- metadata.gz: 642eb5f02fdd34fd2b15fba34a45c77731d2859a0d63bde527fb443ebc25b06bbfcc51c5e7c8ede01688400c74d7cc2c074f552a3b53b68468676ff631192f5d
7
- data.tar.gz: e5f0326621f69e99ebdfff4b53e181790abb65e37e2b5435bed6ccdd1600199b5cd2ac8b55c744e6dcfec52ac41dd6010a0630f6f4595893cbf80f36edb1296c
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.6"
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.6
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