mock_proxy 0.1.2 → 0.1.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 +4 -4
- data/lib/mock_proxy.rb +1 -1
- data/lib/mock_proxy/version.rb +1 -1
- 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: 9adac2fb9c8647d2f74cd27918f4ec7a2cab0aa3
|
|
4
|
+
data.tar.gz: d1a89dc5cf285ae1a86b149165107a936ce9fc97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7de74d0b5c42d79bd268032380f01aec93f381bcd34bc5687dde7d7160bcb0a6785f69282019e2614f136d1a435892871f4ced552e32ba40151aa08ae0af9039
|
|
7
|
+
data.tar.gz: b5029ff013d9fa78b9f319db78805f6ccad749f957a2ab956464cca62ee63c265d5180d65a09d0cea884345850d3bf8e6ec76bc0b3f9b38408c66e75d876492b
|
data/lib/mock_proxy.rb
CHANGED
|
@@ -170,7 +170,7 @@ class MockProxy
|
|
|
170
170
|
copied_callback_hash = proxy.instance_variable_get('@callback_hash').clone
|
|
171
171
|
key_paths.reduce(copied_callback_hash) do |callback_hash, key|
|
|
172
172
|
if !callback_hash || !callback_hash[key]
|
|
173
|
-
fail ArgumentError, "The existing callback tree does not contain the full key path you provided. We stopped at #{key} and the callback tree looks like this: #{
|
|
173
|
+
fail ArgumentError, "The existing callback tree does not contain the full key path you provided. We stopped at #{key} and the callback tree looks like this: #{copied_callback_hash}"
|
|
174
174
|
end
|
|
175
175
|
if callback_hash[key].is_a?(Proc)
|
|
176
176
|
callback_hash[key] = proc
|
data/lib/mock_proxy/version.rb
CHANGED