fixturize 0.1.8 → 0.1.9

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 +4 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjUzNGZmMzgzM2M1OWIyN2MxYzZlOTViNTUwNjE5MmVjN2JkZTRhZg==
4
+ M2Q5YTIyMzVlNTNiNGMzMzlhMGU4YmE4MTM4MDhkOWVhNmMyNTJkYQ==
5
5
  data.tar.gz: !binary |-
6
- OThlNjUwMGYxOTRlMzFmMWZmMjc5NDkwOTYzMWI1NDU4NzQ3ZGYyNA==
6
+ ZGI2NDFlYzgzZmVjMGIwMjZlOWYyNzQwMDZmNTc5OTk0ZTJjMzE5Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzFkNjc4Y2QxYTI4YThlZjY5YWEzYjhmNWY1MDVkNmUxNDQ3YTQ4YjA2ODhk
10
- YmJhODI4NWNlN2U3MGMxMGNkNDE4NTczMWQ3OWI0MDEzNzM4ZjMyNDAzZjQx
11
- N2Y4Nzk5ZDc2MDM4YjIwZmMwZDE5ZTlkMzExZGRjYzI2ZjlhMWE=
9
+ ZjBiNmM5NDIyYTkwZTliMTczZDJhMDdhZDUwODVlZGZkYjVlYjgyNDU4MDM1
10
+ YjhjMTBjZjVjOGUwZTU4ZTEyMjA3YmI4MjNiY2VhODZiZTQ3MGIyYTQ3YTFl
11
+ MDRkMGYzNjVjYzQ2MmZiYTBmNzU3NGI1MGFjYjE2NmYwODllMDA=
12
12
  data.tar.gz: !binary |-
13
- NTMxOTI5OWFkNzdiOWExYmExYjgxN2UwMjYwMDAxY2EwOWIwMTVlNjljMmVj
14
- ODM2ZDU4ZWVhNGI0NGNjODMwMjA5NGRiMmEwYzMyNGE1OWQ5MGQ4Mzg1ZWI2
15
- N2I2MjM0MDhmZjliZmI5NDcxMWRlMjkxMjYxYzczODEzMzU2NzU=
13
+ MDNjNTA2YmQ2OTA3N2IwM2VmMWI4NjFhYmQ1OThkOTBkYjZhODkzZWJmY2Qw
14
+ MTVhMDI0ZDRhYjlhNzgyNDE1OTZiNmQyMTg4MTIzMjAwYWZkNTY2NWM2MTg3
15
+ NWJlMDk1OGVhY2Q4ZTJmNzNkOGRiOTA2NTIxMzA0MzFlMzU0Zjg=
data/lib/fixturize.rb CHANGED
@@ -56,10 +56,10 @@ class Fixturize
56
56
  end
57
57
 
58
58
  def clear_old_versions!
59
- database.collections.each do |c|
60
- if c.name =~ /fixturize_/ && c.name != self.collection_name
61
- c.drop
62
- end
59
+ database.collections.select do |c|
60
+ c.name =~ /fixturize_/ && c.name != self.collection_name
61
+ end.each do |c|
62
+ c.drop
63
63
  end
64
64
  end
65
65
 
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.8
4
+ version: 0.1.9
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-09-23 00:00:00.000000000 Z
12
+ date: 2015-03-24 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
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  version: '0'
42
42
  requirements: []
43
43
  rubyforge_project:
44
- rubygems_version: 2.2.2
44
+ rubygems_version: 2.4.5
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: fixturize your mongo tests inline