multiblock 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/multiblock.rb +2 -2
- data/lib/multiblock/version.rb +1 -1
- data/spec/multiblock_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10ac14aa8ce53cdba283f21b0799fc0e59720a90
|
4
|
+
data.tar.gz: 1f51d59f4c584c6fa2069f9cb2ec21b0e7105c3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b60389ee3e54bae67a58135c26f14974081899f8b5c09bfa3e028db4f3d8b76e87131cb9e29e64f0f4976b2516db257dfdaf431ba09ebb49d3c522395ffc6f2
|
7
|
+
data.tar.gz: fb9cde71270f32a847638a698b3dfeef66f4580b267723eadd2e8aa0b9f7f7998f0c3e5da9ddc3cf62fb0049092c2ed6b5f3cc3fcc2bca0560de8c4d96d423c5
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Multiblock
|
2
2
|
|
3
|
-
[![Build Status](https://secure.travis-ci.org/monterail/multiblock.png)](http://travis-ci.org/monterail/multiblock)
|
3
|
+
[![Build Status](https://secure.travis-ci.org/monterail/multiblock.png)](http://travis-ci.org/monterail/multiblock) [![Code Climate](https://codeclimate.com/github/monterail/multiblock.png)](https://codeclimate.com/github/monterail/multiblock)
|
4
4
|
|
5
5
|
Ruby methods can accept only one block at a time. Multiblock helps to build multiple-block wrappers that can be passed to Ruby methods in pleasant way.
|
6
6
|
|
data/lib/multiblock.rb
CHANGED
data/lib/multiblock/version.rb
CHANGED
data/spec/multiblock_spec.rb
CHANGED
@@ -4,4 +4,9 @@ describe Multiblock do
|
|
4
4
|
it "should construct wrapper" do
|
5
5
|
described_class.wrapper.inspect.should =~ /Multiblock::Wrapper/
|
6
6
|
end
|
7
|
+
|
8
|
+
it "should construct wrapper with custom default block" do
|
9
|
+
wrapper = described_class.wrapper { "foo" }
|
10
|
+
wrapper.call(:bar).should == "foo"
|
11
|
+
end
|
7
12
|
end
|