multiblock 0.2.0 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9d60eb3f2db6d5129cf689c5eba26bf3affc540
4
- data.tar.gz: 3efa1d6b3e9c47f26a96acbd41b6a8b5ce217c13
3
+ metadata.gz: 10ac14aa8ce53cdba283f21b0799fc0e59720a90
4
+ data.tar.gz: 1f51d59f4c584c6fa2069f9cb2ec21b0e7105c3d
5
5
  SHA512:
6
- metadata.gz: 0dc718f167a7ab6a37434fcad69b0585612a81542451980ade57f62ba16bbc2b7674944d7d803dead950091fe61437dc1e3df320a66e5c92a8da1bbda6f44fe4
7
- data.tar.gz: f7b4ade589df0f43bb8814a1c96c1ccf318ba96e72c7c4c07022d683ef7592cb23ad7159162a6e05d0d7a694aa5492831bfb3c4726c0c3a0a25932855ebd0aa3
6
+ metadata.gz: 6b60389ee3e54bae67a58135c26f14974081899f8b5c09bfa3e028db4f3d8b76e87131cb9e29e64f0f4976b2516db257dfdaf431ba09ebb49d3c522395ffc6f2
7
+ data.tar.gz: fb9cde71270f32a847638a698b3dfeef66f4580b267723eadd2e8aa0b9f7f7998f0c3e5da9ddc3cf62fb0049092c2ed6b5f3cc3fcc2bca0560de8c4d96d423c5
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 TODO: Write your name
1
+ Copyright (c) 2013 Michał Szajbe, Monterail.com
2
2
 
3
3
  MIT License
4
4
 
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
 
@@ -19,8 +19,8 @@ module Multiblock
19
19
  end
20
20
 
21
21
  class << self
22
- def wrapper(*args)
23
- Wrapper.new(*args)
22
+ def wrapper(*args, &blk)
23
+ Wrapper.new(*args, &blk)
24
24
  end
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Multiblock
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Szajbe