innetra-easy_navigation 0.1.1 → 0.1.4

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/README.rdoc CHANGED
@@ -48,14 +48,16 @@ For internationalization, edit your en.yml file lique this (NOT TESTED JET):
48
48
 
49
49
  easy_navigation:
50
50
  default:
51
- home:
52
- index: "Home"
51
+ tabs:
52
+ home: "Home"
53
+ menus:
54
+ index: "Index"
53
55
 
54
56
 
55
57
  As an example, to render you newly created menu called :default in your
56
58
  layout/application.erb :
57
59
 
58
- <% render_navigation :default %>
60
+ <%= render_navigation :default %>
59
61
 
60
62
  Pretty easy, right?
61
63
 
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('easy_navigation', '0.1.1') do |e|
5
+ Echoe.new('easy_navigation', '0.1.4') do |e|
6
6
  e.description = "Easy navigation for ruby on rails 2.2 (i18n)"
7
7
  e.url = "http://github.com/innetra/easy_navigation"
8
8
  e.author = "Ivan Torres"
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{easy_navigation}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.4"
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{2008-12-18}
9
+ s.date = %q{2008-12-19}
10
10
  s.description = %q{Easy navigation for ruby on rails 2.2 (i18n)}
11
11
  s.email = %q{mexpolk@gmail.com}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/easy_navigation.rb"]
@@ -79,7 +79,7 @@ module EasyNavigation
79
79
  end
80
80
 
81
81
  def navigation(name, options = {}, &block)
82
- navigation = Navigation.new(name, options.merge!(:prefix => "navigation"))
82
+ navigation = Navigation.new(name, options.merge!(:prefix => "easy_navigation"))
83
83
  yield navigation
84
84
  self.navigations << navigation.build
85
85
  end
@@ -100,7 +100,7 @@ module EasyNavigation
100
100
  end
101
101
 
102
102
  def tab(name, options = {}, &block)
103
- tab = Tab.new(name, options.merge!(:prefix => [self.prefix, self.name]))
103
+ tab = Tab.new(name, options.merge!(:prefix => [self.prefix, self.name, "tabs"]))
104
104
  yield tab
105
105
  self.tabs << tab.build
106
106
  end
@@ -123,7 +123,7 @@ module EasyNavigation
123
123
  end
124
124
 
125
125
  def menu(name, options = {}, &block)
126
- menu = Menu.new(name, options.merge!(:prefix => [self.prefix, self.name]))
126
+ menu = Menu.new(name, options.merge!(:prefix => [self.prefix, self.name, "menus"]))
127
127
  yield menu
128
128
  self.menus << menu.build
129
129
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: innetra-easy_navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.4
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: 2008-12-18 00:00:00 -08:00
12
+ date: 2008-12-19 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15