coroutines 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/coroutines/base.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89eb0428ee0c27d848aff55a5cbe954edd6f221b
4
- data.tar.gz: 4b34bc8df721b4923ba524174dbe396957d75b8e
3
+ metadata.gz: d94b2f0be52e246350f8eff0bbdef56df5bfd9ed
4
+ data.tar.gz: d71f2c7e340d258ac7588d5e315ee1d8fecb3efa
5
5
  SHA512:
6
- metadata.gz: 26b3c54acdf282c3db224f3672092bb1f2dcbd7f65d8ac461fa55daec860002fb90e6438f4b6f7dac1143759888616df3b8b2ffb523bf1cc61c02a0a910020f6
7
- data.tar.gz: a1f1e7a915922b2ef9e81bcf84600003679deb879fbe56a9a45142bce74e39c96f2d550e8a65a7c8e59248518d77f3554434d1e2bf3bd4652d6b17954e4489b9
6
+ metadata.gz: 4b073d2df415afdc01b406a71fce37a04a94218a5a2db425ac4bc20f5fa68dc06e121e6983020ebe6163f409af87dcc66fd2397971375f239985a7de3429b52d
7
+ data.tar.gz: ded24fe0ab150e7989b55c1413093262abe211bea74d5a593eb9c10abd6a2dfa12c1b205a7cf03bc028162a3d13820e3bb98965036b95b93a257b89884e0cd27
@@ -224,7 +224,7 @@ class Transformer
224
224
  y.define_singleton_method :yield do |args|
225
225
  sink << args
226
226
  end
227
- y.alias_method :<<, :yield
227
+ y.singleton_class.instance_eval { alias_method :<<, :yield }
228
228
  begin
229
229
  @self.call(y)
230
230
  rescue StopIteration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coroutines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Knut Franke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-11 00:00:00.000000000 Z
11
+ date: 2014-10-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  A library for creating and composing producer/transformer/consumer coroutines.