store_base_sti_class 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +5 -57
- data/Gemfile.lock +6 -9
- data/README.md +8 -11
- data/debug.log +12652 -0
- data/gemfiles/rails_3.0.5.gemfile.lock +3 -3
- data/gemfiles/rails_3.0.6.gemfile.lock +3 -3
- data/gemfiles/rails_3.0.7.gemfile.lock +3 -3
- data/gemfiles/rails_3.2.14.gemfile.lock +1 -4
- data/gemfiles/rails_4.0.0.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.1.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.10.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.11.1.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.11.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.12.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.13.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.2.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.3.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.4.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.5.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.6.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.7.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.8.gemfile.lock +2 -5
- data/gemfiles/rails_4.0.9.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.0.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.1.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.10.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.11.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.12.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.13.gemfile.lock +48 -0
- data/gemfiles/rails_4.1.14.1.gemfile.lock +48 -0
- data/gemfiles/rails_4.1.14.2.gemfile.lock +48 -0
- data/gemfiles/rails_4.1.14.gemfile.lock +48 -0
- data/gemfiles/rails_4.1.15.gemfile.lock +48 -0
- data/gemfiles/rails_4.1.2.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.3.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.4.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.5.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.6.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.7.1.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.7.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.8.gemfile.lock +2 -5
- data/gemfiles/rails_4.1.9.gemfile.lock +2 -5
- data/gemfiles/rails_4.2.0.gemfile.lock +2 -5
- data/gemfiles/rails_4.2.1.gemfile.lock +2 -5
- data/gemfiles/rails_4.2.2.gemfile.lock +2 -5
- data/gemfiles/rails_4.2.3.gemfile.lock +2 -5
- data/gemfiles/rails_4.2.4.gemfile.lock +48 -0
- data/gemfiles/rails_4.2.5.1.gemfile.lock +48 -0
- data/gemfiles/rails_4.2.5.2.gemfile.lock +48 -0
- data/gemfiles/rails_4.2.5.gemfile.lock +48 -0
- data/gemfiles/rails_4.2.6.gemfile.lock +48 -0
- data/gemfiles/{rails_3.0.5.gemfile → rails_4.2.7.1.gemfile} +1 -2
- data/gemfiles/{rails_3.0.6.gemfile → rails_4.2.7.gemfile} +1 -2
- data/gemfiles/{rails_3.0.7.gemfile → rails_5.0.0.1.gemfile} +1 -2
- data/gemfiles/{rails_3.0.8.gemfile → rails_5.0.0.gemfile} +1 -2
- data/gemfiles/rails_5.0.1.gemfile +7 -0
- data/gemfiles/rails_5.0.1.gemfile.lock +48 -0
- data/lib/store_base_sti_class.rb +3 -5
- data/lib/store_base_sti_class/version.rb +1 -1
- data/lib/store_base_sti_class_for_5_0.rb +404 -0
- data/store_base_sti_class.gemspec +3 -3
- data/storebasestiname_unittest.sql +0 -0
- metadata +26 -64
- data/gemfiles/rails_3.0.10.gemfile +0 -8
- data/gemfiles/rails_3.0.11.gemfile +0 -8
- data/gemfiles/rails_3.0.12.gemfile +0 -8
- data/gemfiles/rails_3.0.13.gemfile +0 -8
- data/gemfiles/rails_3.0.14.gemfile +0 -8
- data/gemfiles/rails_3.0.15.gemfile +0 -8
- data/gemfiles/rails_3.0.16.gemfile +0 -8
- data/gemfiles/rails_3.0.17.gemfile +0 -8
- data/gemfiles/rails_3.0.18.gemfile +0 -8
- data/gemfiles/rails_3.0.19.gemfile +0 -8
- data/gemfiles/rails_3.0.20.gemfile +0 -8
- data/gemfiles/rails_3.0.9.gemfile +0 -8
- data/gemfiles/rails_3.1.0.gemfile +0 -8
- data/gemfiles/rails_3.1.10.gemfile +0 -8
- data/gemfiles/rails_3.1.11.gemfile +0 -8
- data/gemfiles/rails_3.1.12.gemfile +0 -8
- data/gemfiles/rails_3.1.2.gemfile +0 -8
- data/gemfiles/rails_3.1.3.gemfile +0 -8
- data/gemfiles/rails_3.1.4.gemfile +0 -8
- data/gemfiles/rails_3.1.5.gemfile +0 -8
- data/gemfiles/rails_3.1.6.gemfile +0 -8
- data/gemfiles/rails_3.1.7.gemfile +0 -8
- data/gemfiles/rails_3.1.8.gemfile +0 -8
- data/gemfiles/rails_3.1.9.gemfile +0 -8
- data/gemfiles/rails_3.2.0.gemfile +0 -8
- data/gemfiles/rails_3.2.1.gemfile +0 -8
- data/gemfiles/rails_3.2.10.gemfile +0 -8
- data/gemfiles/rails_3.2.11.gemfile +0 -8
- data/gemfiles/rails_3.2.12.gemfile +0 -8
- data/gemfiles/rails_3.2.13.gemfile +0 -8
- data/gemfiles/rails_3.2.14.gemfile +0 -8
- data/gemfiles/rails_3.2.15.gemfile +0 -8
- data/gemfiles/rails_3.2.16.gemfile +0 -8
- data/gemfiles/rails_3.2.17.gemfile +0 -8
- data/gemfiles/rails_3.2.18.gemfile +0 -8
- data/gemfiles/rails_3.2.19.gemfile +0 -8
- data/gemfiles/rails_3.2.2.gemfile +0 -8
- data/gemfiles/rails_3.2.20.gemfile +0 -8
- data/gemfiles/rails_3.2.21.gemfile +0 -8
- data/gemfiles/rails_3.2.22.1.gemfile +0 -8
- data/gemfiles/rails_3.2.22.2.gemfile +0 -8
- data/gemfiles/rails_3.2.22.gemfile +0 -8
- data/gemfiles/rails_3.2.3.gemfile +0 -8
- data/gemfiles/rails_3.2.4.gemfile +0 -8
- data/gemfiles/rails_3.2.5.gemfile +0 -8
- data/gemfiles/rails_3.2.6.gemfile +0 -8
- data/gemfiles/rails_3.2.7.gemfile +0 -8
- data/gemfiles/rails_3.2.8.gemfile +0 -8
- data/gemfiles/rails_3.2.9.gemfile +0 -8
- data/lib/store_base_sti_class_for_3_0.rb +0 -470
- data/lib/store_base_sti_class_for_3_1_and_above.rb +0 -304
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
|
10
10
|
s.require_paths = ['lib']
|
11
11
|
s.authors = ['AppFolio']
|
12
|
-
s.description = "\n ActiveRecord has always stored the base class in polymorphic _type columns when using STI. This can have non-trivial\n performance implications in certain cases. This gem adds 'store_base_sti_class' configuration
|
12
|
+
s.description = "\n ActiveRecord has always stored the base class in polymorphic _type columns when using STI. This can have non-trivial\n performance implications in certain cases. This gem adds the 'store_base_sti_class' configuration option which controls\n whether ActiveRecord will store the base class or the actual class. Defaults to true for backwards compatibility.\n "
|
13
13
|
s.email = 'engineering@appfolio.com'
|
14
14
|
s.extra_rdoc_files = %w(
|
15
15
|
LICENSE.txt
|
@@ -20,9 +20,9 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.homepage = 'http://github.com/appfolio/store_base_sti_class'
|
21
21
|
s.licenses = ['MIT']
|
22
22
|
s.rubygems_version = '2.2.2'
|
23
|
-
s.summary = 'Modifies ActiveRecord
|
23
|
+
s.summary = 'Modifies ActiveRecord 4.0.x - 5.0.x with the ability to store the actual class (instead of the base class) in polymorhic _type columns when using STI'
|
24
24
|
|
25
|
-
s.add_runtime_dependency(%q<activerecord>, ['>=
|
25
|
+
s.add_runtime_dependency(%q<activerecord>, ['>= 4.0'])
|
26
26
|
s.add_development_dependency(%q<minitest>, ['>= 4.0'])
|
27
27
|
s.add_development_dependency(%q<sqlite3>, ['>= 0'])
|
28
28
|
s.add_development_dependency(%q<appraisal>, ['>= 0'])
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: store_base_sti_class
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AppFolio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '4.0'
|
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: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,9 +82,9 @@ dependencies:
|
|
82
82
|
version: '0'
|
83
83
|
description: "\n ActiveRecord has always stored the base class in polymorphic _type
|
84
84
|
columns when using STI. This can have non-trivial\n performance implications
|
85
|
-
in certain cases. This gem adds 'store_base_sti_class' configuration
|
86
|
-
controls\n whether ActiveRecord will store the base class or the actual
|
87
|
-
|
85
|
+
in certain cases. This gem adds the 'store_base_sti_class' configuration option
|
86
|
+
which controls\n whether ActiveRecord will store the base class or the actual
|
87
|
+
class. Defaults to true for backwards compatibility.\n "
|
88
88
|
email: engineering@appfolio.com
|
89
89
|
executables: []
|
90
90
|
extensions: []
|
@@ -99,109 +99,56 @@ files:
|
|
99
99
|
- README.md
|
100
100
|
- Rakefile
|
101
101
|
- debug.log
|
102
|
-
- gemfiles/rails_3.0.10.gemfile
|
103
102
|
- gemfiles/rails_3.0.10.gemfile.lock
|
104
|
-
- gemfiles/rails_3.0.11.gemfile
|
105
103
|
- gemfiles/rails_3.0.11.gemfile.lock
|
106
|
-
- gemfiles/rails_3.0.12.gemfile
|
107
104
|
- gemfiles/rails_3.0.12.gemfile.lock
|
108
|
-
- gemfiles/rails_3.0.13.gemfile
|
109
105
|
- gemfiles/rails_3.0.13.gemfile.lock
|
110
|
-
- gemfiles/rails_3.0.14.gemfile
|
111
106
|
- gemfiles/rails_3.0.14.gemfile.lock
|
112
|
-
- gemfiles/rails_3.0.15.gemfile
|
113
107
|
- gemfiles/rails_3.0.15.gemfile.lock
|
114
|
-
- gemfiles/rails_3.0.16.gemfile
|
115
108
|
- gemfiles/rails_3.0.16.gemfile.lock
|
116
|
-
- gemfiles/rails_3.0.17.gemfile
|
117
109
|
- gemfiles/rails_3.0.17.gemfile.lock
|
118
|
-
- gemfiles/rails_3.0.18.gemfile
|
119
110
|
- gemfiles/rails_3.0.18.gemfile.lock
|
120
|
-
- gemfiles/rails_3.0.19.gemfile
|
121
111
|
- gemfiles/rails_3.0.19.gemfile.lock
|
122
|
-
- gemfiles/rails_3.0.20.gemfile
|
123
112
|
- gemfiles/rails_3.0.20.gemfile.lock
|
124
|
-
- gemfiles/rails_3.0.5.gemfile
|
125
113
|
- gemfiles/rails_3.0.5.gemfile.lock
|
126
|
-
- gemfiles/rails_3.0.6.gemfile
|
127
114
|
- gemfiles/rails_3.0.6.gemfile.lock
|
128
|
-
- gemfiles/rails_3.0.7.gemfile
|
129
115
|
- gemfiles/rails_3.0.7.gemfile.lock
|
130
|
-
- gemfiles/rails_3.0.8.gemfile
|
131
116
|
- gemfiles/rails_3.0.8.gemfile.lock
|
132
|
-
- gemfiles/rails_3.0.9.gemfile
|
133
117
|
- gemfiles/rails_3.0.9.gemfile.lock
|
134
|
-
- gemfiles/rails_3.1.0.gemfile
|
135
118
|
- gemfiles/rails_3.1.0.gemfile.lock
|
136
|
-
- gemfiles/rails_3.1.10.gemfile
|
137
119
|
- gemfiles/rails_3.1.10.gemfile.lock
|
138
|
-
- gemfiles/rails_3.1.11.gemfile
|
139
120
|
- gemfiles/rails_3.1.11.gemfile.lock
|
140
|
-
- gemfiles/rails_3.1.12.gemfile
|
141
121
|
- gemfiles/rails_3.1.12.gemfile.lock
|
142
|
-
- gemfiles/rails_3.1.2.gemfile
|
143
122
|
- gemfiles/rails_3.1.2.gemfile.lock
|
144
|
-
- gemfiles/rails_3.1.3.gemfile
|
145
123
|
- gemfiles/rails_3.1.3.gemfile.lock
|
146
|
-
- gemfiles/rails_3.1.4.gemfile
|
147
124
|
- gemfiles/rails_3.1.4.gemfile.lock
|
148
|
-
- gemfiles/rails_3.1.5.gemfile
|
149
125
|
- gemfiles/rails_3.1.5.gemfile.lock
|
150
|
-
- gemfiles/rails_3.1.6.gemfile
|
151
126
|
- gemfiles/rails_3.1.6.gemfile.lock
|
152
|
-
- gemfiles/rails_3.1.7.gemfile
|
153
127
|
- gemfiles/rails_3.1.7.gemfile.lock
|
154
|
-
- gemfiles/rails_3.1.8.gemfile
|
155
128
|
- gemfiles/rails_3.1.8.gemfile.lock
|
156
|
-
- gemfiles/rails_3.1.9.gemfile
|
157
129
|
- gemfiles/rails_3.1.9.gemfile.lock
|
158
|
-
- gemfiles/rails_3.2.0.gemfile
|
159
130
|
- gemfiles/rails_3.2.0.gemfile.lock
|
160
|
-
- gemfiles/rails_3.2.1.gemfile
|
161
131
|
- gemfiles/rails_3.2.1.gemfile.lock
|
162
|
-
- gemfiles/rails_3.2.10.gemfile
|
163
132
|
- gemfiles/rails_3.2.10.gemfile.lock
|
164
|
-
- gemfiles/rails_3.2.11.gemfile
|
165
133
|
- gemfiles/rails_3.2.11.gemfile.lock
|
166
|
-
- gemfiles/rails_3.2.12.gemfile
|
167
134
|
- gemfiles/rails_3.2.12.gemfile.lock
|
168
|
-
- gemfiles/rails_3.2.13.gemfile
|
169
135
|
- gemfiles/rails_3.2.13.gemfile.lock
|
170
|
-
- gemfiles/rails_3.2.14.gemfile
|
171
136
|
- gemfiles/rails_3.2.14.gemfile.lock
|
172
|
-
- gemfiles/rails_3.2.15.gemfile
|
173
137
|
- gemfiles/rails_3.2.15.gemfile.lock
|
174
|
-
- gemfiles/rails_3.2.16.gemfile
|
175
138
|
- gemfiles/rails_3.2.16.gemfile.lock
|
176
|
-
- gemfiles/rails_3.2.17.gemfile
|
177
139
|
- gemfiles/rails_3.2.17.gemfile.lock
|
178
|
-
- gemfiles/rails_3.2.18.gemfile
|
179
140
|
- gemfiles/rails_3.2.18.gemfile.lock
|
180
|
-
- gemfiles/rails_3.2.19.gemfile
|
181
141
|
- gemfiles/rails_3.2.19.gemfile.lock
|
182
|
-
- gemfiles/rails_3.2.2.gemfile
|
183
142
|
- gemfiles/rails_3.2.2.gemfile.lock
|
184
|
-
- gemfiles/rails_3.2.20.gemfile
|
185
143
|
- gemfiles/rails_3.2.20.gemfile.lock
|
186
|
-
- gemfiles/rails_3.2.21.gemfile
|
187
144
|
- gemfiles/rails_3.2.21.gemfile.lock
|
188
|
-
- gemfiles/rails_3.2.22.1.gemfile
|
189
|
-
- gemfiles/rails_3.2.22.2.gemfile
|
190
|
-
- gemfiles/rails_3.2.22.gemfile
|
191
145
|
- gemfiles/rails_3.2.22.gemfile.lock
|
192
|
-
- gemfiles/rails_3.2.3.gemfile
|
193
146
|
- gemfiles/rails_3.2.3.gemfile.lock
|
194
|
-
- gemfiles/rails_3.2.4.gemfile
|
195
147
|
- gemfiles/rails_3.2.4.gemfile.lock
|
196
|
-
- gemfiles/rails_3.2.5.gemfile
|
197
148
|
- gemfiles/rails_3.2.5.gemfile.lock
|
198
|
-
- gemfiles/rails_3.2.6.gemfile
|
199
149
|
- gemfiles/rails_3.2.6.gemfile.lock
|
200
|
-
- gemfiles/rails_3.2.7.gemfile
|
201
150
|
- gemfiles/rails_3.2.7.gemfile.lock
|
202
|
-
- gemfiles/rails_3.2.8.gemfile
|
203
151
|
- gemfiles/rails_3.2.8.gemfile.lock
|
204
|
-
- gemfiles/rails_3.2.9.gemfile
|
205
152
|
- gemfiles/rails_3.2.9.gemfile.lock
|
206
153
|
- gemfiles/rails_4.0.0.gemfile
|
207
154
|
- gemfiles/rails_4.0.0.gemfile.lock
|
@@ -244,10 +191,15 @@ files:
|
|
244
191
|
- gemfiles/rails_4.1.12.gemfile
|
245
192
|
- gemfiles/rails_4.1.12.gemfile.lock
|
246
193
|
- gemfiles/rails_4.1.13.gemfile
|
194
|
+
- gemfiles/rails_4.1.13.gemfile.lock
|
247
195
|
- gemfiles/rails_4.1.14.1.gemfile
|
196
|
+
- gemfiles/rails_4.1.14.1.gemfile.lock
|
248
197
|
- gemfiles/rails_4.1.14.2.gemfile
|
198
|
+
- gemfiles/rails_4.1.14.2.gemfile.lock
|
249
199
|
- gemfiles/rails_4.1.14.gemfile
|
200
|
+
- gemfiles/rails_4.1.14.gemfile.lock
|
250
201
|
- gemfiles/rails_4.1.15.gemfile
|
202
|
+
- gemfiles/rails_4.1.15.gemfile.lock
|
251
203
|
- gemfiles/rails_4.1.2.gemfile
|
252
204
|
- gemfiles/rails_4.1.2.gemfile.lock
|
253
205
|
- gemfiles/rails_4.1.3.gemfile
|
@@ -275,17 +227,27 @@ files:
|
|
275
227
|
- gemfiles/rails_4.2.3.gemfile
|
276
228
|
- gemfiles/rails_4.2.3.gemfile.lock
|
277
229
|
- gemfiles/rails_4.2.4.gemfile
|
230
|
+
- gemfiles/rails_4.2.4.gemfile.lock
|
278
231
|
- gemfiles/rails_4.2.5.1.gemfile
|
232
|
+
- gemfiles/rails_4.2.5.1.gemfile.lock
|
279
233
|
- gemfiles/rails_4.2.5.2.gemfile
|
234
|
+
- gemfiles/rails_4.2.5.2.gemfile.lock
|
280
235
|
- gemfiles/rails_4.2.5.gemfile
|
236
|
+
- gemfiles/rails_4.2.5.gemfile.lock
|
281
237
|
- gemfiles/rails_4.2.6.gemfile
|
238
|
+
- gemfiles/rails_4.2.6.gemfile.lock
|
239
|
+
- gemfiles/rails_4.2.7.1.gemfile
|
240
|
+
- gemfiles/rails_4.2.7.gemfile
|
241
|
+
- gemfiles/rails_5.0.0.1.gemfile
|
242
|
+
- gemfiles/rails_5.0.0.gemfile
|
243
|
+
- gemfiles/rails_5.0.1.gemfile
|
244
|
+
- gemfiles/rails_5.0.1.gemfile.lock
|
282
245
|
- lib/store_base_sti_class.rb
|
283
246
|
- lib/store_base_sti_class/version.rb
|
284
|
-
- lib/store_base_sti_class_for_3_0.rb
|
285
|
-
- lib/store_base_sti_class_for_3_1_and_above.rb
|
286
247
|
- lib/store_base_sti_class_for_4_0.rb
|
287
248
|
- lib/store_base_sti_class_for_4_1.rb
|
288
249
|
- lib/store_base_sti_class_for_4_2.rb
|
250
|
+
- lib/store_base_sti_class_for_5_0.rb
|
289
251
|
- store_base_sti_class.gemspec
|
290
252
|
- storebasestiname_unittest.sql
|
291
253
|
homepage: http://github.com/appfolio/store_base_sti_class
|
@@ -308,9 +270,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
308
270
|
version: '0'
|
309
271
|
requirements: []
|
310
272
|
rubyforge_project:
|
311
|
-
rubygems_version: 2.
|
273
|
+
rubygems_version: 2.5.2
|
312
274
|
signing_key:
|
313
275
|
specification_version: 4
|
314
|
-
summary: Modifies ActiveRecord
|
276
|
+
summary: Modifies ActiveRecord 4.0.x - 5.0.x with the ability to store the actual
|
315
277
|
class (instead of the base class) in polymorhic _type columns when using STI
|
316
278
|
test_files: []
|