store_base_sti_class 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +61 -0
  3. data/Appraisals +12 -1
  4. data/Gemfile.lock +52 -54
  5. data/VERSION +1 -1
  6. data/gemfiles/rails_3.0.10.gemfile +5 -5
  7. data/gemfiles/rails_3.0.10.gemfile.lock +40 -33
  8. data/gemfiles/rails_3.0.11.gemfile +5 -5
  9. data/gemfiles/rails_3.0.11.gemfile.lock +40 -33
  10. data/gemfiles/rails_3.0.12.gemfile +5 -5
  11. data/gemfiles/rails_3.0.12.gemfile.lock +40 -33
  12. data/gemfiles/rails_3.0.13.gemfile +5 -5
  13. data/gemfiles/rails_3.0.13.gemfile.lock +40 -33
  14. data/gemfiles/rails_3.0.14.gemfile +5 -5
  15. data/gemfiles/rails_3.0.14.gemfile.lock +40 -33
  16. data/gemfiles/rails_3.0.15.gemfile +5 -5
  17. data/gemfiles/rails_3.0.15.gemfile.lock +40 -33
  18. data/gemfiles/rails_3.0.16.gemfile +5 -5
  19. data/gemfiles/rails_3.0.16.gemfile.lock +40 -33
  20. data/gemfiles/rails_3.0.17.gemfile +5 -5
  21. data/gemfiles/rails_3.0.17.gemfile.lock +40 -33
  22. data/gemfiles/rails_3.0.18.gemfile +5 -5
  23. data/gemfiles/rails_3.0.18.gemfile.lock +40 -33
  24. data/gemfiles/rails_3.0.19.gemfile +5 -5
  25. data/gemfiles/rails_3.0.19.gemfile.lock +40 -33
  26. data/gemfiles/rails_3.0.5.gemfile +5 -5
  27. data/gemfiles/rails_3.0.5.gemfile.lock +41 -34
  28. data/gemfiles/rails_3.0.6.gemfile +5 -5
  29. data/gemfiles/rails_3.0.6.gemfile.lock +40 -33
  30. data/gemfiles/rails_3.0.7.gemfile +5 -5
  31. data/gemfiles/rails_3.0.7.gemfile.lock +40 -33
  32. data/gemfiles/rails_3.0.8.gemfile +5 -5
  33. data/gemfiles/rails_3.0.8.gemfile.lock +40 -33
  34. data/gemfiles/rails_3.0.9.gemfile +5 -5
  35. data/gemfiles/rails_3.0.9.gemfile.lock +40 -33
  36. data/gemfiles/rails_3.1.0.gemfile +5 -5
  37. data/gemfiles/rails_3.1.0.gemfile.lock +41 -34
  38. data/gemfiles/rails_3.1.10.gemfile +5 -5
  39. data/gemfiles/rails_3.1.10.gemfile.lock +11 -7
  40. data/gemfiles/rails_3.1.2.gemfile +5 -5
  41. data/gemfiles/rails_3.1.2.gemfile.lock +41 -34
  42. data/gemfiles/rails_3.1.3.gemfile +5 -5
  43. data/gemfiles/rails_3.1.3.gemfile.lock +41 -34
  44. data/gemfiles/rails_3.1.4.gemfile +5 -5
  45. data/gemfiles/rails_3.1.4.gemfile.lock +41 -34
  46. data/gemfiles/rails_3.1.5.gemfile +5 -5
  47. data/gemfiles/rails_3.1.5.gemfile.lock +11 -7
  48. data/gemfiles/rails_3.1.6.gemfile +5 -5
  49. data/gemfiles/rails_3.1.6.gemfile.lock +11 -7
  50. data/gemfiles/rails_3.1.7.gemfile +5 -5
  51. data/gemfiles/rails_3.1.7.gemfile.lock +11 -7
  52. data/gemfiles/rails_3.1.8.gemfile +5 -5
  53. data/gemfiles/rails_3.1.8.gemfile.lock +11 -7
  54. data/gemfiles/rails_3.1.9.gemfile +5 -5
  55. data/gemfiles/rails_3.1.9.gemfile.lock +11 -7
  56. data/gemfiles/rails_3.2.0.gemfile +5 -5
  57. data/gemfiles/rails_3.2.0.gemfile.lock +42 -35
  58. data/gemfiles/rails_3.2.1.gemfile +5 -5
  59. data/gemfiles/rails_3.2.1.gemfile.lock +42 -35
  60. data/gemfiles/rails_3.2.10.gemfile +5 -5
  61. data/gemfiles/rails_3.2.10.gemfile.lock +42 -35
  62. data/gemfiles/rails_3.2.11.gemfile +5 -5
  63. data/gemfiles/rails_3.2.11.gemfile.lock +42 -35
  64. data/gemfiles/rails_3.2.12.gemfile +5 -5
  65. data/gemfiles/rails_3.2.12.gemfile.lock +42 -35
  66. data/gemfiles/rails_3.2.13.gemfile +5 -5
  67. data/gemfiles/rails_3.2.13.gemfile.lock +41 -34
  68. data/gemfiles/rails_3.2.14.gemfile +5 -5
  69. data/gemfiles/rails_3.2.14.gemfile.lock +42 -35
  70. data/gemfiles/rails_3.2.2.gemfile +5 -5
  71. data/gemfiles/rails_3.2.2.gemfile.lock +42 -35
  72. data/gemfiles/rails_3.2.3.gemfile +5 -5
  73. data/gemfiles/rails_3.2.3.gemfile.lock +42 -35
  74. data/gemfiles/rails_3.2.4.gemfile +5 -5
  75. data/gemfiles/rails_3.2.4.gemfile.lock +42 -35
  76. data/gemfiles/rails_3.2.5.gemfile +5 -5
  77. data/gemfiles/rails_3.2.5.gemfile.lock +42 -35
  78. data/gemfiles/rails_3.2.6.gemfile +5 -5
  79. data/gemfiles/rails_3.2.6.gemfile.lock +42 -35
  80. data/gemfiles/rails_3.2.7.gemfile +5 -5
  81. data/gemfiles/rails_3.2.7.gemfile.lock +42 -35
  82. data/gemfiles/rails_3.2.8.gemfile +5 -5
  83. data/gemfiles/rails_3.2.8.gemfile.lock +42 -35
  84. data/gemfiles/rails_3.2.9.gemfile +5 -5
  85. data/gemfiles/rails_3.2.9.gemfile.lock +42 -35
  86. data/gemfiles/rails_4.0.0.gemfile +5 -5
  87. data/gemfiles/rails_4.0.0.gemfile.lock +41 -38
  88. data/gemfiles/rails_4.0.1.gemfile +5 -5
  89. data/gemfiles/rails_4.0.1.gemfile.lock +41 -38
  90. data/gemfiles/rails_4.0.10.gemfile +10 -0
  91. data/gemfiles/rails_4.0.11.gemfile +10 -0
  92. data/gemfiles/rails_4.0.12.gemfile +10 -0
  93. data/gemfiles/rails_4.0.2.gemfile +10 -0
  94. data/gemfiles/rails_4.0.3.gemfile +10 -0
  95. data/gemfiles/rails_4.0.4.gemfile +10 -0
  96. data/gemfiles/rails_4.0.5.gemfile +10 -0
  97. data/gemfiles/rails_4.0.6.gemfile +10 -0
  98. data/gemfiles/rails_4.0.7.gemfile +10 -0
  99. data/gemfiles/rails_4.0.8.gemfile +10 -0
  100. data/gemfiles/rails_4.0.9.gemfile +10 -0
  101. data/lib/store_base_sti_class_for_4_0.rb +1 -1
  102. data/store_base_sti_class.gemspec +16 -5
  103. metadata +15 -4
  104. data/gemfiles/rails_4.1.0.gemfile.lock +0 -81
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.10"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.11"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.12"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.2"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.3"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.4"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.5"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.6"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.7"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.8"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "4.0.9"
6
+ gem "sqlite3", :group => :development
7
+ gem "appraisal", :group => :development
8
+ gem "jeweler", :group => :development
9
+ gem "bundler", :group => :development
10
+ gem "minitest", "~> 4.0"
@@ -152,7 +152,7 @@ if ActiveRecord::VERSION::STRING =~ /^4\.0/
152
152
  scope.where_values = Array(values[:where]) + Array(preload_values[:where])
153
153
  scope.references_values = Array(values[:references]) + Array(preload_values[:references])
154
154
 
155
- scope.select! preload_values[:select] || values[:select] || table[Arel.star]
155
+ scope.select preload_values[:select] || values[:select] || table[Arel.star]
156
156
  scope.includes! preload_values[:includes] || values[:includes]
157
157
 
158
158
  if options[:as]
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: store_base_sti_class 0.2.0 ruby lib
5
+ # stub: store_base_sti_class 0.2.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "store_base_sti_class"
9
- s.version = "0.2.0"
9
+ s.version = "0.2.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Andrew Mutz"]
14
- s.date = "2014-08-03"
14
+ s.date = "2014-12-24"
15
15
  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 options which controls\n whether ActiveRecord will store the base class or the actual class. Default to true for backwards compatibility.\n "
16
16
  s.email = "andrew.mutz@appfolio.com"
17
17
  s.extra_rdoc_files = [
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  "README.rdoc"
20
20
  ]
21
21
  s.files = [
22
+ ".travis.yml",
22
23
  "Appraisals",
23
24
  "CHANGELOG",
24
25
  "Gemfile",
@@ -112,8 +113,18 @@ Gem::Specification.new do |s|
112
113
  "gemfiles/rails_4.0.0.gemfile.lock",
113
114
  "gemfiles/rails_4.0.1.gemfile",
114
115
  "gemfiles/rails_4.0.1.gemfile.lock",
116
+ "gemfiles/rails_4.0.10.gemfile",
117
+ "gemfiles/rails_4.0.11.gemfile",
118
+ "gemfiles/rails_4.0.12.gemfile",
119
+ "gemfiles/rails_4.0.2.gemfile",
120
+ "gemfiles/rails_4.0.3.gemfile",
121
+ "gemfiles/rails_4.0.4.gemfile",
122
+ "gemfiles/rails_4.0.5.gemfile",
123
+ "gemfiles/rails_4.0.6.gemfile",
124
+ "gemfiles/rails_4.0.7.gemfile",
125
+ "gemfiles/rails_4.0.8.gemfile",
126
+ "gemfiles/rails_4.0.9.gemfile",
115
127
  "gemfiles/rails_4.1.0.gemfile",
116
- "gemfiles/rails_4.1.0.gemfile.lock",
117
128
  "lib/store_base_sti_class.rb",
118
129
  "lib/store_base_sti_class_for_3_0.rb",
119
130
  "lib/store_base_sti_class_for_3_1_and_above.rb",
@@ -128,7 +139,7 @@ Gem::Specification.new do |s|
128
139
  ]
129
140
  s.homepage = "http://github.com/appfolio/store_base_sti_class"
130
141
  s.licenses = ["MIT"]
131
- s.rubygems_version = "2.2.0"
142
+ s.rubygems_version = "2.2.2"
132
143
  s.summary = "Modifies ActiveRecord 3.0.5 - 4.0.1 with the ability to store the actual class (instead of the base class) in polymorhic _type columns when using STI"
133
144
 
134
145
  if s.respond_to? :specification_version then
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Mutz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-03 00:00:00.000000000 Z
11
+ date: 2014-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -106,6 +106,7 @@ extra_rdoc_files:
106
106
  - LICENSE.txt
107
107
  - README.rdoc
108
108
  files:
109
+ - ".travis.yml"
109
110
  - Appraisals
110
111
  - CHANGELOG
111
112
  - Gemfile
@@ -199,8 +200,18 @@ files:
199
200
  - gemfiles/rails_4.0.0.gemfile.lock
200
201
  - gemfiles/rails_4.0.1.gemfile
201
202
  - gemfiles/rails_4.0.1.gemfile.lock
203
+ - gemfiles/rails_4.0.10.gemfile
204
+ - gemfiles/rails_4.0.11.gemfile
205
+ - gemfiles/rails_4.0.12.gemfile
206
+ - gemfiles/rails_4.0.2.gemfile
207
+ - gemfiles/rails_4.0.3.gemfile
208
+ - gemfiles/rails_4.0.4.gemfile
209
+ - gemfiles/rails_4.0.5.gemfile
210
+ - gemfiles/rails_4.0.6.gemfile
211
+ - gemfiles/rails_4.0.7.gemfile
212
+ - gemfiles/rails_4.0.8.gemfile
213
+ - gemfiles/rails_4.0.9.gemfile
202
214
  - gemfiles/rails_4.1.0.gemfile
203
- - gemfiles/rails_4.1.0.gemfile.lock
204
215
  - lib/store_base_sti_class.rb
205
216
  - lib/store_base_sti_class_for_3_0.rb
206
217
  - lib/store_base_sti_class_for_3_1_and_above.rb
@@ -232,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
243
  version: '0'
233
244
  requirements: []
234
245
  rubyforge_project:
235
- rubygems_version: 2.2.0
246
+ rubygems_version: 2.2.2
236
247
  signing_key:
237
248
  specification_version: 4
238
249
  summary: Modifies ActiveRecord 3.0.5 - 4.0.1 with the ability to store the actual
@@ -1,81 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- activemodel (4.0.1)
5
- activesupport (= 4.0.1)
6
- builder (~> 3.1.0)
7
- activerecord (4.0.1)
8
- activemodel (= 4.0.1)
9
- activerecord-deprecated_finders (~> 1.0.2)
10
- activesupport (= 4.0.1)
11
- arel (~> 4.0.0)
12
- activerecord-deprecated_finders (1.0.3)
13
- activesupport (4.0.1)
14
- i18n (~> 0.6, >= 0.6.4)
15
- minitest (~> 4.2)
16
- multi_json (~> 1.3)
17
- thread_safe (~> 0.1)
18
- tzinfo (~> 0.3.37)
19
- addressable (2.3.5)
20
- appraisal (0.5.2)
21
- bundler
22
- rake
23
- arel (4.0.1)
24
- atomic (1.1.14)
25
- builder (3.1.4)
26
- faraday (0.8.8)
27
- multipart-post (~> 1.2.0)
28
- git (1.2.6)
29
- github_api (0.10.1)
30
- addressable
31
- faraday (~> 0.8.1)
32
- hashie (>= 1.2)
33
- multi_json (~> 1.4)
34
- nokogiri (~> 1.5.2)
35
- oauth2
36
- hashie (2.0.5)
37
- highline (1.6.20)
38
- httpauth (0.2.0)
39
- i18n (0.6.5)
40
- jeweler (1.8.8)
41
- builder
42
- bundler (~> 1.0)
43
- git (>= 1.2.5)
44
- github_api (= 0.10.1)
45
- highline (>= 1.6.15)
46
- nokogiri (= 1.5.10)
47
- rake
48
- rdoc
49
- json (1.8.1)
50
- jwt (0.1.8)
51
- multi_json (>= 1.5)
52
- minitest (4.7.5)
53
- multi_json (1.8.2)
54
- multi_xml (0.5.5)
55
- multipart-post (1.2.0)
56
- nokogiri (1.5.10)
57
- oauth2 (0.9.2)
58
- faraday (~> 0.8)
59
- httpauth (~> 0.2)
60
- jwt (~> 0.1.4)
61
- multi_json (~> 1.0)
62
- multi_xml (~> 0.5)
63
- rack (~> 1.2)
64
- rack (1.5.2)
65
- rake (10.1.0)
66
- rdoc (4.0.1)
67
- json (~> 1.4)
68
- sqlite3 (1.3.8)
69
- thread_safe (0.1.3)
70
- atomic
71
- tzinfo (0.3.38)
72
-
73
- PLATFORMS
74
- ruby
75
-
76
- DEPENDENCIES
77
- activerecord (= 4.0.1)
78
- appraisal
79
- bundler
80
- jeweler
81
- sqlite3