hightop 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/hightop/version.rb +1 -1
- data/lib/hightop.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f282f1928e3686e3b51e376e64c6caa727665dd
|
4
|
+
data.tar.gz: 6c8614fee9db943bc7b0c6ad8c65576116ffc9f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3c0135aebba9a186fdb2ab91e0f5d792c3c5d132305ae3b799c8a16b24a0239597b79d771d5e704e095602a0d048a084b41e2e2273b43c26a712435353534f5
|
7
|
+
data.tar.gz: ce487ed0b6cef4b566a35ae92c83403ac597cd608a1a52222e1de99914e415505e1356da82aa88fd839e125ddba43a6ea3f3d3298687d58deb4c4c1da14235a8
|
data/README.md
CHANGED
data/lib/hightop/version.rb
CHANGED
data/lib/hightop.rb
CHANGED
@@ -3,7 +3,7 @@ require "hightop/version"
|
|
3
3
|
module Hightop
|
4
4
|
|
5
5
|
def top(column, limit = nil)
|
6
|
-
column = connection.quote_table_name(column)
|
6
|
+
column = connection.quote_table_name(column) if column.is_a?(Symbol)
|
7
7
|
group(column).where("#{column} IS NOT NULL").order("count_all DESC, #{column}").limit(limit).count
|
8
8
|
end
|
9
9
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hightop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|