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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff9167933289eb680c07d5ca19988b3aa2363d4b
4
- data.tar.gz: a443e7248e7111cc5bee7d7989550f79c0039eeb
3
+ metadata.gz: 1c9f93f5a5300001b57747d47ced1923f28ddd01
4
+ data.tar.gz: 8d733218317b42eb780f67b6c3503bc87c1f99a2
5
5
  SHA512:
6
- metadata.gz: d24867cd0c601303199feb31f4d9d16828f5c1a0c78fe645e9240b50bdfd751301e9f5f863094c715e7e1c07c2bcebccd027107a17d8557c213b4d5b42a5b41c
7
- data.tar.gz: a77ccd212e6ca17ff1949cf0ce29ca94b888425b45d0c8cce3e0c9bad1dca7fdd3d08006e3a90f2052e5748bd31a9df280d8fdcadd7dc296956052f64a6c23ea
6
+ metadata.gz: cd8b71ffaae818d27d5668eefe73b8e7e478f3e3863fa7b4bf3e1364a2efcb3215cb4938cf633ed86e393f816d5fb63df5c5027414741efc59fe91f6361ebffe
7
+ data.tar.gz: 34e4dea3089899cdc6fbe1c4ebf61df509f4690e5680247feccc6991365f33b43c1c21f549c92418c3ef9f21f872a6fbe477a97b45d0df8ac7b90b8e570456e6
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
- - 1.9.3
5
- - 2.0.0
3
+ - 1.9
4
+ - 2.0
6
5
  - 2.1
7
6
  - jruby
@@ -1,3 +1,7 @@
1
+ ## 2.1.4
2
+
3
+ * Fix bug when using navbar item with 'mailto:' link
4
+
1
5
  ## 2.1.3
2
6
 
3
7
  * Update test gems
@@ -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
@@ -1,3 +1,3 @@
1
1
  module BootstrapNavbar
2
- VERSION = '2.1.3'
2
+ VERSION = '2.1.4'
3
3
  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 '}, class: 'link') { 'link-text' }).to have_tag(:li, with: { class: 'list-item' }) do
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.3
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 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake