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,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.6.0'
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.6.0)
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.6.0)
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.7.1'
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.7.1)
81
- activemodel (~> 3.1)
82
- mongo (~> 1.8)
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.7.1)
160
- mysql2
161
- rails
162
- rspec
163
- sqlite3
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'rails', '~> 3.2'
6
- gem 'sqlite3'
7
- gem 'mysql2'
8
- gem 'activerecord-import'
9
- gem 'mongoid', '2.8.1'
10
-
11
- gem "rspec"
12
- gem "guard"
13
- gem "guard-rspec"
14
-
15
- gem 'coveralls', require: false
@@ -1,166 +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
- bson (1.9.2)
42
- builder (3.0.4)
43
- celluloid (0.15.2)
44
- timers (~> 1.1.0)
45
- coderay (1.0.9)
46
- coveralls (0.7.0)
47
- multi_json (~> 1.3)
48
- rest-client
49
- simplecov (>= 0.7)
50
- term-ansicolor
51
- thor
52
- diff-lcs (1.2.4)
53
- erubis (2.7.0)
54
- ffi (1.9.3)
55
- formatador (0.2.4)
56
- guard (2.2.2)
57
- formatador (>= 0.2.4)
58
- listen (~> 2.1)
59
- lumberjack (~> 1.0)
60
- pry (>= 0.9.12)
61
- thor (>= 0.18.1)
62
- guard-rspec (4.0.3)
63
- guard (>= 2.1.1)
64
- rspec (~> 2.14)
65
- hike (1.2.3)
66
- i18n (0.6.5)
67
- journey (1.0.4)
68
- json (1.8.1)
69
- listen (2.2.0)
70
- celluloid (>= 0.15.2)
71
- rb-fsevent (>= 0.9.3)
72
- rb-inotify (>= 0.9)
73
- lumberjack (1.0.4)
74
- mail (2.5.4)
75
- mime-types (~> 1.16)
76
- treetop (~> 1.4.8)
77
- method_source (0.8.2)
78
- mime-types (1.25)
79
- mongo (1.9.2)
80
- bson (~> 1.9.2)
81
- mongoid (2.8.1)
82
- activemodel (~> 3.1)
83
- mongo (~> 1.9)
84
- tzinfo (~> 0.3.22)
85
- multi_json (1.8.2)
86
- mysql2 (0.3.13)
87
- polyglot (0.3.3)
88
- pry (0.9.12.2)
89
- coderay (~> 1.0.5)
90
- method_source (~> 0.8)
91
- slop (~> 3.4)
92
- rack (1.4.5)
93
- rack-cache (1.2)
94
- rack (>= 0.4)
95
- rack-ssl (1.3.3)
96
- rack
97
- rack-test (0.6.2)
98
- rack (>= 1.0)
99
- rails (3.2.15)
100
- actionmailer (= 3.2.15)
101
- actionpack (= 3.2.15)
102
- activerecord (= 3.2.15)
103
- activeresource (= 3.2.15)
104
- activesupport (= 3.2.15)
105
- bundler (~> 1.0)
106
- railties (= 3.2.15)
107
- railties (3.2.15)
108
- actionpack (= 3.2.15)
109
- activesupport (= 3.2.15)
110
- rack-ssl (~> 1.3.2)
111
- rake (>= 0.8.7)
112
- rdoc (~> 3.4)
113
- thor (>= 0.14.6, < 2.0)
114
- rake (10.1.0)
115
- rb-fsevent (0.9.3)
116
- rb-inotify (0.9.2)
117
- ffi (>= 0.5.0)
118
- rdoc (3.12.2)
119
- json (~> 1.4)
120
- rest-client (1.6.7)
121
- mime-types (>= 1.16)
122
- rspec (2.14.1)
123
- rspec-core (~> 2.14.0)
124
- rspec-expectations (~> 2.14.0)
125
- rspec-mocks (~> 2.14.0)
126
- rspec-core (2.14.7)
127
- rspec-expectations (2.14.3)
128
- diff-lcs (>= 1.1.3, < 2.0)
129
- rspec-mocks (2.14.4)
130
- simplecov (0.7.1)
131
- multi_json (~> 1.0)
132
- simplecov-html (~> 0.7.1)
133
- simplecov-html (0.7.1)
134
- slop (3.4.6)
135
- sprockets (2.2.2)
136
- hike (~> 1.2)
137
- multi_json (~> 1.0)
138
- rack (~> 1.0)
139
- tilt (~> 1.1, != 1.3.0)
140
- sqlite3 (1.3.8)
141
- term-ansicolor (1.2.2)
142
- tins (~> 0.8)
143
- thor (0.18.1)
144
- tilt (1.4.1)
145
- timers (1.1.0)
146
- tins (0.12.0)
147
- treetop (1.4.15)
148
- polyglot
149
- polyglot (>= 0.3.1)
150
- tzinfo (0.3.38)
151
- uniform_notifier (1.4.0)
152
-
153
- PLATFORMS
154
- ruby
155
-
156
- DEPENDENCIES
157
- activerecord-import
158
- bullet!
159
- coveralls
160
- guard
161
- guard-rspec
162
- mongoid (= 2.8.1)
163
- mysql2
164
- rails (~> 3.2)
165
- rspec
166
- sqlite3