bootstrap-navbar 2.2.3 → 2.2.4

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: ee57fde2f640775cbb3cbae9df69ae7932b60f0b
4
- data.tar.gz: b098b58bb91ded0c2a9af753c48d371048310c41
3
+ metadata.gz: a421815116b33ad3262adff74491b84a01e9c4c1
4
+ data.tar.gz: 046bf583a2e69c7f74bb0c4a2a9ebfb30f0d6fc9
5
5
  SHA512:
6
- metadata.gz: 350e000fa6733c652464e35402059ce1601e9cc6d1ca396e864014102a9dd4b7dda9bcbc61d77f1239a4de75f86deaf754a1f56a35e384561c6a87ac043227fc
7
- data.tar.gz: 63ce3f7f33c9f93330f9a76c29e5ae7faad029182e013d2bcc0a3e6fb0fd64c0827f1918a46d2d06ab5fb835ea183e964fb41117ab2424e4076562d9b60037e6
6
+ metadata.gz: 3ffdf3ceb3ba44969ac9a10822fb7b5e68ae38ce39918a972e8911608fd1c07aa695966eec0cf812c8c022a7e60ee2d6575179f7d95faa631c47c88d0e65fe74
7
+ data.tar.gz: 2d6bd5ffd751227cbfb499b7e998ce0eca545c2be247d4465664465e1a479dc219ab8d78ed3a34c68bf6920fdc0023a06793b61ad60794f8335ae590031a2cb3
@@ -1,3 +1,7 @@
1
+ ## 2.2.3
2
+
3
+ * Never mark menu item with path "#" as active
4
+
1
5
  ## 2.2.2
2
6
 
3
7
  * Fix marking menu items as active... again
@@ -23,6 +23,7 @@ module BootstrapNavbar::Helpers
23
23
  end
24
24
 
25
25
  def current_url_or_sub_url?(url)
26
+ return false if url == '#'
26
27
  uri, current_uri = [url, current_url].map do |url|
27
28
  URI.parse(url)
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module BootstrapNavbar
2
- VERSION = '2.2.3'
2
+ VERSION = '2.2.4'
3
3
  end
@@ -1,6 +1,11 @@
1
1
  require_relative '../lib/bootstrap-navbar'
2
2
  require 'rspec-html-matchers'
3
3
 
4
+ module Padrino
5
+ IGNORE_NO_RENDERING_ENGINE = true
6
+ end
7
+ require 'padrino-helpers'
8
+
4
9
  Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
5
10
 
6
11
  RSpec.configure do |config|
@@ -8,4 +13,5 @@ RSpec.configure do |config|
8
13
  config.filter_run :focus
9
14
  config.order = 'random'
10
15
  config.include ::Helpers
16
+ config.include RSpecHtmlMatchers
11
17
  end
@@ -1,5 +1,3 @@
1
- require 'padrino-helpers'
2
-
3
1
  module Helpers
4
2
  def renderer
5
3
  @renderer ||= Class.new do
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.3
4
+ version: 2.2.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: 2015-02-18 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  version: '0'
153
153
  requirements: []
154
154
  rubyforge_project:
155
- rubygems_version: 2.2.2
155
+ rubygems_version: 2.4.5
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Helpers to generate a Twitter Bootstrap style navbar