query_reviewer 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -3
- data/lib/query_reviewer/views/_box_body.html.erb +1 -1
- metadata +7 -6
data/README.md
CHANGED
@@ -24,12 +24,14 @@ I use this utility for most of my rails projects. Still the best out there in my
|
|
24
24
|
|
25
25
|
Last commit to the main repository was on March 30th, 2009. This fork compiles a variety of patches that were made since that time along with additional work to support compatibility with 1.9 and Rails 3. **Also:** If anyone else creates generally useful enhancements to this utility please start by forking this and then issue me a pull request.
|
26
26
|
|
27
|
-
**Note:** This plugin should work for Rails 2.X and Rails 3. Support for Rails 3 has been confirmed in the latest revision (with fixed deprecation warnings).
|
27
|
+
**Note:** This plugin should work for Rails 2.X and Rails 3. Support for Rails 3 has been confirmed in the latest revision (with fixed deprecation warnings).
|
28
28
|
|
29
29
|
## Installation ##
|
30
30
|
|
31
31
|
All you have to do is install it into your Rails 2 or 3 project.
|
32
32
|
|
33
|
+
gem install query_reviewer
|
34
|
+
|
33
35
|
Right now if you use bundler, simply add this to your Gemfile:
|
34
36
|
|
35
37
|
# Gemfile
|
@@ -39,7 +41,7 @@ If you are not using bundler, you might want to [start using it](http://gembundl
|
|
39
41
|
|
40
42
|
script/plugin install git://github.com/nesquena/query_reviewer.git
|
41
43
|
|
42
|
-
In Rails 2,
|
44
|
+
In Rails 2, the rake tasks are not loaded automatically (as a gem), you’ll need to add the following to your Rakefile:
|
43
45
|
|
44
46
|
# Rakefile
|
45
47
|
begin
|
@@ -113,6 +115,8 @@ Know of a better alternative? Let me know!
|
|
113
115
|
|
114
116
|
## Acknowledgements ##
|
115
117
|
|
116
|
-
Created by Kongregate & David Stevenson.
|
118
|
+
Created by Kongregate & David Stevenson.
|
119
|
+
Refactorings and compilations of all fixes since was done by Nathan Esquenazi.
|
120
|
+
Also, ajvargo for helping with some fixes.
|
117
121
|
|
118
122
|
Copyright (c) 2007-2008 Kongregate & David Stevenson, released under the MIT license
|
@@ -63,7 +63,7 @@
|
|
63
63
|
</div>
|
64
64
|
<% end %>
|
65
65
|
<div style="display: none" id="warning_<%= query.id %>_trace" class="indent small">
|
66
|
-
<%= render :partial => "/query_trace", :
|
66
|
+
<%= render :partial => "/query_trace", :locals => {:query_trace => query.relevant_trace, :query_id => query.id, :full_trace => query.full_trace} %>
|
67
67
|
</div>
|
68
68
|
</li>
|
69
69
|
<% end %>
|
metadata
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query_reviewer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
|
-
- dsboulder
|
13
|
+
- dsboulder, nesquena
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-22 00:00:00 -08:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -88,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
89
|
requirements: []
|
89
90
|
|
90
91
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
92
|
+
rubygems_version: 1.5.2
|
92
93
|
signing_key:
|
93
94
|
specification_version: 3
|
94
95
|
summary: Runs explain before each select query and displays results in an overlayed div
|