bootstrap-navbar 2.1.1 → 2.1.2
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 +1 -1
- data/CHANGELOG.md +4 -0
- data/bootstrap-navbar.gemspec +2 -2
- data/lib/bootstrap-navbar/helpers/bootstrap3.rb +1 -1
- data/lib/bootstrap-navbar/version.rb +1 -1
- data/spec/bootstrap-navbar/helpers/bootstrap3_spec.rb +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d93877380d2a9f9168bbe199ceb778bb325d1a24
|
4
|
+
data.tar.gz: 1b480d6ec0d98e9f08588aa907af3f125fd53606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 805730b18b0af14e0af9195ed11d738a6026ca6fa88c6e91aa3b21383afe29394930faef32b7b0dfa0e1f4fac9176fd62c03ed3935b88142240594dd286ec64b
|
7
|
+
data.tar.gz: c22faae34bcef0c29526567e38cebd9c7b08e736230cea1d750cf1ef7283e60391dfb2e074894da7eff8caab8724f26e4ead465ba15a4ab893c165767311f5c0
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/bootstrap-navbar.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.name = 'bootstrap-navbar'
|
10
10
|
gem.version = BootstrapNavbar::VERSION
|
11
11
|
gem.platform = Gem::Platform::RUBY
|
12
|
-
gem.
|
12
|
+
gem.author = 'Manuel Meurer'
|
13
13
|
gem.email = 'manuel@krautcomputing.com'
|
14
14
|
gem.summary = 'Helpers to generate a Twitter Bootstrap style navbar'
|
15
15
|
gem.description = 'Helpers to generate a Twitter Bootstrap style navbar'
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.test_files = gem.files.grep(%r(^(test|spec|features)/))
|
22
22
|
gem.require_paths = ['lib']
|
23
23
|
|
24
|
-
gem.add_development_dependency 'rake'
|
24
|
+
gem.add_development_dependency 'rake'
|
25
25
|
gem.add_development_dependency 'rspec', '~> 2.13.0'
|
26
26
|
gem.add_development_dependency 'rspec-html-matchers', '~> 0.4.3'
|
27
27
|
gem.add_development_dependency 'guard-rspec', '~> 3.0'
|
@@ -60,7 +60,7 @@ HTML
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def navbar_item(text, url = nil, list_item_options = nil, link_options = nil, &block)
|
63
|
-
text, url, list_item_options, link_options = capture(&block), text, list_item_options if block_given?
|
63
|
+
text, url, list_item_options, link_options = capture(&block), text, url, list_item_options if block_given?
|
64
64
|
url ||= '#'
|
65
65
|
list_item_options = list_item_options.nil? ? {} : list_item_options.dup
|
66
66
|
link_options = link_options.nil? ? {} : link_options.dup
|
@@ -128,6 +128,14 @@ describe BootstrapNavbar::Helpers::Bootstrap3 do
|
|
128
128
|
describe '#navbar_item' do
|
129
129
|
it_behaves_like 'marking the navbar items as active correctly'
|
130
130
|
|
131
|
+
context 'with block' do
|
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
|
134
|
+
with_tag :a, with: { href: '/foo', class: 'link' }, text: /link-text/
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
131
139
|
context 'without current URL' do
|
132
140
|
it 'generates the correct HTML' do
|
133
141
|
BootstrapNavbar.configuration.current_url_method = '"/foo"'
|
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.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: 2014-
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|