alacarte 0.0.8 → 0.0.9

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/CHANGES CHANGED
@@ -1,5 +1,9 @@
1
1
  = Change Log
2
2
 
3
+ == Version 0.0.9
4
+
5
+ * You can now specify a :text element that will render direct text into the li, you are still able to set the wrapper options
6
+
3
7
  == Version 0.0.8
4
8
 
5
9
  * forgot to mention Thomas Boerger in the 0.0.7 release. Thanks man!
@@ -22,6 +22,8 @@ module AlacarteHelper
22
22
  when :link
23
23
  _path = item.path.respond_to?(:call) ? item.path.call : item.path
24
24
  link_to(item.label.html_safe, _path, _html_options)
25
+ when :text
26
+ item.label.html_safe
25
27
  else
26
28
  content_tag(item.type, item.label, _html_options)
27
29
  end
@@ -3,7 +3,7 @@ module Alacarte
3
3
  # Alacarte::Menu is the base class for defining menu items.
4
4
  class Menu
5
5
 
6
- VALID_ELEMENTS = [:link, :span, :separator, :title, :subtitle, :line]
6
+ VALID_ELEMENTS = [:link, :span, :separator, :title, :subtitle, :line, :text]
7
7
  @@env = nil
8
8
 
9
9
  attr_reader :parent, :type, :name, :deep_name, :path, :as, :label, :options, :items, :blocks, :html_options, :group_options, :wrapper_options, :translation_key
@@ -1,3 +1,3 @@
1
1
  module Alacarte
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alacarte
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stijn Mathysen
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-24 00:00:00 Z
18
+ date: 2013-01-15 00:00:00 +01:00
19
+ default_executable:
19
20
  dependencies: []
20
21
 
21
22
  description: This Rails plugin allows you to create a menu system, using a dsl (similar to routes).
@@ -46,6 +47,7 @@ files:
46
47
  - spec/alacarte/menus_spec.rb
47
48
  - spec/alacarte_spec.rb
48
49
  - spec/spec_helper.rb
50
+ has_rdoc: true
49
51
  homepage: http://github.com/stijnster/alacarte
50
52
  licenses: []
51
53
 
@@ -75,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
77
  requirements: []
76
78
 
77
79
  rubyforge_project: alacarte
78
- rubygems_version: 1.8.10
80
+ rubygems_version: 1.4.2
79
81
  signing_key:
80
82
  specification_version: 3
81
83
  summary: Provides a generic menu system for Rails