hightop 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +6 -0
- data/lib/hightop/version.rb +1 -1
- data/lib/hightop.rb +4 -0
- data/test/hightop_test.rb +9 -0
- 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: 7afed0619ef7e10ad7396edd82f1b7ee4fd76bbd
|
4
|
+
data.tar.gz: a490f3b11648fc044a1f1e0b9b52f7686efe7638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8df32f44bc3eb512189840d6fb28b65af553aed3ad946de6e848975f5ad4faf052ef6d95a873217dafdd8ebde3f566eebf9884e3a303adc185746bcd89319315
|
7
|
+
data.tar.gz: 53a8a14e86db5f6ded22ef82e8cfea1c52437aaca8ca6219f842b5060281a792d87d1ab52fc1ec9005170a4281c59ec3a9958cd84922e5bc5f8acae4a81c9436
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/hightop/version.rb
CHANGED
data/lib/hightop.rb
CHANGED
data/test/hightop_test.rb
CHANGED
@@ -72,6 +72,15 @@ class TestHightop < Minitest::Test
|
|
72
72
|
assert_equal expected, Visit.top(:city, uniq: :user_id)
|
73
73
|
end
|
74
74
|
|
75
|
+
def test_min
|
76
|
+
create_city("San Francisco", 3)
|
77
|
+
create_city("Chicago", 2)
|
78
|
+
expected = {
|
79
|
+
"San Francisco" => 3
|
80
|
+
}
|
81
|
+
assert_equal expected, Visit.top(:city, min: 3)
|
82
|
+
end
|
83
|
+
|
75
84
|
def create_city(city, count = 1)
|
76
85
|
create({city: city}, count)
|
77
86
|
end
|
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.1.
|
4
|
+
version: 0.1.2
|
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-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|