temporary_model 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 030a808617abb6bba6d515a77e9dee9a2714d07ab54997905deb1a0cec621ff3
4
- data.tar.gz: b15daf9690ca648f00e13645f8d5661806fd429b6db4edf7ce908df21b009e59
3
+ metadata.gz: 95df4218c0175193d45f3a177e68a436e1e3d9e31c9af7f540eb356113740d93
4
+ data.tar.gz: eee699449ce7e73855aaa3bd3a2740a1d68fb0d9c88421b9f626d70ca31465ec
5
5
  SHA512:
6
- metadata.gz: 21859643e40e3416aaac2032b5ac853f84809d33715ebd02f24ab99d728a2d1f44215dd6c5138f07a1d6cf459cae80ece4e757e8ac3430fc39c62ca847046b5d
7
- data.tar.gz: 8f640495053f906153dfdcf87743cd89b4625daa7911a96eeb69a364664b7dc815b32c1268e68bca7c4843929355aeaa447935f5c0142039387e1b00650216b5
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
@@ -1,3 +1,3 @@
1
1
  module TemporaryModel
2
- VERSION = '0.2.2'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: temporary_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
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: 2018-05-01 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.1'
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: '5.1'
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: '0'
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
- rubyforge_project:
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.