voldemort-rb 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
- Voldemort-client
1
+ voldemort-rb
2
2
  ================
3
3
 
4
4
  # Requirements
5
5
 
6
6
  Since the communication between the client and the server is done using protocol buffers you'll need the ruby_protobuf gem found at http://code.google.com/p/ruby-protobuf/.
7
7
 
8
+ sudo gem install ruby_protobuf
9
+
8
10
  Examples
9
11
  =======
10
12
 
@@ -38,9 +40,10 @@ Voldemort replies with versions of a value, it's up to the client to resolve the
38
40
 
39
41
  You can override the default behavior and perform a custom resolution of the conflict, here's how to do so:
40
42
 
41
- client = VoldemortClient.new("test", "localhost:6666") do |versions|
42
- versions.first # just return the first version for example
43
- end
43
+ client = VoldemortClient.new("test", "localhost:6666") do |versions|
44
+
45
+ versions.first # just return the first version for example
44
46
 
47
+ end
45
48
 
46
49
  Copyright (c) 2010 Alejandro Crosa, released under the MIT license
@@ -28,8 +28,6 @@ class TCPConnection < Connection
28
28
  end
29
29
  end
30
30
 
31
- # performs a get using the specified parameters
32
- #
33
31
  def get_from(db_name, key, route = true)
34
32
  request = VoldemortRequest.new
35
33
  request.should_route = route
@@ -45,8 +43,6 @@ class TCPConnection < Connection
45
43
  response
46
44
  end
47
45
 
48
- # performs a get using multiple keys
49
- #
50
46
  def get_all_from(db_name, keys, route = true)
51
47
  request = VoldemortRequest.new
52
48
  request.should_route = route
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,2 @@
1
1
  require 'rubygems'
2
- require 'voldemort_client'
2
+ require 'voldemort-rb'
@@ -1,5 +1,4 @@
1
1
  require File.dirname(__FILE__) + '/spec_helper'
2
- require 'lib/protos/voldemort-client.pb'
3
2
 
4
3
  include Voldemort
5
4
 
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- version: "0.1"
8
+ - 1
9
+ version: 0.1.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Alejandro Crosa
@@ -13,7 +14,7 @@ autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
16
 
16
- date: 2010-03-05 00:00:00 -08:00
17
+ date: 2010-06-18 00:00:00 -07:00
17
18
  default_executable:
18
19
  dependencies: []
19
20