innetra-easy_navigation 0.1.4 → 1.0.0

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
@@ -44,22 +44,24 @@ this:
44
44
  end
45
45
  end
46
46
 
47
- For internationalization, edit your en.yml file lique this (NOT TESTED JET):
47
+ For internationalization, edit your "en-US.easy_navigation.yml" file lique this:
48
48
 
49
+ en-US:
49
50
  easy_navigation:
50
51
  default:
51
- tabs:
52
- home: "Home"
52
+ home:
53
+ title: "Home"
53
54
  menus:
54
- index: "Index"
55
+ index: "Dashboard"
56
+ new: "New Page"
55
57
 
56
58
 
57
59
  As an example, to render you newly created menu called :default in your
58
- layout/application.erb :
60
+ "layout/application.erb":
59
61
 
60
62
  <%= render_navigation :default %>
61
63
 
62
- Pretty easy, right?
64
+ Pretty easy... right?
63
65
 
64
66
  == License
65
67
 
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.4') do |e|
5
+ Echoe.new('easy_navigation', '1.0.0') 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,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{easy_navigation}
5
- s.version = "0.1.4"
5
+ s.version = "1.0.0"
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"]
@@ -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, "tabs"]))
103
+ tab = Tab.new(name, options.merge!(:prefix => [self.prefix, self.name]))
104
104
  yield tab
105
105
  self.tabs << tab.build
106
106
  end
@@ -130,7 +130,7 @@ module EasyNavigation
130
130
 
131
131
  def build
132
132
  { :name => [self.prefix, self.name].join("_").to_sym,
133
- :text => [self.prefix, self.name].join("."),
133
+ :text => [self.prefix, self.name, "title"].join("."),
134
134
  :url => self.url,
135
135
  :options => self.options,
136
136
  :menus => self.menus }
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.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Torres