couchbase 1.3.0-x86-mingw32 → 1.3.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/RELEASE_NOTES.markdown +9 -1
- data/couchbase.gemspec +1 -1
- data/ext/couchbase_ext/utils.c +2 -1
- data/lib/couchbase/version.rb +1 -1
- data/lib/couchbase/view.rb +7 -2
- data/lib/ext/multi_json_fix.rb +6 -1
- metadata +6 -6
data/RELEASE_NOTES.markdown
CHANGED
@@ -3,7 +3,15 @@
|
|
3
3
|
This document is a list of user visible feature changes and important
|
4
4
|
bugfixes. Do not forget to update this doc in every important patch.
|
5
5
|
|
6
|
-
## 1.3.
|
6
|
+
## 1.3.1 (2013-06-05)
|
7
|
+
|
8
|
+
* [major] RCBC-131 Couchbase::Cluster instance shouldn't require
|
9
|
+
persistent connection.
|
10
|
+
|
11
|
+
* Fix compatibility with multi_json 1.7.5. They removed VERSION
|
12
|
+
constant
|
13
|
+
|
14
|
+
## 1.3.0 (2013-05-07)
|
7
15
|
|
8
16
|
* [major] RCBC-46 implement Couchbase::ConnectionPool to allow
|
9
17
|
applications (and ActiveSupport::Cache::CouchbaseStore) use it in
|
data/couchbase.gemspec
CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
|
|
37
37
|
|
38
38
|
s.add_runtime_dependency 'yaji', '~> 0.3.2'
|
39
39
|
s.add_runtime_dependency 'multi_json', '~> 1.0'
|
40
|
-
s.add_runtime_dependency 'connection_pool', '~> 0.
|
40
|
+
s.add_runtime_dependency 'connection_pool', '~> 1.0.0'
|
41
41
|
|
42
42
|
s.add_development_dependency 'rake'
|
43
43
|
s.add_development_dependency 'minitest'
|
data/ext/couchbase_ext/utils.c
CHANGED
@@ -68,7 +68,8 @@ cb_async_error_notify(struct cb_bucket_st *bucket, VALUE exc)
|
|
68
68
|
int
|
69
69
|
cb_bucket_connected_bang(struct cb_bucket_st *bucket, VALUE operation)
|
70
70
|
{
|
71
|
-
if (bucket->
|
71
|
+
if (bucket->type == LCB_TYPE_BUCKET &&
|
72
|
+
(bucket->handle == NULL || !bucket->connected)) {
|
72
73
|
VALUE exc = rb_exc_new2(cb_eConnectError, "not connected to the server");
|
73
74
|
rb_ivar_set(exc, cb_id_iv_operation, operation);
|
74
75
|
rb_ivar_set(exc, cb_id_iv_value, bucket->self);
|
data/lib/couchbase/version.rb
CHANGED
data/lib/couchbase/view.rb
CHANGED
@@ -36,8 +36,13 @@ module Couchbase
|
|
36
36
|
def parse_body!
|
37
37
|
if @body
|
38
38
|
hash = MultiJson.load(@body)
|
39
|
-
|
40
|
-
|
39
|
+
if hash["errors"]
|
40
|
+
@type = :invalid_arguments
|
41
|
+
@reason = hash["errors"].values.join(" ")
|
42
|
+
else
|
43
|
+
@type = hash["error"]
|
44
|
+
@reason = hash["reason"]
|
45
|
+
end
|
41
46
|
end
|
42
47
|
rescue MultiJson::DecodeError
|
43
48
|
@type = @reason = nil
|
data/lib/ext/multi_json_fix.rb
CHANGED
@@ -27,7 +27,12 @@ end
|
|
27
27
|
|
28
28
|
# Patch for MultiJson versions < 1.3.3
|
29
29
|
require 'multi_json/version'
|
30
|
-
|
30
|
+
version = begin
|
31
|
+
MultiJson::VERSION
|
32
|
+
rescue NameError
|
33
|
+
MultiJson::Version.to_s
|
34
|
+
end
|
35
|
+
if Gem::Version.new(version) < Gem::Version.new('1.3.3')
|
31
36
|
class << MultiJson
|
32
37
|
alias :dump :encode
|
33
38
|
alias :load :decode
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couchbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: x86-mingw32
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05
|
12
|
+
date: 2013-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yaji
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
53
|
+
version: 1.0.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 1.0.0
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: rake
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -285,7 +285,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
285
285
|
version: '0'
|
286
286
|
segments:
|
287
287
|
- 0
|
288
|
-
hash:
|
288
|
+
hash: 2195573418213071980
|
289
289
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
290
290
|
none: false
|
291
291
|
requirements:
|
@@ -294,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: '0'
|
295
295
|
segments:
|
296
296
|
- 0
|
297
|
-
hash:
|
297
|
+
hash: 2195573418213071980
|
298
298
|
requirements: []
|
299
299
|
rubyforge_project:
|
300
300
|
rubygems_version: 1.8.23
|