motion-kit 0.16.0 → 0.17.0

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: aa78cfdb4f32651a26841b55115ba60a7cd76654
4
- data.tar.gz: a79b1b9a0ea64591911bd41c66201c69107f92b6
3
+ metadata.gz: f5e920f2573c2ee36b557a87123717d8c4e8eede
4
+ data.tar.gz: 1e0eb4395e42b78b11964ec15d8184187e41ea44
5
5
  SHA512:
6
- metadata.gz: b984dc391e595694145c6f0774dbd88e1db7e4aea682b42615ec3cf110fadd1f5f0a690e684ed5076b7abd845fbd0c0df76f8ca7e15a3b459ca2404a9495ab67
7
- data.tar.gz: 3e074c594ff27236219d715845882b0f1469dd1458593ed6db6bda52241142a51e86ce518c489cc42a079b2478162e9bb382e0d6b9822d8e7cd02a72f2551414
6
+ metadata.gz: d4279eaf70ce6cf8c776df309df9d26f136aed4519f955d6e143f4e1338989a36957cd31e3e4a2929088668330e6e76ea24308ba4d9a740970a4692511801ef1
7
+ data.tar.gz: 260ab1fef50781ce07bbdf3ac8bc875e69cc62ade984ccbc454ea54ea879396223cd8fbe5cc2f4890b3c347681f23285213e3fe47b488983c3f794a94b9e1487
@@ -1,3 +1,3 @@
1
1
  module MotionKit
2
- VERSION = '0.16.0'
2
+ VERSION = '0.17.0'
3
3
  end
@@ -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
- yield
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.16.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-09 00:00:00.000000000 Z
12
+ date: 2014-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dbt