navigation_builder 1.0.0.beta4 → 1.0.0.beta6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/action_view/helpers/navigation_builder.rb +15 -3
- data/navigation_builder.gemspec +2 -2
- metadata +13 -13
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.beta6
|
@@ -28,9 +28,9 @@ module ActionView
|
|
28
28
|
:html => {}
|
29
29
|
)
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
start_tag( options ) if navigation_has_wrapper?( options )
|
32
|
+
body_content( builder, nav_name, options, &block )
|
33
|
+
close_tag( options ) if navigation_has_wrapper?( options )
|
34
34
|
|
35
35
|
# Mark the navigation block has having been rendered
|
36
36
|
navigation_builder[nav_name] = true
|
@@ -57,6 +57,18 @@ module ActionView
|
|
57
57
|
options[:wrapper_tag] and options[:nav_item_tag].to_s == 'li'
|
58
58
|
end
|
59
59
|
|
60
|
+
def start_tag( options )
|
61
|
+
concat( tag(options[:wrapper_tag], options[:html], true) )
|
62
|
+
end
|
63
|
+
|
64
|
+
def body_content( builder, nav_name, options, &block )
|
65
|
+
yield builder.new(self, nav_name, options, block)
|
66
|
+
end
|
67
|
+
|
68
|
+
def close_tag( options )
|
69
|
+
concat("</#{options[:wrapper_tag]}>".html_safe)
|
70
|
+
end
|
71
|
+
|
60
72
|
end
|
61
73
|
|
62
74
|
class NavigationBuilder
|
data/navigation_builder.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{navigation_builder}
|
8
|
-
s.version = "1.0.0.
|
8
|
+
s.version = "1.0.0.beta6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Derek Lindahl"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-09-16}
|
13
13
|
s.description = %q{NavigationBuilder makes creating navigational links in a Rails application a breeze.}
|
14
14
|
s.email = %q{dlindahl@customink.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: navigation_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196367
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 1.0.0.
|
11
|
+
- 6
|
12
|
+
version: 1.0.0.beta6
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Derek Lindahl
|
@@ -17,10 +17,11 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-
|
20
|
+
date: 2011-09-16 00:00:00 -04:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
|
+
prerelease: false
|
24
25
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
25
26
|
none: false
|
26
27
|
requirements:
|
@@ -32,11 +33,11 @@ dependencies:
|
|
32
33
|
- 6
|
33
34
|
- 0
|
34
35
|
version: 1.6.0
|
35
|
-
requirement: *id001
|
36
|
-
prerelease: false
|
37
|
-
name: jeweler
|
38
36
|
type: :development
|
37
|
+
name: jeweler
|
38
|
+
requirement: *id001
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
|
+
prerelease: false
|
40
41
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
42
|
none: false
|
42
43
|
requirements:
|
@@ -48,11 +49,11 @@ dependencies:
|
|
48
49
|
- 0
|
49
50
|
- 0
|
50
51
|
version: 1.0.0
|
51
|
-
requirement: *id002
|
52
|
-
prerelease: false
|
53
|
-
name: bundler
|
54
52
|
type: :development
|
53
|
+
name: bundler
|
54
|
+
requirement: *id002
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
prerelease: false
|
56
57
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
57
58
|
none: false
|
58
59
|
requirements:
|
@@ -62,10 +63,9 @@ dependencies:
|
|
62
63
|
segments:
|
63
64
|
- 0
|
64
65
|
version: "0"
|
65
|
-
requirement: *id003
|
66
|
-
prerelease: false
|
67
|
-
name: rcov
|
68
66
|
type: :development
|
67
|
+
name: rcov
|
68
|
+
requirement: *id003
|
69
69
|
description: NavigationBuilder makes creating navigational links in a Rails application a breeze.
|
70
70
|
email: dlindahl@customink.com
|
71
71
|
executables: []
|