rails_nav 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/rails_nav.rb +5 -1
  2. data/nav.html +7 -0
  3. data/rails_nav.gemspec +7 -2
  4. metadata +2 -1
data/lib/rails_nav.rb CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  module Nav
9
9
  def Nav.version()
10
- '0.0.2'
10
+ '0.0.3'
11
11
  end
12
12
 
13
13
  class Item
@@ -124,6 +124,10 @@
124
124
  item_ = List.html_strategy =~ /dl/ ? :dd_ : :li_
125
125
 
126
126
  nav_(options){
127
+ unless List.html_strategy =~ /dl/
128
+ label_{ list.label } unless list.label.blank?
129
+ end
130
+
127
131
  send(list_){
128
132
  first_index = 0
129
133
  last_index = list.size - 1
data/nav.html ADDED
@@ -0,0 +1,7 @@
1
+ <nav>
2
+ <label></label>
3
+ <ul>
4
+ <li></li>
5
+ <li></li>
6
+ </ul>
7
+ </nav>
data/rails_nav.gemspec CHANGED
@@ -3,13 +3,18 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_nav"
6
- spec.version = "0.0.2"
6
+ spec.version = "0.0.3"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_nav"
9
9
  spec.description = "description: rails_nav kicks the ass"
10
10
 
11
11
  spec.files =
12
- ["README", "Rakefile", "lib", "lib/rails_nav.rb", "rails_nav.gemspec"]
12
+ ["README",
13
+ "Rakefile",
14
+ "lib",
15
+ "lib/rails_nav.rb",
16
+ "nav.html",
17
+ "rails_nav.gemspec"]
13
18
 
14
19
  spec.executables = []
15
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_nav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,6 +20,7 @@ files:
20
20
  - README
21
21
  - Rakefile
22
22
  - lib/rails_nav.rb
23
+ - nav.html
23
24
  - rails_nav.gemspec
24
25
  homepage: https://github.com/ahoward/rails_nav
25
26
  licenses: []