temporary_model 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/temporary_model/test_helper.rb +0 -7
- data/lib/temporary_model/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95df4218c0175193d45f3a177e68a436e1e3d9e31c9af7f540eb356113740d93
|
4
|
+
data.tar.gz: eee699449ce7e73855aaa3bd3a2740a1d68fb0d9c88421b9f626d70ca31465ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe5962ec20d403e7ae5ecda0faf3b56b9132a65c77cbe1dd7f50da0377f6499a50f06edf63d8ef4e2c8cdc3e6e14ec6adaf4ea940e0e0f17c35baccabfd9afda
|
7
|
+
data.tar.gz: 3ea60d66c83644d5b6268db9d2a225c80e5a11d8bd8142afe102019c3f3a55cacb731d1b583dbb297c5c0bdb06e41ac4956fe08b077d06f329ec3de549adbf3b
|
@@ -40,13 +40,6 @@ module TemporaryModel::TestHelper
|
|
40
40
|
Object.send(:remove_const, temporary_class.name)
|
41
41
|
end
|
42
42
|
end
|
43
|
-
# テンポラリクラスでリレーションを使っている場合、
|
44
|
-
# ActiveSupport::Dependencies.clear をしないとリレーションのklassに再利用され、
|
45
|
-
#
|
46
|
-
# Post == Tag.find_by(name: 'Tag').posts.klass # => false
|
47
|
-
#
|
48
|
-
# になる
|
49
|
-
ActiveSupport::Dependencies.clear
|
50
43
|
@temporary_classes.clear
|
51
44
|
end
|
52
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: temporary_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuichi Takeuchi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '7.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,15 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 3.3.0
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
|
90
|
-
rubygems_version: 2.7.6
|
89
|
+
rubygems_version: 3.5.6
|
91
90
|
signing_key:
|
92
91
|
specification_version: 4
|
93
92
|
summary: You can define a temporary class and use it in ActiveSupport::TestCase.
|