active_mocker 2.4.0.pre2 → 2.4.0.pre3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: add34a8a0b3a70e3f30fdb54b802ba7534e98466
|
4
|
+
data.tar.gz: 878db3b1876606382669d6a59de99b1de6656e15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 015b6289ee812e58635eee81ea72d0a9f4949c9b4a50a9e655baab50721083d1a1434248a015074386d763c6bf26671835faa4b8635f9f169ca3f4a3a92f4084
|
7
|
+
data.tar.gz: fa75df7c31f75875ef129d4a0cdb71af18dff93750d318efc31da834804e5a58d027164b8c60fc618e907284c25e72df70903b9cc359487314b54ea288774bdf
|
data/CHANGELOG.md
CHANGED
data/lib/active_mocker.rb
CHANGED
@@ -28,5 +28,6 @@ require "active_mocker/mock_creator"
|
|
28
28
|
require "active_mocker/error_object"
|
29
29
|
require "active_mocker/display_errors"
|
30
30
|
require "active_mocker/generate"
|
31
|
+
require "active_mocker/attribute_types/register"
|
31
32
|
require "active_mocker/attribute_types/enum"
|
32
33
|
require "active_mocker/attribute"
|
@@ -1,3 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "virtus"
|
3
|
+
|
1
4
|
module ActiveMocker
|
2
5
|
module AttributeTypes
|
3
6
|
class Enum < Virtus::Attribute
|
@@ -60,5 +63,3 @@ module ActiveMocker
|
|
60
63
|
end
|
61
64
|
end
|
62
65
|
end
|
63
|
-
|
64
|
-
ActiveRecordSchemaScrapper::Attributes.register_type(name: :enum, klass: String)
|
data/lib/active_mocker/mock.rb
CHANGED
@@ -27,4 +27,5 @@ require "active_mocker/mock/records"
|
|
27
27
|
require "active_mocker/mock/object_inspect"
|
28
28
|
require "active_mocker/mock/alias_attribute"
|
29
29
|
require "active_mocker/mock/unrepresentable_const_value"
|
30
|
+
require "active_mocker/attribute_types/enum"
|
30
31
|
require "active_mocker/mock/base"
|
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.0.
|
4
|
+
version: 2.4.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Zeisler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -186,6 +186,7 @@ files:
|
|
186
186
|
- lib/active_mocker.rb
|
187
187
|
- lib/active_mocker/attribute.rb
|
188
188
|
- lib/active_mocker/attribute_types/enum.rb
|
189
|
+
- lib/active_mocker/attribute_types/register.rb
|
189
190
|
- lib/active_mocker/config.rb
|
190
191
|
- lib/active_mocker/deprecated_components/mock_abilities.rb
|
191
192
|
- lib/active_mocker/deprecated_components/rspec.rb
|