active_mocker 2.4.1 → 2.4.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13a441f2c7273bbef0dd78a233e0af68384bd21e
|
4
|
+
data.tar.gz: ff1506b70f3129d634b37472cab33adf79acfe28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6add15589e4c7f5374e07b4b751dbb356d960054805a3b3f87e37f6d1e80f8a7b12984c7f9dde15d7b2ba022f43a60daf133801d46916666bd9eab09bb92ce58
|
7
|
+
data.tar.gz: 7208cb7558549c5118239ac901702a825865680bafe868970ce93393586a2953d94e42b4089a35952ddf48777683b86f7f83316bf4759e452d6f2bf500ea1936
|
@@ -143,8 +143,8 @@ module ActiveMocker
|
|
143
143
|
|
144
144
|
private
|
145
145
|
|
146
|
-
def
|
147
|
-
raise UpdateMocksError.new(name, version, ActiveMocker::VERSION) if version != ActiveMocker::VERSION
|
146
|
+
def mock_build_version(version)
|
147
|
+
raise UpdateMocksError.new(name, version, ActiveMocker::Mock::VERSION) if version != ActiveMocker::Mock::VERSION
|
148
148
|
end
|
149
149
|
|
150
150
|
# @deprecated
|
@@ -27,8 +27,8 @@ module ActiveMocker
|
|
27
27
|
end
|
28
28
|
|
29
29
|
class UpdateMocksError < BaseError
|
30
|
-
def initialize(name,
|
31
|
-
super("#{name} was built with #{
|
30
|
+
def initialize(name, mock_build_version, mock_current_version)
|
31
|
+
super("#{name} was built with #{mock_build_version} but the mock current version is #{mock_current_version}. Run `rake active_mocker:build` to update.")
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -2,7 +2,7 @@ require 'active_mocker/mock'
|
|
2
2
|
|
3
3
|
class <%= class_name + mock_append_name %> < <%= parent_class_inspector.parent_mock_name %>
|
4
4
|
|
5
|
-
|
5
|
+
mock_build_version('<%= ActiveMocker::Mock::VERSION %>')
|
6
6
|
|
7
7
|
<%= partials.modules_constants %>
|
8
8
|
<%= partials.class_methods %>
|