bootstrap-navbar 3.1.1 → 3.1.2

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: 3445728612483f40949783e8114c602586ae724d5dc87aad2b40ccb206451851
4
- data.tar.gz: 7be996d67556fce1e26cd5ba7c2312e5f4bb94d77bdda23af9ef1380d8d7863b
3
+ metadata.gz: 664b31ec11c5eddd161c8fe611031cd1b37c666ec1e61e49e2ba2fcd479e6a5c
4
+ data.tar.gz: 8a78830ec8d7ac5e6a8f53c55bd9a84ab6ff35087d4556514575ca5dafbbc8be
5
5
  SHA512:
6
- metadata.gz: c6f775024975cbeb5c0cb9de3330cb38d2b47f7fdf89d940a4dc19312d1127068cd98bbe9ca9960fe18c0c3da311035bd6d4e78c79ffaf278d8591d0805495a8
7
- data.tar.gz: 51c165a6e7464b77a44dbe1ab8c8e5f86c1bceac6dde177c5aa8a6e6f8e289dc573ae293031d7b481b463264a5b0d66c266fd72a379e4148fe8e2f32e30f925a
6
+ metadata.gz: e56ee486db7f8aece5742eb7057dddc947786e531579fddfdffe4d81382b8441f2c0b8fd56cb09ac7378dc6eceb290a2078c52c9a4827f8ca9df27848c4324c3
7
+ data.tar.gz: 5bf3af265d451b97eb0e04ec80b89ad362683cbb0690209ca8d7c11d865a2c714e7e975398a41d089ceba9c35cd2dd7bd526255935e35d720bd922cba5cca505
@@ -3,10 +3,14 @@ module BootstrapNavbar::Helpers::Bootstrap4
3
3
  options = options.dup
4
4
  container = options.key?(:container) ? options.delete(:container) : false
5
5
  brand = if options[:brand]
6
+ brand_url = options.delete(:brand_url)
7
+ element, attributes = brand_url == false ? ['span', {}] : ['a', { href: brand_url || '/' }]
8
+ attributes[:class] = 'navbar-brand'
9
+
6
10
  prepare_html <<~HTML
7
- <a href="#{options.delete(:brand_url) || '/'}" class="navbar-brand">
11
+ <#{element}#{attributes_for_tag(attributes)}>
8
12
  #{options.delete(:brand)}
9
- </a>
13
+ </#{element}>
10
14
  HTML
11
15
  end
12
16
  wrapper options do
@@ -1,3 +1,3 @@
1
1
  module BootstrapNavbar
2
- VERSION = '3.1.1'
2
+ VERSION = '3.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-navbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Meurer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-19 00:00:00.000000000 Z
11
+ date: 2020-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake