kyototycoon-client 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,7 @@ module Kyototycoon
54
54
  end
55
55
 
56
56
  def get_bulk(keys, dbid=0)
57
- return [] if keys.empty?
57
+ return {} if keys.empty?
58
58
  raise "connection closed" unless @connection.is_open
59
59
 
60
60
  records = []
@@ -1,5 +1,5 @@
1
1
  module Kyototycoon
2
2
  class Client
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -47,6 +47,8 @@ class ClientTest < Test::Unit::TestCase
47
47
  assert_equal( @client.remove_bulk( ["key1", "key2"] ), 2 )
48
48
  assert_equal( @client.get_bulk( ["key1", "key2", "key3", "key4"] ),
49
49
  {"key3" => "valueC"} )
50
+
51
+ assert_equal( @client.get_bulk([]), {})
50
52
  @client.close
51
53
  end
52
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kyototycoon-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-25 00:00:00.000000000 Z
12
+ date: 2014-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler