activemenu 0.6.3 → 0.6.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0156d439fc7fc1e6c1d98661c50b908ba8d3edd5
4
- data.tar.gz: e61b1f98e516a12928f8ee8fd5003c3dc01294ce
3
+ metadata.gz: ca64f356d92dc4cd07df9bc37032f002b169a547
4
+ data.tar.gz: f0ba8f51a9adbba6b53469d30314310cd8d86358
5
5
  SHA512:
6
- metadata.gz: 9cee3f8d202b0a0acb6460f8f29c935cc14b58bb0cbe71a60a90979f9896032c65a1c38eed4a628ba81c299723a76869ec1d900803e6855f88323a177b070ec8
7
- data.tar.gz: cbe8774428c135e1e54578beca170099431cbebb9e24fac09a13bcbe8378889b563684dcd971d74c987cff1749dfce1970b3c6467e5b81a998ed0ac05373a7b3
6
+ metadata.gz: 3a3f824c1043ae8228d91d0ddb86c2aea5f001ddc168eb018f2d4b4f68f7cfecd15e42af8d6409f02cc5a88780f109d48b1df372ea036ae5431190c2c9618975
7
+ data.tar.gz: 2cc46332660dca894c0c89e524ac22c033a6ec14df0611302a7245e638dd0bb655d83dfc40846e34b0cad8550bf64190da082071c68e1d2d95885ff6affb0fc2
@@ -20,7 +20,6 @@ class ActiveMenu::Menu
20
20
  if value.nil?
21
21
  @options[key]
22
22
  else
23
- value = value.to_sym
24
23
  @options[key] = value
25
24
  end
26
25
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveMenu
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
@@ -31,4 +31,18 @@ describe ActiveMenu do
31
31
  ActiveMenu::exists?(:this_id_doesnt_exists).should == false
32
32
  end
33
33
 
34
+
35
+ it 'can create menus with lambdas' do
36
+ ActiveMenu::create('admix-nav') do |nav|
37
+ nav.tag :div
38
+
39
+ nav.submenu :dashboard do |d|
40
+ d.text 'dashboard.dashboard'
41
+ d.href lambda { admix_root_url }
42
+ d.option :icon, 'icon-flag'
43
+ end
44
+
45
+ end
46
+ end
47
+
34
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemenu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadjow Medeiros Leão