motion-wiretap 1.1.8 → 1.1.9

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: 3ecbadbc039a28d3215da369e7bf6bdb98043886
4
- data.tar.gz: 9ac057ad391a7a187214d5e620eecfccea629ddb
3
+ metadata.gz: 44771a15f20f11873897710ebabf52e5852ab939
4
+ data.tar.gz: 83dc0e0574461141d0da85b2ef32932576779507
5
5
  SHA512:
6
- metadata.gz: 3b24c3661ff747fcfa02a49cb51e957c1f50419e6f7c1e2a74e53fe0240f692e0b2b5cbd22b4e1abe2b32082b75153c8c85c91b63b58bf81d8654e28670d44ac
7
- data.tar.gz: 1702ebea4afa66d5e460865c47c9210cd11d31c9f276c32000564f12dff41a6f070915c0f6e41f8138f42ffc815e17b4d332b8bb16cc6f40384b2c67b65c8362
6
+ metadata.gz: 634c9d49b9a4e84b9e2270a6b87f1ebc29f3e72807b69fc2a2aed513d6446fc7c95be9ee0799f847c40af662912d7f6a4f8f7b119fd456848845de1620bddd8a
7
+ data.tar.gz: 5f77fe1f3e89b4437e095161a0296a7962bbeaf384357833479c77a092437901ddfb914f3b3f1c6c94d0673ac2487ac67db7bfd93a63d3da1b61b86771cad63e
data/README.md CHANGED
@@ -183,7 +183,7 @@ person_2.name = 'Mr. Blue'
183
183
 
184
184
  There is a "short form" and "long form" to these wiretaps. The "short form" is
185
185
  something like `Motion.wiretap(proc) do (block) end`. The `proc` will be
186
- executed, and when it's done, the `block` will execute.
186
+ executed, and when it's done, the block will execute.
187
187
 
188
188
  The "long form" is different only in that the block is passed to the `and_then`
189
189
  method, not the initializer: `Motion.wiretap(proc).and_then do ... end`. In
@@ -358,7 +358,8 @@ module MotionWiretap
358
358
  # implementation
359
359
  def trigger_changed(*values)
360
360
  if @filter.call(*values)
361
- super(*values)
361
+ Wiretap.instance_method(:trigger_changed).bind(self).call(*values)
362
+ # super
362
363
  end
363
364
  end
364
365
 
@@ -374,7 +375,7 @@ module MotionWiretap
374
375
  # passes the values through the combiner before passing up to the parent
375
376
  # implementation
376
377
  def trigger_changed(*values)
377
- super(@combiner.call(*values))
378
+ Wiretap.instance_method(:trigger_changed).bind(self).call(@combiner.call(*values))
378
379
  end
379
380
 
380
381
  end
@@ -390,7 +391,7 @@ module MotionWiretap
390
391
  # passes each value through the @reducer, passing in the return value of the
391
392
  # previous call (starting with @memo)
392
393
  def trigger_changed(*values)
393
- super(values.inject(@memo, &@reducer))
394
+ Wiretap.instance_method(:trigger_changed).bind(self).call(values.inject(@memo, &@reducer))
394
395
  end
395
396
 
396
397
  end
@@ -405,7 +406,7 @@ module MotionWiretap
405
406
  # passes the values through the mapper before passing up to the parent
406
407
  # implementation
407
408
  def trigger_changed(*values)
408
- super(*values.map { |value| @mapper.call(value) })
409
+ Wiretap.instance_method(:trigger_changed).bind(self).call(*values.map { |value| @mapper.call(value) })
409
410
  end
410
411
 
411
412
  end
@@ -1,3 +1,3 @@
1
1
  module MotionWiretap
2
- VERSION = '1.1.8'
2
+ VERSION = '1.1.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-wiretap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin T.A. Gray
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-16 00:00:00.000000000 Z
11
+ date: 2014-07-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  ReactiveCocoa is an amazing system, and RubyMotion could benefit from the