menu-motion 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/menu-motion/menu_item.rb +4 -0
- data/lib/menu-motion/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db19606de9f44f865a65b8c917740b36079fbfb8
|
4
|
+
data.tar.gz: 87d85d9f9a52725782d48f4970dacd67f14d4efe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df6acf2da9886ba1f1bff95112b00c828be751e52e8f367acfb904b54e8aedab356272474561132e14e2d10885febac4a5f59bebb8b100ae91ae05710f0127f
|
7
|
+
data.tar.gz: e60735818a0032f2de74aecf1b7ea0766027d49a6d5b3a57956276f4e0725152a1bc3298838e494de49427b2507a227dae5be7889c4bcc893e872716da3dfc9d
|
data/README.md
CHANGED
@@ -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)
|
data/lib/menu-motion/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|