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,14 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem 'rails', '4.0.1'
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,150 +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 (4.0.1)
12
- actionpack (= 4.0.1)
13
- mail (~> 2.5.4)
14
- actionpack (4.0.1)
15
- activesupport (= 4.0.1)
16
- builder (~> 3.1.0)
17
- erubis (~> 2.7.0)
18
- rack (~> 1.5.2)
19
- rack-test (~> 0.6.2)
20
- activemodel (4.0.1)
21
- activesupport (= 4.0.1)
22
- builder (~> 3.1.0)
23
- activerecord (4.0.1)
24
- activemodel (= 4.0.1)
25
- activerecord-deprecated_finders (~> 1.0.2)
26
- activesupport (= 4.0.1)
27
- arel (~> 4.0.0)
28
- activerecord-deprecated_finders (1.0.3)
29
- activerecord-import (0.4.1)
30
- activerecord (>= 3.0)
31
- activesupport (4.0.1)
32
- i18n (~> 0.6, >= 0.6.4)
33
- minitest (~> 4.2)
34
- multi_json (~> 1.3)
35
- thread_safe (~> 0.1)
36
- tzinfo (~> 0.3.37)
37
- arel (4.0.1)
38
- atomic (1.1.14)
39
- builder (3.1.4)
40
- coderay (1.0.9)
41
- colorize (0.5.8)
42
- coveralls (0.6.7)
43
- colorize
44
- multi_json (~> 1.3)
45
- rest-client
46
- simplecov (>= 0.7)
47
- thor
48
- diff-lcs (1.2.4)
49
- erubis (2.7.0)
50
- ffi (1.9.0)
51
- formatador (0.2.4)
52
- guard (1.8.2)
53
- formatador (>= 0.2.4)
54
- listen (>= 1.0.0)
55
- lumberjack (>= 1.0.2)
56
- pry (>= 0.9.10)
57
- thor (>= 0.14.6)
58
- guard-rspec (3.0.2)
59
- guard (>= 1.8)
60
- rspec (~> 2.13)
61
- hike (1.2.3)
62
- i18n (0.6.5)
63
- listen (1.3.0)
64
- rb-fsevent (>= 0.9.3)
65
- rb-inotify (>= 0.9)
66
- rb-kqueue (>= 0.2)
67
- lumberjack (1.0.4)
68
- mail (2.5.4)
69
- mime-types (~> 1.16)
70
- treetop (~> 1.4.8)
71
- method_source (0.8.2)
72
- mime-types (1.25)
73
- minitest (4.7.5)
74
- multi_json (1.8.2)
75
- mysql2 (0.3.13)
76
- polyglot (0.3.3)
77
- pry (0.9.12.2)
78
- coderay (~> 1.0.5)
79
- method_source (~> 0.8)
80
- slop (~> 3.4)
81
- rack (1.5.2)
82
- rack-test (0.6.2)
83
- rack (>= 1.0)
84
- rails (4.0.1)
85
- actionmailer (= 4.0.1)
86
- actionpack (= 4.0.1)
87
- activerecord (= 4.0.1)
88
- activesupport (= 4.0.1)
89
- bundler (>= 1.3.0, < 2.0)
90
- railties (= 4.0.1)
91
- sprockets-rails (~> 2.0.0)
92
- railties (4.0.1)
93
- actionpack (= 4.0.1)
94
- activesupport (= 4.0.1)
95
- rake (>= 0.8.7)
96
- thor (>= 0.18.1, < 2.0)
97
- rake (10.1.0)
98
- rb-fsevent (0.9.3)
99
- rb-inotify (0.9.1)
100
- ffi (>= 0.5.0)
101
- rb-kqueue (0.2.0)
102
- ffi (>= 0.5.0)
103
- rest-client (1.6.7)
104
- mime-types (>= 1.16)
105
- rspec (2.14.1)
106
- rspec-core (~> 2.14.0)
107
- rspec-expectations (~> 2.14.0)
108
- rspec-mocks (~> 2.14.0)
109
- rspec-core (2.14.5)
110
- rspec-expectations (2.14.2)
111
- diff-lcs (>= 1.1.3, < 2.0)
112
- rspec-mocks (2.14.3)
113
- simplecov (0.7.1)
114
- multi_json (~> 1.0)
115
- simplecov-html (~> 0.7.1)
116
- simplecov-html (0.7.1)
117
- slop (3.4.6)
118
- sprockets (2.10.0)
119
- hike (~> 1.2)
120
- multi_json (~> 1.0)
121
- rack (~> 1.0)
122
- tilt (~> 1.1, != 1.3.0)
123
- sprockets-rails (2.0.1)
124
- actionpack (>= 3.0)
125
- activesupport (>= 3.0)
126
- sprockets (~> 2.8)
127
- sqlite3 (1.3.8)
128
- thor (0.18.1)
129
- thread_safe (0.1.3)
130
- atomic
131
- tilt (1.4.1)
132
- treetop (1.4.15)
133
- polyglot
134
- polyglot (>= 0.3.1)
135
- tzinfo (0.3.38)
136
- uniform_notifier (1.4.0)
137
-
138
- PLATFORMS
139
- ruby
140
-
141
- DEPENDENCIES
142
- activerecord-import
143
- bullet!
144
- coveralls
145
- guard
146
- guard-rspec
147
- mysql2
148
- rails (= 4.0.1)
149
- rspec
150
- sqlite3