temping 3.6.1 → 3.7.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: 9bbc8678c909e3f57c0412b5904356068e4df2bc
4
- data.tar.gz: 87a1e017b98cf4a196fc3b32f966f71d33e09373
3
+ metadata.gz: d297c668b6ddd40b5fc1a9dbc1c3dafa5ed857f7
4
+ data.tar.gz: 095e12f701f42da7dc7df06379a9e92783e787c0
5
5
  SHA512:
6
- metadata.gz: a1d36bb52ec584888dfb530ae59355ae95e8bbfc1d7bd4d411596e1194f59d7e9edc8308f093f1b0eafd224b50d1da290aa150c8aa7f516612162f873af166d7
7
- data.tar.gz: 6e54c9c3272e3447ad7e7a0d36c7556004d728c77fd935df9b5818e18f5041c23bb6d2aa9d27ed804546a2af07d1ba438735350bcceb0589d7e09e87329d3440
6
+ metadata.gz: 83b9b9254af227cf503910abad598a44223805572f5e0e8b1f7ef65345f499ff2303545afa47e5999f6173dcb266fa79d6dcf553cfedb0148153fddcc986d011
7
+ data.tar.gz: 4b50f86b1763bbc39681e9acfa01e0c3594550c979b8d3b809ddcedcd05ad0181e2a111d8fba41a003ccd41641bfc10315ff3e1852129039c5bccf965b88f5c0
@@ -12,7 +12,7 @@ class Temping
12
12
  klass
13
13
  end
14
14
 
15
- def teardown
15
+ def teardown(clear_dependencies: false)
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
24
+ ActiveSupport::Dependencies.clear if clear_dependencies
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.6.1
4
+ version: 3.7.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-06-24 00:00:00.000000000 Z
11
+ date: 2016-08-24 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.2
151
+ rubygems_version: 2.6.6
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Create temporary table-backed ActiveRecord models for use in tests