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 +4 -4
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- data/lib/scaffolding/transformer.rb +13 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a71f80cda28aef22300dd8b91a72cc85a9196040c8e731419963aa83c41df4d
|
4
|
+
data.tar.gz: e8a0c34167286b93dc840dcb464b7f284cfb298f26305a0356a91980650a4a19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8551639f4a76f437ceab94de9e488460c55c586eeecf822ea62132bb3c0db46b1e039810b8821291c00db2b3881c3fa20b43ed68dcd1e28e44808dc151aa5d3
|
7
|
+
data.tar.gz: f69bbc85e9a6e17c587edd6755101ec8abf1a8755cbdd7e9b74d9344c03448112c84356d417b5a4fa886479d4e203974f9f4f4af9cdf6dac6c04375b372f46cc
|
@@ -1602,14 +1602,24 @@ class Scaffolding::Transformer
|
|
1602
1602
|
|
1603
1603
|
if top_level_model?
|
1604
1604
|
icon_name = nil
|
1605
|
-
if cli_options["
|
1606
|
-
icon_name = cli_options["
|
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
|
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.
|
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-
|
11
|
+
date: 2023-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|