bootstrap-navbar 2.1.1 → 2.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
  SHA1:
3
- metadata.gz: 39d96cc530fbfb4f919a8f6dfcafef9baa39f5c4
4
- data.tar.gz: 437335478231cfe02af2f423cd90782fe7c8969d
3
+ metadata.gz: d93877380d2a9f9168bbe199ceb778bb325d1a24
4
+ data.tar.gz: 1b480d6ec0d98e9f08588aa907af3f125fd53606
5
5
  SHA512:
6
- metadata.gz: 6288289ddefc98e80f50215bb7d728b0290044ecd74bcfd7056bd65bc971411770e7d9e1804cc02131eda053113e9f2dcec3c6a9dcebea12cbc3569b55edbfc6
7
- data.tar.gz: 8f86fbc80f213f2547cc90de2915f32dabf8f50ecd1d45faff594cdda0af26c50d459b803513b5d9b12a2be44ebd327ad002469f0dee6f973c02123f619de08e
6
+ metadata.gz: 805730b18b0af14e0af9195ed11d738a6026ca6fa88c6e91aa3b21383afe29394930faef32b7b0dfa0e1f4fac9176fd62c03ed3935b88142240594dd286ec64b
7
+ data.tar.gz: c22faae34bcef0c29526567e38cebd9c7b08e736230cea1d750cf1ef7283e60391dfb2e074894da7eff8caab8724f26e4ead465ba15a4ab893c165767311f5c0
data/.travis.yml CHANGED
@@ -3,5 +3,5 @@ rvm:
3
3
  - 1.9.2
4
4
  - 1.9.3
5
5
  - 2.0.0
6
- - 2.1.0
6
+ - 2.1
7
7
  - jruby
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.1.2
2
+
3
+ * Fixed bug when using Bootstrap 3 and `navbar_item` with block
4
+
1
5
  ## 2.0.0
2
6
 
3
7
  * Refactor: Add navbar_header and navbar_collapse to make it possible to insert content outside of header and collapse sections.
@@ -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.authors = ['Manuel Meurer']
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', '>= 10.0.0'
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
@@ -1,3 +1,3 @@
1
1
  module BootstrapNavbar
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
@@ -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.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-05-05 00:00:00.000000000 Z
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: 10.0.0
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: 10.0.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement