riak-client 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31c844652f0920188a681f67ae0421582deb39e6
4
- data.tar.gz: a61519055a317cc9a252bff17903bb08126f5abe
3
+ metadata.gz: 3fd5ca4128dcee49ac4cad41574580e34abab01a
4
+ data.tar.gz: 1a8090a12c5d537a23372f8c4791017c6af38570
5
5
  SHA512:
6
- metadata.gz: e76e0fe22bedb857baf87de6d99da8529eaccd79fc0fe39b78fe0f850b8d244193e24aa83481793ae5e1b80d09b578f1213efff2e360c6f51cac622e8d921bb1
7
- data.tar.gz: cff6a9f0e542399e9249eb9ddf0258137c7f52dc33ff5ead84c16781a1c34d0fe49099256c95b134203b51a26d0f46a698596b8d9c958c37226fd0703dfe8c3d
6
+ metadata.gz: 8d94f5fd8afe506fca3e15e95321f6e52d1e688f0d186b64bcc86f2245da292ca69abf0cfabd5df58019bb89419a72663d9768070d17c4cf17afd0767057b2ef
7
+ data.tar.gz: 016abb456a2f0e149b902177c796ec0d4a2ce93454f848e1d39372d79a2a984158b41ecf42d4836e63d7c8cd358e24818ae416dbe393b84df12277acc6c9d48a
data/Gemfile CHANGED
@@ -12,7 +12,6 @@ end
12
12
 
13
13
  platforms :mri do
14
14
  gem 'yajl-ruby'
15
- gem 'debugger'
16
15
  end
17
16
 
18
17
  platforms :jruby do
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Riak Ruby Client Release Notes
2
2
 
3
+ ## 1.4.1 Patch/Bugfix Release - 2013-09-06
4
+
5
+ Release 1.4.1 fixes a few minor bugs and issues.
6
+
7
+ Issues:
8
+
9
+ * Test for object existence using head request, reported and fixed by
10
+ Elias "eliaslevy" Levy in https://github.com/basho/riak-ruby-client/pull/102
11
+
12
+ Bugfixes:
13
+
14
+ * License missing from gemspec, reported by Benjamin "bf4" Fleischer
15
+ in https://github.com/basho/riak-ruby-client/pull/108
16
+ * Debugger required by Gemfile, reported by Basho Giddyup
17
+ in https://github.com/basho/riak-ruby-client/pull/114
18
+ * Issue when reading Git-based version numbers, reported and fixed by
19
+ jacepp in https://github.com/basho/riak-ruby-client/pull/120
20
+
3
21
  ## 1.4.0 Feature Release - 2013-08-16
4
22
 
5
23
  Release 1.4.0 adds support for Riak 1.4 and fixes a few bugs.
data/lib/riak/bucket.rb CHANGED
@@ -148,9 +148,10 @@ module Riak
148
148
  # @return [true, false] whether the key exists in this bucket
149
149
  def exists?(key, options={})
150
150
  begin
151
- get(key, options)
151
+ get(key, options.merge({ :head => true }))
152
152
  true
153
- rescue Riak::FailedRequest
153
+ rescue Riak::FailedRequest => e
154
+ raise e unless e.not_found?
154
155
  false
155
156
  end
156
157
  end
@@ -27,7 +27,7 @@ module Riak
27
27
  # @return [Gem::Version] the version of the Riak node to which
28
28
  # this backend is connected
29
29
  def server_version
30
- @server_version ||= Gem::Version.new(get_server_version)
30
+ @server_version ||= Gem::Version.new(get_server_version.split("-").first)
31
31
  end
32
32
 
33
33
  # @return [true,false] whether MapReduce requests can be submitted without
@@ -67,7 +67,8 @@ module Riak
67
67
  # @return [RObject] the fetched object
68
68
  def fetch_object(bucket, key, options={})
69
69
  bucket = Bucket.new(client, bucket) if String === bucket
70
- response = get([200,300], object_path(bucket.name, key, options))
70
+ method = options.delete(:head) ? :head : :get
71
+ response = send(method, [200,300], object_path(bucket.name, key, options))
71
72
  load_object(RObject.new(bucket, key), response)
72
73
  end
73
74
 
data/lib/riak/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Riak
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
data/riak-client.gemspec CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["sean@basho.com", 'bryce@basho.com']
11
11
  gem.homepage = "http://github.com/basho/riak-ruby-client"
12
12
  gem.authors = ["Sean Cribbs", 'Bryce Kerley']
13
+ gem.license = 'Apache 2.0'
13
14
 
14
15
  # Deps
15
16
  gem.add_development_dependency "rspec", "~>2.13.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riak-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Cribbs
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-16 00:00:00.000000000 Z
12
+ date: 2013-09-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -313,7 +313,8 @@ files:
313
313
  - spec/support/unified_backend_examples.rb
314
314
  - spec/support/version_filter.rb
315
315
  homepage: http://github.com/basho/riak-ruby-client
316
- licenses: []
316
+ licenses:
317
+ - Apache 2.0
317
318
  metadata: {}
318
319
  post_install_message:
319
320
  rdoc_options: []
@@ -331,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
332
  version: '0'
332
333
  requirements: []
333
334
  rubyforge_project:
334
- rubygems_version: 2.0.2
335
+ rubygems_version: 2.0.7
335
336
  signing_key:
336
337
  specification_version: 4
337
338
  summary: riak-client is a rich client for Riak, the distributed database by Basho.