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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ceef8aba92781d19960ef4b65b3ece2d8d1d3d4e
4
- data.tar.gz: 41a93d0fed086e3b9479c60d055b7a7e89a0541a
3
+ metadata.gz: 9adac2fb9c8647d2f74cd27918f4ec7a2cab0aa3
4
+ data.tar.gz: d1a89dc5cf285ae1a86b149165107a936ce9fc97
5
5
  SHA512:
6
- metadata.gz: 9792f03d43756a82d7d8cec9b3a72e371205e9caa7904b0915209c49e5755029a1c5bcec58fd3e41a1f4c968df8e7af0f4f064ef9876cbf149573fac27aea1b0
7
- data.tar.gz: 00e2f0de77ffc357f4a175bdd2c143dca74790a0db3c7a6d2433174d160304995d56efd6936da024432f089cd3447c078a1aad8f41aa6a0849104cf97a8faa6f
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: #{existing_callback_hash}"
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
@@ -1,4 +1,4 @@
1
1
  class MockProxy
2
2
  # The version number
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mock_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - matrinox