menu-motion 0.1.1 → 0.1.2

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: e2483be76e3b6d3139b31d37f2e1ff69d766de62
4
- data.tar.gz: b6d6634c821c24df95404002c75f240ef53147fd
3
+ metadata.gz: db19606de9f44f865a65b8c917740b36079fbfb8
4
+ data.tar.gz: 87d85d9f9a52725782d48f4970dacd67f14d4efe
5
5
  SHA512:
6
- metadata.gz: 31e35a13070f39b361541fdacf6aecb2826dc259c09342c26d60364661a323f3573a41f6be28712b0652d6bec334fe7df9d1cc8bdb5c5b84ece7eeccfe22b94a
7
- data.tar.gz: 1a420cb8996f49681f4a2e6f48e5879207d3ae18a82402b8ae4da98a54392b090744e017f1e38747e84fb121e13b1f425a9bde8b0b564c49b395101c41cb01cb
6
+ metadata.gz: 4df6acf2da9886ba1f1bff95112b00c828be751e52e8f367acfb904b54e8aedab356272474561132e14e2d10885febac4a5f59bebb8b100ae91ae05710f0127f
7
+ data.tar.gz: e60735818a0032f2de74aecf1b7ea0766027d49a6d5b3a57956276f4e0725152a1bc3298838e494de49427b2507a227dae5be7889c4bcc893e872716da3dfc9d
data/README.md CHANGED
@@ -52,7 +52,8 @@ menu = MenuMotion::Menu.new({
52
52
  rows: [{
53
53
  title: "First Action",
54
54
  target: self,
55
- action: "first_action"
55
+ action: "first_action:",
56
+ object: some_object
56
57
  }, {
57
58
  title: "Second Action",
58
59
  target: self,
@@ -5,6 +5,9 @@ module MenuMotion
5
5
  attr_accessor :item_action, :item_target,
6
6
  :root_menu, :tag, :validate
7
7
 
8
+ alias_method :object, :representedObject
9
+ alias_method :object=, :setRepresentedObject
10
+
8
11
  def initialize(params = {})
9
12
  super()
10
13
  update(params)
@@ -24,6 +27,7 @@ module MenuMotion
24
27
  def update(params)
25
28
  self.item_action = params[:action] if params.has_key?(:action)
26
29
  self.item_target = params[:target] if params.has_key?(:target)
30
+ self.object = params[:object] if params.has_key?(:object)
27
31
  self.root_menu = params[:root_menu] if params.has_key?(:root_menu)
28
32
  self.title = params[:title] if params.has_key?(:title)
29
33
  self.validate = params[:validate] if params.has_key?(:validate)
@@ -1,3 +1,3 @@
1
1
  module MenuMotion
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: menu-motion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-26 00:00:00.000000000 Z
11
+ date: 2014-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake