fixturize 0.1.5 → 0.1.6
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 -2
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTAyOTc0ZWI5MTU1MmY1MTE3YTJkNmMzZTFlMWVlNDVkNDY0ODcyYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDNkYjQwOGJmZmZjYjUxOTUzY2RjYjgzMWQxNzQ0ZjNiMDQzZTI3Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjU0Y2UyZDEzYjg0NzIzNTA5NzNhNjIxYWI3M2YwMjRmN2MwMDFjZTZmNDhh
|
10
|
+
ODQyZGM4NzE3OWY4ZTg2NGYzZTEwZmYyNWMzOTllYzcxYjUxYmRmZDQxZDRi
|
11
|
+
NTdlMmQyOTRiOTkzN2ZmNjVjZmUwZTI5OTAzMmE4OGU1ZDk4OGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWE5ZWEzZGU5YzQ1OTQwNWYzMzQ1MWMyNDY4ODc2MDk4Y2MwODRlZjdiZGY3
|
14
|
+
ZDZkYmE2M2ZiMDJmMzdiMmY2ZTU4MTlkZTliMWFmYjY4YWNhYjY5ZDk4MTli
|
15
|
+
Mjg1NDcwOGE1OTViMDYyOTNlY2NhYThmMjk2MjIwMTNhN2Q2MjM=
|
data/lib/fixturize.rb
CHANGED
@@ -72,6 +72,7 @@ class Fixturize
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def fixturize(name = nil, &block)
|
75
|
+
raise LocalJumpError.new("fixturize requires a block") unless block_given?
|
75
76
|
return yield if !enabled?
|
76
77
|
|
77
78
|
if !name && block.respond_to?(:source_location)
|
@@ -179,8 +180,7 @@ class Fixturize
|
|
179
180
|
ivars_before_block = block_caller.instance_variables
|
180
181
|
|
181
182
|
yield.tap do
|
182
|
-
|
183
|
-
instrument_ivars(new_ivars, block_caller)
|
183
|
+
instrument_ivars(block_caller.instance_variables, block_caller)
|
184
184
|
end
|
185
185
|
end
|
186
186
|
|
metadata
CHANGED
@@ -1,18 +1,21 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Taylor
|
8
|
+
- Andrew Pariser
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
13
|
dependencies: []
|
13
14
|
description: fixturize your mongo(mapper) tests inline by caching blocks of created
|
14
15
|
objects
|
15
|
-
email:
|
16
|
+
email:
|
17
|
+
- scott@railsnewbie.com
|
18
|
+
- pariser@gmail.com
|
16
19
|
executables: []
|
17
20
|
extensions: []
|
18
21
|
extra_rdoc_files: []
|