coroutines 0.2.1 → 0.2.2
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 +4 -4
- data/lib/coroutines.rb +6 -4
- data/lib/coroutines/sink.rb +1 -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: 1a13c2fd15318469d3a2c25969de20c18cb808b5
|
4
|
+
data.tar.gz: 3a2f191b2edf8fae89f18f8695c7acb9cfb0bcc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ad9c8c3d83a46dedab17f38e35b0b128b8240c81042fa44299683bdd367d4b6b0debac42f401d63e99441101a18dc177b3a29e6324b3ff42550633e5ed2d048
|
7
|
+
data.tar.gz: b2289440dd90267af26021317c0046e37ef321dcf80e50ed7dae1753cd204eba88a73d13c8ac790ccf5a10f90cf041399975e45b57b0ff6be610d7400d34a206
|
data/lib/coroutines.rb
CHANGED
@@ -49,10 +49,12 @@ class Enumerator::Lazy
|
|
49
49
|
#--
|
50
50
|
# taken from the API doc of Enumerator::Lazy.new
|
51
51
|
def filter_map
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
Enumerator.new do |yielder|
|
53
|
+
each do |*values|
|
54
|
+
result = yield *values
|
55
|
+
yielder << result if result
|
56
|
+
end
|
57
|
+
end.lazy
|
56
58
|
end
|
57
59
|
end
|
58
60
|
|
data/lib/coroutines/sink.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.2
|
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
|
+
date: 2014-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lazy_enumerator
|