voldemort-rb 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
File without changes
data/README.md CHANGED
@@ -1,12 +1,27 @@
1
1
  voldemort-rb
2
2
  ================
3
3
 
4
+ # Installing the Gem from rubygems
5
+
6
+ > sudo gem install voldemort-rb
7
+
8
+
4
9
  # Requirements
5
10
 
6
11
  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
12
 
8
13
  sudo gem install ruby_protobuf
9
14
 
15
+ XML Parsing is done using Nokogiri
16
+
17
+ sudo gem install nokogiri
18
+
19
+ # Building and Installing the Gem from source
20
+
21
+ > gem build voldemort-rb.gemspec
22
+
23
+ > sudo gem install voldemort-rb-0.1.X.gem (replace 'X' with the correct version)
24
+
10
25
  Examples
11
26
  =======
12
27
 
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'spec/rake/spectask'
6
6
 
7
7
  GEM = 'Voldemort Client'
8
8
  GEM_NAME = 'voldemort_client'
9
- GEM_VERSION = '0.1'
9
+ GEM_VERSION = '0.1.5'
10
10
  AUTHORS = ['Alejandro Crosa']
11
11
  EMAIL = "alejandrocrosa@gmail.com"
12
12
  HOMEPAGE = "http://github.com/acrosa/Voldemort-Ruby-Client"
@@ -1,7 +1,7 @@
1
1
  require 'socket'
2
2
  require 'timeout'
3
3
 
4
- require File.join(File.dirname(__FILE__), "..", "protos", "voldemort-client.pb")
4
+ require 'protos/voldemort-client.pb'
5
5
 
6
6
  class TCPConnection < Connection
7
7
  include Voldemort
data/lib/voldemort-rb.rb CHANGED
@@ -1,7 +1,10 @@
1
- require File.join(File.dirname(__FILE__), "connection", "voldemort_node")
2
- require File.join(File.dirname(__FILE__), "connection", "connection")
3
- require File.join(File.dirname(__FILE__), "connection", "tcp_connection")
4
- require File.join(File.dirname(__FILE__), "voldemort-serializer")
1
+ libdir = File.dirname(__FILE__)
2
+ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
3
+
4
+ require 'connection/voldemort_node'
5
+ require 'connection/connection'
6
+ require 'connection/tcp_connection'
7
+ require 'voldemort-serializer'
5
8
 
6
9
  class VoldemortClient
7
10
  attr_accessor :connection
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voldemort-rb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alejandro Crosa
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-08 00:00:00 -03:00
18
+ date: 2010-11-18 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -62,7 +62,7 @@ extra_rdoc_files: []
62
62
 
63
63
  files:
64
64
  - CHANGELOG
65
- - MIT-LICENSE
65
+ - LICENSE
66
66
  - README.md
67
67
  - Rakefile
68
68
  - lib/voldemort-rb.rb