ghazel-rack-bug 0.3.0.3 → 0.3.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,3 +9,11 @@ if defined?(ActiveRecord) && defined?(ActiveRecord::ConnectionAdapters)
9
9
  alias_method_chain :log, :rack_bug
10
10
  end
11
11
  end
12
+
13
+ class Mysql
14
+ class Result
15
+ def fields
16
+ fetch_fields.each {|f| yield f.name }
17
+ end
18
+ end
19
+ end
@@ -13,8 +13,8 @@
13
13
  <table class="sortable">
14
14
  <thead>
15
15
  <tr>
16
- <% result.fetch_fields.each do |field| %>
17
- <th><%= field.name.upcase %></th>
16
+ <% result.fields.each do |field| %>
17
+ <th><%= field.upcase %></th>
18
18
  <% end %>
19
19
  </tr>
20
20
  </thead>
@@ -13,8 +13,8 @@
13
13
  <table class="sortable">
14
14
  <thead>
15
15
  <tr>
16
- <% result.fetch_fields.each do |field| %>
17
- <th><%= field.name.upcase %></th>
16
+ <% result.fields.each do |field| %>
17
+ <th><%= field.upcase %></th>
18
18
  <% end %>
19
19
  </tr>
20
20
  </thead>
@@ -13,8 +13,8 @@
13
13
  <table class="sortable">
14
14
  <thead>
15
15
  <tr>
16
- <% result.fetch_fields.each do |field| %>
17
- <th><%= field.name.upcase %></th>
16
+ <% result.fields.each do |field| %>
17
+ <th><%= field.upcase %></th>
18
18
  <% end %>
19
19
  </tr>
20
20
  </thead>
data/rack-bug.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ghazel-rack-bug}
5
- s.version = "0.3.0.3"
5
+ s.version = "0.3.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Bryan Helmkamp"]
@@ -47,10 +47,9 @@ class Rack::Bug
47
47
 
48
48
  def stub_result(results = [[]])
49
49
  columns = results.first
50
- fields = columns.map { |c| stub("field", :name => c) }
51
50
  rows = results[1..-1]
52
51
 
53
- result = stub("result", :fetch_fields => fields)
52
+ result = stub("result", :fields => columns)
54
53
  result.stub!(:each).and_yield(*rows)
55
54
  return result
56
55
  end
metadata CHANGED
@@ -1,7 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghazel-rack-bug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.3
4
+ hash: 95
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 0
10
+ - 4
11
+ version: 0.3.0.4
5
12
  platform: ruby
6
13
  authors:
7
14
  - Bryan Helmkamp
@@ -14,54 +21,75 @@ default_executable:
14
21
  dependencies:
15
22
  - !ruby/object:Gem::Dependency
16
23
  name: rack
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
20
27
  requirements:
21
28
  - - ">="
22
29
  - !ruby/object:Gem::Version
30
+ hash: 15
31
+ segments:
32
+ - 1
33
+ - 0
23
34
  version: "1.0"
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: webrat
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ">="
32
44
  - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
33
48
  version: "0"
34
- version:
49
+ type: :development
50
+ version_requirements: *id002
35
51
  - !ruby/object:Gem::Dependency
36
52
  name: rspec
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
40
56
  requirements:
41
57
  - - ">="
42
58
  - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
43
62
  version: "0"
44
- version:
63
+ type: :development
64
+ version_requirements: *id003
45
65
  - !ruby/object:Gem::Dependency
46
66
  name: sinatra
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
50
70
  requirements:
51
71
  - - ">="
52
72
  - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
53
76
  version: "0"
54
- version:
77
+ type: :development
78
+ version_requirements: *id004
55
79
  - !ruby/object:Gem::Dependency
56
80
  name: git
57
- type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
81
+ prerelease: false
82
+ requirement: &id005 !ruby/object:Gem::Requirement
83
+ none: false
60
84
  requirements:
61
85
  - - ">="
62
86
  - !ruby/object:Gem::Version
87
+ hash: 3
88
+ segments:
89
+ - 0
63
90
  version: "0"
64
- version:
91
+ type: :development
92
+ version_requirements: *id005
65
93
  description:
66
94
  email: bryan@brynary.com
67
95
  executables: []
@@ -167,21 +195,27 @@ rdoc_options: []
167
195
  require_paths:
168
196
  - lib
169
197
  required_ruby_version: !ruby/object:Gem::Requirement
198
+ none: false
170
199
  requirements:
171
200
  - - ">="
172
201
  - !ruby/object:Gem::Version
202
+ hash: 3
203
+ segments:
204
+ - 0
173
205
  version: "0"
174
- version:
175
206
  required_rubygems_version: !ruby/object:Gem::Requirement
207
+ none: false
176
208
  requirements:
177
209
  - - ">="
178
210
  - !ruby/object:Gem::Version
211
+ hash: 3
212
+ segments:
213
+ - 0
179
214
  version: "0"
180
- version:
181
215
  requirements: []
182
216
 
183
217
  rubyforge_project: rack-bug
184
- rubygems_version: 1.3.5
218
+ rubygems_version: 1.4.2
185
219
  signing_key:
186
220
  specification_version: 3
187
221
  summary: Debugging toolbar for Rack applications implemented as middleware