ruby_peter_v 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.txt +4 -0
- data/README.md +2 -0
- data/lib/ruby_peter_v/each_recursively.rb +1 -0
- data/lib/ruby_peter_v/version.rb +1 -1
- data/spec/lib/ruby_peter_v/each_recursively_spec.rb +7 -0
- 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: 9762b0492175ba460a71bc5602d2d42b5f1c2b5e
|
4
|
+
data.tar.gz: 3c7ae31f9dc676b795a2caa239bf1a5357e17c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 562966d338daaf75304ace84f272bbefd9aa4454f61abaca07b69fb01e0efff1cfb0679e3f7c1e9a9a489da06547dc31b6d49da7b3a49d1721829c0d099fcb45
|
7
|
+
data.tar.gz: de6280af695b4badacd306374aa681b5c4865790330adebea3c77199addfb2a30871288597efd014e89353aebb024b9502e820314c8545da5a8961b698a24805
|
data/HISTORY.txt
CHANGED
data/README.md
CHANGED
@@ -80,6 +80,8 @@ SetOnceError: Value of foo was 1, trying to set it to 2
|
|
80
80
|
e.g. for looping over objects that are read from a file that is
|
81
81
|
much larger than the memory size).
|
82
82
|
|
83
|
+
Returns self.
|
84
|
+
|
83
85
|
```
|
84
86
|
2.0.0-p195 :021 > [:a, [:b, [:c]]].each_recursively{ |e| puts e.succ }
|
85
87
|
b
|
data/lib/ruby_peter_v/version.rb
CHANGED
@@ -46,6 +46,13 @@ describe "each_recursively" do
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
+
it "returns self" do
|
50
|
+
a.stub(:test_it)
|
51
|
+
b.each_recursively do |_e|
|
52
|
+
a.test_it(_e)
|
53
|
+
end.should == b
|
54
|
+
end
|
55
|
+
|
49
56
|
it "works with lazy in Ruby 2.0" do
|
50
57
|
pending("only Ruby >= 2.0") unless RUBY_VERSION.split('.').first.to_i >= 2
|
51
58
|
a.should_receive(:test_it).with("test").exactly(2).times
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_peter_v
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Vandenabeele
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|