temping 3.7.1 → 3.8.0

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 +4 -4
  2. data/lib/temping.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d63dd44c5b3e2bd44019de705433792a570b1280
4
- data.tar.gz: 6ebf2f18c8cdbb6c065436a297936b8ed7ab46c7
3
+ metadata.gz: 1f1e540bd8c166e116a2855d94e62a215aecbdd8
4
+ data.tar.gz: f1b62f83c07e11adeb1d0308a5b4c16d29672c84
5
5
  SHA512:
6
- metadata.gz: 0cd6f6e83066aa85ed5c2a860b21bc478b8dc05f9a331ade75c046e3867c9898461ccd06b743f7855f2c3a3d3be41a2aa65e0e36c7e229e36abe77e87bd61194
7
- data.tar.gz: c81c953fd01805e8db09f87b6288615eb762e517ca6fe80a6b66af1dd1eda5526103c0118f080ecf4b16047b833bf22bc4e731955d513898728fff4e33ad0b03
6
+ metadata.gz: ef670dd1b41aefe97264c56ac81072fb45d7d153f08da335d1546652965e93eaa2326b5a7c18d14df5a876818e679df6b04a4ce840176de8c0555539477d9dc0
7
+ data.tar.gz: 959d603fc824a39f8e80759d81c42734acd828138764f8ca258121f8bc79169a31cc4d2fea171f73c8bbde777a01c9fd1f54f0864e9d9b82e92640e36609208b
@@ -12,7 +12,7 @@ class Temping
12
12
  klass
13
13
  end
14
14
 
15
- def teardown(clear_dependencies: false)
15
+ def teardown
16
16
  if @model_klasses.any?
17
17
  @model_klasses.each do |klass|
18
18
  if Object.const_defined?(klass.name)
@@ -21,7 +21,7 @@ class Temping
21
21
  end
22
22
  end
23
23
  @model_klasses.clear
24
- ActiveSupport::Dependencies.clear if clear_dependencies
24
+ ActiveSupport::Dependencies::Reference.clear!
25
25
  end
26
26
  end
27
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: temping
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Pignata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-24 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.6.6
151
+ rubygems_version: 2.6.8
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Create temporary table-backed ActiveRecord models for use in tests