motion-kit 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion-kit/version.rb +1 -1
- data/lib/motion-kit-ios/helpers/layout_orientation.rb +8 -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: f5e920f2573c2ee36b557a87123717d8c4e8eede
|
4
|
+
data.tar.gz: 1e0eb4395e42b78b11964ec15d8184187e41ea44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4279eaf70ce6cf8c776df309df9d26f136aed4519f955d6e143f4e1338989a36957cd31e3e4a2929088668330e6e76ea24308ba4d9a740970a4692511801ef1
|
7
|
+
data.tar.gz: 260ab1fef50781ce07bbdf3ac8bc875e69cc62ade984ccbc454ea54ea879396223cd8fbe5cc2f4890b3c347681f23285213e3fe47b488983c3f794a94b9e1487
|
data/lib/motion-kit/version.rb
CHANGED
@@ -37,8 +37,15 @@ module MotionKit
|
|
37
37
|
return orientation?(orientation)
|
38
38
|
end
|
39
39
|
define_method(orientation) do |&block|
|
40
|
+
orientation_block(orientation, block)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def orientation_block(orientation, block)
|
45
|
+
block = block.weak!
|
46
|
+
always do
|
40
47
|
if orientation?(orientation)
|
41
|
-
|
48
|
+
block.call
|
42
49
|
end
|
43
50
|
end
|
44
51
|
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.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin T.A. Gray
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-12-
|
12
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dbt
|