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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94b95bdca5a0122141f213424e983a4543452e2d
4
- data.tar.gz: cabfb24605123a4d71d2be39cc5a6bc7c353e4dc
3
+ metadata.gz: 6aaf1fd05c133fa30cc310cd9ba6ebf1c924675c
4
+ data.tar.gz: 20df6235f9b0c1e622076fd5b9c40c9efb819ae2
5
5
  SHA512:
6
- metadata.gz: db85d5fa706d66687690116572966daa99d01f2b62f5e724d9eb2da9ad5ed5936a9884015ffc969c8c1640ac7160b74b529a231cfded91842742bbedac64d483
7
- data.tar.gz: 51db78eaaae32cecdab187b8c815eadfde226acc0bb9c14e35574c8fe08c1ac7265877189a4e98cd70b89747c23b9445027f70df0e0e945d591e9adcbc6d98dd
6
+ metadata.gz: 06b923f355b5ab27503423f74e636ee1405453f98ac04111802ce8f7492317766413dc652d5b72dc8904b2b7dde5e45d664b7f752aa587d3031618ef3313fc1c
7
+ data.tar.gz: 86cad0f74f8ccd8a9f7a8b1c7b67747a029158a4a518fc079005587e6e72f92c5ce22eea5a9ed1a6c43ba7831b0a692494d1cb6400f266530c0171f6f364eb5e
@@ -17,7 +17,7 @@ class QueryTest < Test::Unit::TestCase
17
17
  'size' => 1,
18
18
  'multiplexed' => true,
19
19
  'client_class' => 'Stat::Query::TDiscoverService::Client',
20
- 'servers' => '127.0.0.1:9002'
20
+ 'servers' => '192.168.3.161:9002'
21
21
  }
22
22
 
23
23
  @client = ThriftClient.new(config)
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' => '127.0.0.1:9002'
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
- assert_nothing_raised {p @client.hotSelectedAlbum(3,nil,1,1).inspect}
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
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-01-26 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thrift