fake_smith 0.0.2 → 0.0.3

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: 62f056c3c6130e701039a3e9db04ac684847b328
4
- data.tar.gz: fe3efe13b1e080ee42985c8db0afc40ed82bcbec
3
+ metadata.gz: e0fe0a91d01cf07895686f40048a032b822d541f
4
+ data.tar.gz: 2413951b475eb74f0ce6874140bebc00b333f415
5
5
  SHA512:
6
- metadata.gz: 2a337578682af5ba30b56d522f8ec37fd93d4aa4a99b1cf8bb174266c9a83b7c2ec04233afe0560efdd79344c152c49bf580ae0ff4ff01663723ae5028cb66d0
7
- data.tar.gz: d11d26b9b06959841f84ce29819131d2b8d73fb1aff6cd3496f5cf6db5ce9955da5579ed53210de04ec64d6d931502d5c53f53f7aba74bad92237ed544aaa571
6
+ metadata.gz: 6ea0e3010d46b29d8a3374bb57b9ecff723ff17130dbbdc319d0e0cbae50d4ebd9433a762f05fa4c15956c0d0b1b91ca7228bd8a0a96fb00f30aa1e17f51ab15
7
+ data.tar.gz: c7b32c0fd1cfd8ee509a090209ca3137a597c1e8b2f4afecfbc89e49318fa339bbd6de9de610547e115a9a5e3b7c9258c45cde05f436ca77d32a2feb9a825787
data/README.md CHANGED
@@ -53,6 +53,12 @@ messages = FakeSmith.get_messsages("my_other_queue")
53
53
  expect(messages.count).to eq(1)
54
54
  ```
55
55
 
56
+ **NOTE** If you run into an error stating `wrong number of arguments (0 for 1)`
57
+ when trying to `new` up your agent then you probably have a
58
+ `require 'smith/agent'` in your agent. This will overwrite the fake Smith
59
+ agent and thus the stubbing won't work. You do not need these requires
60
+ so you can just remove it and it should work fine.
61
+
56
62
  ## Contributing
57
63
 
58
64
  1. Fork it ( https://github.com/[my-github-username]/fake_smith/fork )
@@ -1,3 +1,3 @@
1
1
  class FakeSmith
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/fake_smith.rb CHANGED
@@ -51,7 +51,7 @@ class FakeSmith
51
51
  end
52
52
 
53
53
  [:verbose, :debug, :info, :warn, :error, :fatal].each do |level|
54
- define_method(level) do |data, &blk|
54
+ define_method(level = nil) do |data, &blk|
55
55
  if block_given?
56
56
  log(level) << yield
57
57
  else
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Griffith