everyday-menu 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/everyday-menu/menu_builder.rb +8 -0
- data/lib/everyday-menu/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8c9d36d2d06a23dced42faf7d0c99fb9666fbc1
|
4
|
+
data.tar.gz: 58ef08be53c49bf3f3a866b52876fef5b32636d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5736f9002e4faae8803c7d826d7ad9df9e7ec7e72b04593464b5250cb79493135fbc1bbc656ea136691aa220c8ce684d91244b506ea6d939070021262eacaa4e
|
7
|
+
data.tar.gz: 3909b12c0750d1fcc8cefc24ce9a699722fa4ff60ebc994b14d246a21ee26249ad608c98b5d11ba2554c16e4786ffe22c7ca4cb8886fa805a4602ab236be5858
|
@@ -10,6 +10,14 @@ module EverydayMenu
|
|
10
10
|
@menu << MenuItem.separator
|
11
11
|
end
|
12
12
|
|
13
|
+
def <<(menuItem)
|
14
|
+
if @menuItems.key?(menuItem)
|
15
|
+
@menu << @menuItems[menuItem]
|
16
|
+
else
|
17
|
+
raise "unable to find menu item #{menuItem}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
13
21
|
def method_missing(meth, *args)
|
14
22
|
if @menuItems.key?(meth)
|
15
23
|
@menu << @menuItems[meth]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everyday-menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Henderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.6.11
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: A more ruby way to create OS X menus in RubyMotion
|
@@ -97,4 +97,3 @@ test_files:
|
|
97
97
|
- spec/menu_builder_spec.rb
|
98
98
|
- spec/menu_item_spec.rb
|
99
99
|
- spec/menu_spec.rb
|
100
|
-
has_rdoc:
|