factory_girl-cache 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module FactoryGirlCache
11
11
  if [:build, :build_list, :build_stubbed, :create, :create_list].include?(m)
12
12
  keys = args.dup
13
13
  options = args.last
14
- cached_as = options.is_a?(Hash) ? options.remove(:cached_as) : nil
14
+ cached_as = options.is_a?(Hash) ? options.delete(:cached_as) : nil
15
15
  keys[0] = cached_as if !(cached_as.nil?) && keys.size > 0
16
16
  @factory_girl_cache ||= {}
17
17
  @factory_girl_cache[[m, *keys]] ||= FactoryGirl.__send__(m, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module FactoryGirlCache
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_girl-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: