alacarte 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,5 +1,9 @@
1
1
  = Change Log
2
2
 
3
+ == Version 0.0.6
4
+
5
+ * Thanks to Thomas Boerger, for making the code compatible with ruby 1.9.2
6
+
3
7
  == Version 0.0.5
4
8
 
5
9
  * Adding :wrapper html options to allow customization of the li-element.
@@ -19,8 +19,10 @@ module AlacarteHelper
19
19
  _html_options[:class] = _html_options[:class].to_s.insert(0, 'active ').strip if (current_element == item.as)
20
20
 
21
21
  _item = case item.type
22
- when :link: link_to(item.label.html_safe, item.path, _html_options)
23
- else content_tag(item.type, item.label, _html_options)
22
+ when :link
23
+ link_to(item.label.html_safe, item.path, _html_options)
24
+ else
25
+ content_tag(item.type, item.label, _html_options)
24
26
  end
25
27
 
26
28
  if item.items.size > 0
@@ -1,3 +1,3 @@
1
1
  module Alacarte
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alacarte
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 19
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 5
9
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Stijn Mathysen
@@ -14,8 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-09-06 00:00:00 +02:00
18
- default_executable:
18
+ date: 2011-10-24 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: This Rails plugin allows you to create a menu system, using a dsl (similar to routes).
@@ -46,7 +46,6 @@ files:
46
46
  - spec/alacarte/menus_spec.rb
47
47
  - spec/alacarte_spec.rb
48
48
  - spec/spec_helper.rb
49
- has_rdoc: true
50
49
  homepage: http://github.com/stijnster/alacarte
51
50
  licenses: []
52
51
 
@@ -56,23 +55,27 @@ rdoc_options: []
56
55
  require_paths:
57
56
  - lib
58
57
  required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
59
  requirements:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
+ hash: 3
62
63
  segments:
63
64
  - 0
64
65
  version: "0"
65
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
+ none: false
66
68
  requirements:
67
69
  - - ">="
68
70
  - !ruby/object:Gem::Version
71
+ hash: 3
69
72
  segments:
70
73
  - 0
71
74
  version: "0"
72
75
  requirements: []
73
76
 
74
77
  rubyforge_project: alacarte
75
- rubygems_version: 1.3.6
78
+ rubygems_version: 1.8.3
76
79
  signing_key:
77
80
  specification_version: 3
78
81
  summary: Provides a generic menu system for Rails