fixturize 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/fixturize.rb +10 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmU5ZTBiZGU1OTVhZGUxNjBhZTAxZGNhNGQwNDQxYjg3YWI5YzBlMQ==
4
+ YmNmZWRkYTRjZGIwYjY5ZWIwZTMxNTBiODc5MTc2YzgxZThiNmI3ZA==
5
5
  data.tar.gz: !binary |-
6
- OThlNmJhODYzZjJmYjliMGRmOGY0OGIxOGFlYTdiZWE0YzA1NjAxOQ==
6
+ NzgyOWZjZDY3MWI4N2I2ZGRlYjRmMDczZTJkZGRmZTdlNWY4NTNmYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzA2ZGZiOTAyZDVkODdmYTg1YzE0NGU2NjMzMGY4NWMxYmYwMWZhNjA3MWIx
10
- MTdmNGY4MGE3YzlkYjA2OTJhODk1MjEzZTI3NzRmNTA5MWZlMWU0ZTViMDY1
11
- ZDdhZmEwYzJmMzdiMjdiYmRiMDcyMGZhZTM3YjY2OTJlZmYyZjk=
9
+ MThiYTdjZjA3OWE0MjQxZTFhOTUyZmQxYmE1MTBkMmQ0Y2VkZTVmYzdlMTVh
10
+ OWIzN2M2YjFjYzI4YzZkZDA0Y2FmNTE1YjEyMWMxYjMwN2IzNGJiODE5NzY1
11
+ NDBmYWI4MTgyNDc0NTVlYjMwYTMyYjdjNGFlZTljNzJkY2YxOTc=
12
12
  data.tar.gz: !binary |-
13
- OTNiMTU0NmVkYzA3MGFmODc5ODczZjQ4Yjk2ZDI4YjkwMWQyMjc4Njk0MGI1
14
- YWVjOTNhYmYxNDMyODgxNzFlZjZlMTE3MTI4YzYzZjZhOWM5ZmZiYWU1MWFi
15
- ZjZmZWNhYjRjNTRjYzMxNDU2MzI0Y2Q1NzBmNDNiNDQwNDZmNmU=
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
- ret_val = yield
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.11
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-05-26 00:00:00.000000000 Z
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