simple-navigation 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *1.3.1
2
+
3
+ * now compliant with ruby 1.9.1 (thanks to Gernot Kogler for the feedback)
4
+
1
5
  *1.3.0
2
6
 
3
7
  * render_all_levels-option allows to render all subnavigation independent from the active primary navigation ('full open tree'). Userful for javascript menus. Thanks to Richard Hulse.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 1
4
4
  :minor: 3
@@ -26,12 +26,12 @@ module SimpleNavigation
26
26
  SimpleNavigation.load_config unless ::RAILS_ENV == 'production'
27
27
  SimpleNavigation::Configuration.eval_config(self)
28
28
  case level
29
- when :primary:
29
+ when :primary
30
30
  SimpleNavigation.primary_navigation.render(@current_primary_navigation)
31
- when :secondary:
31
+ when :secondary
32
32
  primary = SimpleNavigation.primary_navigation[@current_primary_navigation]
33
33
  primary.sub_navigation.render(@current_secondary_navigation) if primary && primary.sub_navigation
34
- when :nested:
34
+ when :nested
35
35
  SimpleNavigation.primary_navigation.render(@current_primary_navigation, true, @current_secondary_navigation)
36
36
  else
37
37
  raise ArgumentError, "Invalid navigation level: #{level}"
@@ -22,7 +22,7 @@ module SimpleNavigation
22
22
  end
23
23
  list << content_tag(:li, li_content, html_options)
24
24
  end
25
- content_tag(:ul, list_content, {:id => item_container.dom_id, :class => item_container.dom_class})
25
+ content_tag(:ul, list_content.join, {:id => item_container.dom_id, :class => item_container.dom_class})
26
26
  end
27
27
 
28
28
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{simple-navigation}
5
- s.version = "1.3.0"
5
+ s.version = "1.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Andi Schacke"]
9
- s.date = %q{2009-06-16}
9
+ s.date = %q{2009-06-28}
10
10
  s.description = %q{Simple Navigation is a ruby library for creating a navigation (optionally with sub navigation) for your rails app.}
11
11
  s.email = %q{andreas.schacke@gmail.com}
12
12
  s.extra_rdoc_files = [
@@ -24,7 +24,7 @@ describe SimpleNavigation::ControllerMethods do
24
24
  end
25
25
  it "should install the Helpers Module" do
26
26
  [:render_navigation, :render_primary_navigation, :render_sub_navigation].each do |m|
27
- @controller.master_helper_module.instance_methods.should include(m.to_s)
27
+ @controller.master_helper_module.instance_methods.map(&:to_s).should include(m.to_s)
28
28
  end
29
29
  end
30
30
  end
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.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andi Schacke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-16 00:00:00 +02:00
12
+ date: 2009-06-28 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15