simple_navigation 1.2 → 1.3
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/Manifest +1 -0
- data/Rakefile +1 -1
- data/lib/simple_navigation.rb +5 -1
- data/simple_navigation.gemspec +2 -2
- metadata +2 -2
data/Manifest
CHANGED
data/Rakefile
CHANGED
|
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
|
2
2
|
require 'rake'
|
|
3
3
|
require 'echoe'
|
|
4
4
|
|
|
5
|
-
Echoe.new('simple_navigation', '1.
|
|
5
|
+
Echoe.new('simple_navigation', '1.3') do |e|
|
|
6
6
|
e.description = "Easy navigation menu gem for Ruby on Rails"
|
|
7
7
|
e.url = "http://github.com/mexpolk/simple_navigation"
|
|
8
8
|
e.author = "Ivan Torres"
|
data/lib/simple_navigation.rb
CHANGED
|
@@ -74,7 +74,11 @@ module SimpleNavigation
|
|
|
74
74
|
title = menu[:name].to_s.titleize
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
|
-
|
|
77
|
+
if menu.has_key?(:url)
|
|
78
|
+
title = link_to(title, url_for(menu[:url]))
|
|
79
|
+
else
|
|
80
|
+
title = content_tag(:span, title)
|
|
81
|
+
end
|
|
78
82
|
title
|
|
79
83
|
end # render_menu_title(menu)
|
|
80
84
|
|
data/simple_navigation.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{simple_navigation}
|
|
5
|
-
s.version = "1.
|
|
5
|
+
s.version = "1.3"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Ivan Torres"]
|
|
9
|
-
s.date = %q{2009-
|
|
9
|
+
s.date = %q{2009-12-15}
|
|
10
10
|
s.description = %q{Easy navigation menu gem for Ruby on Rails}
|
|
11
11
|
s.email = %q{mexpolk@gmail.com}
|
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/simple_navigation.rb"]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_navigation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: "1.
|
|
4
|
+
version: "1.3"
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Torres
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-12-15 00:00:00 -06:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|