simple-navigation 4.0.2 → 4.0.3

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: 74cc5517ce88a27754c28387348f7e6123b47635
4
- data.tar.gz: cdc2d6be45b5db54783bc6c0648a83e08269a51e
3
+ metadata.gz: 14ed2a793a80e75cc8ac03f09c2d03d7c6672bea
4
+ data.tar.gz: 4d33fafbeb0d419f27a6d0695582077e68c6ca13
5
5
  SHA512:
6
- metadata.gz: bb71f7c8d13ca7b614018a7b3adb20c36d80e17c321808440dbc36cd828ee142b55014bf9edaab58deecdfc1f80705b7104bb51099165ed66ecc26a63e7f30c6
7
- data.tar.gz: 10105e6488f0563814605edb78f4a6db4f16beef9074d898684df514b46c26bb210ebc529ea2b8b837ab7c7fe99bd94b6960d4e09e292f7ba861bdbd6dc94bdb
6
+ metadata.gz: db0eecfe9e6b34d144aec5e76bf9bc69e29078f22f85b70a4945f90ad952219cac18b1ca428877adec9cb792348ea3da121b8be1b6ed5ff2d4f367270990be1d
7
+ data.tar.gz: 5e2085493c00bf60d6ad18d9119f0f6d0dd71f05744468313e3f4b7fbc6110af191e877cf1fdc084af3f71aef196a76e2060fd1d81de1c679334cd18cd3b84f1
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.0.3
4
+
5
+ * Fix #180 Check URL before invoking current_page?
6
+
3
7
  ## 4.0.2
4
8
 
5
9
  * fixing current_page? when url is nil
@@ -38,7 +38,7 @@ module SimpleNavigation
38
38
  end
39
39
 
40
40
  def current_page?(url)
41
- url && template && template.current_page?(url)
41
+ template && template.current_page?(url)
42
42
  end
43
43
 
44
44
  def link_to(name, url, options = {})
@@ -153,8 +153,9 @@ module SimpleNavigation
153
153
 
154
154
  def selected_by_autohighlight?
155
155
  return false unless auto_highlight?
156
+
156
157
  root_path_match? ||
157
- SimpleNavigation.current_page?(url_for_autohighlight) ||
158
+ (url_for_autohighlight && SimpleNavigation.current_page?(url_for_autohighlight)) ||
158
159
  autohighlight_by_subpath?
159
160
  end
160
161
 
@@ -1,3 +1,3 @@
1
1
  module SimpleNavigation
2
- VERSION = '4.0.2'
2
+ VERSION = '4.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andi Schacke
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-08 00:00:00.000000000 Z
13
+ date: 2015-04-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport