kyototycoon-client 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  KyotoTycoon ruby client with TCP connection and binary protocol.
4
4
 
5
+ ## Changelog
6
+
7
+ * 0.0.2: Add dbid parameter to remove_bulk
8
+
9
+
5
10
  ## Installation
6
11
 
7
12
  Add this line to your application's Gemfile:
@@ -1,5 +1,5 @@
1
1
  module Kyototycoon
2
2
  class Client
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -64,12 +64,12 @@ module Kyototycoon
64
64
  results.inject({}) {|map, rec| map[rec.key] = rec.value; map;}
65
65
  end
66
66
 
67
- def remove_bulk(keys)
67
+ def remove_bulk(keys, dbid=0)
68
68
  raise "connection closed" unless @connection.is_open
69
69
 
70
70
  records = []
71
71
  keys.each do |k|
72
- records.push(Record.new(k, nil))
72
+ records.push(Record.new(k, nil, nil, dbid))
73
73
  end
74
74
  @connection.remove(records)
75
75
  end
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.1
4
+ version: 0.0.2
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: 2013-09-09 00:00:00.000000000 Z
12
+ date: 2013-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler