bullet 4.7.1 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
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,147 +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
- abstract (1.0.0)
12
- actionmailer (3.0.20)
13
- actionpack (= 3.0.20)
14
- mail (~> 2.2.19)
15
- actionpack (3.0.20)
16
- activemodel (= 3.0.20)
17
- activesupport (= 3.0.20)
18
- builder (~> 2.1.2)
19
- erubis (~> 2.6.6)
20
- i18n (~> 0.5.0)
21
- rack (~> 1.2.5)
22
- rack-mount (~> 0.6.14)
23
- rack-test (~> 0.5.7)
24
- tzinfo (~> 0.3.23)
25
- activemodel (3.0.20)
26
- activesupport (= 3.0.20)
27
- builder (~> 2.1.2)
28
- i18n (~> 0.5.0)
29
- activerecord (3.0.20)
30
- activemodel (= 3.0.20)
31
- activesupport (= 3.0.20)
32
- arel (~> 2.0.10)
33
- tzinfo (~> 0.3.23)
34
- activerecord-import (0.4.1)
35
- activerecord (>= 3.0)
36
- activeresource (3.0.20)
37
- activemodel (= 3.0.20)
38
- activesupport (= 3.0.20)
39
- activesupport (3.0.20)
40
- arel (2.0.10)
41
- builder (2.1.2)
42
- coderay (1.0.9)
43
- colorize (0.5.8)
44
- coveralls (0.6.7)
45
- colorize
46
- multi_json (~> 1.3)
47
- rest-client
48
- simplecov (>= 0.7)
49
- thor
50
- diff-lcs (1.2.4)
51
- erubis (2.6.6)
52
- abstract (>= 1.0.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
- i18n (0.5.0)
65
- json (1.8.0)
66
- listen (1.3.0)
67
- rb-fsevent (>= 0.9.3)
68
- rb-inotify (>= 0.9)
69
- rb-kqueue (>= 0.2)
70
- lumberjack (1.0.4)
71
- mail (2.2.20)
72
- activesupport (>= 2.3.6)
73
- i18n (>= 0.4.0)
74
- mime-types (~> 1.16)
75
- treetop (~> 1.4.8)
76
- method_source (0.8.2)
77
- mime-types (1.24)
78
- multi_json (1.7.9)
79
- mysql2 (0.3.13)
80
- polyglot (0.3.3)
81
- pry (0.9.12.2)
82
- coderay (~> 1.0.5)
83
- method_source (~> 0.8)
84
- slop (~> 3.4)
85
- rack (1.2.8)
86
- rack-mount (0.6.14)
87
- rack (>= 1.0.0)
88
- rack-test (0.5.7)
89
- rack (>= 1.0)
90
- rails (3.0.20)
91
- actionmailer (= 3.0.20)
92
- actionpack (= 3.0.20)
93
- activerecord (= 3.0.20)
94
- activeresource (= 3.0.20)
95
- activesupport (= 3.0.20)
96
- bundler (~> 1.0)
97
- railties (= 3.0.20)
98
- railties (3.0.20)
99
- actionpack (= 3.0.20)
100
- activesupport (= 3.0.20)
101
- rake (>= 0.8.7)
102
- rdoc (~> 3.4)
103
- thor (~> 0.14.4)
104
- rake (10.1.0)
105
- rb-fsevent (0.9.3)
106
- rb-inotify (0.9.1)
107
- ffi (>= 0.5.0)
108
- rb-kqueue (0.2.0)
109
- ffi (>= 0.5.0)
110
- rdoc (3.12.2)
111
- json (~> 1.4)
112
- rest-client (1.6.7)
113
- mime-types (>= 1.16)
114
- rspec (2.14.1)
115
- rspec-core (~> 2.14.0)
116
- rspec-expectations (~> 2.14.0)
117
- rspec-mocks (~> 2.14.0)
118
- rspec-core (2.14.5)
119
- rspec-expectations (2.14.2)
120
- diff-lcs (>= 1.1.3, < 2.0)
121
- rspec-mocks (2.14.3)
122
- simplecov (0.7.1)
123
- multi_json (~> 1.0)
124
- simplecov-html (~> 0.7.1)
125
- simplecov-html (0.7.1)
126
- slop (3.4.6)
127
- sqlite3 (1.3.8)
128
- thor (0.14.6)
129
- treetop (1.4.15)
130
- polyglot
131
- polyglot (>= 0.3.1)
132
- tzinfo (0.3.37)
133
- uniform_notifier (1.4.0)
134
-
135
- PLATFORMS
136
- ruby
137
-
138
- DEPENDENCIES
139
- activerecord-import
140
- bullet!
141
- coveralls
142
- guard
143
- guard-rspec
144
- mysql2
145
- rails (= 3.0.20)
146
- rspec
147
- sqlite3
@@ -1,14 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'rails', '3.1.12'
6
- gem 'sqlite3'
7
- gem 'mysql2'
8
- gem 'activerecord-import'
9
-
10
- gem "rspec"
11
- gem "guard"
12
- gem "guard-rspec"
13
-
14
- gem 'coveralls', require: false
@@ -1,157 +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.1.12)
12
- actionpack (= 3.1.12)
13
- mail (~> 2.4.4)
14
- actionpack (3.1.12)
15
- activemodel (= 3.1.12)
16
- activesupport (= 3.1.12)
17
- builder (~> 3.0.0)
18
- erubis (~> 2.7.0)
19
- i18n (~> 0.6)
20
- rack (~> 1.3.6)
21
- rack-cache (~> 1.2)
22
- rack-mount (~> 0.8.2)
23
- rack-test (~> 0.6.1)
24
- sprockets (~> 2.0.4)
25
- activemodel (3.1.12)
26
- activesupport (= 3.1.12)
27
- builder (~> 3.0.0)
28
- i18n (~> 0.6)
29
- activerecord (3.1.12)
30
- activemodel (= 3.1.12)
31
- activesupport (= 3.1.12)
32
- arel (~> 2.2.3)
33
- tzinfo (~> 0.3.29)
34
- activerecord-import (0.4.1)
35
- activerecord (>= 3.0)
36
- activeresource (3.1.12)
37
- activemodel (= 3.1.12)
38
- activesupport (= 3.1.12)
39
- activesupport (3.1.12)
40
- multi_json (~> 1.0)
41
- arel (2.2.3)
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
- json (1.8.0)
67
- listen (1.3.0)
68
- rb-fsevent (>= 0.9.3)
69
- rb-inotify (>= 0.9)
70
- rb-kqueue (>= 0.2)
71
- lumberjack (1.0.4)
72
- mail (2.4.4)
73
- i18n (>= 0.4.0)
74
- mime-types (~> 1.16)
75
- treetop (~> 1.4.8)
76
- method_source (0.8.2)
77
- mime-types (1.24)
78
- multi_json (1.7.9)
79
- mysql2 (0.3.13)
80
- polyglot (0.3.3)
81
- pry (0.9.12.2)
82
- coderay (~> 1.0.5)
83
- method_source (~> 0.8)
84
- slop (~> 3.4)
85
- rack (1.3.10)
86
- rack-cache (1.2)
87
- rack (>= 0.4)
88
- rack-mount (0.8.3)
89
- rack (>= 1.0.0)
90
- rack-ssl (1.3.3)
91
- rack
92
- rack-test (0.6.2)
93
- rack (>= 1.0)
94
- rails (3.1.12)
95
- actionmailer (= 3.1.12)
96
- actionpack (= 3.1.12)
97
- activerecord (= 3.1.12)
98
- activeresource (= 3.1.12)
99
- activesupport (= 3.1.12)
100
- bundler (~> 1.0)
101
- railties (= 3.1.12)
102
- railties (3.1.12)
103
- actionpack (= 3.1.12)
104
- activesupport (= 3.1.12)
105
- rack-ssl (~> 1.3.2)
106
- rake (>= 0.8.7)
107
- rdoc (~> 3.4)
108
- thor (~> 0.14.6)
109
- rake (10.1.0)
110
- rb-fsevent (0.9.3)
111
- rb-inotify (0.9.1)
112
- ffi (>= 0.5.0)
113
- rb-kqueue (0.2.0)
114
- ffi (>= 0.5.0)
115
- rdoc (3.12.2)
116
- json (~> 1.4)
117
- rest-client (1.6.7)
118
- mime-types (>= 1.16)
119
- rspec (2.14.1)
120
- rspec-core (~> 2.14.0)
121
- rspec-expectations (~> 2.14.0)
122
- rspec-mocks (~> 2.14.0)
123
- rspec-core (2.14.5)
124
- rspec-expectations (2.14.2)
125
- diff-lcs (>= 1.1.3, < 2.0)
126
- rspec-mocks (2.14.3)
127
- simplecov (0.7.1)
128
- multi_json (~> 1.0)
129
- simplecov-html (~> 0.7.1)
130
- simplecov-html (0.7.1)
131
- slop (3.4.6)
132
- sprockets (2.0.4)
133
- hike (~> 1.2)
134
- rack (~> 1.0)
135
- tilt (~> 1.1, != 1.3.0)
136
- sqlite3 (1.3.8)
137
- thor (0.14.6)
138
- tilt (1.4.1)
139
- treetop (1.4.15)
140
- polyglot
141
- polyglot (>= 0.3.1)
142
- tzinfo (0.3.37)
143
- uniform_notifier (1.4.0)
144
-
145
- PLATFORMS
146
- ruby
147
-
148
- DEPENDENCIES
149
- activerecord-import
150
- bullet!
151
- coveralls
152
- guard
153
- guard-rspec
154
- mysql2
155
- rails (= 3.1.12)
156
- rspec
157
- sqlite3
@@ -1,14 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'rails', '3.2.15'
6
- gem 'sqlite3'
7
- gem 'mysql2'
8
- gem 'activerecord-import'
9
-
10
- gem "rspec"
11
- gem "guard"
12
- gem "guard-rspec"
13
-
14
- gem 'coveralls', require: false
@@ -1,155 +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.15)
12
- actionpack (= 3.2.15)
13
- mail (~> 2.5.4)
14
- actionpack (3.2.15)
15
- activemodel (= 3.2.15)
16
- activesupport (= 3.2.15)
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.15)
25
- activesupport (= 3.2.15)
26
- builder (~> 3.0.0)
27
- activerecord (3.2.15)
28
- activemodel (= 3.2.15)
29
- activesupport (= 3.2.15)
30
- arel (~> 3.0.2)
31
- tzinfo (~> 0.3.29)
32
- activerecord-import (0.4.1)
33
- activerecord (>= 3.0)
34
- activeresource (3.2.15)
35
- activemodel (= 3.2.15)
36
- activesupport (= 3.2.15)
37
- activesupport (3.2.15)
38
- i18n (~> 0.6, >= 0.6.4)
39
- multi_json (~> 1.0)
40
- arel (3.0.2)
41
- builder (3.0.4)
42
- coderay (1.0.9)
43
- colorize (0.5.8)
44
- coveralls (0.6.7)
45
- colorize
46
- multi_json (~> 1.3)
47
- rest-client
48
- simplecov (>= 0.7)
49
- thor
50
- diff-lcs (1.2.4)
51
- erubis (2.7.0)
52
- ffi (1.9.0)
53
- formatador (0.2.4)
54
- guard (1.8.2)
55
- formatador (>= 0.2.4)
56
- listen (>= 1.0.0)
57
- lumberjack (>= 1.0.2)
58
- pry (>= 0.9.10)
59
- thor (>= 0.14.6)
60
- guard-rspec (3.0.2)
61
- guard (>= 1.8)
62
- rspec (~> 2.13)
63
- hike (1.2.3)
64
- i18n (0.6.5)
65
- journey (1.0.4)
66
- json (1.8.1)
67
- listen (1.3.0)
68
- rb-fsevent (>= 0.9.3)
69
- rb-inotify (>= 0.9)
70
- rb-kqueue (>= 0.2)
71
- lumberjack (1.0.4)
72
- mail (2.5.4)
73
- mime-types (~> 1.16)
74
- treetop (~> 1.4.8)
75
- method_source (0.8.2)
76
- mime-types (1.25)
77
- multi_json (1.8.2)
78
- mysql2 (0.3.13)
79
- polyglot (0.3.3)
80
- pry (0.9.12.2)
81
- coderay (~> 1.0.5)
82
- method_source (~> 0.8)
83
- slop (~> 3.4)
84
- rack (1.4.5)
85
- rack-cache (1.2)
86
- rack (>= 0.4)
87
- rack-ssl (1.3.3)
88
- rack
89
- rack-test (0.6.2)
90
- rack (>= 1.0)
91
- rails (3.2.15)
92
- actionmailer (= 3.2.15)
93
- actionpack (= 3.2.15)
94
- activerecord (= 3.2.15)
95
- activeresource (= 3.2.15)
96
- activesupport (= 3.2.15)
97
- bundler (~> 1.0)
98
- railties (= 3.2.15)
99
- railties (3.2.15)
100
- actionpack (= 3.2.15)
101
- activesupport (= 3.2.15)
102
- rack-ssl (~> 1.3.2)
103
- rake (>= 0.8.7)
104
- rdoc (~> 3.4)
105
- thor (>= 0.14.6, < 2.0)
106
- rake (10.1.0)
107
- rb-fsevent (0.9.3)
108
- rb-inotify (0.9.1)
109
- ffi (>= 0.5.0)
110
- rb-kqueue (0.2.0)
111
- ffi (>= 0.5.0)
112
- rdoc (3.12.2)
113
- json (~> 1.4)
114
- rest-client (1.6.7)
115
- mime-types (>= 1.16)
116
- rspec (2.14.1)
117
- rspec-core (~> 2.14.0)
118
- rspec-expectations (~> 2.14.0)
119
- rspec-mocks (~> 2.14.0)
120
- rspec-core (2.14.5)
121
- rspec-expectations (2.14.2)
122
- diff-lcs (>= 1.1.3, < 2.0)
123
- rspec-mocks (2.14.3)
124
- simplecov (0.7.1)
125
- multi_json (~> 1.0)
126
- simplecov-html (~> 0.7.1)
127
- simplecov-html (0.7.1)
128
- slop (3.4.6)
129
- sprockets (2.2.2)
130
- hike (~> 1.2)
131
- multi_json (~> 1.0)
132
- rack (~> 1.0)
133
- tilt (~> 1.1, != 1.3.0)
134
- sqlite3 (1.3.8)
135
- thor (0.18.1)
136
- tilt (1.4.1)
137
- treetop (1.4.15)
138
- polyglot
139
- polyglot (>= 0.3.1)
140
- tzinfo (0.3.38)
141
- uniform_notifier (1.4.0)
142
-
143
- PLATFORMS
144
- ruby
145
-
146
- DEPENDENCIES
147
- activerecord-import
148
- bullet!
149
- coveralls
150
- guard
151
- guard-rspec
152
- mysql2
153
- rails (= 3.2.15)
154
- rspec
155
- sqlite3