bootstrap-navbar 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/CHANGELOG.md +4 -0
- data/lib/bootstrap-navbar/helpers.rb +1 -1
- data/lib/bootstrap-navbar/version.rb +1 -1
- data/spec/bootstrap-navbar/helpers/bootstrap3_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c9f93f5a5300001b57747d47ced1923f28ddd01
|
4
|
+
data.tar.gz: 8d733218317b42eb780f67b6c3503bc87c1f99a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8b71ffaae818d27d5668eefe73b8e7e478f3e3863fa7b4bf3e1364a2efcb3215cb4938cf633ed86e393f816d5fb63df5c5027414741efc59fe91f6361ebffe
|
7
|
+
data.tar.gz: 34e4dea3089899cdc6fbe1c4ebf61df509f4690e5680247feccc6991365f33b43c1c21f549c92418c3ef9f21f872a6fbe477a97b45d0df8ac7b90b8e570456e6
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -26,7 +26,7 @@ module BootstrapNavbar::Helpers
|
|
26
26
|
uri, current_uri = [url, current_url].map do |url|
|
27
27
|
URI.parse(url)
|
28
28
|
end
|
29
|
-
return false if !uri.host.nil? && uri.host != current_uri.host
|
29
|
+
return false if uri.is_a?(URI::MailTo) || (!uri.host.nil? && uri.host != current_uri.host)
|
30
30
|
normalized_path, normalized_current_path = [uri, current_uri].map do |uri|
|
31
31
|
uri.path.sub(%r(/\z), '')
|
32
32
|
end
|
@@ -130,7 +130,7 @@ describe BootstrapNavbar::Helpers::Bootstrap3 do
|
|
130
130
|
|
131
131
|
context 'with block' do
|
132
132
|
it 'generates the correct HTML' do
|
133
|
-
expect(renderer.navbar_item('/foo', { class: 'list-item
|
133
|
+
expect(renderer.navbar_item('/foo', { class: 'list-item' }, class: 'link') { 'link-text' }).to have_tag(:li, with: { class: 'list-item' }) do
|
134
134
|
with_tag :a, with: { href: '/foo', class: 'link' }, text: /link-text/
|
135
135
|
end
|
136
136
|
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: 2.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Meurer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|