fixturize 0.1.5 → 0.1.6

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 +2 -2
  3. metadata +6 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2I4NzE0YjQzNzgyMWUxYzI3MDZhNWM3OTE5NjMzMzBmNGZhZWY0Mg==
4
+ MTAyOTc0ZWI5MTU1MmY1MTE3YTJkNmMzZTFlMWVlNDVkNDY0ODcyYQ==
5
5
  data.tar.gz: !binary |-
6
- ZjUxMjAzZGE2N2Y2NTAzOGM0ZDQ3ZTg3N2IyYWYzMWM1ZmQwZDM5OQ==
6
+ NDNkYjQwOGJmZmZjYjUxOTUzY2RjYjgzMWQxNzQ0ZjNiMDQzZTI3Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjJjNjQxOWIxOWJjMmEzODEzNjRmYTk3OGMxYzkzMzU3NGFkYTMyZTRjNGJh
10
- NTc2ZTFmMGZjYmFiYjJiZjEzMDhmODAyNjAzOWQ5NjIzMTQyYjM1MWRkODE0
11
- OWNmMzA1MGI2NTBiZmE0NzczN2MzZDY3NDhiN2YzNjE3ZjdmNjk=
9
+ NjU0Y2UyZDEzYjg0NzIzNTA5NzNhNjIxYWI3M2YwMjRmN2MwMDFjZTZmNDhh
10
+ ODQyZGM4NzE3OWY4ZTg2NGYzZTEwZmYyNWMzOTllYzcxYjUxYmRmZDQxZDRi
11
+ NTdlMmQyOTRiOTkzN2ZmNjVjZmUwZTI5OTAzMmE4OGU1ZDk4OGE=
12
12
  data.tar.gz: !binary |-
13
- YWRlMmYxZmVhYzc0ZWM1YjU5NmU4ZmRiZTkxMDViNTNjNjEyZmJkZjRjYjYw
14
- ZDYzNTcwZWQ5ZWI4ZTI4N2VmNTQzYTdiOGFjNzZkNmU2Yjc0NzQ4ZGQ3NDRj
15
- ZmQyNmMzMzgxNjEwNGNkN2QwOTlmMGU0ZDlhYzc3Yjc2YjU3YzQ=
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
- new_ivars = (Set.new(block_caller.instance_variables) - Set.new(ivars_before_block)).to_a
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.5
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-06-27 00:00:00.000000000 Z
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: scott@railsnewbie.com
16
+ email:
17
+ - scott@railsnewbie.com
18
+ - pariser@gmail.com
16
19
  executables: []
17
20
  extensions: []
18
21
  extra_rdoc_files: []