temping 3.6.1 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/temping.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d297c668b6ddd40b5fc1a9dbc1c3dafa5ed857f7
|
4
|
+
data.tar.gz: 095e12f701f42da7dc7df06379a9e92783e787c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83b9b9254af227cf503910abad598a44223805572f5e0e8b1f7ef65345f499ff2303545afa47e5999f6173dcb266fa79d6dcf553cfedb0148153fddcc986d011
|
7
|
+
data.tar.gz: 4b50f86b1763bbc39681e9acfa01e0c3594550c979b8d3b809ddcedcd05ad0181e2a111d8fba41a003ccd41641bfc10315ff3e1852129039c5bccf965b88f5c0
|
data/lib/temping.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|