query_diet 0.5.4 → 0.6.0
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.
- checksums.yaml +4 -4
- data/README.rdoc +6 -2
- data/lib/query_diet/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dfce4f3d1d964e4c70787f58992eaa8d43ea6aff
|
|
4
|
+
data.tar.gz: 682b5ec519d0f41cba2a28fa90d76e9a3e999f82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d35b564c2e9e8c34f5c603e1064eb71bb68a06122d1568184743086e320af7c81697b5a1c20c25fdad528ba3f7d8ebcce4cbbf7b192cc8400a32bba55aa0187
|
|
7
|
+
data.tar.gz: 01209f211d0af8ccd1f4b1573364e9996f2361a691d44ff7481386d732a7a9e3c5aed1f921b7eab8ca02cbf03010687ba026dbb73b42980bf9382ed32cf1f9ea
|
data/README.rdoc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
= Query Diet
|
|
1
|
+
= Query Diet {<img src="https://travis-ci.org/makandra/query_diet.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/makandra/query_diet]
|
|
2
2
|
|
|
3
3
|
Query Diet counts the number of database queries for the last request and *subtly* displays it in the upper right corner of your screen.
|
|
4
4
|
The display turns red if too many queries are run, or if they take too long.
|
|
@@ -12,6 +12,8 @@ This is Query Diet being angry about 103 requests taking 164ms:
|
|
|
12
12
|
|
|
13
13
|
http://blog.makandra.com/images/articles/2010-06-25-solving-the-n-1-query-problem-with-query-diet/query_diet_angry.png
|
|
14
14
|
|
|
15
|
+
|
|
16
|
+
|
|
15
17
|
== Installation
|
|
16
18
|
|
|
17
19
|
Add it to your Gemfile with
|
|
@@ -40,7 +42,9 @@ To change the default, simply pass them to the `query_diet_widget` helper:
|
|
|
40
42
|
|
|
41
43
|
== Rails compatibility
|
|
42
44
|
|
|
43
|
-
The gem is tested to work with Rails
|
|
45
|
+
The gem is tested to work with Rails 3.2+ and Ruby 2.0+.
|
|
46
|
+
|
|
47
|
+
For Rails 2.3 and Ruby 1.8.7 support, use a version < 0.6.
|
|
44
48
|
|
|
45
49
|
|
|
46
50
|
=== Credits
|
data/lib/query_diet/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: query_diet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henning Koch
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-02-
|
|
12
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Rails database query counter that stays out of your way
|
|
15
15
|
email: github@makandra.de
|
|
@@ -37,7 +37,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
37
37
|
requirements:
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 2.0.0
|
|
41
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
42
|
requirements:
|
|
43
43
|
- - ">="
|