riakpb 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/Rakefile +3 -3
- data/lib/riakpb.rb +34 -0
- data/lib/{riak → riakpb}/bucket.rb +1 -1
- data/lib/{riak → riakpb}/client.rb +2 -2
- data/lib/{riak → riakpb}/client/rpc.rb +0 -0
- data/lib/{riak → riakpb}/client_pb.rb +0 -0
- data/lib/{riak → riakpb}/content.rb +1 -1
- data/lib/{riak → riakpb}/failed_exchange.rb +1 -1
- data/lib/{riak → riakpb}/failed_request.rb +1 -1
- data/lib/{riak → riakpb}/i18n.rb +0 -0
- data/lib/{riak → riakpb}/key.rb +1 -1
- data/lib/{riak → riakpb}/locale/en.yml +0 -0
- data/lib/{riak → riakpb}/map_reduce.rb +1 -1
- data/lib/{riak → riakpb}/sibling_error.rb +1 -1
- data/lib/{riak → riakpb}/util/decode.rb +1 -1
- data/lib/{riak → riakpb}/util/encode.rb +1 -1
- data/lib/{riak → riakpb}/util/message_code.rb +0 -0
- data/lib/{riak → riakpb}/util/translation.rb +1 -1
- data/load_stocks.rb +1 -1
- data/spec/{riak → riakpb}/bucket_spec.rb +0 -0
- data/spec/{riak → riakpb}/client_spec.rb +0 -0
- data/spec/{riak → riakpb}/content_spec.rb +0 -0
- data/spec/{riak → riakpb}/key_spec.rb +0 -0
- data/spec/{riak → riakpb}/map_reduce_spec.rb +0 -0
- data/spec/{riak → riakpb}/rpc_spec.rb +0 -0
- data/spec/spec_helper.rb +2 -2
- metadata +31 -31
- data/lib/riak.rb +0 -34
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake/gempackagetask'
|
3
3
|
require 'fileutils'
|
4
|
-
require './lib/
|
4
|
+
require './lib/riakpb'
|
5
5
|
|
6
6
|
gemspec = Gem::Specification.new do |gem|
|
7
7
|
gem.name = "riakpb"
|
@@ -24,7 +24,7 @@ gemspec = Gem::Specification.new do |gem|
|
|
24
24
|
files.exclude '**/*.orig'
|
25
25
|
files.exclude '**/*.rej'
|
26
26
|
files.exclude /^pkg/
|
27
|
-
files.exclude '
|
27
|
+
files.exclude 'riakpb.gemspec'
|
28
28
|
|
29
29
|
gem.files = files.to_a
|
30
30
|
|
@@ -55,7 +55,7 @@ require 'rspec/core/rake_task'
|
|
55
55
|
|
56
56
|
desc "Run Unit Specs Only"
|
57
57
|
Rspec::Core::RakeTask.new(:spec) do |spec|
|
58
|
-
spec.pattern = "spec/
|
58
|
+
spec.pattern = "spec/riakpb/**/*_spec.rb"
|
59
59
|
end
|
60
60
|
|
61
61
|
namespace :spec do
|
data/lib/riakpb.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
$:.unshift(File.dirname(__FILE__)) unless
|
2
|
+
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
|
+
|
4
|
+
require 'active_support/json'
|
5
|
+
require 'active_support/core_ext'
|
6
|
+
require 'active_support/core_ext/hash'
|
7
|
+
require 'yaml'
|
8
|
+
require 'base64'
|
9
|
+
require 'riakpb/client_pb'
|
10
|
+
|
11
|
+
module Riakpb
|
12
|
+
VERSION = '0.2.2'
|
13
|
+
|
14
|
+
# Domain objects
|
15
|
+
autoload :I18n, 'riakpb/i18n'
|
16
|
+
autoload :Client, 'riakpb/client'
|
17
|
+
autoload :Key, 'riakpb/key'
|
18
|
+
autoload :Content, 'riakpb/content'
|
19
|
+
autoload :Bucket, 'riakpb/bucket'
|
20
|
+
autoload :MapReduce, 'riakpb/map_reduce'
|
21
|
+
|
22
|
+
# Exceptions
|
23
|
+
autoload :FailedRequest, "riakpb/failed_request"
|
24
|
+
autoload :FailedExchange, "riakpb/failed_exchange"
|
25
|
+
autoload :SiblingError, "riakpb/sibling_error"
|
26
|
+
|
27
|
+
# Mixins
|
28
|
+
module Util
|
29
|
+
autoload :Translation, 'riakpb/util/translation'
|
30
|
+
autoload :MessageCode, 'riakpb/util/message_code'
|
31
|
+
autoload :Encode, 'riakpb/util/encode'
|
32
|
+
autoload :Decode, 'riakpb/util/decode'
|
33
|
+
end
|
34
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'riakpb'
|
2
2
|
|
3
3
|
module Riakpb
|
4
4
|
# A client connection to Riakpb.
|
@@ -6,7 +6,7 @@ module Riakpb
|
|
6
6
|
include Util::Translation
|
7
7
|
include Util::MessageCode
|
8
8
|
|
9
|
-
autoload :Rpc, '
|
9
|
+
autoload :Rpc, 'riakpb/client/rpc'
|
10
10
|
|
11
11
|
# When using integer client IDs, the exclusive upper-bound of valid values.
|
12
12
|
MAX_CLIENT_ID = 4294967296
|
File without changes
|
File without changes
|
data/lib/{riak → riakpb}/i18n.rb
RENAMED
File without changes
|
data/lib/{riak → riakpb}/key.rb
RENAMED
File without changes
|
File without changes
|
data/load_stocks.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
@@ -15,8 +15,8 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
15
15
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
16
16
|
|
17
17
|
require 'rubygems' # Use the gems path only for the spec suite
|
18
|
-
require '
|
19
|
-
require '
|
18
|
+
require 'riakpb'
|
19
|
+
require 'riakpb/util/message_code'
|
20
20
|
require 'rspec'
|
21
21
|
require 'rspec/autorun'
|
22
22
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Scott Gonyea
|
@@ -72,23 +72,23 @@ extra_rdoc_files: []
|
|
72
72
|
files:
|
73
73
|
- goog.csv
|
74
74
|
- History.txt
|
75
|
-
- lib/
|
76
|
-
- lib/
|
77
|
-
- lib/
|
78
|
-
- lib/
|
79
|
-
- lib/
|
80
|
-
- lib/
|
81
|
-
- lib/
|
82
|
-
- lib/
|
83
|
-
- lib/
|
84
|
-
- lib/
|
85
|
-
- lib/
|
86
|
-
- lib/
|
87
|
-
- lib/
|
88
|
-
- lib/
|
89
|
-
- lib/
|
90
|
-
- lib/
|
91
|
-
- lib/
|
75
|
+
- lib/riakpb/bucket.rb
|
76
|
+
- lib/riakpb/client/rpc.rb
|
77
|
+
- lib/riakpb/client.rb
|
78
|
+
- lib/riakpb/client_pb.rb
|
79
|
+
- lib/riakpb/content.rb
|
80
|
+
- lib/riakpb/failed_exchange.rb
|
81
|
+
- lib/riakpb/failed_request.rb
|
82
|
+
- lib/riakpb/i18n.rb
|
83
|
+
- lib/riakpb/key.rb
|
84
|
+
- lib/riakpb/locale/en.yml
|
85
|
+
- lib/riakpb/map_reduce.rb
|
86
|
+
- lib/riakpb/sibling_error.rb
|
87
|
+
- lib/riakpb/util/decode.rb
|
88
|
+
- lib/riakpb/util/encode.rb
|
89
|
+
- lib/riakpb/util/message_code.rb
|
90
|
+
- lib/riakpb/util/translation.rb
|
91
|
+
- lib/riakpb.rb
|
92
92
|
- load_stocks.rb
|
93
93
|
- Manifest.txt
|
94
94
|
- Rakefile
|
@@ -96,12 +96,12 @@ files:
|
|
96
96
|
- script/console
|
97
97
|
- script/destroy
|
98
98
|
- script/generate
|
99
|
-
- spec/
|
100
|
-
- spec/
|
101
|
-
- spec/
|
102
|
-
- spec/
|
103
|
-
- spec/
|
104
|
-
- spec/
|
99
|
+
- spec/riakpb/bucket_spec.rb
|
100
|
+
- spec/riakpb/client_spec.rb
|
101
|
+
- spec/riakpb/content_spec.rb
|
102
|
+
- spec/riakpb/key_spec.rb
|
103
|
+
- spec/riakpb/map_reduce_spec.rb
|
104
|
+
- spec/riakpb/rpc_spec.rb
|
105
105
|
- spec/spec_helper.rb
|
106
106
|
has_rdoc: true
|
107
107
|
homepage: http://github.com/aitrus/riak-pbclient
|
@@ -134,10 +134,10 @@ signing_key:
|
|
134
134
|
specification_version: 3
|
135
135
|
summary: riakpb is a protocol buffer client for Riakpb--the distributed database by Basho.
|
136
136
|
test_files:
|
137
|
-
- spec/
|
138
|
-
- spec/
|
139
|
-
- spec/
|
140
|
-
- spec/
|
141
|
-
- spec/
|
142
|
-
- spec/
|
137
|
+
- spec/riakpb/bucket_spec.rb
|
138
|
+
- spec/riakpb/client_spec.rb
|
139
|
+
- spec/riakpb/content_spec.rb
|
140
|
+
- spec/riakpb/key_spec.rb
|
141
|
+
- spec/riakpb/map_reduce_spec.rb
|
142
|
+
- spec/riakpb/rpc_spec.rb
|
143
143
|
- spec/spec_helper.rb
|
data/lib/riak.rb
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
$:.unshift(File.dirname(__FILE__)) unless
|
2
|
-
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
|
-
|
4
|
-
require 'active_support/json'
|
5
|
-
require 'active_support/core_ext'
|
6
|
-
require 'active_support/core_ext/hash'
|
7
|
-
require 'yaml'
|
8
|
-
require 'base64'
|
9
|
-
require 'riak/client_pb'
|
10
|
-
|
11
|
-
module Riakpb
|
12
|
-
VERSION = '0.2.0'
|
13
|
-
|
14
|
-
# Domain objects
|
15
|
-
autoload :I18n, 'riak/i18n'
|
16
|
-
autoload :Client, 'riak/client'
|
17
|
-
autoload :Key, 'riak/key'
|
18
|
-
autoload :Content, 'riak/content'
|
19
|
-
autoload :Bucket, 'riak/bucket'
|
20
|
-
autoload :MapReduce, 'riak/map_reduce'
|
21
|
-
|
22
|
-
# Exceptions
|
23
|
-
autoload :FailedRequest, "riak/failed_request"
|
24
|
-
autoload :FailedExchange, "riak/failed_exchange"
|
25
|
-
autoload :SiblingError, "riak/sibling_error"
|
26
|
-
|
27
|
-
# Mixins
|
28
|
-
module Util
|
29
|
-
autoload :Translation, 'riak/util/translation'
|
30
|
-
autoload :MessageCode, 'riak/util/message_code'
|
31
|
-
autoload :Encode, 'riak/util/encode'
|
32
|
-
autoload :Decode, 'riak/util/decode'
|
33
|
-
end
|
34
|
-
end
|