enumerator-auto_forced_lazy 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/enumerator-auto_forced_lazy.gemspec +1 -1
- data/lib/enumerator.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0e27dfc44bbdb10e3665ac49dcb0239f89d609dc6a28d9536a5c10bea33ab0f
|
4
|
+
data.tar.gz: d5258f02a79a7e8168082bf41e95eab4e3cd706325526fb787dcae4f274813e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cfa5e0dddfee51126a198ba92d4b9c2f58744ee3a41d81cc49265224530115f679baf5550453d7a5b7239c1718efbcff86a8af813434b048635615a562b51c9
|
7
|
+
data.tar.gz: 05bc294fe38e6adf29d216de6762b3a2f4732dff0248a492b924949760e256423bf7b51e347c859e0d89a2a2bea81796479530a601845fe5bf24f4de1483790d
|
@@ -4,7 +4,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "enumerator-auto_forced_lazy"
|
7
|
-
spec.version = "0.1.
|
7
|
+
spec.version = "0.1.1"
|
8
8
|
spec.platform = Gem::Platform::RUBY
|
9
9
|
spec.authors = ["Gonçalo Cabrita"]
|
10
10
|
spec.email = "_@gmcabrita.com"
|
data/lib/enumerator.rb
CHANGED
@@ -14,7 +14,7 @@ class Enumerator
|
|
14
14
|
# => #<Enumerator::Lazy: #<Enumerator::Lazy: 1..Infinity>:take_while>
|
15
15
|
#
|
16
16
|
# Alternatively, Enumerator::AutoForcedLazy can also be constructed from any
|
17
|
-
#
|
17
|
+
# and from any Enumerable with the Enumerable#auto_forced_lazy method.
|
18
18
|
#
|
19
19
|
# (1..Float::INFINITY).auto_forced_lazy.take_while { |i| i < 30 }
|
20
20
|
# => #<Enumerator::Lazy: #<Enumerator::Lazy: 1..Infinity>:take_while>
|