structure 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/structure/double.rb +0 -6
- data/lib/structure/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcf8086bf1877fd717dc7502032e3885d330b9f94121ccdf78c7284e2d5142d9
|
4
|
+
data.tar.gz: c57b41a06c261f717dc00b3d4b97a2ff764b84fcfcbf4a478a53aaba6f60b646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ecebfdf31f9380e7739f80e43ac16ebf975f18a9e19fe17af922fb9652fe348e1cc858912404d2baf5c1ee108073e11e3037d1fbc75078c1779ba99f27a44f7
|
7
|
+
data.tar.gz: e0b73c21bc741741f5e6808abd2f2fdbb97270f869f4ddd44bc5864d15f97be236514b12bf9d31aec25a8bc1c43a30b511c983f88caf4d91e6cffd957e1095b4
|
data/lib/structure/double.rb
CHANGED
@@ -16,12 +16,6 @@ module Structure
|
|
16
16
|
klass.module_eval do
|
17
17
|
def initialize(data = {})
|
18
18
|
data.each do |key, value|
|
19
|
-
unless value.is_a?(Structure) ||
|
20
|
-
(defined?(::RSpec::Mocks::Double) &&
|
21
|
-
value.is_a?(::RSpec::Mocks::Double))
|
22
|
-
value.freeze
|
23
|
-
end
|
24
|
-
|
25
19
|
instance_variable_set :"@#{key}", value
|
26
20
|
end
|
27
21
|
end
|
data/lib/structure/version.rb
CHANGED