bullet 2.0.0.beta.4 → 2.0.0.rc1
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.
- data/VERSION +1 -1
- data/bullet.gemspec +5 -5
- data/lib/bullet/rack.rb +3 -3
- metadata +5 -6
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.0.
|
|
1
|
+
2.0.0.rc1
|
data/bullet.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{bullet}
|
|
8
|
-
s.version = "2.0.0.
|
|
8
|
+
s.version = "2.0.0.rc1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Richard Huang"]
|
|
@@ -70,11 +70,11 @@ Gem::Specification.new do |s|
|
|
|
70
70
|
s.rubygems_version = %q{1.3.6}
|
|
71
71
|
s.summary = %q{A rails plugin to kill N+1 queries and unused eager loading}
|
|
72
72
|
s.test_files = [
|
|
73
|
-
"spec/
|
|
74
|
-
"spec/bullet/association_for_peschkaj_spec.rb",
|
|
75
|
-
"spec/bullet/association_spec.rb",
|
|
73
|
+
"spec/spec_helper.rb",
|
|
76
74
|
"spec/bullet/counter_spec.rb",
|
|
77
|
-
"spec/
|
|
75
|
+
"spec/bullet/association_spec.rb",
|
|
76
|
+
"spec/bullet/association_for_chris_spec.rb",
|
|
77
|
+
"spec/bullet/association_for_peschkaj_spec.rb"
|
|
78
78
|
]
|
|
79
79
|
|
|
80
80
|
if s.respond_to? :specification_version then
|
data/lib/bullet/rack.rb
CHANGED
|
@@ -26,8 +26,8 @@ module Bullet
|
|
|
26
26
|
|
|
27
27
|
# fix issue if response's body is a Proc
|
|
28
28
|
def empty?(response)
|
|
29
|
-
response
|
|
30
|
-
(response.is_a?(Array) && response.
|
|
29
|
+
# response may be ["Not Found"], ["Move Permanently"], etc.
|
|
30
|
+
(response.is_a?(Array) && response.size <= 1) ||
|
|
31
31
|
!response.body.is_a?(String) || response.body.empty?
|
|
32
32
|
end
|
|
33
33
|
|
|
@@ -41,4 +41,4 @@ module Bullet
|
|
|
41
41
|
headers["Expires"] = "Wed, 09 Sep 2009 09:09:09 GMT"
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
|
-
end
|
|
44
|
+
end
|
metadata
CHANGED
|
@@ -6,9 +6,8 @@ version: !ruby/object:Gem::Version
|
|
|
6
6
|
- 2
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
version: 2.0.0.beta.4
|
|
9
|
+
- rc1
|
|
10
|
+
version: 2.0.0.rc1
|
|
12
11
|
platform: ruby
|
|
13
12
|
authors:
|
|
14
13
|
- Richard Huang
|
|
@@ -109,8 +108,8 @@ signing_key:
|
|
|
109
108
|
specification_version: 3
|
|
110
109
|
summary: A rails plugin to kill N+1 queries and unused eager loading
|
|
111
110
|
test_files:
|
|
111
|
+
- spec/spec_helper.rb
|
|
112
|
+
- spec/bullet/counter_spec.rb
|
|
113
|
+
- spec/bullet/association_spec.rb
|
|
112
114
|
- spec/bullet/association_for_chris_spec.rb
|
|
113
115
|
- spec/bullet/association_for_peschkaj_spec.rb
|
|
114
|
-
- spec/bullet/association_spec.rb
|
|
115
|
-
- spec/bullet/counter_spec.rb
|
|
116
|
-
- spec/spec_helper.rb
|