bootstrap-navbar 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootstrap-navbar/helpers.rb +1 -1
- data/lib/bootstrap-navbar/version.rb +1 -1
- data/spec/support/helpers.rb +12 -0
- 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: f5de2c7a6f833acac74125497bfbd5d322b77797
|
4
|
+
data.tar.gz: e37f92c9c49c66704c26bf0d2deb7f6d36277fff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48e0ed02edd3c9042a4c375e1c665e22c36f1a5d00ed740b0ff3545aee9edd7a035363b176270ea634f5d7c300a12b1ee38c69888a14222a82e4c64ea525e55f
|
7
|
+
data.tar.gz: 490487fe7a7745147ebe75098653434c2178e467e7b822deb64eb0137de77e23697140238abce199b74b7816a5a4bd53d012b63dfb3dd7102b172084cc821b4a
|
@@ -33,7 +33,7 @@ module BootstrapNavbar::Helpers
|
|
33
33
|
if normalized_path.empty?
|
34
34
|
normalized_current_path.empty?
|
35
35
|
else
|
36
|
-
normalized_current_path =~ %r(#{Regexp.escape(normalized_path)}(/.+)
|
36
|
+
normalized_current_path =~ %r(#{Regexp.escape(normalized_path)}(/.+)?\z)
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
data/spec/support/helpers.rb
CHANGED
@@ -65,6 +65,18 @@ shared_examples 'marking the navbar items as active correctly' do
|
|
65
65
|
http://www.foobar.com
|
66
66
|
http://www.foobar.com/bar/
|
67
67
|
http://www.foobar.com/bar
|
68
|
+
http://www.foobar.com/foobar/
|
69
|
+
http://www.foobar.com/foobar
|
70
|
+
http://www.foobar.com/foobar/bar/
|
71
|
+
http://www.foobar.com/foobar/bar
|
72
|
+
http://www.foobar.com/foo_bar/
|
73
|
+
http://www.foobar.com/foo_bar
|
74
|
+
http://www.foobar.com/foo_bar/bar/
|
75
|
+
http://www.foobar.com/foo_bar/bar
|
76
|
+
http://www.foobar.com/foo-bar/
|
77
|
+
http://www.foobar.com/foo-bar
|
78
|
+
http://www.foobar.com/foo-bar/bar/
|
79
|
+
http://www.foobar.com/foo-bar/bar
|
68
80
|
)
|
69
81
|
end
|
70
82
|
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.2.
|
4
|
+
version: 2.2.1
|
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-09-
|
11
|
+
date: 2014-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|