simple_navigation 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -3,3 +3,4 @@ README.rdoc
3
3
  Rakefile
4
4
  init.rb
5
5
  lib/simple_navigation.rb
6
+ simple_navigation.gemspec
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.2') do |e|
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"
@@ -74,7 +74,11 @@ module SimpleNavigation
74
74
  title = menu[:name].to_s.titleize
75
75
  end
76
76
  end
77
- title = link_to(title, url_for(menu[:url])) if menu.has_key?(:url)
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
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{simple_navigation}
5
- s.version = "1.2"
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-11-10}
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.2"
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-11-10 00:00:00 -06:00
12
+ date: 2009-12-15 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15