motion-kit 0.10.4 → 0.10.5

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: 75784fe191e7e2d7d542feba6044bc6800815ceb
4
- data.tar.gz: 447dc3b5237ba7c1b825d651b0d52968f23f40fd
3
+ metadata.gz: b22aaa500be2edac6395ebf69d34966726906a6f
4
+ data.tar.gz: 73762f0b31935e2eafdf23eaf8ad397b262e31f9
5
5
  SHA512:
6
- metadata.gz: 0a6bd50fe3b55a323bd04ecacfbf35a58fe0720f10ec3657acdd77bb868767e24f6905723aa52f959e577e868e9a93b6191a0e0c70bb7ab9b76c473a221a3e10
7
- data.tar.gz: c47ccad04b7b15fdad7f0f9f7239f531c36f3125d3c362ab53392b24892b7f9769084926550bb31d2f967a0094976657715d4480ab7814bc3023e781df0bbc5f
6
+ metadata.gz: 1a96bd95971b62699b7f5650c89d91b16dcc61220ec741c31b1d8ea79b25809a3b02840113d2f3bf42366044180e7f4afda70668abbeb7696a738e0565c8c2f0
7
+ data.tar.gz: 16151eed8d35d0db5848665d561a6cba5d3f4d66d93eeb1aae1e3fa474c02c318e1970d7709b8d093a4dfffab60296ea77a4f033bbe737b04160ef7f2f989782
@@ -0,0 +1,21 @@
1
+ # These methods are defined on NSObject, and so we need to fix em.
2
+ #
3
+ # @requires MotionKit::BaseLayout
4
+ module MotionKit
5
+ class BaseLayout
6
+
7
+ delegate_method_fix :accessibilityActivationPoint
8
+ delegate_method_fix :accessibilityElementsHidden
9
+ delegate_method_fix :accessibilityFrame
10
+ delegate_method_fix :accessibilityHint
11
+ delegate_method_fix :accessibilityLabel
12
+ delegate_method_fix :accessibilityLanguage
13
+ delegate_method_fix :accessibilityPath
14
+ delegate_method_fix :accessibilityTraits
15
+ delegate_method_fix :accessibilityValue
16
+ delegate_method_fix :accessibilityViewIsModal
17
+ delegate_method_fix :isAccessibilityElement
18
+ delegate_method_fix :shouldGroupAccessibilityChildren
19
+
20
+ end
21
+ end
@@ -251,10 +251,9 @@ module MotionKit
251
251
  # Finally, try again with camel case if there's an underscore.
252
252
  elsif method_name.include?('_')
253
253
  objc_name = MotionKit.objective_c_method_name(method_name)
254
- self.apply(objc_name, *args)
254
+ self.apply(objc_name, *args, &block)
255
255
  else
256
256
  target.send(setter, *args, &block)
257
- # raise ApplyError.new("Cannot apply #{method_name.inspect} to instance of #{target.class.name} (from #{@layout_delegate && @layout_delegate.class})")
258
257
  end
259
258
  end
260
259
 
@@ -1,3 +1,3 @@
1
1
  module MotionKit
2
- VERSION = '0.10.4'
2
+ VERSION = '0.10.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin T.A. Gray
@@ -48,6 +48,7 @@ files:
48
48
  - lib/motion-kit-cocoa/constraints/constraint_placeholder.rb
49
49
  - lib/motion-kit-cocoa/constraints/constraints_layout.rb
50
50
  - lib/motion-kit-cocoa/constraints/constraints_target.rb
51
+ - lib/motion-kit-cocoa/layouts/accessibility_compat.rb
51
52
  - lib/motion-kit-cocoa/layouts/cagradientlayer_layout.rb
52
53
  - lib/motion-kit-cocoa/layouts/calayer_layout.rb
53
54
  - lib/motion-kit-cocoa/layouts/sugarcube_compat.rb