semantic_navigation 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Changelog.md +5 -1
- data/lib/semantic_navigation/core/base.rb +2 -1
- data/lib/semantic_navigation/core/leaf.rb +2 -1
- data/lib/semantic_navigation/core/node.rb +4 -1
- data/lib/semantic_navigation/renderers/bread_crumb.rb +21 -12
- data/lib/semantic_navigation/renderers/list.rb +22 -13
- data/lib/semantic_navigation/renderers/render_helpers.rb +7 -0
- data/lib/semantic_navigation/twitter_bootstrap/breadcrumb.rb +24 -15
- data/lib/semantic_navigation/twitter_bootstrap/list.rb +20 -14
- data/lib/semantic_navigation/twitter_bootstrap/tabs.rb +24 -18
- data/lib/semantic_navigation/version.rb +1 -1
- data/spec/lib/semantic_navigation/renderers/bread_crumb_spec.rb +25 -0
- data/spec/lib/semantic_navigation/renderers/list_spec.rb +63 -0
- metadata +43 -10
data/Changelog.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
### 0.1.
|
1
|
+
### 0.1.1 / November 19, 2012
|
2
|
+
* Added html properties for navigation tags
|
3
|
+
* Added property to change navigation tag
|
4
|
+
|
5
|
+
### 0.1.0 / October 2, 2012
|
2
6
|
* Making register_renderer function to catch already registered renderer class by received symbol name
|
3
7
|
* Added scoping for items definitions
|
4
8
|
* Added renderers generators
|
@@ -2,7 +2,7 @@ module SemanticNavigation
|
|
2
2
|
module Core
|
3
3
|
class Base
|
4
4
|
|
5
|
-
attr_accessor :id, :level, :classes, :active
|
5
|
+
attr_accessor :id, :level, :classes, :active, :html
|
6
6
|
attr_writer :render_if
|
7
7
|
|
8
8
|
def render_if
|
@@ -11,6 +11,7 @@ module SemanticNavigation
|
|
11
11
|
|
12
12
|
def initialize(options, level)
|
13
13
|
@level = level
|
14
|
+
@html = {}
|
14
15
|
options.keys.each do |option_name|
|
15
16
|
instance_variable_set :"@#{option_name}", options[option_name]
|
16
17
|
end
|
@@ -4,10 +4,13 @@ module SemanticNavigation
|
|
4
4
|
include UrlMethods
|
5
5
|
include NameMethods
|
6
6
|
|
7
|
-
attr_accessor :link_classes, :node_classes
|
7
|
+
attr_accessor :link_classes, :node_classes,
|
8
|
+
:link_html, :node_html
|
8
9
|
|
9
10
|
def initialize(options, level)
|
10
11
|
@url = []
|
12
|
+
@link_html = {}
|
13
|
+
@node_html = {}
|
11
14
|
super options, level
|
12
15
|
end
|
13
16
|
|
@@ -4,8 +4,8 @@ module SemanticNavigation
|
|
4
4
|
include RenderHelpers
|
5
5
|
include ActsAsBreadcrumb
|
6
6
|
|
7
|
-
style_accessor :
|
8
|
-
:
|
7
|
+
style_accessor last_as_link: false,
|
8
|
+
breadcrumb_separator: '/'
|
9
9
|
|
10
10
|
navigation_default_classes [:breadcrumb]
|
11
11
|
show_navigation_active_class false
|
@@ -16,17 +16,22 @@ module SemanticNavigation
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def navigation(object)
|
19
|
-
|
20
|
-
|
19
|
+
content_menu_tag({id: show_id(:navigation, object.id),
|
20
|
+
class: merge_classes(:navigation, object.active, object.classes)
|
21
|
+
}.merge(object.html)) do
|
21
22
|
yield
|
22
23
|
end
|
23
24
|
end
|
24
25
|
|
25
26
|
def node(object)
|
26
|
-
content_tag(:li, nil, :
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
content_tag(:li, nil, {id: show_id(:leaf, object.id),
|
28
|
+
class: merge_classes(:leaf, object.active, object.classes)
|
29
|
+
}.merge(object.html)) do
|
30
|
+
link_to(object_name(object),
|
31
|
+
object.url,
|
32
|
+
{id: show_id(:link, object.id),
|
33
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
34
|
+
}.merge(object.link_html))
|
30
35
|
end +
|
31
36
|
content_tag(:li) do
|
32
37
|
breadcrumb_separator
|
@@ -35,11 +40,15 @@ module SemanticNavigation
|
|
35
40
|
end
|
36
41
|
|
37
42
|
def leaf(object)
|
38
|
-
content_tag :li, nil, :
|
39
|
-
|
43
|
+
content_tag :li, nil, {id: show_id(:leaf, object.id),
|
44
|
+
class: merge_classes(:leaf, object.active, object.classes)
|
45
|
+
}.merge(object.html) do
|
40
46
|
if last_as_link
|
41
|
-
link_to object_name(object),
|
42
|
-
|
47
|
+
link_to object_name(object),
|
48
|
+
object.url,
|
49
|
+
{id: show_id(:link, object.id),
|
50
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
51
|
+
}.merge(object.link_html)
|
43
52
|
else
|
44
53
|
object_name(object)
|
45
54
|
end
|
@@ -9,36 +9,45 @@ module SemanticNavigation
|
|
9
9
|
private
|
10
10
|
|
11
11
|
def navigation(object)
|
12
|
-
|
13
|
-
|
12
|
+
content_menu_tag({id: show_id(:navigation, object.id),
|
13
|
+
class: merge_classes(:navigation, object.active, object.classes)
|
14
|
+
}.merge(object.html)) do
|
14
15
|
yield
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
18
19
|
def node(object)
|
19
|
-
content_tag :li, nil, :
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
content_tag :li, nil, {id: show_id(:leaf, object.id),
|
21
|
+
class: merge_classes(:leaf, object.active, object.classes)
|
22
|
+
}.merge(object.html) do
|
23
|
+
link_to(object_name(object),
|
24
|
+
object.url,
|
25
|
+
{id: show_id(:link, object.id),
|
26
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
27
|
+
}.merge(object.link_html))+
|
23
28
|
yield
|
24
29
|
end
|
25
30
|
end
|
26
31
|
|
27
32
|
def node_content(object)
|
28
|
-
|
29
|
-
|
33
|
+
content_menu_tag({id: show_id(:node, object.id),
|
34
|
+
class: merge_classes(:node, object.active, object.node_classes)
|
35
|
+
}.merge(object.node_html)) do
|
30
36
|
yield
|
31
37
|
end
|
32
38
|
end
|
33
39
|
|
34
40
|
def leaf(object)
|
35
|
-
content_tag :li, nil, :
|
36
|
-
|
37
|
-
|
38
|
-
|
41
|
+
content_tag :li, nil, {id: show_id(:leaf, object.id),
|
42
|
+
class: merge_classes(:leaf, object.active, object.classes)
|
43
|
+
}.merge(object.html) do
|
44
|
+
link_to object_name(object),
|
45
|
+
object.url,
|
46
|
+
{id: show_id(:link, object.id),
|
47
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
48
|
+
}.merge(object.link_html)
|
39
49
|
end
|
40
50
|
end
|
41
|
-
|
42
51
|
end
|
43
52
|
end
|
44
53
|
end
|
@@ -12,6 +12,7 @@ module SemanticNavigation
|
|
12
12
|
:"show_#{e}_id" => true,
|
13
13
|
:"#{e}_default_classes" => []
|
14
14
|
end
|
15
|
+
style_accessor menu_tag: :ul
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
@@ -95,6 +96,12 @@ module SemanticNavigation
|
|
95
96
|
object.name(self.name)
|
96
97
|
end
|
97
98
|
|
99
|
+
def content_menu_tag(parameters)
|
100
|
+
content_tag menu_tag, nil, parameters do
|
101
|
+
yield
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
98
105
|
end
|
99
106
|
|
100
107
|
end
|
@@ -4,8 +4,8 @@ module SemanticNavigation
|
|
4
4
|
include SemanticNavigation::Renderers::RenderHelpers
|
5
5
|
include SemanticNavigation::Renderers::ActsAsBreadcrumb
|
6
6
|
|
7
|
-
style_accessor :
|
8
|
-
:
|
7
|
+
style_accessor last_as_link: false,
|
8
|
+
breadcrumb_separator: '/'
|
9
9
|
|
10
10
|
navigation_default_classes [:breadcrumb]
|
11
11
|
|
@@ -23,30 +23,39 @@ module SemanticNavigation
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def navigation(object)
|
26
|
-
content_tag :ul, nil, :
|
27
|
-
|
26
|
+
content_tag :ul, nil, {id: show_id(:navigation, object.id),
|
27
|
+
class: merge_classes(:navigation, object.active, object.classes)
|
28
|
+
}.merge(object.html) do
|
28
29
|
yield
|
29
30
|
end
|
30
31
|
end
|
31
32
|
|
32
33
|
def node(object)
|
33
|
-
content_tag(:li, nil, :
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
content_tag(:li, nil, {id: show_id(:leaf, object.id),
|
35
|
+
class: merge_classes(:leaf, object.active, object.classes)
|
36
|
+
}.merge(object.html)) do
|
37
|
+
[object.ico ? content_tag(:i, nil, class: "icon-#{object.ico}") : ''.html_safe,
|
38
|
+
link_to(object_name(object),
|
39
|
+
object.url,
|
40
|
+
{id: show_id(:link, object.id),
|
41
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
42
|
+
}.merge(object.link_html)),
|
43
|
+
content_tag(:span, nil, class: [:divider]) {breadcrumb_separator}].sum
|
39
44
|
end +
|
40
45
|
yield
|
41
46
|
end
|
42
47
|
|
43
48
|
def leaf(object)
|
44
|
-
content_tag :li, nil, :
|
45
|
-
|
46
|
-
|
49
|
+
content_tag :li, nil, {id: show_id(:leaf, object.id),
|
50
|
+
class: merge_classes(:leaf, object.active, object.classes)
|
51
|
+
}.merge(object.html) do
|
52
|
+
[object.ico ? content_tag(:i, nil, class: "icon-#{object.ico}") : ''.html_safe,
|
47
53
|
if last_as_link
|
48
|
-
link_to(object_name(object),
|
49
|
-
|
54
|
+
link_to(object_name(object),
|
55
|
+
object.url,
|
56
|
+
{id: show_id(:link, object.id),
|
57
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
58
|
+
}.merge(object.link_html))
|
50
59
|
else
|
51
60
|
object_name(object)
|
52
61
|
end].sum
|
@@ -15,31 +15,35 @@ module SemanticNavigation
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def navigation(object)
|
18
|
-
content_tag :ul, nil, :
|
19
|
-
|
18
|
+
content_tag :ul, nil, {id: show_id(:navigation, object.id),
|
19
|
+
class: merge_classes(:navigation, object.active, object.classes)
|
20
|
+
}.merge(object.html) do
|
20
21
|
yield
|
21
22
|
end
|
22
23
|
end
|
23
24
|
|
24
25
|
def node(object)
|
25
26
|
if object.ico
|
26
|
-
name = [content_tag(:i,nil
|
27
|
+
name = [content_tag(:i,nil, class: "icon-#{object.ico}"),
|
27
28
|
object_name(object)].sum
|
28
29
|
else
|
29
30
|
name = object_name(object)
|
30
31
|
end
|
31
32
|
|
32
|
-
content_tag :li, nil, :
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
content_tag :li, nil, {id: show_id(:leaf, object.id),
|
34
|
+
class: merge_classes(:leaf, object.active, object.classes)
|
35
|
+
}.merge(object.html) do
|
36
|
+
link_to(name, object.url, {id: show_id(:link, object.id),
|
37
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
38
|
+
}.merge(object.link_html)) +
|
36
39
|
yield
|
37
40
|
end
|
38
41
|
end
|
39
42
|
|
40
43
|
def node_content(object)
|
41
|
-
content_tag(:ul, nil, :
|
42
|
-
|
44
|
+
content_tag(:ul, nil, {id: show_id(:node, object.id),
|
45
|
+
class: merge_classes(:node, object.active, object.node_classes)
|
46
|
+
}.merge(object.node_html)) do
|
43
47
|
yield
|
44
48
|
end
|
45
49
|
end
|
@@ -54,19 +58,21 @@ module SemanticNavigation
|
|
54
58
|
end
|
55
59
|
|
56
60
|
if object.ico
|
57
|
-
name = [content_tag(:i,nil
|
61
|
+
name = [content_tag(:i,nil,class: "icon-#{object.ico}"),
|
58
62
|
object_name(object)].sum
|
59
63
|
else
|
60
64
|
name = object_name(object)
|
61
65
|
end
|
62
66
|
|
63
|
-
content_tag :li, nil, :
|
64
|
-
|
67
|
+
content_tag :li, nil, {id: show_id(:leaf, object.id),
|
68
|
+
class: classes
|
69
|
+
}.merge(object.html) do
|
65
70
|
if object.url.nil?
|
66
71
|
name
|
67
72
|
else
|
68
|
-
link_to name, object.url, :
|
69
|
-
|
73
|
+
link_to name, object.url, {id: show_id(:link, object.id),
|
74
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
75
|
+
}.merge(object.link_html)
|
70
76
|
end
|
71
77
|
end
|
72
78
|
end
|
@@ -4,7 +4,7 @@ module SemanticNavigation
|
|
4
4
|
include SemanticNavigation::Renderers::RenderHelpers
|
5
5
|
include SemanticNavigation::Renderers::ActsAsList
|
6
6
|
|
7
|
-
style_accessor :
|
7
|
+
style_accessor direction: 'left'
|
8
8
|
|
9
9
|
navigation_default_classes [:nav, 'nav-tabs']
|
10
10
|
show_navigation_id false
|
@@ -17,22 +17,25 @@ module SemanticNavigation
|
|
17
17
|
private
|
18
18
|
|
19
19
|
def navigation(object)
|
20
|
-
content_tag :ul, nil, :
|
21
|
-
|
20
|
+
content_tag :ul, nil, {id: show_id(:navigation, object.id),
|
21
|
+
class: merge_classes(:navigation, object.active, [object.classes,"pull-#{direction}"])
|
22
|
+
}.merge(object.html) do
|
22
23
|
yield
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
26
27
|
def node(object)
|
27
|
-
content_tag :li, nil, :
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
content_tag :li, nil, {id: show_id(:leaf, object.id),
|
29
|
+
class: merge_classes(:leaf, object.active, [object.classes,'dropdown'].flatten)
|
30
|
+
}.merge(object.html) do
|
31
|
+
content_tag(:a, {:href => '#',
|
32
|
+
id: show_id(:link, object.id),
|
33
|
+
class: merge_classes(:link, object.active, [object.link_classes,'dropdown-toggle'].flatten),
|
34
|
+
'data-toggle'=> :dropdown
|
35
|
+
}.merge(object.link_html)) do
|
36
|
+
[object.ico ? content_tag(:i,nil,class: "icon-#{object.ico}") : '',
|
34
37
|
object_name(object),
|
35
|
-
content_tag(:b,nil
|
38
|
+
content_tag(:b,nil,class: :caret)
|
36
39
|
].sum.html_safe
|
37
40
|
end +
|
38
41
|
yield
|
@@ -40,27 +43,30 @@ module SemanticNavigation
|
|
40
43
|
end
|
41
44
|
|
42
45
|
def node_content(object)
|
43
|
-
content_tag(:ul, nil, :
|
44
|
-
|
46
|
+
content_tag(:ul, nil, {id: show_id(:node, object.id),
|
47
|
+
class: merge_classes(:node, false, [object.node_classes,'dropdown-menu'].flatten)
|
48
|
+
}.merge(object.node_html)) do
|
45
49
|
yield
|
46
50
|
end
|
47
51
|
end
|
48
52
|
|
49
53
|
def leaf(object)
|
50
54
|
if object.ico
|
51
|
-
name = [content_tag(:i,nil
|
55
|
+
name = [content_tag(:i,nil,class: "icon-#{object.ico}"),
|
52
56
|
object_name(object)].sum
|
53
57
|
else
|
54
58
|
name = object_name(object)
|
55
59
|
end
|
56
60
|
|
57
|
-
content_tag :li, nil, :
|
58
|
-
:
|
61
|
+
content_tag :li, nil, {id: show_id(:leaf, object.id),
|
62
|
+
class: merge_classes(:leaf, object.active, object.classes)
|
63
|
+
}.merge(object.html) do
|
59
64
|
if object.url.nil?
|
60
65
|
name
|
61
66
|
else
|
62
|
-
link_to name, object.url, :
|
63
|
-
|
67
|
+
link_to name, object.url, {id: show_id(:link, object.id),
|
68
|
+
class: merge_classes(:link, object.active, object.link_classes)
|
69
|
+
}.merge(object.link_html)
|
64
70
|
end
|
65
71
|
end
|
66
72
|
end
|
@@ -42,6 +42,31 @@ describe SemanticNavigation::Renderers::BreadCrumb do
|
|
42
42
|
"</ul>"].join
|
43
43
|
end
|
44
44
|
|
45
|
+
it 'renders breadcrumb with secific menu tag' do
|
46
|
+
@configuration.run do
|
47
|
+
|
48
|
+
register_renderer :my_breadcrumb, :breadcrumb
|
49
|
+
|
50
|
+
styles_for :my_breadcrumb do
|
51
|
+
menu_tag :ol
|
52
|
+
end
|
53
|
+
|
54
|
+
navigate :menu do
|
55
|
+
item :url1, 'url1', :name => 'url1'
|
56
|
+
item :url2, 'url2', :name => 'url2'
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
@view_object.should_receive(:current_page?).and_return(false,true)
|
61
|
+
|
62
|
+
result = @view_object.navigation_for :menu, :as => :my_breadcrumb
|
63
|
+
result.should == ["<ol class=\"breadcrumb\" id=\"menu\">",
|
64
|
+
"<li id=\"url2\">",
|
65
|
+
"url2",
|
66
|
+
"</li>",
|
67
|
+
"</ol>"].join
|
68
|
+
end
|
69
|
+
|
45
70
|
it 'should render one multilevel navigation breadcrumb' do
|
46
71
|
@configuration.run do
|
47
72
|
navigate :menu do
|
@@ -48,6 +48,69 @@ describe SemanticNavigation::Renderers::List do
|
|
48
48
|
"</ul>"].join
|
49
49
|
end
|
50
50
|
|
51
|
+
it 'renders one level navigation with specific menu tag' do
|
52
|
+
@configuration.run do
|
53
|
+
|
54
|
+
register_renderer :my_list, :list
|
55
|
+
|
56
|
+
styles_for :my_list do
|
57
|
+
menu_tag :ol
|
58
|
+
end
|
59
|
+
|
60
|
+
navigate :menu do
|
61
|
+
item :url1, 'url1', :name => 'url1'
|
62
|
+
item :url2, 'url2', :name => 'url2'
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
result = @view_object.navigation_for :menu, as: :my_list
|
67
|
+
result.should == ["<ol class=\"list\" id=\"menu\">",
|
68
|
+
"<li id=\"url1\">",
|
69
|
+
"<a href=\"url1\" id=\"url1\">",
|
70
|
+
"url1",
|
71
|
+
"</a>",
|
72
|
+
"</li>",
|
73
|
+
"<li id=\"url2\">",
|
74
|
+
"<a href=\"url2\" id=\"url2\">",
|
75
|
+
"url2",
|
76
|
+
"</a>",
|
77
|
+
"</li>",
|
78
|
+
"</ol>"].join
|
79
|
+
end
|
80
|
+
|
81
|
+
it 'renders one level navigation with specific menu tag' do
|
82
|
+
@configuration.run do
|
83
|
+
|
84
|
+
register_renderer :my_list, :list
|
85
|
+
|
86
|
+
styles_for :my_list do
|
87
|
+
menu_tag :ol
|
88
|
+
end
|
89
|
+
|
90
|
+
navigate :menu do
|
91
|
+
item :url1, 'url1', :name => 'url1' do
|
92
|
+
item :url2, 'url2', :name => 'url2'
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
result = @view_object.navigation_for :menu, as: :my_list
|
98
|
+
result.should == ["<ol class=\"list\" id=\"menu\">",
|
99
|
+
"<li id=\"url1\">",
|
100
|
+
"<a href=\"url1\" id=\"url1\">",
|
101
|
+
"url1",
|
102
|
+
"</a>",
|
103
|
+
"<ol id=\"url1\">",
|
104
|
+
"<li id=\"url2\">",
|
105
|
+
"<a href=\"url2\" id=\"url2\">",
|
106
|
+
"url2",
|
107
|
+
"</a>",
|
108
|
+
"</li>",
|
109
|
+
"</ol>",
|
110
|
+
"</li>",
|
111
|
+
"</ol>"].join
|
112
|
+
end
|
113
|
+
|
51
114
|
it 'should render one multilevel navigation' do
|
52
115
|
@configuration.run do
|
53
116
|
navigate :menu do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic_navigation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: 2.0.1
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.0.1
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: simplecov
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rails
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,7 +53,12 @@ dependencies:
|
|
43
53
|
version: 3.0.0
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.0.0
|
47
62
|
description: ! "Simply and customizable navigation in the Ruby on Rails 3 application.\n
|
48
63
|
\ Predefined bootstrap renderers"
|
49
64
|
email:
|
@@ -112,16 +127,34 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
127
|
- - ! '>='
|
113
128
|
- !ruby/object:Gem::Version
|
114
129
|
version: '0'
|
130
|
+
segments:
|
131
|
+
- 0
|
132
|
+
hash: -712279182362314885
|
115
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
134
|
none: false
|
117
135
|
requirements:
|
118
136
|
- - ! '>='
|
119
137
|
- !ruby/object:Gem::Version
|
120
138
|
version: '0'
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
hash: -712279182362314885
|
121
142
|
requirements: []
|
122
143
|
rubyforge_project: semantic_navigation
|
123
|
-
rubygems_version: 1.8.
|
144
|
+
rubygems_version: 1.8.24
|
124
145
|
signing_key:
|
125
146
|
specification_version: 3
|
126
147
|
summary: Make the navigation in your Rails app by several lines
|
127
|
-
test_files:
|
148
|
+
test_files:
|
149
|
+
- spec/lib/semantic_navigation/configuration_spec.rb
|
150
|
+
- spec/lib/semantic_navigation/core/leaf_spec.rb
|
151
|
+
- spec/lib/semantic_navigation/core/navigation_spec.rb
|
152
|
+
- spec/lib/semantic_navigation/core/node_spec.rb
|
153
|
+
- spec/lib/semantic_navigation/helper_methods_spec.rb
|
154
|
+
- spec/lib/semantic_navigation/renderers/bread_crumb_spec.rb
|
155
|
+
- spec/lib/semantic_navigation/renderers/list_spec.rb
|
156
|
+
- spec/lib/semantic_navigation/twitter_bootstrap/breadcrumb_spec.rb
|
157
|
+
- spec/lib/semantic_navigation/twitter_bootstrap/list_spec.rb
|
158
|
+
- spec/lib/semantic_navigation/twitter_bootstrap/tabs_spec.rb
|
159
|
+
- spec/lib/semantic_navigation_spec.rb
|
160
|
+
- spec/spec_helper.rb
|