fake_smith 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fake_smith/version.rb +1 -1
- data/lib/fake_smith.rb +3 -3
- 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: 6407b43b2d9f4d5a55cfedce8fee540e1e48ab10
|
4
|
+
data.tar.gz: cc5f12b85a56c65d296ca0b9db9406d9d69baebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c71109e7e0736d1805fe5b8e567bcfb095fc9dabdb1d287ac4495a86265a358db78ed80f3c18129220276c2005b827a46e066d66638b5e42eed635925c68ce86
|
7
|
+
data.tar.gz: f1c63746fd5368fd71620a78ddc56c6eb835c30f7f79e9bbe3b2d4fbd0c8277a4172f99bd7fdfdeefd561218b55efb34d19bae805a5d60f43d674e1e3f6c83f2
|
data/lib/fake_smith/version.rb
CHANGED
data/lib/fake_smith.rb
CHANGED
@@ -51,9 +51,9 @@ class FakeSmith
|
|
51
51
|
end
|
52
52
|
|
53
53
|
[:verbose, :debug, :info, :warn, :error, :fatal].each do |level|
|
54
|
-
define_method(level
|
55
|
-
if
|
56
|
-
log(level) <<
|
54
|
+
define_method(level) do |data = nil, &blk|
|
55
|
+
if blk
|
56
|
+
log(level) << blk.call
|
57
57
|
else
|
58
58
|
log(level) << data
|
59
59
|
end
|