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 +4 -4
- data/lib/liquefied.rb +3 -2
- data/lib/liquefied/version.rb +1 -1
- 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: d96f4666115e9d5349e0147a3a1b3007b5cf7f0c
|
4
|
+
data.tar.gz: f894d0f8badcf1a4339bf6b9812435ad1e3803a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)
|
data/lib/liquefied/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|