liquefied 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1406ce0b4bb4029278bce630fc3c55eb56b891c7
4
- data.tar.gz: 6881bd07128f1facfd993b38f235352fd4b525dd
3
+ metadata.gz: d96f4666115e9d5349e0147a3a1b3007b5cf7f0c
4
+ data.tar.gz: f894d0f8badcf1a4339bf6b9812435ad1e3803a8
5
5
  SHA512:
6
- metadata.gz: 9f522192dd9ff7dbce349fb2f648920ac83e7ed5f15d6e2ee6561f6d2fcdd1553e89c5ae8eb8635782a0c9353129e0642700b87770226902b5f44f995d121fa8
7
- data.tar.gz: f2822bdc9abb522dba3b0e6dff4508322d7ae326c1e1b946da4b1c2f3b23a4b1299b3ff124fe8c20bdbae17a480ee8694fd2230e0bb2cbe919a116aa129db5a0
6
+ metadata.gz: 1455c52bc80eb0614583ec5dd6ee87364266b257e48ca57241fe22e9ad6e6544e8611105272e15fb35f9f7fa3d1ba5aa210cc983e2456b5c6114f83137f59ee9
7
+ data.tar.gz: b78d7e6233cddf31a38b27e9a792fa05678a03cd70cbe42c97b0e9a81e888098b01f48896f03a3cdf1cc3e472f2c3ac161b9ba66bfd37b50aee302a1584b73d3
data/lib/liquefied.rb CHANGED
@@ -51,9 +51,10 @@ class Liquefied < BasicObject
51
51
  end
52
52
 
53
53
  def _finalize!(*args, &block)
54
- block = block || @default_block
55
54
  if block
56
- block.call(@original, *args)
55
+ block.call(@original)
56
+ elsif @default_block
57
+ @default_block.call([@original, *args])
57
58
  else
58
59
  args = @default_args if args.empty?
59
60
  @original.public_send(@finalizer, *args, &block)
@@ -1,3 +1,3 @@
1
1
  class Liquefied < BasicObject
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquefied
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
  - Andrew Vit
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler