bullet 2.0.0.beta.3 → 2.0.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bullet.gemspec +6 -6
  3. data/lib/bullet/rack.rb +3 -1
  4. metadata +6 -6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.beta.3
1
+ 2.0.0.beta.4
data/bullet.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bullet}
8
- s.version = "2.0.0.beta.3"
8
+ s.version = "2.0.0.beta.4"
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"]
12
- s.date = %q{2010-07-14}
12
+ s.date = %q{2010-08-10}
13
13
  s.description = %q{The Bullet plugin is designed to help you increase your application's performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries) or when you're using eager loading that isn't necessary.}
14
14
  s.email = %q{flyerhzm@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -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/spec_helper.rb",
74
- "spec/bullet/counter_spec.rb",
73
+ "spec/bullet/association_for_chris_spec.rb",
74
+ "spec/bullet/association_for_peschkaj_spec.rb",
75
75
  "spec/bullet/association_spec.rb",
76
- "spec/bullet/association_for_chris_spec.rb",
77
- "spec/bullet/association_for_peschkaj_spec.rb"
76
+ "spec/bullet/counter_spec.rb",
77
+ "spec/spec_helper.rb"
78
78
  ]
79
79
 
80
80
  if s.respond_to? :specification_version then
data/lib/bullet/rack.rb CHANGED
@@ -26,7 +26,9 @@ module Bullet
26
26
 
27
27
  # fix issue if response's body is a Proc
28
28
  def empty?(response)
29
- (response.is_a?(Array) && response.empty?) || !response.body.is_a?(String) || response.body.empty?
29
+ response == ["Not Found"] ||
30
+ (response.is_a?(Array) && response.empty?) ||
31
+ !response.body.is_a?(String) || response.body.empty?
30
32
  end
31
33
 
32
34
  def check_html?(headers, response)
metadata CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
7
7
  - 0
8
8
  - 0
9
9
  - beta
10
- - 3
11
- version: 2.0.0.beta.3
10
+ - 4
11
+ version: 2.0.0.beta.4
12
12
  platform: ruby
13
13
  authors:
14
14
  - Richard Huang
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-07-14 00:00:00 +08:00
19
+ date: 2010-08-10 00:00:00 +08:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -109,8 +109,8 @@ signing_key:
109
109
  specification_version: 3
110
110
  summary: A rails plugin to kill N+1 queries and unused eager loading
111
111
  test_files:
112
- - spec/spec_helper.rb
113
- - spec/bullet/counter_spec.rb
114
- - spec/bullet/association_spec.rb
115
112
  - spec/bullet/association_for_chris_spec.rb
116
113
  - spec/bullet/association_for_peschkaj_spec.rb
114
+ - spec/bullet/association_spec.rb
115
+ - spec/bullet/counter_spec.rb
116
+ - spec/spec_helper.rb