couchbase 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.0 (2014-05-07)
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
@@ -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.9.2'
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'
@@ -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->handle == NULL || !bucket->connected) {
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);
@@ -17,5 +17,5 @@
17
17
 
18
18
  # Couchbase ruby client
19
19
  module Couchbase
20
- VERSION = "1.3.0"
20
+ VERSION = "1.3.1"
21
21
  end
@@ -36,8 +36,13 @@ module Couchbase
36
36
  def parse_body!
37
37
  if @body
38
38
  hash = MultiJson.load(@body)
39
- @type = hash["error"]
40
- @reason = hash["reason"]
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
@@ -27,7 +27,12 @@ end
27
27
 
28
28
  # Patch for MultiJson versions < 1.3.3
29
29
  require 'multi_json/version'
30
- if Gem::Version.new(MultiJson::VERSION) < Gem::Version.new('1.3.3')
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,181 +1,183 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: couchbase
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 3
9
- - 0
10
- version: 1.3.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Couchbase
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-05-08 00:00:00 +03:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2013-06-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: yaji
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 23
29
- segments:
30
- - 0
31
- - 3
32
- - 2
20
+ - !ruby/object:Gem::Version
33
21
  version: 0.3.2
34
- name: yaji
35
- version_requirements: *id001
36
- prerelease: false
37
- - !ruby/object:Gem::Dependency
38
22
  type: :runtime
39
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
40
25
  none: false
41
- requirements:
26
+ requirements:
42
27
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 15
45
- segments:
46
- - 1
47
- - 0
48
- version: "1.0"
28
+ - !ruby/object:Gem::Version
29
+ version: 0.3.2
30
+ - !ruby/object:Gem::Dependency
49
31
  name: multi_json
50
- version_requirements: *id002
51
- prerelease: false
52
- - !ruby/object:Gem::Dependency
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '1.0'
53
38
  type: :runtime
54
- requirement: &id003 !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
55
41
  none: false
56
- requirements:
42
+ requirements:
57
43
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 63
60
- segments:
61
- - 0
62
- - 9
63
- - 2
64
- version: 0.9.2
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
46
+ - !ruby/object:Gem::Dependency
65
47
  name: connection_pool
66
- version_requirements: *id003
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.0.0
54
+ type: :runtime
67
55
  prerelease: false
68
- - !ruby/object:Gem::Dependency
69
- type: :development
70
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
71
57
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.0
62
+ - !ruby/object:Gem::Dependency
79
63
  name: rake
80
- version_requirements: *id004
81
- prerelease: false
82
- - !ruby/object:Gem::Dependency
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
83
70
  type: :development
84
- requirement: &id005 !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
85
73
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
93
79
  name: minitest
94
- version_requirements: *id005
95
- prerelease: false
96
- - !ruby/object:Gem::Dependency
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
97
86
  type: :development
98
- requirement: &id006 !ruby/object:Gem::Requirement
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
99
89
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 9
104
- segments:
105
- - 0
106
- - 7
107
- - 5
108
- version: 0.7.5
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
109
95
  name: rake-compiler
110
- version_requirements: *id006
111
- prerelease: false
112
- - !ruby/object:Gem::Dependency
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: 0.7.5
113
102
  type: :development
114
- requirement: &id007 !ruby/object:Gem::Requirement
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
115
105
  none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 0
122
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.7.5
110
+ - !ruby/object:Gem::Dependency
123
111
  name: mini_portile
124
- version_requirements: *id007
125
- prerelease: false
126
- - !ruby/object:Gem::Dependency
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
127
118
  type: :development
128
- requirement: &id008 !ruby/object:Gem::Requirement
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
129
121
  none: false
130
- requirements:
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: yajl-ruby
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
131
  - - ~>
132
- - !ruby/object:Gem::Version
133
- hash: 19
134
- segments:
135
- - 1
136
- - 1
137
- - 0
132
+ - !ruby/object:Gem::Version
138
133
  version: 1.1.0
139
- name: yajl-ruby
140
- version_requirements: *id008
141
- prerelease: false
142
- - !ruby/object:Gem::Dependency
143
134
  type: :development
144
- requirement: &id009 !ruby/object:Gem::Requirement
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
145
137
  none: false
146
- requirements:
147
- - - ">="
148
- - !ruby/object:Gem::Version
149
- hash: 3
150
- segments:
151
- - 0
152
- version: "0"
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 1.1.0
142
+ - !ruby/object:Gem::Dependency
153
143
  name: active_support
154
- version_requirements: *id009
155
- prerelease: false
156
- - !ruby/object:Gem::Dependency
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
157
150
  type: :development
158
- requirement: &id010 !ruby/object:Gem::Requirement
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
159
153
  none: false
160
- requirements:
161
- - - ">="
162
- - !ruby/object:Gem::Version
163
- hash: 3
164
- segments:
165
- - 0
166
- version: "0"
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
167
159
  name: eventmachine
168
- version_requirements: *id010
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
169
167
  prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
170
174
  description: The official client library for use with Couchbase Server.
171
175
  email: support@couchbase.com
172
176
  executables: []
173
-
174
- extensions:
177
+ extensions:
175
178
  - ext/couchbase_ext/extconf.rb
176
179
  extra_rdoc_files: []
177
-
178
- files:
180
+ files:
179
181
  - .gitignore
180
182
  - .travis.yml
181
183
  - .yardopts
@@ -266,39 +268,35 @@ files:
266
268
  - test/test_unlock.rb
267
269
  - test/test_utils.rb
268
270
  - test/test_version.rb
269
- has_rdoc: true
270
271
  homepage: http://couchbase.org
271
- licenses:
272
+ licenses:
272
273
  - ASL-2
273
274
  post_install_message:
274
275
  rdoc_options: []
275
-
276
- require_paths:
276
+ require_paths:
277
277
  - lib
278
- required_ruby_version: !ruby/object:Gem::Requirement
278
+ required_ruby_version: !ruby/object:Gem::Requirement
279
279
  none: false
280
- requirements:
281
- - - ">="
282
- - !ruby/object:Gem::Version
283
- hash: 3
284
- segments:
280
+ requirements:
281
+ - - ! '>='
282
+ - !ruby/object:Gem::Version
283
+ version: '0'
284
+ segments:
285
285
  - 0
286
- version: "0"
287
- required_rubygems_version: !ruby/object:Gem::Requirement
286
+ hash: 2195573418213071980
287
+ required_rubygems_version: !ruby/object:Gem::Requirement
288
288
  none: false
289
- requirements:
290
- - - ">="
291
- - !ruby/object:Gem::Version
292
- hash: 3
293
- segments:
289
+ requirements:
290
+ - - ! '>='
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ segments:
294
294
  - 0
295
- version: "0"
295
+ hash: 2195573418213071980
296
296
  requirements: []
297
-
298
297
  rubyforge_project:
299
- rubygems_version: 1.6.2
298
+ rubygems_version: 1.8.23
300
299
  signing_key:
301
300
  specification_version: 3
302
301
  summary: Couchbase ruby driver
303
302
  test_files: []
304
-