active_mocker 2.4.1 → 2.4.2

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: 8379be073b5e2849d1500ef8090c0bf12db30bfe
4
- data.tar.gz: 7dcbb215ad5f23fcce705c03cdc793bfa6bf1088
3
+ metadata.gz: 13a441f2c7273bbef0dd78a233e0af68384bd21e
4
+ data.tar.gz: ff1506b70f3129d634b37472cab33adf79acfe28
5
5
  SHA512:
6
- metadata.gz: 76eb625a99cf4d13a5ee3c2cb5f07ce09ad2f8c35065ccc026d028aaff33d1d025c92a4c773ae6cab59fc6f87a7c64b4cfd5883a196b2aa87e424e729b874524
7
- data.tar.gz: 14e0c300079cc1951c3cb5b58b461ddea4b18846c5ebfde3d417030ab475d73e01e162442e1b465adacb409fc15a1a5959ba54f783734b476fae8cc06f19b693
6
+ metadata.gz: 6add15589e4c7f5374e07b4b751dbb356d960054805a3b3f87e37f6d1e80f8a7b12984c7f9dde15d7b2ba022f43a60daf133801d46916666bd9eab09bb92ce58
7
+ data.tar.gz: 7208cb7558549c5118239ac901702a825865680bafe868970ce93393586a2953d94e42b4089a35952ddf48777683b86f7f83316bf4759e452d6f2bf500ea1936
@@ -143,8 +143,8 @@ module ActiveMocker
143
143
 
144
144
  private
145
145
 
146
- def created_with(version)
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, mock_version, gem_version)
31
- super("#{name} was built with #{mock_version} but the gem version is #{gem_version}. Run `rake active_mocker:build` to update.")
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
- created_with('<%= ActiveMocker::VERSION %>')
5
+ mock_build_version('<%= ActiveMocker::Mock::VERSION %>')
6
6
 
7
7
  <%= partials.modules_constants %>
8
8
  <%= partials.class_methods %>
@@ -1,4 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveMocker
3
- VERSION = "2.4.1"
3
+ VERSION = "2.4.2"
4
+ module Mock
5
+ VERSION = "1" # This increments when breaking changes happen in the generated mocks
6
+ end
4
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler