bullet 5.7.5 → 6.0.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 (51) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +2 -0
  3. data/CHANGELOG.md +17 -14
  4. data/Gemfile.mongoid-7.0 +15 -0
  5. data/Gemfile.rails-4.0 +1 -1
  6. data/Gemfile.rails-4.1 +1 -1
  7. data/Gemfile.rails-4.2 +1 -1
  8. data/Gemfile.rails-5.0 +1 -1
  9. data/Gemfile.rails-5.1 +1 -1
  10. data/Gemfile.rails-5.2 +2 -2
  11. data/Gemfile.rails-6.0 +15 -0
  12. data/README.md +8 -5
  13. data/Rakefile +1 -1
  14. data/bullet.gemspec +8 -3
  15. data/lib/bullet/active_record4.rb +5 -13
  16. data/lib/bullet/active_record41.rb +5 -13
  17. data/lib/bullet/active_record42.rb +6 -13
  18. data/lib/bullet/active_record5.rb +15 -13
  19. data/lib/bullet/active_record52.rb +12 -13
  20. data/lib/bullet/active_record60.rb +245 -0
  21. data/lib/bullet/bullet_xhr.js +58 -0
  22. data/lib/bullet/dependency.rb +17 -5
  23. data/lib/bullet/detector/association.rb +4 -4
  24. data/lib/bullet/detector/counter_cache.rb +4 -3
  25. data/lib/bullet/detector/n_plus_one_query.rb +13 -13
  26. data/lib/bullet/detector/unused_eager_loading.rb +2 -1
  27. data/lib/bullet/ext/object.rb +5 -3
  28. data/lib/bullet/ext/string.rb +1 -1
  29. data/lib/bullet/mongoid4x.rb +1 -0
  30. data/lib/bullet/mongoid5x.rb +1 -0
  31. data/lib/bullet/mongoid6x.rb +5 -4
  32. data/lib/bullet/mongoid7x.rb +61 -0
  33. data/lib/bullet/notification/base.rb +1 -1
  34. data/lib/bullet/rack.rb +45 -27
  35. data/lib/bullet/stack_trace_filter.rb +43 -25
  36. data/lib/bullet/version.rb +1 -1
  37. data/lib/bullet.rb +21 -5
  38. data/lib/generators/bullet/install_generator.rb +3 -3
  39. data/spec/bullet/detector/n_plus_one_query_spec.rb +23 -0
  40. data/spec/bullet/ext/object_spec.rb +9 -4
  41. data/spec/bullet/rack_spec.rb +12 -3
  42. data/spec/integration/active_record/association_spec.rb +52 -3
  43. data/spec/integration/counter_cache_spec.rb +1 -1
  44. data/spec/models/client.rb +2 -0
  45. data/spec/models/firm.rb +1 -0
  46. data/spec/models/group.rb +4 -0
  47. data/spec/models/post.rb +15 -0
  48. data/spec/support/sqlite_seed.rb +9 -2
  49. data/test.sh +2 -0
  50. data/update.sh +1 -0
  51. metadata +16 -8
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.7.5
4
+ version: 6.0.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: 2018-03-12 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.11.0
33
+ version: '1.11'
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
- version: 1.11.0
40
+ version: '1.11'
41
41
  description: help to kill N+1 queries and unused eager loading.
42
42
  email:
43
43
  - flyerhzm@gmail.com
@@ -54,12 +54,14 @@ files:
54
54
  - Gemfile.mongoid-4.0
55
55
  - Gemfile.mongoid-5.0
56
56
  - Gemfile.mongoid-6.0
57
+ - Gemfile.mongoid-7.0
57
58
  - Gemfile.rails-4.0
58
59
  - Gemfile.rails-4.1
59
60
  - Gemfile.rails-4.2
60
61
  - Gemfile.rails-5.0
61
62
  - Gemfile.rails-5.1
62
63
  - Gemfile.rails-5.2
64
+ - Gemfile.rails-6.0
63
65
  - Guardfile
64
66
  - Hacking.md
65
67
  - MIT-LICENSE
@@ -72,6 +74,8 @@ files:
72
74
  - lib/bullet/active_record42.rb
73
75
  - lib/bullet/active_record5.rb
74
76
  - lib/bullet/active_record52.rb
77
+ - lib/bullet/active_record60.rb
78
+ - lib/bullet/bullet_xhr.js
75
79
  - lib/bullet/dependency.rb
76
80
  - lib/bullet/detector.rb
77
81
  - lib/bullet/detector/association.rb
@@ -84,6 +88,7 @@ files:
84
88
  - lib/bullet/mongoid4x.rb
85
89
  - lib/bullet/mongoid5x.rb
86
90
  - lib/bullet/mongoid6x.rb
91
+ - lib/bullet/mongoid7x.rb
87
92
  - lib/bullet/notification.rb
88
93
  - lib/bullet/notification/base.rb
89
94
  - lib/bullet/notification/counter_cache.rb
@@ -133,6 +138,7 @@ files:
133
138
  - spec/models/entry.rb
134
139
  - spec/models/firm.rb
135
140
  - spec/models/folder.rb
141
+ - spec/models/group.rb
136
142
  - spec/models/mongoid/address.rb
137
143
  - spec/models/mongoid/category.rb
138
144
  - spec/models/mongoid/comment.rb
@@ -163,7 +169,9 @@ files:
163
169
  homepage: https://github.com/flyerhzm/bullet
164
170
  licenses:
165
171
  - MIT
166
- metadata: {}
172
+ metadata:
173
+ changelog_uri: https://github.com/flyerhzm/bullet/blob/master/CHANGELOG.md
174
+ source_code_uri: https://github.com/flyerhzm/bullet
167
175
  post_install_message:
168
176
  rdoc_options: []
169
177
  require_paths:
@@ -172,15 +180,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
180
  requirements:
173
181
  - - ">="
174
182
  - !ruby/object:Gem::Version
175
- version: '0'
183
+ version: '2.3'
176
184
  required_rubygems_version: !ruby/object:Gem::Requirement
177
185
  requirements:
178
186
  - - ">="
179
187
  - !ruby/object:Gem::Version
180
188
  version: 1.3.6
181
189
  requirements: []
182
- rubyforge_project:
183
- rubygems_version: 2.6.14
190
+ rubygems_version: 3.0.3
184
191
  signing_key:
185
192
  specification_version: 4
186
193
  summary: help to kill N+1 queries and unused eager loading.
@@ -218,6 +225,7 @@ test_files:
218
225
  - spec/models/entry.rb
219
226
  - spec/models/firm.rb
220
227
  - spec/models/folder.rb
228
+ - spec/models/group.rb
221
229
  - spec/models/mongoid/address.rb
222
230
  - spec/models/mongoid/category.rb
223
231
  - spec/models/mongoid/comment.rb