bullet 4.6.0 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +10 -4
  6. data/Gemfile +4 -5
  7. data/Gemfile.lock +160 -0
  8. data/Gemfile.mongoid +15 -0
  9. data/Gemfile.mongoid-2.4.12 +15 -0
  10. data/Gemfile.mongoid-2.4.12.lock +163 -0
  11. data/Gemfile.mongoid-2.5.2 +15 -0
  12. data/Gemfile.mongoid-2.5.2.lock +163 -0
  13. data/Gemfile.mongoid-2.6.0 +15 -0
  14. data/Gemfile.mongoid-2.6.0.lock +163 -0
  15. data/Gemfile.mongoid-2.7.1 +15 -0
  16. data/Gemfile.mongoid-2.7.1.lock +163 -0
  17. data/Gemfile.mongoid-2.8.1 +15 -0
  18. data/Gemfile.mongoid-2.8.1.lock +166 -0
  19. data/Gemfile.mongoid-3.0.23 +15 -0
  20. data/Gemfile.mongoid-3.0.23.lock +163 -0
  21. data/Gemfile.mongoid-3.1.5 +15 -0
  22. data/Gemfile.mongoid-3.1.5.lock +163 -0
  23. data/Gemfile.mongoid.lock +167 -0
  24. data/Gemfile.rails-3.0.20 +3 -4
  25. data/Gemfile.rails-3.0.20.lock +147 -0
  26. data/Gemfile.rails-3.1.12 +14 -0
  27. data/Gemfile.rails-3.1.12.lock +157 -0
  28. data/Gemfile.rails-3.2.15 +14 -0
  29. data/Gemfile.rails-3.2.15.lock +155 -0
  30. data/Gemfile.rails-4.0.1 +14 -0
  31. data/Gemfile.rails-4.0.1.lock +150 -0
  32. data/README.md +16 -16
  33. data/bullet.gemspec +2 -1
  34. data/lib/bullet.rb +26 -2
  35. data/lib/bullet/dependency.rb +14 -23
  36. data/lib/bullet/mongoid4x.rb +55 -0
  37. data/lib/bullet/notification.rb +2 -0
  38. data/lib/bullet/notification/base.rb +4 -0
  39. data/lib/bullet/rack.rb +24 -3
  40. data/lib/bullet/version.rb +1 -1
  41. data/spec/bullet/detector/unused_eager_loading_spec.rb +1 -1
  42. data/spec/bullet/notification/base_spec.rb +2 -2
  43. data/spec/bullet/rack_spec.rb +9 -9
  44. data/spec/integration/{association_spec.rb → active_record3/association_spec.rb} +1 -1
  45. data/spec/integration/active_record4/association_spec.rb +698 -0
  46. data/spec/integration/mongoid/association_spec.rb +10 -7
  47. data/spec/models/client.rb +1 -1
  48. data/spec/models/comment.rb +2 -2
  49. data/spec/models/document.rb +2 -2
  50. data/spec/models/firm.rb +1 -1
  51. data/spec/models/mongoid/address.rb +2 -0
  52. data/spec/models/mongoid/category.rb +2 -0
  53. data/spec/models/mongoid/comment.rb +2 -0
  54. data/spec/models/mongoid/company.rb +2 -0
  55. data/spec/models/mongoid/entry.rb +2 -0
  56. data/spec/models/mongoid/post.rb +2 -0
  57. data/spec/models/mongoid/user.rb +2 -0
  58. data/spec/models/newspaper.rb +1 -1
  59. data/spec/models/pet.rb +1 -1
  60. data/spec/models/post.rb +3 -5
  61. data/spec/spec_helper.rb +21 -0
  62. data/spec/support/mongo_seed.rb +13 -1
  63. data/test.sh +12 -4
  64. metadata +49 -11
  65. data/.rvmrc +0 -2
  66. data/.rvmrc.example +0 -2
  67. data/Gemfile.rails-3.1.11 +0 -16
  68. data/Gemfile.rails-3.2.12 +0 -16
  69. data/Gemfile.rails-4-beta +0 -14
@@ -1,6 +1,4 @@
1
- # Use `bundle install` in order to install these gems
2
- # Use `bundle exec rake` in order to run the specs using the bundle
3
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
4
2
 
5
3
  gemspec
6
4
 
@@ -8,8 +6,9 @@ gem 'rails', '3.0.20'
8
6
  gem 'sqlite3'
9
7
  gem 'mysql2'
10
8
  gem 'activerecord-import'
11
- gem 'bson_ext'
12
9
 
13
10
  gem "rspec"
14
11
  gem "guard"
15
12
  gem "guard-rspec"
13
+
14
+ gem 'coveralls', require: false
@@ -0,0 +1,147 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bullet (4.7.0)
5
+ activesupport
6
+ uniform_notifier (>= 1.3.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.3.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
@@ -0,0 +1,14 @@
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
@@ -0,0 +1,157 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bullet (4.7.0)
5
+ activesupport
6
+ uniform_notifier (>= 1.3.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.3.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
@@ -0,0 +1,14 @@
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
@@ -0,0 +1,155 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bullet (4.7.0)
5
+ activesupport
6
+ uniform_notifier (>= 1.3.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.3.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