active_mocker 2.4.2 → 2.4.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/CHANGELOG.md +13 -3
- data/lib/active_mocker/mock_template/_scopes.erb +1 -1
- data/lib/active_mocker/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d739a444e2c5d8f845e0170bbbee79ecbef1e212
|
|
4
|
+
data.tar.gz: e6027c82b55601ce93456d8d9ee535e51c4a92ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
5
|
-
|
|
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
|
-
|
|
7
|
+
call_mock_method(method: '<%= method.name %>', caller: Kernel.caller, arguments: [<%= method.arguments.arguments %>])
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
<% 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.
|
|
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-
|
|
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:
|