riakpb 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -126,7 +126,7 @@ I'm working on ways to simplify M/R requests. It works the same as in ripple.
126
126
 
127
127
  === Load the GOOG stocks from the riak Fast Track:
128
128
 
129
- require 'riak'
129
+ require 'riakpb'
130
130
  require 'csv'
131
131
 
132
132
  client = Riakpb::Client.new
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'rake/gempackagetask'
3
3
  require 'fileutils'
4
- require './lib/riak'
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 'riak-client.gemspec'
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/riak/**/*_spec.rb"
58
+ spec.pattern = "spec/riakpb/**/*_spec.rb"
59
59
  end
60
60
 
61
61
  namespace :spec do
@@ -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 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  # Represents and encapsulates operations on a Riakpb bucket. You may retrieve a bucket
@@ -1,4 +1,4 @@
1
- require 'riak'
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, 'riak/client/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
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
  require 'set'
3
3
 
4
4
  module Riakpb
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  # Exception raised when the expected response code from Riakpb
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  # Exception raised when the expected response code from Riakpb
File without changes
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  # Represents and encapsulates operations on a Riakpb bucket. You may retrieve a bucket
File without changes
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  # Class for invoking map-reduce jobs using the HTTP interface.
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  # Exception raised when the expected response code from Riakpb
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  module Util
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  module Util
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
 
3
3
  module Riakpb
4
4
  module Util
@@ -1,4 +1,4 @@
1
- require 'riak'
1
+ require 'riakpb'
2
2
  require 'csv'
3
3
 
4
4
  client = Riakpb::Client.new
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -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 'riak'
19
- require 'riak/util/message_code'
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
- - 0
9
- version: 0.2.0
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/riak/bucket.rb
76
- - lib/riak/client/rpc.rb
77
- - lib/riak/client.rb
78
- - lib/riak/client_pb.rb
79
- - lib/riak/content.rb
80
- - lib/riak/failed_exchange.rb
81
- - lib/riak/failed_request.rb
82
- - lib/riak/i18n.rb
83
- - lib/riak/key.rb
84
- - lib/riak/locale/en.yml
85
- - lib/riak/map_reduce.rb
86
- - lib/riak/sibling_error.rb
87
- - lib/riak/util/decode.rb
88
- - lib/riak/util/encode.rb
89
- - lib/riak/util/message_code.rb
90
- - lib/riak/util/translation.rb
91
- - lib/riak.rb
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/riak/bucket_spec.rb
100
- - spec/riak/client_spec.rb
101
- - spec/riak/content_spec.rb
102
- - spec/riak/key_spec.rb
103
- - spec/riak/map_reduce_spec.rb
104
- - spec/riak/rpc_spec.rb
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/riak/bucket_spec.rb
138
- - spec/riak/client_spec.rb
139
- - spec/riak/content_spec.rb
140
- - spec/riak/key_spec.rb
141
- - spec/riak/map_reduce_spec.rb
142
- - spec/riak/rpc_spec.rb
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
@@ -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