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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0fe0a91d01cf07895686f40048a032b822d541f
4
- data.tar.gz: 2413951b475eb74f0ce6874140bebc00b333f415
3
+ metadata.gz: 6407b43b2d9f4d5a55cfedce8fee540e1e48ab10
4
+ data.tar.gz: cc5f12b85a56c65d296ca0b9db9406d9d69baebd
5
5
  SHA512:
6
- metadata.gz: 6ea0e3010d46b29d8a3374bb57b9ecff723ff17130dbbdc319d0e0cbae50d4ebd9433a762f05fa4c15956c0d0b1b91ca7228bd8a0a96fb00f30aa1e17f51ab15
7
- data.tar.gz: c7b32c0fd1cfd8ee509a090209ca3137a597c1e8b2f4afecfbc89e49318fa339bbd6de9de610547e115a9a5e3b7c9258c45cde05f436ca77d32a2feb9a825787
6
+ metadata.gz: c71109e7e0736d1805fe5b8e567bcfb095fc9dabdb1d287ac4495a86265a358db78ed80f3c18129220276c2005b827a46e066d66638b5e42eed635925c68ce86
7
+ data.tar.gz: f1c63746fd5368fd71620a78ddc56c6eb835c30f7f79e9bbe3b2d4fbd0c8277a4172f99bd7fdfdeefd561218b55efb34d19bae805a5d60f43d674e1e3f6c83f2
@@ -1,3 +1,3 @@
1
1
  class FakeSmith
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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 = nil) do |data, &blk|
55
- if block_given?
56
- log(level) << yield
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fake_smith
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Griffith