rails_nav 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_nav.rb +4 -3
- data/rails_nav.gemspec +1 -1
- metadata +6 -6
data/lib/rails_nav.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
##
|
5
5
|
#
|
6
6
|
def Nav.version()
|
7
|
-
'1.0
|
7
|
+
'1.1.0'
|
8
8
|
end
|
9
9
|
|
10
10
|
def Nav.dependencies
|
@@ -44,7 +44,7 @@
|
|
44
44
|
attr_accessor(:block)
|
45
45
|
attr_accessor(:controller)
|
46
46
|
|
47
|
-
def initialize(name, &block)
|
47
|
+
def initialize(name = 'nav', &block)
|
48
48
|
@name = name.to_s
|
49
49
|
@block = block
|
50
50
|
@already_computed_active = false
|
@@ -57,7 +57,8 @@
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def link(*args, &block)
|
60
|
-
|
60
|
+
nav = self
|
61
|
+
link = Link.new(nav, *args, &block)
|
61
62
|
push(link)
|
62
63
|
link
|
63
64
|
end
|
data/rails_nav.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_nav
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails_current
|
16
|
-
requirement: &
|
16
|
+
requirement: &70209172359780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.6'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70209172359780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rails_helper
|
27
|
-
requirement: &
|
27
|
+
requirement: &70209172359240 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '1.2'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70209172359240
|
36
36
|
description: ! 'description: rails_nav kicks the ass'
|
37
37
|
email: ara.t.howard@gmail.com
|
38
38
|
executables: []
|