motion_bindable 0.0.3 → 0.0.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: ace99dfe7cffb3986b6c8bd4b76765a56d711d91
4
- data.tar.gz: 4afbe278c4a686ce61d8d97c1b527df4b96bdf54
3
+ metadata.gz: 29efca7dd615f1582075cf3024ba561063f6c2d7
4
+ data.tar.gz: c9d7c8f83b816b132a678b3990560dfde9859254
5
5
  SHA512:
6
- metadata.gz: d353e84dc28c1d28751ec54f46205551ef19cec817b0cb12106f03a396839dde8e41eb76a99edc2775a072c287ea2de10e1e28c9066147c638e795a062af31dd
7
- data.tar.gz: dda1bb105f91674f622d222f50513056fa92214fe5da702237662184fdbb13e0fec3426dc6700a855e2ca8d75229abf7bc52ec438f211db0e025b87fa84fa72b
6
+ metadata.gz: 3efaa8e1c0406d8563afc01027e5ba2cea1b73a2ab1b07521b4ca62360643a18d261cfe13886aa729d15f2923e8e975c00b82c1d7b8f0000fd6ea1557f58232f
7
+ data.tar.gz: a32760942935f0bcfc9208992954d592fdf15ad027ca348d39661e35c1ef863abdd4b37dd10ab195e776d423dabb8763a4b441683061874f2cc3c071fbedba60
@@ -13,7 +13,7 @@ module MotionBindable
13
13
 
14
14
  def self.find_by_reference(object)
15
15
  @strategies_map.reverse.find do |h|
16
- h[:candidates].include? object.class
16
+ h[:candidates].one? { |e| object.is_a? e }
17
17
  end.fetch(:class)
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module MotionBindable
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -5,6 +5,10 @@ module MotionBindable::Strategies
5
5
  MotionBindable::Strategies::UITextField,
6
6
  ::UITextField
7
7
  )
8
+ ::MotionBindable::Strategy.register_strategy(
9
+ MotionBindable::Strategies::Proc,
10
+ ::Proc
11
+ )
8
12
  end
9
13
 
10
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion_bindable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Kot