stat-analysis-query 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/test/discover_test.rb +1 -1
- data/test/hot_test.rb +8 -4
- 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: 6aaf1fd05c133fa30cc310cd9ba6ebf1c924675c
|
4
|
+
data.tar.gz: 20df6235f9b0c1e622076fd5b9c40c9efb819ae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06b923f355b5ab27503423f74e636ee1405453f98ac04111802ce8f7492317766413dc652d5b72dc8904b2b7dde5e45d664b7f752aa587d3031618ef3313fc1c
|
7
|
+
data.tar.gz: 86cad0f74f8ccd8a9f7a8b1c7b67747a029158a4a518fc079005587e6e72f92c5ce22eea5a9ed1a6c43ba7831b0a692494d1cb6400f266530c0171f6f364eb5e
|
data/test/discover_test.rb
CHANGED
data/test/hot_test.rb
CHANGED
@@ -10,17 +10,17 @@ class QueryTest < Test::Unit::TestCase
|
|
10
10
|
def setup
|
11
11
|
super
|
12
12
|
root = File.expand_path("../..", __FILE__)
|
13
|
-
config = {
|
13
|
+
@config = {
|
14
14
|
'protocol' => 'compact',
|
15
15
|
'transport' => 'socket',
|
16
16
|
'transport_wrapper' => 'framed',
|
17
17
|
'size' => 1,
|
18
18
|
'multiplexed' => true,
|
19
19
|
'client_class' => 'Stat::Query::THotService::Client',
|
20
|
-
'servers' => '
|
20
|
+
'servers' => '192.168.3.161:9002'
|
21
21
|
}
|
22
22
|
|
23
|
-
@client = ThriftClient.new(config)
|
23
|
+
@client = ThriftClient.new(@config)
|
24
24
|
puts "setup"
|
25
25
|
end
|
26
26
|
|
@@ -61,7 +61,11 @@ class QueryTest < Test::Unit::TestCase
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def test_hotSelectedAlbum
|
64
|
-
|
64
|
+
p @client.hotSelectedAlbum(3,"奇幻",1, 10)
|
65
|
+
@client.destroy
|
66
|
+
assert_raise {p @client.hotSelectedAlbum(3,"奇幻",1, 10)}
|
67
|
+
@client = ThriftClient.new(@config)
|
68
|
+
p @client.hotSelectedAlbum(3,"奇幻",1, 10)
|
65
69
|
end
|
66
70
|
|
67
71
|
def test_hotRadioAndSound
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stat-analysis-query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ted Wang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thrift
|