nanoc-navigation_builder 1.0.0.beta4 → 1.0.0.beta5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/nanoc-navigation_builder.rb +28 -1
- data/nanoc-navigation_builder.gemspec +5 -5
- metadata +7 -7
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
|
|
22
22
|
gem.email = "dlindahl@customink.com"
|
23
23
|
gem.authors = ["Derek Lindahl"]
|
24
24
|
# dependencies defined in Gemfile
|
25
|
-
gem.add_dependency 'navigation_builder', "~> 1.0.0.
|
25
|
+
gem.add_dependency 'navigation_builder', "~> 1.0.0.beta5"
|
26
26
|
end
|
27
27
|
Jeweler::RubygemsDotOrgTasks.new
|
28
28
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.beta5
|
@@ -1,5 +1,32 @@
|
|
1
1
|
require 'navigation_builder'
|
2
2
|
|
3
|
+
module ActionView::Helpers::NavigationBuilderHelper
|
4
|
+
|
5
|
+
private
|
6
|
+
|
7
|
+
def navigation_for_with_nanoc_support( *args, &block )
|
8
|
+
@nav_content = ''
|
9
|
+
|
10
|
+
navigation_for_without_nanoc_support( *args, &block )
|
11
|
+
|
12
|
+
erbout = eval('_erbout << %q{' + @nav_content + '}', block.binding)
|
13
|
+
end
|
14
|
+
alias_method_chain :navigation_for, :nanoc_support
|
15
|
+
|
16
|
+
def start_tag( options )
|
17
|
+
@nav_content << tag(options[:wrapper_tag], options[:html], true)
|
18
|
+
end
|
19
|
+
|
20
|
+
def body_content( builder, nav_name, options, &block )
|
21
|
+
@nav_content << capture( builder.new(self.item, nav_name, options, block), &block ).html_safe
|
22
|
+
end
|
23
|
+
|
24
|
+
def close_tag( options )
|
25
|
+
@nav_content << "</#{options[:wrapper_tag]}>".html_safe
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
3
30
|
include ActionView::Helpers::NavigationBuilderHelper
|
4
31
|
|
5
32
|
module Nanoc3
|
@@ -10,4 +37,4 @@ module Nanoc3
|
|
10
37
|
end
|
11
38
|
|
12
39
|
end
|
13
|
-
end
|
40
|
+
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{nanoc-navigation_builder}
|
8
|
-
s.version = "1.0.0.
|
8
|
+
s.version = "1.0.0.beta5"
|
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-05-
|
12
|
+
s.date = %q{2011-05-31}
|
13
13
|
s.description = %q{A Nanoc plugin that enables the NavigationBuilder gem to work in your Nanoc sites.}
|
14
14
|
s.email = %q{dlindahl@customink.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -42,18 +42,18 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.add_runtime_dependency(%q<navigation_builder>, ["~> 1.0.0.beta4"])
|
43
43
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
44
44
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
|
45
|
-
s.add_runtime_dependency(%q<navigation_builder>, ["~> 1.0.0.
|
45
|
+
s.add_runtime_dependency(%q<navigation_builder>, ["~> 1.0.0.beta5"])
|
46
46
|
else
|
47
47
|
s.add_dependency(%q<navigation_builder>, ["~> 1.0.0.beta4"])
|
48
48
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
49
49
|
s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
|
50
|
-
s.add_dependency(%q<navigation_builder>, ["~> 1.0.0.
|
50
|
+
s.add_dependency(%q<navigation_builder>, ["~> 1.0.0.beta5"])
|
51
51
|
end
|
52
52
|
else
|
53
53
|
s.add_dependency(%q<navigation_builder>, ["~> 1.0.0.beta4"])
|
54
54
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
55
55
|
s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
|
56
|
-
s.add_dependency(%q<navigation_builder>, ["~> 1.0.0.
|
56
|
+
s.add_dependency(%q<navigation_builder>, ["~> 1.0.0.beta5"])
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-navigation_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196361
|
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
|
+
- 5
|
12
|
+
version: 1.0.0.beta5
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Derek Lindahl
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-05-
|
20
|
+
date: 2011-05-31 00:00:00 -04:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -76,14 +76,14 @@ dependencies:
|
|
76
76
|
requirements:
|
77
77
|
- - ~>
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
hash:
|
79
|
+
hash: 62196361
|
80
80
|
segments:
|
81
81
|
- 1
|
82
82
|
- 0
|
83
83
|
- 0
|
84
84
|
- beta
|
85
|
-
-
|
86
|
-
version: 1.0.0.
|
85
|
+
- 5
|
86
|
+
version: 1.0.0.beta5
|
87
87
|
requirement: *id004
|
88
88
|
prerelease: false
|
89
89
|
name: navigation_builder
|