menu-motion 0.1.3 → 0.1.4

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: bfed8ad6de37108f7abdf1d5d8df3f671ac41435
4
- data.tar.gz: 1be5e6cd8173a899840260ae5121ff5647269b8b
3
+ metadata.gz: bf79f82dbae26e8b13bc45d3305f1abd70afeb1e
4
+ data.tar.gz: 0d1a832b9b001c82ff92859bd8a9c9706e00f910
5
5
  SHA512:
6
- metadata.gz: 59346b784c03c5ee2ed57679f5c2e6ca2d1d3494a8be1f91bb9b71e325abbec52012133d04a41c0d425f343d4281d24df8434f97b3570a0bfa3b2367a7b50bd4
7
- data.tar.gz: 2ad91cc6d1c059926ec64615b7e33a21bff1eb6597fc42c6250f6f4ef9eeb8f421259c9486a7754ef857942d421e102b1c8f14f019847c1b9a6dd030cd3df108
6
+ metadata.gz: c45d9a9108ad6b827639aaf3f72cb93d966bdc273b7ccccf8234895667cc6dcfac1f90c7b35cac0b161456cac75f39151cb7caae2d70545625f96368841a8826
7
+ data.tar.gz: 1249524dc22ce93fdff051cf07351c2f94d8de79ca229d85f2de04327f4b4264ce41c584b2da100d2649f1fed815e412063f34aad8407a614c180ecdebb7002c
@@ -8,6 +8,14 @@ module MenuMotion
8
8
  alias_method :object, :representedObject
9
9
  alias_method :object=, :setRepresentedObject
10
10
 
11
+ def checked
12
+ self.state == NSOnState
13
+ end
14
+
15
+ def checked=(value)
16
+ self.state = (value ? NSOnState : NSOffState)
17
+ end
18
+
11
19
  def initialize(params = {})
12
20
  super()
13
21
  update(params)
@@ -25,6 +33,7 @@ module MenuMotion
25
33
  end
26
34
 
27
35
  def update(params)
36
+ self.checked = params[:checked] if params.has_key?(:checked)
28
37
  self.item_action = params[:action] if params.has_key?(:action)
29
38
  self.item_target = params[:target] if params.has_key?(:target)
30
39
  self.object = params[:object] if params.has_key?(:object)
@@ -1,3 +1,3 @@
1
1
  module MenuMotion
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
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-06-15 00:00:00.000000000 Z
11
+ date: 2014-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake