bullet 4.7.1 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +17 -17
  4. data/CHANGELOG.md +15 -0
  5. data/Gemfile +9 -2
  6. data/Gemfile.mongoid-2.4 +22 -0
  7. data/Gemfile.mongoid-2.5 +22 -0
  8. data/Gemfile.mongoid-2.6 +22 -0
  9. data/Gemfile.mongoid-2.7 +22 -0
  10. data/Gemfile.mongoid-2.8 +22 -0
  11. data/Gemfile.mongoid-3.0 +22 -0
  12. data/Gemfile.mongoid-3.1 +22 -0
  13. data/Gemfile.rails-3.0 +21 -0
  14. data/Gemfile.rails-3.1 +21 -0
  15. data/Gemfile.rails-3.2 +21 -0
  16. data/Gemfile.rails-4.0 +21 -0
  17. data/{Gemfile.rails-3.0.20 → Gemfile.rails-4.1} +1 -1
  18. data/README.md +24 -23
  19. data/Rakefile +13 -6
  20. data/lib/bullet.rb +1 -1
  21. data/lib/bullet/active_record41.rb +97 -0
  22. data/lib/bullet/dependency.rb +11 -1
  23. data/lib/bullet/mongoid4x.rb +1 -1
  24. data/lib/bullet/registry/base.rb +1 -1
  25. data/lib/bullet/version.rb +1 -1
  26. data/spec/bullet/detector/association_spec.rb +8 -8
  27. data/spec/bullet/detector/base_spec.rb +1 -1
  28. data/spec/bullet/detector/counter_cache_spec.rb +12 -12
  29. data/spec/bullet/detector/n_plus_one_query_spec.rb +32 -32
  30. data/spec/bullet/detector/unused_eager_loading_spec.rb +18 -18
  31. data/spec/bullet/ext/object_spec.rb +2 -2
  32. data/spec/bullet/ext/string_spec.rb +2 -2
  33. data/spec/bullet/notification/base_spec.rb +19 -13
  34. data/spec/bullet/notification/counter_cache_spec.rb +2 -2
  35. data/spec/bullet/notification/n_plus_one_query_spec.rb +3 -3
  36. data/spec/bullet/notification/unused_eager_loading_spec.rb +2 -2
  37. data/spec/bullet/notification_collector_spec.rb +4 -4
  38. data/spec/bullet/rack_spec.rb +21 -21
  39. data/spec/bullet/registry/association_spec.rb +3 -3
  40. data/spec/bullet/registry/base_spec.rb +6 -6
  41. data/spec/bullet/registry/object_spec.rb +2 -2
  42. data/spec/integration/active_record3/association_spec.rb +107 -107
  43. data/spec/integration/active_record4/association_spec.rb +105 -105
  44. data/spec/integration/counter_cache_spec.rb +4 -4
  45. data/spec/integration/mongoid/association_spec.rb +52 -52
  46. data/spec/spec_helper.rb +0 -1
  47. data/test.sh +12 -11
  48. metadata +25 -38
  49. data/.ruby-gemset +0 -1
  50. data/.ruby-version +0 -1
  51. data/Gemfile.lock +0 -160
  52. data/Gemfile.mongoid-2.4.12 +0 -15
  53. data/Gemfile.mongoid-2.4.12.lock +0 -163
  54. data/Gemfile.mongoid-2.5.2 +0 -15
  55. data/Gemfile.mongoid-2.5.2.lock +0 -163
  56. data/Gemfile.mongoid-2.6.0 +0 -15
  57. data/Gemfile.mongoid-2.6.0.lock +0 -163
  58. data/Gemfile.mongoid-2.7.1 +0 -15
  59. data/Gemfile.mongoid-2.7.1.lock +0 -163
  60. data/Gemfile.mongoid-2.8.1 +0 -15
  61. data/Gemfile.mongoid-2.8.1.lock +0 -166
  62. data/Gemfile.mongoid-3.0.23 +0 -15
  63. data/Gemfile.mongoid-3.0.23.lock +0 -163
  64. data/Gemfile.mongoid-3.1.5 +0 -15
  65. data/Gemfile.mongoid-3.1.5.lock +0 -163
  66. data/Gemfile.mongoid.lock +0 -167
  67. data/Gemfile.rails-3.0.20.lock +0 -147
  68. data/Gemfile.rails-3.1.12 +0 -14
  69. data/Gemfile.rails-3.1.12.lock +0 -157
  70. data/Gemfile.rails-3.2.15 +0 -14
  71. data/Gemfile.rails-3.2.15.lock +0 -155
  72. data/Gemfile.rails-4.0.1 +0 -14
  73. data/Gemfile.rails-4.0.1.lock +0 -150
@@ -1 +0,0 @@
1
- bullet
@@ -1 +0,0 @@
1
- ruby-2.0.0
@@ -1,160 +0,0 @@
1
- GIT
2
- remote: git://github.com/rails/rails.git
3
- revision: fe9773414a29317ac8fa6c0c911bb88eb2819f40
4
- specs:
5
- actionmailer (4.1.0.beta)
6
- actionpack (= 4.1.0.beta)
7
- actionview (= 4.1.0.beta)
8
- mail (~> 2.5.4)
9
- actionpack (4.1.0.beta)
10
- activesupport (= 4.1.0.beta)
11
- rack (~> 1.5.2)
12
- rack-test (~> 0.6.2)
13
- actionview (4.1.0.beta)
14
- activemodel (= 4.1.0.beta)
15
- activesupport (= 4.1.0.beta)
16
- builder (~> 3.1.0)
17
- erubis (~> 2.7.0)
18
- activemodel (4.1.0.beta)
19
- activesupport (= 4.1.0.beta)
20
- builder (~> 3.1.0)
21
- activerecord (4.1.0.beta)
22
- activemodel (= 4.1.0.beta)
23
- activesupport (= 4.1.0.beta)
24
- arel (~> 4.0.0)
25
- activesupport (4.1.0.beta)
26
- i18n (~> 0.6, >= 0.6.4)
27
- json (~> 1.7)
28
- minitest (~> 5.0)
29
- thread_safe (~> 0.1)
30
- tzinfo (~> 0.3.37)
31
- rails (4.1.0.beta)
32
- actionmailer (= 4.1.0.beta)
33
- actionpack (= 4.1.0.beta)
34
- actionview (= 4.1.0.beta)
35
- activemodel (= 4.1.0.beta)
36
- activerecord (= 4.1.0.beta)
37
- activesupport (= 4.1.0.beta)
38
- bundler (>= 1.3.0, < 2.0)
39
- railties (= 4.1.0.beta)
40
- sprockets-rails (~> 2.0.0)
41
- railties (4.1.0.beta)
42
- actionpack (= 4.1.0.beta)
43
- activesupport (= 4.1.0.beta)
44
- rake (>= 0.8.7)
45
- thor (>= 0.18.1, < 2.0)
46
-
47
- PATH
48
- remote: .
49
- specs:
50
- bullet (4.7.1)
51
- activesupport
52
- uniform_notifier (>= 1.4.0)
53
-
54
- GEM
55
- remote: https://rubygems.org/
56
- specs:
57
- activerecord-import (0.4.1)
58
- activerecord (>= 3.0)
59
- arel (4.0.1)
60
- atomic (1.1.14)
61
- builder (3.1.4)
62
- coderay (1.0.9)
63
- colorize (0.5.8)
64
- coveralls (0.6.7)
65
- colorize
66
- multi_json (~> 1.3)
67
- rest-client
68
- simplecov (>= 0.7)
69
- thor
70
- diff-lcs (1.2.4)
71
- erubis (2.7.0)
72
- ffi (1.9.0)
73
- formatador (0.2.4)
74
- guard (1.8.2)
75
- formatador (>= 0.2.4)
76
- listen (>= 1.0.0)
77
- lumberjack (>= 1.0.2)
78
- pry (>= 0.9.10)
79
- thor (>= 0.14.6)
80
- guard-rspec (3.0.2)
81
- guard (>= 1.8)
82
- rspec (~> 2.13)
83
- hike (1.2.3)
84
- i18n (0.6.5)
85
- json (1.8.1)
86
- listen (1.3.0)
87
- rb-fsevent (>= 0.9.3)
88
- rb-inotify (>= 0.9)
89
- rb-kqueue (>= 0.2)
90
- lumberjack (1.0.4)
91
- mail (2.5.4)
92
- mime-types (~> 1.16)
93
- treetop (~> 1.4.8)
94
- method_source (0.8.2)
95
- mime-types (1.25)
96
- minitest (5.0.8)
97
- multi_json (1.8.2)
98
- mysql2 (0.3.13)
99
- polyglot (0.3.3)
100
- pry (0.9.12.2)
101
- coderay (~> 1.0.5)
102
- method_source (~> 0.8)
103
- slop (~> 3.4)
104
- rack (1.5.2)
105
- rack-test (0.6.2)
106
- rack (>= 1.0)
107
- rake (10.1.0)
108
- rb-fsevent (0.9.3)
109
- rb-inotify (0.9.1)
110
- ffi (>= 0.5.0)
111
- rb-kqueue (0.2.0)
112
- ffi (>= 0.5.0)
113
- rest-client (1.6.7)
114
- mime-types (>= 1.16)
115
- rspec (2.14.1)
116
- rspec-core (~> 2.14.0)
117
- rspec-expectations (~> 2.14.0)
118
- rspec-mocks (~> 2.14.0)
119
- rspec-core (2.14.5)
120
- rspec-expectations (2.14.2)
121
- diff-lcs (>= 1.1.3, < 2.0)
122
- rspec-mocks (2.14.3)
123
- simplecov (0.7.1)
124
- multi_json (~> 1.0)
125
- simplecov-html (~> 0.7.1)
126
- simplecov-html (0.7.1)
127
- slop (3.4.6)
128
- sprockets (2.10.0)
129
- hike (~> 1.2)
130
- multi_json (~> 1.0)
131
- rack (~> 1.0)
132
- tilt (~> 1.1, != 1.3.0)
133
- sprockets-rails (2.0.1)
134
- actionpack (>= 3.0)
135
- activesupport (>= 3.0)
136
- sprockets (~> 2.8)
137
- sqlite3 (1.3.8)
138
- thor (0.18.1)
139
- thread_safe (0.1.3)
140
- atomic
141
- tilt (1.4.1)
142
- treetop (1.4.15)
143
- polyglot
144
- polyglot (>= 0.3.1)
145
- tzinfo (0.3.38)
146
- uniform_notifier (1.4.0)
147
-
148
- PLATFORMS
149
- ruby
150
-
151
- DEPENDENCIES
152
- activerecord-import
153
- bullet!
154
- coveralls
155
- guard
156
- guard-rspec
157
- mysql2
158
- rails!
159
- rspec
160
- sqlite3
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'rails'
6
- gem 'sqlite3'
7
- gem 'mysql2'
8
- gem 'activerecord-import'
9
- gem 'mongoid', '2.4.12'
10
-
11
- gem "rspec"
12
- gem "guard"
13
- gem "guard-rspec"
14
-
15
- gem 'coveralls', require: false
@@ -1,163 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- bullet (4.7.0)
5
- activesupport
6
- uniform_notifier (>= 1.4.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (3.2.14)
12
- actionpack (= 3.2.14)
13
- mail (~> 2.5.4)
14
- actionpack (3.2.14)
15
- activemodel (= 3.2.14)
16
- activesupport (= 3.2.14)
17
- builder (~> 3.0.0)
18
- erubis (~> 2.7.0)
19
- journey (~> 1.0.4)
20
- rack (~> 1.4.5)
21
- rack-cache (~> 1.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.2.1)
24
- activemodel (3.2.14)
25
- activesupport (= 3.2.14)
26
- builder (~> 3.0.0)
27
- activerecord (3.2.14)
28
- activemodel (= 3.2.14)
29
- activesupport (= 3.2.14)
30
- arel (~> 3.0.2)
31
- tzinfo (~> 0.3.29)
32
- activerecord-import (0.4.1)
33
- activerecord (>= 3.0)
34
- activeresource (3.2.14)
35
- activemodel (= 3.2.14)
36
- activesupport (= 3.2.14)
37
- activesupport (3.2.14)
38
- i18n (~> 0.6, >= 0.6.4)
39
- multi_json (~> 1.0)
40
- arel (3.0.2)
41
- bson (1.6.4)
42
- builder (3.0.4)
43
- coderay (1.0.9)
44
- colorize (0.5.8)
45
- coveralls (0.6.7)
46
- colorize
47
- multi_json (~> 1.3)
48
- rest-client
49
- simplecov (>= 0.7)
50
- thor
51
- diff-lcs (1.2.4)
52
- erubis (2.7.0)
53
- ffi (1.9.0)
54
- formatador (0.2.4)
55
- guard (1.8.2)
56
- formatador (>= 0.2.4)
57
- listen (>= 1.0.0)
58
- lumberjack (>= 1.0.2)
59
- pry (>= 0.9.10)
60
- thor (>= 0.14.6)
61
- guard-rspec (3.0.2)
62
- guard (>= 1.8)
63
- rspec (~> 2.13)
64
- hike (1.2.3)
65
- i18n (0.6.5)
66
- journey (1.0.4)
67
- json (1.8.0)
68
- listen (1.3.0)
69
- rb-fsevent (>= 0.9.3)
70
- rb-inotify (>= 0.9)
71
- rb-kqueue (>= 0.2)
72
- lumberjack (1.0.4)
73
- mail (2.5.4)
74
- mime-types (~> 1.16)
75
- treetop (~> 1.4.8)
76
- method_source (0.8.2)
77
- mime-types (1.24)
78
- mongo (1.6.2)
79
- bson (~> 1.6.2)
80
- mongoid (2.4.12)
81
- activemodel (~> 3.1)
82
- mongo (<= 1.6.2)
83
- tzinfo (~> 0.3.22)
84
- multi_json (1.7.9)
85
- mysql2 (0.3.13)
86
- polyglot (0.3.3)
87
- pry (0.9.12.2)
88
- coderay (~> 1.0.5)
89
- method_source (~> 0.8)
90
- slop (~> 3.4)
91
- rack (1.4.5)
92
- rack-cache (1.2)
93
- rack (>= 0.4)
94
- rack-ssl (1.3.3)
95
- rack
96
- rack-test (0.6.2)
97
- rack (>= 1.0)
98
- rails (3.2.14)
99
- actionmailer (= 3.2.14)
100
- actionpack (= 3.2.14)
101
- activerecord (= 3.2.14)
102
- activeresource (= 3.2.14)
103
- activesupport (= 3.2.14)
104
- bundler (~> 1.0)
105
- railties (= 3.2.14)
106
- railties (3.2.14)
107
- actionpack (= 3.2.14)
108
- activesupport (= 3.2.14)
109
- rack-ssl (~> 1.3.2)
110
- rake (>= 0.8.7)
111
- rdoc (~> 3.4)
112
- thor (>= 0.14.6, < 2.0)
113
- rake (10.1.0)
114
- rb-fsevent (0.9.3)
115
- rb-inotify (0.9.1)
116
- ffi (>= 0.5.0)
117
- rb-kqueue (0.2.0)
118
- ffi (>= 0.5.0)
119
- rdoc (3.12.2)
120
- json (~> 1.4)
121
- rest-client (1.6.7)
122
- mime-types (>= 1.16)
123
- rspec (2.14.1)
124
- rspec-core (~> 2.14.0)
125
- rspec-expectations (~> 2.14.0)
126
- rspec-mocks (~> 2.14.0)
127
- rspec-core (2.14.5)
128
- rspec-expectations (2.14.2)
129
- diff-lcs (>= 1.1.3, < 2.0)
130
- rspec-mocks (2.14.3)
131
- simplecov (0.7.1)
132
- multi_json (~> 1.0)
133
- simplecov-html (~> 0.7.1)
134
- simplecov-html (0.7.1)
135
- slop (3.4.6)
136
- sprockets (2.2.2)
137
- hike (~> 1.2)
138
- multi_json (~> 1.0)
139
- rack (~> 1.0)
140
- tilt (~> 1.1, != 1.3.0)
141
- sqlite3 (1.3.8)
142
- thor (0.18.1)
143
- tilt (1.4.1)
144
- treetop (1.4.15)
145
- polyglot
146
- polyglot (>= 0.3.1)
147
- tzinfo (0.3.37)
148
- uniform_notifier (1.4.0)
149
-
150
- PLATFORMS
151
- ruby
152
-
153
- DEPENDENCIES
154
- activerecord-import
155
- bullet!
156
- coveralls
157
- guard
158
- guard-rspec
159
- mongoid (= 2.4.12)
160
- mysql2
161
- rails
162
- rspec
163
- sqlite3
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'rails'
6
- gem 'sqlite3'
7
- gem 'mysql2'
8
- gem 'activerecord-import'
9
- gem 'mongoid', '2.5.2'
10
-
11
- gem "rspec"
12
- gem "guard"
13
- gem "guard-rspec"
14
-
15
- gem 'coveralls', require: false
@@ -1,163 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- bullet (4.7.0)
5
- activesupport
6
- uniform_notifier (>= 1.4.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (3.2.14)
12
- actionpack (= 3.2.14)
13
- mail (~> 2.5.4)
14
- actionpack (3.2.14)
15
- activemodel (= 3.2.14)
16
- activesupport (= 3.2.14)
17
- builder (~> 3.0.0)
18
- erubis (~> 2.7.0)
19
- journey (~> 1.0.4)
20
- rack (~> 1.4.5)
21
- rack-cache (~> 1.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.2.1)
24
- activemodel (3.2.14)
25
- activesupport (= 3.2.14)
26
- builder (~> 3.0.0)
27
- activerecord (3.2.14)
28
- activemodel (= 3.2.14)
29
- activesupport (= 3.2.14)
30
- arel (~> 3.0.2)
31
- tzinfo (~> 0.3.29)
32
- activerecord-import (0.4.1)
33
- activerecord (>= 3.0)
34
- activeresource (3.2.14)
35
- activemodel (= 3.2.14)
36
- activesupport (= 3.2.14)
37
- activesupport (3.2.14)
38
- i18n (~> 0.6, >= 0.6.4)
39
- multi_json (~> 1.0)
40
- arel (3.0.2)
41
- bson (1.9.2)
42
- builder (3.0.4)
43
- coderay (1.0.9)
44
- colorize (0.5.8)
45
- coveralls (0.6.7)
46
- colorize
47
- multi_json (~> 1.3)
48
- rest-client
49
- simplecov (>= 0.7)
50
- thor
51
- diff-lcs (1.2.4)
52
- erubis (2.7.0)
53
- ffi (1.9.0)
54
- formatador (0.2.4)
55
- guard (1.8.2)
56
- formatador (>= 0.2.4)
57
- listen (>= 1.0.0)
58
- lumberjack (>= 1.0.2)
59
- pry (>= 0.9.10)
60
- thor (>= 0.14.6)
61
- guard-rspec (3.0.2)
62
- guard (>= 1.8)
63
- rspec (~> 2.13)
64
- hike (1.2.3)
65
- i18n (0.6.5)
66
- journey (1.0.4)
67
- json (1.8.0)
68
- listen (1.3.0)
69
- rb-fsevent (>= 0.9.3)
70
- rb-inotify (>= 0.9)
71
- rb-kqueue (>= 0.2)
72
- lumberjack (1.0.4)
73
- mail (2.5.4)
74
- mime-types (~> 1.16)
75
- treetop (~> 1.4.8)
76
- method_source (0.8.2)
77
- mime-types (1.24)
78
- mongo (1.9.2)
79
- bson (~> 1.9.2)
80
- mongoid (2.5.2)
81
- activemodel (~> 3.1)
82
- mongo (~> 1.7)
83
- tzinfo (~> 0.3.22)
84
- multi_json (1.7.9)
85
- mysql2 (0.3.13)
86
- polyglot (0.3.3)
87
- pry (0.9.12.2)
88
- coderay (~> 1.0.5)
89
- method_source (~> 0.8)
90
- slop (~> 3.4)
91
- rack (1.4.5)
92
- rack-cache (1.2)
93
- rack (>= 0.4)
94
- rack-ssl (1.3.3)
95
- rack
96
- rack-test (0.6.2)
97
- rack (>= 1.0)
98
- rails (3.2.14)
99
- actionmailer (= 3.2.14)
100
- actionpack (= 3.2.14)
101
- activerecord (= 3.2.14)
102
- activeresource (= 3.2.14)
103
- activesupport (= 3.2.14)
104
- bundler (~> 1.0)
105
- railties (= 3.2.14)
106
- railties (3.2.14)
107
- actionpack (= 3.2.14)
108
- activesupport (= 3.2.14)
109
- rack-ssl (~> 1.3.2)
110
- rake (>= 0.8.7)
111
- rdoc (~> 3.4)
112
- thor (>= 0.14.6, < 2.0)
113
- rake (10.1.0)
114
- rb-fsevent (0.9.3)
115
- rb-inotify (0.9.1)
116
- ffi (>= 0.5.0)
117
- rb-kqueue (0.2.0)
118
- ffi (>= 0.5.0)
119
- rdoc (3.12.2)
120
- json (~> 1.4)
121
- rest-client (1.6.7)
122
- mime-types (>= 1.16)
123
- rspec (2.14.1)
124
- rspec-core (~> 2.14.0)
125
- rspec-expectations (~> 2.14.0)
126
- rspec-mocks (~> 2.14.0)
127
- rspec-core (2.14.5)
128
- rspec-expectations (2.14.2)
129
- diff-lcs (>= 1.1.3, < 2.0)
130
- rspec-mocks (2.14.3)
131
- simplecov (0.7.1)
132
- multi_json (~> 1.0)
133
- simplecov-html (~> 0.7.1)
134
- simplecov-html (0.7.1)
135
- slop (3.4.6)
136
- sprockets (2.2.2)
137
- hike (~> 1.2)
138
- multi_json (~> 1.0)
139
- rack (~> 1.0)
140
- tilt (~> 1.1, != 1.3.0)
141
- sqlite3 (1.3.8)
142
- thor (0.18.1)
143
- tilt (1.4.1)
144
- treetop (1.4.15)
145
- polyglot
146
- polyglot (>= 0.3.1)
147
- tzinfo (0.3.37)
148
- uniform_notifier (1.4.0)
149
-
150
- PLATFORMS
151
- ruby
152
-
153
- DEPENDENCIES
154
- activerecord-import
155
- bullet!
156
- coveralls
157
- guard
158
- guard-rspec
159
- mongoid (= 2.5.2)
160
- mysql2
161
- rails
162
- rspec
163
- sqlite3