fixturize 0.1.6 → 0.1.7
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 +8 -8
- data/lib/fixturize.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmYyODYyNmZjMGY0MDY3NmUyNTkxOTY4MGFmZDdjODM5YWE2NWQxZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjcyM2U5NjdkNDM1NTFkOTkxNTlmODkyMmJiYTQ2ZTE4OTkzNWE3MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWVhODFjYTIzZTQ1MGYzNWExZTkzMDY0NWIxOTU0MGU1YTEyYWVhN2NhOWNh
|
10
|
+
OTI2MmRhZTdiMzQxMjFhYjAyY2RlMzU2NWM0NjBhYTg4NWIxNGEwNGM2OGYy
|
11
|
+
OTcyYzI3MTE2YjU3NzdiZTcyMzMzOWIyNjgxMDRkYzc5ZDRhODY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDc2Y2EzOGY1MGY1NWVmM2NlNzE0ZWNjYzY4YTVkZmNlMTRiMzYyYjAwODA3
|
14
|
+
M2UyMjBhMGFlNTQ1OGMxMmQ3OTFmMDBmZDNmNDlhMTc1ZWI3YTZlNTJlMDhm
|
15
|
+
ZWZiYTJmOTE5ZTE4NjU3YTk2NDQ2NzM1NDdmMGY1MWNjN2ZkZGE=
|
data/lib/fixturize.rb
CHANGED
@@ -113,7 +113,7 @@ class Fixturize
|
|
113
113
|
:name => current_instrumentation,
|
114
114
|
:collection_name => collection_name.to_s,
|
115
115
|
:method_name => method_name.to_s,
|
116
|
-
:args =>
|
116
|
+
:args => BSON::Binary.new(Marshal.dump(args))
|
117
117
|
})
|
118
118
|
end
|
119
119
|
|
@@ -138,7 +138,7 @@ class Fixturize
|
|
138
138
|
|
139
139
|
def load_data_from(instrumentation)
|
140
140
|
collection = database.collection(instrumentation['collection_name'])
|
141
|
-
collection.send(instrumentation['method_name'], *
|
141
|
+
collection.send(instrumentation['method_name'], *Marshal.load(instrumentation['args'].to_s))
|
142
142
|
end
|
143
143
|
|
144
144
|
def load_ivars_from(instrumentation, target_obj)
|
@@ -177,7 +177,6 @@ class Fixturize
|
|
177
177
|
end
|
178
178
|
|
179
179
|
block_caller = caller_of_block(block)
|
180
|
-
ivars_before_block = block_caller.instance_variables
|
181
180
|
|
182
181
|
yield.tap do
|
183
182
|
instrument_ivars(block_caller.instance_variables, block_caller)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixturize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Taylor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: fixturize your mongo(mapper) tests inline by caching blocks of created
|
15
15
|
objects
|