better-riak-client 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +10 -0
- data/RELEASE_NOTES.md +17 -0
- data/better-riak-client.gemspec +2 -2
- data/lib/riak/client/node.rb +8 -1
- data/lib/riak/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -174,6 +174,7 @@ client['users'].disable_index!
|
|
174
174
|
``` bash
|
175
175
|
$ git rebase master
|
176
176
|
```
|
177
|
+
* Ensure you can run the RSpec suite (see "Getting RSpec Working").
|
177
178
|
* Write an RSpec example or set of examples that demonstrate the necessity and validity of your changes. **Patches without specs will most often be ignored. Just do it, you'll thank me later.** Documentation patches need no specs, of course.
|
178
179
|
* Make your feature addition or bug fix. Make your specs and stories pass (green).
|
179
180
|
* Run the suite using multiruby or rvm to ensure cross-version compatibility.
|
@@ -181,6 +182,15 @@ client['users'].disable_index!
|
|
181
182
|
* Commit, do not mess with Rakefile. If related to an existing issue in the [tracker](http://github.com/cloudability/better-riak-client/issues), include "Closes #X" in the commit message (where X is the issue number).
|
182
183
|
* Send a pull request to the Basho repository.
|
183
184
|
|
185
|
+
## Getting RSpec Working
|
186
|
+
|
187
|
+
1. Make sure Riak is installed properly.
|
188
|
+
2. Create a `spec/support/test_server.yml` file -- see
|
189
|
+
`spec/support/test_server.yml.example` for guidance here.
|
190
|
+
|
191
|
+
From here, you should be able to run the RSpec suite without issue. Please get
|
192
|
+
in touch with me (<mailto:jon@cloudability.com>) if you still have problems.
|
193
|
+
|
184
194
|
## License & Copyright
|
185
195
|
|
186
196
|
Copyright ©2010-2012 Sean Cribbs and Basho Technologies, Inc.
|
data/RELEASE_NOTES.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Riak Ruby Client Release Notes
|
2
2
|
|
3
|
+
## 1.0.7 Patch Release - 2012-10-13
|
4
|
+
|
5
|
+
Release 1.0.7 fixes a regression where `#ssl=` didn't respond properly to
|
6
|
+
boolean values.
|
7
|
+
|
8
|
+
This release corresponds to `riak-ruby-client` v.1.0.5, plus changes on
|
9
|
+
`master` as of 2012-10-13 (commit 59074fc53d286a65f3eceb394095f9302032e11b).
|
10
|
+
|
11
|
+
Improvements:
|
12
|
+
|
13
|
+
* Restore behavior of `#ssl=` when passing a boolean value.
|
14
|
+
|
15
|
+
Upstream changes:
|
16
|
+
|
17
|
+
_N/A_
|
18
|
+
|
19
|
+
|
3
20
|
## 1.0.6 Patch Release - 2012-10-12
|
4
21
|
|
5
22
|
Release 1.0.6 jettisons development dependencies from the gem, since we're
|
data/better-riak-client.gemspec
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "better-riak-client"
|
7
|
-
s.version = "1.0.
|
7
|
+
s.version = "1.0.7"
|
8
8
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
10
10
|
s.authors = ["Jon Frisby", "Sean Cribbs"]
|
11
|
-
s.date = "2012-10-
|
11
|
+
s.date = "2012-10-14"
|
12
12
|
s.description = "better-riak-client is an improved version of Basho's official Ruby client for Riak. It's a drop-in replacement that supports everything the official client does, in a gem that isn't bloated to multiple megabytes in size, and that fixes various outstanding issues like broken SSL validation."
|
13
13
|
s.email = ["jon@cloudability.com", "sean@basho.com"]
|
14
14
|
s.files = ["LICENSE", "README.markdown", "RELEASE_NOTES.md", "better-riak-client.gemspec", "erl_src/riak_kv_test014_backend.beam", "erl_src/riak_kv_test014_backend.erl", "erl_src/riak_kv_test_backend.beam", "erl_src/riak_kv_test_backend.erl", "erl_src/riak_search_test_backend.beam", "erl_src/riak_search_test_backend.erl", "lib/riak.rb", "lib/riak/bucket.rb", "lib/riak/client.rb", "lib/riak/client/beefcake/messages.rb", "lib/riak/client/beefcake/object_methods.rb", "lib/riak/client/beefcake_protobuffs_backend.rb", "lib/riak/client/decaying.rb", "lib/riak/client/excon_backend.rb", "lib/riak/client/feature_detection.rb", "lib/riak/client/http_backend.rb", "lib/riak/client/http_backend/configuration.rb", "lib/riak/client/http_backend/key_streamer.rb", "lib/riak/client/http_backend/object_methods.rb", "lib/riak/client/http_backend/request_headers.rb", "lib/riak/client/http_backend/transport_methods.rb", "lib/riak/client/net_http_backend.rb", "lib/riak/client/node.rb", "lib/riak/client/protobuffs_backend.rb", "lib/riak/client/search.rb", "lib/riak/cluster.rb", "lib/riak/core_ext.rb", "lib/riak/core_ext/blank.rb", "lib/riak/core_ext/deep_dup.rb", "lib/riak/core_ext/extract_options.rb", "lib/riak/core_ext/json.rb", "lib/riak/core_ext/slice.rb", "lib/riak/core_ext/stringify_keys.rb", "lib/riak/core_ext/symbolize_keys.rb", "lib/riak/core_ext/to_param.rb", "lib/riak/encoding.rb", "lib/riak/failed_request.rb", "lib/riak/i18n.rb", "lib/riak/json.rb", "lib/riak/link.rb", "lib/riak/locale/en.yml", "lib/riak/locale/fr.yml", "lib/riak/map_reduce.rb", "lib/riak/map_reduce/filter_builder.rb", "lib/riak/map_reduce/phase.rb", "lib/riak/map_reduce_error.rb", "lib/riak/node.rb", "lib/riak/node/configuration.rb", "lib/riak/node/console.rb", "lib/riak/node/control.rb", "lib/riak/node/defaults.rb", "lib/riak/node/generation.rb", "lib/riak/node/log.rb", "lib/riak/node/version.rb", "lib/riak/robject.rb", "lib/riak/search.rb", "lib/riak/serializers.rb", "lib/riak/stamp.rb", "lib/riak/test_server.rb", "lib/riak/util/escape.rb", "lib/riak/util/headers.rb", "lib/riak/util/multipart.rb", "lib/riak/util/multipart/stream_parser.rb", "lib/riak/util/tcp_socket_extensions.rb", "lib/riak/util/translation.rb", "lib/riak/version.rb", "lib/riak/walk_spec.rb"]
|
data/lib/riak/client/node.rb
CHANGED
@@ -79,7 +79,14 @@ module Riak
|
|
79
79
|
# Enables or disables SSL on this node to be utilized by the HTTP
|
80
80
|
# Backends
|
81
81
|
def ssl=(value)
|
82
|
-
@ssl_options
|
82
|
+
@ssl_options = {} if(!@ssl_options)
|
83
|
+
if((!!value).class === value)
|
84
|
+
# Got a boolean...
|
85
|
+
@ssl_options = {}
|
86
|
+
else
|
87
|
+
value = Hash === value ? value : {}
|
88
|
+
@ssl_options.merge!(value)
|
89
|
+
end
|
83
90
|
value ? ssl_enable : ssl_disable
|
84
91
|
end
|
85
92
|
|
data/lib/riak/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better-riak-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-10-
|
13
|
+
date: 2012-10-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: !binary |-
|
@@ -213,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
213
|
version: '0'
|
214
214
|
segments:
|
215
215
|
- 0
|
216
|
-
hash: -
|
216
|
+
hash: -271296768699855806
|
217
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
218
|
none: false
|
219
219
|
requirements:
|