active_mocker 2.4.2 → 2.4.3

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: 13a441f2c7273bbef0dd78a233e0af68384bd21e
4
- data.tar.gz: ff1506b70f3129d634b37472cab33adf79acfe28
3
+ metadata.gz: d739a444e2c5d8f845e0170bbbee79ecbef1e212
4
+ data.tar.gz: e6027c82b55601ce93456d8d9ee535e51c4a92ec
5
5
  SHA512:
6
- metadata.gz: 6add15589e4c7f5374e07b4b751dbb356d960054805a3b3f87e37f6d1e80f8a7b12984c7f9dde15d7b2ba022f43a60daf133801d46916666bd9eab09bb92ce58
7
- data.tar.gz: 7208cb7558549c5118239ac901702a825865680bafe868970ce93393586a2953d94e42b4089a35952ddf48777683b86f7f83316bf4759e452d6f2bf500ea1936
6
+ metadata.gz: 761a151ead9031267015bca01e0845c37b2cca83dabc2dfd165517eb461621d69214640e6acc65feba4e2e1d41f89ac02597a459a14a24c87dc3006603125af2
7
+ data.tar.gz: 862c848b031acd417ea8382c09f2ba59f142a99f12f066dff47b7f64aae673acb0074fdeb3b4bbfab7c39aa59ffab882f6f0ade81c0e28933819ba7dd17ffff3
data/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## 2.4.0.pre5 - 2016-10-21
5
- - Up port 2.3.4 changes
4
+ ## 2.4.3 - 2017-03-10
5
+ ### Fix
6
+ - scope methods returned `undefined method `call_mock_method' for nil:NilClass` for Mocks nested in modules.
7
+
8
+ ## 2.4.2 - 2017-01-11
9
+ ### Enhancement
10
+ - Semantically version mock generation separately.
11
+
12
+ ## 2.4.1 - 2017-01-11
13
+ ### Fix
14
+ - When a type was an Array state could be shared between records.
15
+
16
+ ## 2.4.0 - 2016-12-14
6
17
 
7
- ## 2.4.0.pre4 - 2016-10-20
8
18
  ### Enhancement
9
19
  - Whitelist methods to import into mock code by adding a comment with `ActiveMocker.safe_methods(*methods)`
10
20
  ```ruby
@@ -4,7 +4,7 @@ include <%= parent_class_inspector.parent_mock_name %>::Scopes
4
4
 
5
5
  <% scope_methods.each do |method| -%>
6
6
  def <%= method.name %><%= "(#{method.arguments.parameters})" unless method.arguments.parameters.to_a.empty? %>
7
- ActiveMocker::LoadedMocks.find('<%= class_name %>').send(:call_mock_method, method: '<%= method.name %>', caller: Kernel.caller, arguments: [<%= method.arguments.arguments %>])
7
+ call_mock_method(method: '<%= method.name %>', caller: Kernel.caller, arguments: [<%= method.arguments.arguments %>])
8
8
  end
9
9
 
10
10
  <% end -%>
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveMocker
3
- VERSION = "2.4.2"
3
+ VERSION = "2.4.3"
4
4
  module Mock
5
5
  VERSION = "1" # This increments when breaking changes happen in the generated mocks
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -278,4 +278,3 @@ specification_version: 4
278
278
  summary: Creates mocks from Active Record models. Allows your test suite to run very
279
279
  fast by not loading Rails or a database.
280
280
  test_files: []
281
- has_rdoc: