fixturize 0.1.11 → 0.1.12
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 +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YmNmZWRkYTRjZGIwYjY5ZWIwZTMxNTBiODc5MTc2YzgxZThiNmI3ZA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NzgyOWZjZDY3MWI4N2I2ZGRlYjRmMDczZTJkZGRmZTdlNWY4NTNmYg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MThiYTdjZjA3OWE0MjQxZTFhOTUyZmQxYmE1MTBkMmQ0Y2VkZTVmYzdlMTVh
|
|
10
|
+
OWIzN2M2YjFjYzI4YzZkZDA0Y2FmNTE1YjEyMWMxYjMwN2IzNGJiODE5NzY1
|
|
11
|
+
NDBmYWI4MTgyNDc0NTVlYjMwYTMyYjdjNGFlZTljNzJkY2YxOTc=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YzJkMmFmM2U2ZmE0MTExYzMzYTRkY2U0MmY1OWM2NjhjOWUxM2RhMGEwZTU1
|
|
14
|
+
N2MxMDFlZjc0YzA3MGQyMWM1NjlmMzE3NzExMTQyZjhjNWRmNzFhNjgzYTI3
|
|
15
|
+
MjkzMDc5ZDQ3NzM3ZTRlYjExYTBhYzFkZDRkZjQ4YTk1MzQ3NjE=
|
data/lib/fixturize.rb
CHANGED
|
@@ -200,7 +200,16 @@ class Fixturize
|
|
|
200
200
|
|
|
201
201
|
block_caller = caller_of_block(block)
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
begin
|
|
204
|
+
ret_val = yield
|
|
205
|
+
rescue => e
|
|
206
|
+
collection.remove_aliased_from_fixturize({
|
|
207
|
+
:name => current_instrumentation,
|
|
208
|
+
})
|
|
209
|
+
|
|
210
|
+
raise e
|
|
211
|
+
end
|
|
212
|
+
|
|
204
213
|
instrument_ivars(block_caller.instance_variables, block_caller)
|
|
205
214
|
ret_val
|
|
206
215
|
end
|
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.12
|
|
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: 2015-
|
|
12
|
+
date: 2015-12-22 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
|