nav 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/nav/version.rb +1 -1
  2. data/lib/nav.rb +1 -0
  3. metadata +5 -5
data/lib/nav/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Nav
2
2
 
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
 
5
5
  end
data/lib/nav.rb CHANGED
@@ -74,6 +74,7 @@ module Nav
74
74
  is_current = case current
75
75
  when TrueClass then true
76
76
  when Regexp then request_uri.match(current).nil? ? false : true
77
+ when Proc then current.call
77
78
  else false
78
79
  end
79
80
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-11 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
- requirement: &18194960 !ruby/object:Gem::Requirement
16
+ requirement: &16865520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18194960
24
+ version_requirements: *16865520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rr
27
- requirement: &18194220 !ruby/object:Gem::Requirement
27
+ requirement: &16865000 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *18194220
35
+ version_requirements: *16865000
36
36
  description: Simple nagivation builder
37
37
  email:
38
38
  executables: []