bullet 4.7.1 → 4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +17 -17
- data/CHANGELOG.md +15 -0
- data/Gemfile +9 -2
- data/Gemfile.mongoid-2.4 +22 -0
- data/Gemfile.mongoid-2.5 +22 -0
- data/Gemfile.mongoid-2.6 +22 -0
- data/Gemfile.mongoid-2.7 +22 -0
- data/Gemfile.mongoid-2.8 +22 -0
- data/Gemfile.mongoid-3.0 +22 -0
- data/Gemfile.mongoid-3.1 +22 -0
- data/Gemfile.rails-3.0 +21 -0
- data/Gemfile.rails-3.1 +21 -0
- data/Gemfile.rails-3.2 +21 -0
- data/Gemfile.rails-4.0 +21 -0
- data/{Gemfile.rails-3.0.20 → Gemfile.rails-4.1} +1 -1
- data/README.md +24 -23
- data/Rakefile +13 -6
- data/lib/bullet.rb +1 -1
- data/lib/bullet/active_record41.rb +97 -0
- data/lib/bullet/dependency.rb +11 -1
- data/lib/bullet/mongoid4x.rb +1 -1
- data/lib/bullet/registry/base.rb +1 -1
- data/lib/bullet/version.rb +1 -1
- data/spec/bullet/detector/association_spec.rb +8 -8
- data/spec/bullet/detector/base_spec.rb +1 -1
- data/spec/bullet/detector/counter_cache_spec.rb +12 -12
- data/spec/bullet/detector/n_plus_one_query_spec.rb +32 -32
- data/spec/bullet/detector/unused_eager_loading_spec.rb +18 -18
- data/spec/bullet/ext/object_spec.rb +2 -2
- data/spec/bullet/ext/string_spec.rb +2 -2
- data/spec/bullet/notification/base_spec.rb +19 -13
- data/spec/bullet/notification/counter_cache_spec.rb +2 -2
- data/spec/bullet/notification/n_plus_one_query_spec.rb +3 -3
- data/spec/bullet/notification/unused_eager_loading_spec.rb +2 -2
- data/spec/bullet/notification_collector_spec.rb +4 -4
- data/spec/bullet/rack_spec.rb +21 -21
- data/spec/bullet/registry/association_spec.rb +3 -3
- data/spec/bullet/registry/base_spec.rb +6 -6
- data/spec/bullet/registry/object_spec.rb +2 -2
- data/spec/integration/active_record3/association_spec.rb +107 -107
- data/spec/integration/active_record4/association_spec.rb +105 -105
- data/spec/integration/counter_cache_spec.rb +4 -4
- data/spec/integration/mongoid/association_spec.rb +52 -52
- data/spec/spec_helper.rb +0 -1
- data/test.sh +12 -11
- metadata +25 -38
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/Gemfile.lock +0 -160
- data/Gemfile.mongoid-2.4.12 +0 -15
- data/Gemfile.mongoid-2.4.12.lock +0 -163
- data/Gemfile.mongoid-2.5.2 +0 -15
- data/Gemfile.mongoid-2.5.2.lock +0 -163
- data/Gemfile.mongoid-2.6.0 +0 -15
- data/Gemfile.mongoid-2.6.0.lock +0 -163
- data/Gemfile.mongoid-2.7.1 +0 -15
- data/Gemfile.mongoid-2.7.1.lock +0 -163
- data/Gemfile.mongoid-2.8.1 +0 -15
- data/Gemfile.mongoid-2.8.1.lock +0 -166
- data/Gemfile.mongoid-3.0.23 +0 -15
- data/Gemfile.mongoid-3.0.23.lock +0 -163
- data/Gemfile.mongoid-3.1.5 +0 -15
- data/Gemfile.mongoid-3.1.5.lock +0 -163
- data/Gemfile.mongoid.lock +0 -167
- data/Gemfile.rails-3.0.20.lock +0 -147
- data/Gemfile.rails-3.1.12 +0 -14
- data/Gemfile.rails-3.1.12.lock +0 -157
- data/Gemfile.rails-3.2.15 +0 -14
- data/Gemfile.rails-3.2.15.lock +0 -155
- data/Gemfile.rails-4.0.1 +0 -14
- data/Gemfile.rails-4.0.1.lock +0 -150
@@ -14,26 +14,26 @@ if active_record3? || active_record4?
|
|
14
14
|
Country.all.each do |country|
|
15
15
|
country.cities.size
|
16
16
|
end
|
17
|
-
Bullet.collected_counter_cache_notifications.
|
17
|
+
expect(Bullet.collected_counter_cache_notifications).not_to be_empty
|
18
18
|
end
|
19
19
|
|
20
20
|
it "should not need counter cache if already define counter_cache" do
|
21
21
|
Person.all.each do |person|
|
22
22
|
person.pets.size
|
23
23
|
end
|
24
|
-
Bullet.collected_counter_cache_notifications.
|
24
|
+
expect(Bullet.collected_counter_cache_notifications).to be_empty
|
25
25
|
end
|
26
26
|
|
27
27
|
it "should not need counter cache with only one object" do
|
28
28
|
Country.first.cities.size
|
29
|
-
Bullet.collected_counter_cache_notifications.
|
29
|
+
expect(Bullet.collected_counter_cache_notifications).to be_empty
|
30
30
|
end
|
31
31
|
|
32
32
|
it "should not need counter cache with part of cities" do
|
33
33
|
Country.all.each do |country|
|
34
34
|
country.cities.where(:name => 'first').size
|
35
35
|
end
|
36
|
-
Bullet.collected_counter_cache_notifications.
|
36
|
+
expect(Bullet.collected_counter_cache_notifications).to be_empty
|
37
37
|
end
|
38
38
|
|
39
39
|
context "disable" do
|
@@ -18,9 +18,9 @@ if mongoid?
|
|
18
18
|
post.users.map(&:name)
|
19
19
|
end
|
20
20
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
21
|
-
Bullet::Detector::Association.
|
21
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
22
22
|
|
23
|
-
Bullet::Detector::Association.
|
23
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -32,9 +32,9 @@ if mongoid?
|
|
32
32
|
post.comments.map(&:name)
|
33
33
|
end
|
34
34
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
35
|
-
Bullet::Detector::Association.
|
35
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
36
36
|
|
37
|
-
Bullet::Detector::Association.
|
37
|
+
expect(Bullet::Detector::Association).to be_detecting_unpreloaded_association_for(Mongoid::Post, :comments)
|
38
38
|
end
|
39
39
|
|
40
40
|
it "should detect preload post => comments" do
|
@@ -42,25 +42,25 @@ if mongoid?
|
|
42
42
|
post.comments.map(&:name)
|
43
43
|
end
|
44
44
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
45
|
-
Bullet::Detector::Association.
|
45
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
46
46
|
|
47
|
-
Bullet::Detector::Association.
|
47
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
48
48
|
end
|
49
49
|
|
50
50
|
it "should detect unused preload post => comments" do
|
51
51
|
Mongoid::Post.includes(:comments).map(&:name)
|
52
52
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
53
|
-
Bullet::Detector::Association.
|
53
|
+
expect(Bullet::Detector::Association).to be_unused_preload_associations_for(Mongoid::Post, :comments)
|
54
54
|
|
55
|
-
Bullet::Detector::Association.
|
55
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
56
56
|
end
|
57
57
|
|
58
58
|
it "should not detect unused preload post => comments" do
|
59
59
|
Mongoid::Post.all.map(&:name)
|
60
60
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
61
|
-
Bullet::Detector::Association.
|
61
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
62
62
|
|
63
|
-
Bullet::Detector::Association.
|
63
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
@@ -71,10 +71,10 @@ if mongoid?
|
|
71
71
|
category.entries.map(&:name)
|
72
72
|
end
|
73
73
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
74
|
-
Bullet::Detector::Association.
|
74
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
75
75
|
|
76
|
-
Bullet::Detector::Association.
|
77
|
-
Bullet::Detector::Association.
|
76
|
+
expect(Bullet::Detector::Association).to be_detecting_unpreloaded_association_for(Mongoid::Category, :posts)
|
77
|
+
expect(Bullet::Detector::Association).to be_detecting_unpreloaded_association_for(Mongoid::Category, :entries)
|
78
78
|
end
|
79
79
|
|
80
80
|
it "should detect preload with category => posts, but not with category => entries" do
|
@@ -83,10 +83,10 @@ if mongoid?
|
|
83
83
|
category.entries.map(&:name)
|
84
84
|
end
|
85
85
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
86
|
-
Bullet::Detector::Association.
|
86
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
87
87
|
|
88
|
-
Bullet::Detector::Association.
|
89
|
-
Bullet::Detector::Association.
|
88
|
+
expect(Bullet::Detector::Association).not_to be_detecting_unpreloaded_association_for(Mongoid::Category, :posts)
|
89
|
+
expect(Bullet::Detector::Association).to be_detecting_unpreloaded_association_for(Mongoid::Category, :entries)
|
90
90
|
end
|
91
91
|
|
92
92
|
it "should detect preload with category => [posts, entries]" do
|
@@ -95,18 +95,18 @@ if mongoid?
|
|
95
95
|
category.entries.map(&:name)
|
96
96
|
end
|
97
97
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
98
|
-
Bullet::Detector::Association.
|
98
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
99
99
|
|
100
|
-
Bullet::Detector::Association.
|
100
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
101
101
|
end
|
102
102
|
|
103
103
|
it "should detect unused preload with category => [posts, entries]" do
|
104
104
|
Mongoid::Category.includes(:posts, :entries).map(&:name)
|
105
105
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
106
|
-
Bullet::Detector::Association.
|
107
|
-
Bullet::Detector::Association.
|
106
|
+
expect(Bullet::Detector::Association).to be_unused_preload_associations_for(Mongoid::Category, :posts)
|
107
|
+
expect(Bullet::Detector::Association).to be_unused_preload_associations_for(Mongoid::Category, :entries)
|
108
108
|
|
109
|
-
Bullet::Detector::Association.
|
109
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
110
110
|
end
|
111
111
|
|
112
112
|
it "should detect unused preload with category => entries, but not with category => posts" do
|
@@ -114,10 +114,10 @@ if mongoid?
|
|
114
114
|
category.posts.map(&:name)
|
115
115
|
end
|
116
116
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
117
|
-
Bullet::Detector::Association.
|
118
|
-
Bullet::Detector::Association.
|
117
|
+
expect(Bullet::Detector::Association).not_to be_unused_preload_associations_for(Mongoid::Category, :posts)
|
118
|
+
expect(Bullet::Detector::Association).to be_unused_preload_associations_for(Mongoid::Category, :entries)
|
119
119
|
|
120
|
-
Bullet::Detector::Association.
|
120
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
@@ -127,17 +127,17 @@ if mongoid?
|
|
127
127
|
post.comments.first.name
|
128
128
|
end
|
129
129
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
130
|
-
Bullet::Detector::Association.
|
130
|
+
expect(Bullet::Detector::Association).not_to be_unused_preload_associations_for(Mongoid::Post, :comments)
|
131
131
|
|
132
|
-
Bullet::Detector::Association.
|
132
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
133
133
|
end
|
134
134
|
|
135
135
|
it "should detect preload with post => commnets" do
|
136
136
|
Mongoid::Post.first.comments.map(&:name)
|
137
137
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
138
|
-
Bullet::Detector::Association.
|
138
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
139
139
|
|
140
|
-
Bullet::Detector::Association.
|
140
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
@@ -147,17 +147,17 @@ if mongoid?
|
|
147
147
|
post.comments.map(&:name)
|
148
148
|
end
|
149
149
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
150
|
-
Bullet::Detector::Association.
|
150
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
151
151
|
|
152
|
-
Bullet::Detector::Association.
|
152
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
153
153
|
end
|
154
154
|
|
155
155
|
it "should detect unused preload with scope" do
|
156
156
|
Mongoid::Post.preload_comments.map(&:name)
|
157
157
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
158
|
-
Bullet::Detector::Association.
|
158
|
+
expect(Bullet::Detector::Association).to be_unused_preload_associations_for(Mongoid::Post, :comments)
|
159
159
|
|
160
|
-
Bullet::Detector::Association.
|
160
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
161
161
|
end
|
162
162
|
end
|
163
163
|
end
|
@@ -169,17 +169,17 @@ if mongoid?
|
|
169
169
|
comment.post.name
|
170
170
|
end
|
171
171
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
172
|
-
Bullet::Detector::Association.
|
172
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
173
173
|
|
174
|
-
Bullet::Detector::Association.
|
174
|
+
expect(Bullet::Detector::Association).to be_detecting_unpreloaded_association_for(Mongoid::Comment, :post)
|
175
175
|
end
|
176
176
|
|
177
177
|
it "should detect preload with one comment => post" do
|
178
178
|
Mongoid::Comment.first.post.name
|
179
179
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
180
|
-
Bullet::Detector::Association.
|
180
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
181
181
|
|
182
|
-
Bullet::Detector::Association.
|
182
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
183
183
|
end
|
184
184
|
|
185
185
|
it "should detect preload with comment => post" do
|
@@ -187,25 +187,25 @@ if mongoid?
|
|
187
187
|
comment.post.name
|
188
188
|
end
|
189
189
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
190
|
-
Bullet::Detector::Association.
|
190
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
191
191
|
|
192
|
-
Bullet::Detector::Association.
|
192
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
193
193
|
end
|
194
194
|
|
195
195
|
it "should not detect preload with comment => post" do
|
196
196
|
Mongoid::Comment.all.map(&:name)
|
197
197
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
198
|
-
Bullet::Detector::Association.
|
198
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
199
199
|
|
200
|
-
Bullet::Detector::Association.
|
200
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
201
201
|
end
|
202
202
|
|
203
203
|
it "should detect unused preload with comments => post" do
|
204
204
|
Mongoid::Comment.includes(:post).map(&:name)
|
205
205
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
206
|
-
Bullet::Detector::Association.
|
206
|
+
expect(Bullet::Detector::Association).to be_unused_preload_associations_for(Mongoid::Comment, :post)
|
207
207
|
|
208
|
-
Bullet::Detector::Association.
|
208
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
209
209
|
end
|
210
210
|
end
|
211
211
|
end
|
@@ -219,9 +219,9 @@ if mongoid?
|
|
219
219
|
company.address.name
|
220
220
|
end
|
221
221
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
222
|
-
Bullet::Detector::Association.
|
222
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
223
223
|
|
224
|
-
Bullet::Detector::Association.
|
224
|
+
expect(Bullet::Detector::Association).to be_detecting_unpreloaded_association_for(Mongoid::Company, :address)
|
225
225
|
end
|
226
226
|
end
|
227
227
|
|
@@ -230,26 +230,26 @@ if mongoid?
|
|
230
230
|
company.address.name
|
231
231
|
end
|
232
232
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
233
|
-
Bullet::Detector::Association.
|
233
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
234
234
|
|
235
|
-
Bullet::Detector::Association.
|
235
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
236
236
|
end
|
237
237
|
|
238
238
|
it "should not detect preload association" do
|
239
239
|
Mongoid::Company.all.map(&:name)
|
240
240
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
241
|
-
Bullet::Detector::Association.
|
241
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
242
242
|
|
243
|
-
Bullet::Detector::Association.
|
243
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
244
244
|
end
|
245
245
|
|
246
246
|
it "should detect unused preload association" do
|
247
247
|
criteria = Mongoid::Company.includes(:address)
|
248
248
|
criteria.map(&:name)
|
249
249
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
250
|
-
Bullet::Detector::Association.
|
250
|
+
expect(Bullet::Detector::Association).to be_unused_preload_associations_for(Mongoid::Company, :address)
|
251
251
|
|
252
|
-
Bullet::Detector::Association.
|
252
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
253
253
|
end
|
254
254
|
end
|
255
255
|
end
|
@@ -259,9 +259,9 @@ if mongoid?
|
|
259
259
|
Mongoid::Post.all
|
260
260
|
Mongoid::Post.first.comments.map(&:name)
|
261
261
|
Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations
|
262
|
-
Bullet::Detector::Association.
|
262
|
+
expect(Bullet::Detector::Association).not_to be_has_unused_preload_associations
|
263
263
|
|
264
|
-
Bullet::Detector::Association.
|
264
|
+
expect(Bullet::Detector::Association).to be_completely_preloading_associations
|
265
265
|
end
|
266
266
|
end
|
267
267
|
end
|
data/spec/spec_helper.rb
CHANGED
data/test.sh
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
#bundle update rails && bundle exec rspec spec
|
2
2
|
#BUNDLE_GEMFILE=Gemfile.mongoid bundle update mongoid && BUNDLE_GEMFILE=Gemfile.mongoid bundle exec rspec spec
|
3
|
-
BUNDLE_GEMFILE=Gemfile.rails-4.
|
4
|
-
BUNDLE_GEMFILE=Gemfile.rails-
|
5
|
-
BUNDLE_GEMFILE=Gemfile.rails-3.
|
6
|
-
BUNDLE_GEMFILE=Gemfile.rails-3.
|
7
|
-
BUNDLE_GEMFILE=Gemfile.
|
8
|
-
BUNDLE_GEMFILE=Gemfile.mongoid-3.
|
9
|
-
BUNDLE_GEMFILE=Gemfile.mongoid-
|
10
|
-
BUNDLE_GEMFILE=Gemfile.mongoid-2.
|
11
|
-
BUNDLE_GEMFILE=Gemfile.mongoid-2.
|
12
|
-
BUNDLE_GEMFILE=Gemfile.mongoid-2.
|
13
|
-
BUNDLE_GEMFILE=Gemfile.mongoid-2.
|
3
|
+
BUNDLE_GEMFILE=Gemfile.rails-4.1 bundle && BUNDLE_GEMFILE=Gemfile.rails-4.1 bundle exec rspec spec
|
4
|
+
BUNDLE_GEMFILE=Gemfile.rails-4.0 bundle && BUNDLE_GEMFILE=Gemfile.rails-4.0 bundle exec rspec spec
|
5
|
+
BUNDLE_GEMFILE=Gemfile.rails-3.2 bundle && BUNDLE_GEMFILE=Gemfile.rails-3.2 bundle exec rspec spec
|
6
|
+
BUNDLE_GEMFILE=Gemfile.rails-3.1 bundle && BUNDLE_GEMFILE=Gemfile.rails-3.1 bundle exec rspec spec
|
7
|
+
BUNDLE_GEMFILE=Gemfile.rails-3.0 bundle && BUNDLE_GEMFILE=Gemfile.rails-3.0 bundle exec rspec spec
|
8
|
+
BUNDLE_GEMFILE=Gemfile.mongoid-3.1 bundle && BUNDLE_GEMFILE=Gemfile.mongoid-3.1 bundle exec rspec spec
|
9
|
+
BUNDLE_GEMFILE=Gemfile.mongoid-3.0 bundle && BUNDLE_GEMFILE=Gemfile.mongoid-3.0 bundle exec rspec spec
|
10
|
+
BUNDLE_GEMFILE=Gemfile.mongoid-2.8 bundle && BUNDLE_GEMFILE=Gemfile.mongoid-2.8 bundle exec rspec spec
|
11
|
+
BUNDLE_GEMFILE=Gemfile.mongoid-2.7 bundle && BUNDLE_GEMFILE=Gemfile.mongoid-2.7 bundle exec rspec spec
|
12
|
+
BUNDLE_GEMFILE=Gemfile.mongoid-2.6 bundle && BUNDLE_GEMFILE=Gemfile.mongoid-2.6 bundle exec rspec spec
|
13
|
+
BUNDLE_GEMFILE=Gemfile.mongoid-2.5 bundle && BUNDLE_GEMFILE=Gemfile.mongoid-2.5 bundle exec rspec spec
|
14
|
+
BUNDLE_GEMFILE=Gemfile.mongoid-2.4 bundle && BUNDLE_GEMFILE=Gemfile.mongoid-2.4 bundle exec rspec spec
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '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
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: uniform_notifier
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.4.0
|
41
41
|
description: help to kill N+1 queries and unused eager loading.
|
@@ -45,38 +45,24 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- .rspec
|
50
|
-
- .
|
51
|
-
- .ruby-version
|
52
|
-
- .travis.yml
|
48
|
+
- ".gitignore"
|
49
|
+
- ".rspec"
|
50
|
+
- ".travis.yml"
|
53
51
|
- CHANGELOG.md
|
54
52
|
- Gemfile
|
55
|
-
- Gemfile.lock
|
56
53
|
- Gemfile.mongoid
|
57
|
-
- Gemfile.mongoid-2.4
|
58
|
-
- Gemfile.mongoid-2.
|
59
|
-
- Gemfile.mongoid-2.
|
60
|
-
- Gemfile.mongoid-2.
|
61
|
-
- Gemfile.mongoid-2.
|
62
|
-
- Gemfile.mongoid-
|
63
|
-
- Gemfile.mongoid-
|
64
|
-
- Gemfile.
|
65
|
-
- Gemfile.
|
66
|
-
- Gemfile.
|
67
|
-
- Gemfile.
|
68
|
-
- Gemfile.
|
69
|
-
- Gemfile.mongoid-3.1.5
|
70
|
-
- Gemfile.mongoid-3.1.5.lock
|
71
|
-
- Gemfile.mongoid.lock
|
72
|
-
- Gemfile.rails-3.0.20
|
73
|
-
- Gemfile.rails-3.0.20.lock
|
74
|
-
- Gemfile.rails-3.1.12
|
75
|
-
- Gemfile.rails-3.1.12.lock
|
76
|
-
- Gemfile.rails-3.2.15
|
77
|
-
- Gemfile.rails-3.2.15.lock
|
78
|
-
- Gemfile.rails-4.0.1
|
79
|
-
- Gemfile.rails-4.0.1.lock
|
54
|
+
- Gemfile.mongoid-2.4
|
55
|
+
- Gemfile.mongoid-2.5
|
56
|
+
- Gemfile.mongoid-2.6
|
57
|
+
- Gemfile.mongoid-2.7
|
58
|
+
- Gemfile.mongoid-2.8
|
59
|
+
- Gemfile.mongoid-3.0
|
60
|
+
- Gemfile.mongoid-3.1
|
61
|
+
- Gemfile.rails-3.0
|
62
|
+
- Gemfile.rails-3.1
|
63
|
+
- Gemfile.rails-3.2
|
64
|
+
- Gemfile.rails-4.0
|
65
|
+
- Gemfile.rails-4.1
|
80
66
|
- Guardfile
|
81
67
|
- Hacking.md
|
82
68
|
- MIT-LICENSE
|
@@ -87,6 +73,7 @@ files:
|
|
87
73
|
- lib/bullet/active_record3.rb
|
88
74
|
- lib/bullet/active_record3x.rb
|
89
75
|
- lib/bullet/active_record4.rb
|
76
|
+
- lib/bullet/active_record41.rb
|
90
77
|
- lib/bullet/dependency.rb
|
91
78
|
- lib/bullet/detector.rb
|
92
79
|
- lib/bullet/detector/association.rb
|
@@ -180,17 +167,17 @@ require_paths:
|
|
180
167
|
- lib
|
181
168
|
required_ruby_version: !ruby/object:Gem::Requirement
|
182
169
|
requirements:
|
183
|
-
- -
|
170
|
+
- - ">="
|
184
171
|
- !ruby/object:Gem::Version
|
185
172
|
version: '0'
|
186
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
174
|
requirements:
|
188
|
-
- -
|
175
|
+
- - ">="
|
189
176
|
- !ruby/object:Gem::Version
|
190
177
|
version: 1.3.6
|
191
178
|
requirements: []
|
192
179
|
rubyforge_project:
|
193
|
-
rubygems_version: 2.0.
|
180
|
+
rubygems_version: 2.2.0.rc.1
|
194
181
|
signing_key:
|
195
182
|
specification_version: 4
|
196
183
|
summary: help to kill N+1 queries and unused eager loading.
|