couchbase 1.2.0.z.beta-x86-mingw32 → 1.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/.travis.yml +1 -1
  2. data/Makefile +3 -0
  3. data/README.markdown +15 -4
  4. data/RELEASE_NOTES.markdown +526 -0
  5. data/couchbase.gemspec +0 -1
  6. data/ext/couchbase_ext/arguments.c +161 -244
  7. data/ext/couchbase_ext/arithmetic.c +29 -37
  8. data/ext/couchbase_ext/bucket.c +252 -219
  9. data/ext/couchbase_ext/couchbase_ext.c +540 -417
  10. data/ext/couchbase_ext/couchbase_ext.h +218 -191
  11. data/ext/couchbase_ext/delete.c +30 -27
  12. data/ext/couchbase_ext/extconf.rb +15 -3
  13. data/ext/couchbase_ext/get.c +45 -37
  14. data/ext/couchbase_ext/http.c +95 -74
  15. data/ext/couchbase_ext/multithread_plugin.c +1238 -0
  16. data/ext/couchbase_ext/observe.c +42 -37
  17. data/ext/couchbase_ext/result.c +17 -20
  18. data/ext/couchbase_ext/stats.c +30 -28
  19. data/ext/couchbase_ext/store.c +47 -39
  20. data/ext/couchbase_ext/timer.c +11 -11
  21. data/ext/couchbase_ext/touch.c +30 -27
  22. data/ext/couchbase_ext/unlock.c +30 -27
  23. data/ext/couchbase_ext/utils.c +166 -89
  24. data/ext/couchbase_ext/version.c +29 -26
  25. data/lib/action_dispatch/middleware/session/couchbase_store.rb +2 -2
  26. data/lib/active_support/cache/couchbase_store.rb +6 -6
  27. data/lib/couchbase.rb +1 -0
  28. data/lib/couchbase/bucket.rb +6 -11
  29. data/lib/couchbase/cluster.rb +105 -0
  30. data/lib/couchbase/utils.rb +8 -5
  31. data/lib/couchbase/version.rb +1 -1
  32. data/lib/couchbase/view.rb +51 -5
  33. data/lib/couchbase/view_row.rb +1 -1
  34. data/lib/ext/multi_json_fix.rb +13 -9
  35. data/lib/rack/session/couchbase.rb +11 -7
  36. data/tasks/compile.rake +1 -1
  37. data/tasks/test.rake +40 -34
  38. data/tasks/util.rake +1 -1
  39. data/test/setup.rb +9 -2
  40. data/test/test_arithmetic.rb +37 -0
  41. data/test/test_async.rb +22 -18
  42. data/test/test_unlock.rb +0 -1
  43. data/test/test_utils.rb +32 -0
  44. metadata +13 -23
  45. data/HISTORY.markdown +0 -219
data/HISTORY.markdown DELETED
@@ -1,219 +0,0 @@
1
- ## 1.2.0.z.beta / 2012-09-18
2
-
3
- * Fix version ordering by using ".z" prefix before .beta
4
-
5
- ## 1.2.0.beta / 2012-09-18
6
-
7
- * RCBC-70 return binary keys using Encoding.external value (thanks to Alex Leverington)
8
- * Create new key object only if it is necessary
9
- * Switch to rbenv because RVM doesn't work with tclsh
10
- * [backport] RCBC-37 Bootstrapping using multiple nodes
11
- * React on HTTP level errors in view request
12
- * Fix typo: check for MultiJson.decode
13
- * Use unified HTTP function from the latest libcouchbase
14
- * Expose HTTP headers
15
- * Update views to meet latest server changes
16
- * Add support for spatial views
17
- * Use updated libcouchbase_cancel_http_request()
18
- * Workaround query issue on group=false&reduce=false
19
- * Update windows build
20
- * Bump version 1.1.4
21
- * Refactor the C extension
22
- * Fix CAS conversion for Bucket#delete method for 32-bit systems
23
- * RCBC-28 Implement Bucket#unlock
24
- * CCBC-98 Expose client temporary failure error
25
- * Fix warnings in doc generator and specify return values
26
- * Fix -Wreturn-type warning
27
- * Add attribute reader for Error::Base status code
28
- * Unset RUBYOPT to avoid issues with bundler
29
- * Ignore shared object on macos
30
- * RCBC-79 Use RESTful flush
31
- * Fix build under bundler on MacOS
32
- * RCBC-81 Protect against NoMethodError
33
- * Fixup MAKEFILE_CONFIG which is copy of the CONFIG
34
- * RCBC-81 Protect against NoMethodError
35
- * Update windows build
36
-
37
- ## 1.2.0.dp6 / 2012-07-28
38
-
39
- * Inherit StandardError instead RuntimeError for errors
40
- * Use renamed functions for view requests
41
- * Depend on yard-xml plugin to dump docs into single XML
42
- * No need to check for NULL before deallocating memory
43
- * RCBC-37 Bootstrapping using multiple nodes
44
- * More docs and examples on views (fixes RCBC-43)
45
- * RCBC-40 Fix Bucket#cas operation behaviour in async mode
46
- * RCBC-39 Allow to specify delta for incr/decr in options
47
- * Update README
48
- * Apply timeout value before connection
49
- * Clarify connection exceptions
50
- * Remove seqno kludge
51
- * rb_hash_delete() function could incorrectly detect block presence
52
- * Add example with in-URL credentials
53
- * RCBC-57 Expose timers API from libcouchbase
54
- * RCBC-50 Allow to read keys from replica
55
- * RCBC-6 Implement OBSERVE command
56
- * Expose number of replicas to the user
57
- * Notify about observe batch finish in async mode
58
- * Separate memory errors for client and server
59
- * Prefix error message from views with "SERVER: "
60
- * Remove timeout hack
61
- * RCBC-49 Bucket#observe_and_wait primitive
62
- * RCBC-47 Allow to skip username for protected buckets
63
- * Use allocators instead of singleton methods
64
- * Check RDATA()->dfree to ensure object type
65
- * Fix observe_and_wait in async mode
66
- * Fill 'operation' in observe_and_wait Result object
67
- * Fix extraction Hash with keys in observe_and_wait
68
- * RCBC-49 :observe option for storage functions
69
- * Fix timeout test
70
- * Mention couchbase.com in install errors
71
- * Make Bucket#observe_and_wait more 1.8.7 friendly
72
-
73
- ## 1.2.0.dp5 / 2012-06-15
74
-
75
- * Allow to force assembling result Hash for multi-get
76
- * Fix documentation for :ttl option in Bucket#cas
77
- * Implement key prefix (simple namespacing)
78
- * Implement cache store adapter for Rails
79
- * Integrate with Rack and Rails session store
80
-
81
- ## 1.2.0.dp4 / 2012-06-07
82
-
83
- * RCBC-36 Fix segfault
84
- * Comment out unpredictable test
85
- * Update replace documentation: it accepts :cas option
86
-
87
- ## 1.2.0.dp3 / 2012-06-06
88
-
89
- * Fix for multi_json < 1.3.3
90
- * Break out from event loop for non-chunked responses (fix creating
91
- design create)
92
-
93
- ## 1.2.0.dp2 / 2012-06-05
94
-
95
- * RCBC-31 Make Bucket#get more consistent
96
- * Use monotonic high resolution clock
97
- * Implement threshold for outgoing commands
98
- * Allow to stop event loop from ruby
99
- * RCBC-35 Fix the params escaping
100
- * RCBC-34 Use multi_json gem
101
- * Allow to block and wait for part of the requests
102
- * Fix view iterator. It doesn't lock event loop anymore
103
- * Specify HTTP method when body is set for View request
104
- * Define views only if "views" key presented
105
- * Use plain structs instead of typedefs
106
- * Use debugger gem for 1.9.x rubies
107
- * Use latest stable build of libcouchbase for travis-ci
108
- * Require yajl as development dependency
109
- * Implement get with lock operation
110
- * Update docs
111
-
112
- ## 1.2.0.dp / 2012-04-06
113
-
114
- * Properly handle hashes as Couchbase.connection_options
115
- * Implement views
116
- * Use verbose mode by default throwing exceptions on NOT_FOUND errors.
117
- This means that quiet attribute is false now on new connections.
118
- * Doc fixes
119
-
120
- ## 1.1.4 / 2012-08-30
121
-
122
- * RCBC-70 return binary keys using Encoding.external value (thanks to Alex Leverington)
123
- * Switch to rbenv because RVM doesn't work with tclsh
124
- * [backport] RCBC-37 Bootstrapping using multiple nodes
125
-
126
- ## 1.1.3 / 2012-07-27
127
-
128
- * RCBC-59 Replicate flags in Bucket#cas operation
129
- * calloc -> xcalloc, free -> xfree
130
- * RCBC-64 Fix Couchbase::Bucket#dup
131
- * Make object_space GC protector per-bucket object
132
- * RCBC-60 Protect exceptions from GC
133
-
134
- ## 1.1.2 / 2012-06-05
135
-
136
- * Upgrade libcouchbase dependency up to 1.0.4
137
- * Backport debugger patch
138
-
139
- ## 1.1.1 / 2012-03-19
140
-
141
- * Allow to force format for get operation (thanks to Darian Shimy)
142
- * Use all arguments if receiver arity is -1 (couchbase_ext.c)
143
- * Doc fixes
144
-
145
- ## 1.1.0 / 2012-03-07
146
-
147
- * Timeout support (CCBC-20)
148
- * Implement disconnect/reconnect interface
149
- * Improve error handling code
150
- * Use URI parser from stdlib
151
- * Improve the documentation and the tests
152
- * Remove direct dependency on libevent
153
- * Remove sasl dependency
154
- * Fix storing empty line and nil
155
- * Allow running tests on real cluster
156
- * Cross-build for windows
157
- * Keep connections in thread local storage
158
- * Add block execution time to timeout
159
- * Implement VERSION command
160
- * Configure Travis-CI
161
-
162
- ## 1.0.0 / 2011-12-23
163
-
164
- * Implement all operations using libcouchbase as backend
165
- * Remove views code. It will be re-added in 1.1 version
166
-
167
- ## 0.9.8 / 2011-12-16
168
-
169
- * Fix RCBC-10: It was impossible to store data in non-default buckets
170
-
171
- ## 0.9.7 / 2011-10-04
172
-
173
- * Fix design doc removing
174
- * Fix 'set' method signature: add missing options argument
175
- * Rename gem to 'couchbase' for easy of use. The github project still
176
- is 'couchbase-ruby-client'
177
-
178
- ## 0.9.6 / 2011-10-04
179
-
180
- * Fix bug with decoding multiget result
181
- * Allow create design documents from IO and String
182
- * Rename json format to document, and describe possible formats
183
- * Allow to handle errors in view result stream
184
- * Remove dependency on libyajl library: it bundled with yaji now
185
- * Update rake tasks: create zip- and tar-balls
186
-
187
- ## 0.9.5 / 2011-08-24
188
-
189
- * Update installation notes in README
190
-
191
- ## 0.9.4 / 2011-08-24
192
-
193
- * Use streaming json parser to iterate over view results
194
- * Update memcached gem dependency to v1.3
195
- * Proxy TOUCH command to memcached client
196
- * Fix minor bugs in RestClient and Document classes
197
- * Disable CouchDB API for nodes without 'couchApiBase' key provided.
198
- * Fix bug with unicode parsing in config listener
199
- * Add more unit tests
200
-
201
- ## 0.9.3 / 2011-07-29
202
-
203
- * Use Latch (via Mutex and ConditionVariable) to wait until initial
204
- setup will be finished.
205
- * Update prefix for development views (from '$dev_' to 'dev_')
206
-
207
- ## 0.9.2 / 2011-07-29
208
-
209
- * Use zero TTL by default to store records forever
210
- * Update documentation
211
- * Sleep if setup isn't done
212
-
213
- ## 0.9.1 / 2011-07-25
214
-
215
- * Minor bugfix for RestClient initialization
216
-
217
- ## 0.9.0 / 2011-07-25
218
-
219
- * Initial public release