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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3fd9b91f2d04b370528eb6fdb79b358e57cd9c1
4
- data.tar.gz: 00e584ed67bdfaf1166c4e7832dd9028fb7e6351
3
+ metadata.gz: d8c9d36d2d06a23dced42faf7d0c99fb9666fbc1
4
+ data.tar.gz: 58ef08be53c49bf3f3a866b52876fef5b32636d7
5
5
  SHA512:
6
- metadata.gz: d01ae762b3ce59d08a1b59b043ad30b76fe412b8675fd54dd16c08643ecf3567103df7c0fd834b3172692a86902e5018e6e3035e4125f7d16ac923160af10012
7
- data.tar.gz: e95a7594148f8dafb7d3ceb369bd1b3554a5dc455b59db403e3d16ed890816382fa82d2315a64a9ed15ffb2f0f2e4e0b2aedcad8ffc3af9b3856c70fd846c447
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]
@@ -1,3 +1,3 @@
1
1
  module EverydayMenu
2
- VERSION = '1.4.2'
2
+ VERSION = '1.4.3'
3
3
  end
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.2
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: 2015-11-09 00:00:00.000000000 Z
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.4.6
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: