Better changelog

Change-Id: I1d1ee107e68b0666443db6c1fb9914d8b12351f1
Reviewed-on: http://review.couchbase.org/23208
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Bump version 1.2.0

Change-Id: If0c7b9207652276ef59659a03059ce6b9088909f
Reviewed-on: http://review.couchbase.org/23225
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Fix indentation for code snippets in RELEASE_NOTES

Change-Id: Ia23a07ea1903be39a2200d7dfacb4e3c07c760ed
Reviewed-on: http://review.couchbase.org/23231
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Fix dates and spelling errors in RELEASE_NOTES

Change-Id: Ie991911d5cb5c05ecf7f53d9e52ae1fb026167f0
Reviewed-on: http://review.couchbase.org/23235
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
io plugin: simplify timeout arithmetic for poll

Logic copied from ruby sources is overcomplicated.
Use simpler method for unification ppoll and poll.

Change-Id: I5e280c854b27fe03d97f65d2b0814486d9c2a780
Reviewed-on: http://review.couchbase.org/23228
Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
use protection by marking context instead of cb_gc_protect

Make wrapper ruby object which will mark context elements and protect
context itself instead of separate context elements protection.

Change-Id: I7936c528511ecb1d1b1109d7915d396feccb6557
Reviewed-on: http://review.couchbase.org/23333
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
remove cb_gc_protect as unused

get.c: params.cmd.get.keys_ary protected by stack scanning
all other usage were for protecting context parts and are removed
by previos commit.
cb_gc_protect_ptr(bucket, (void*)val, val) could be used for same
functionality in a future.

Change-Id: I0715cbc81ff0e8759099b4f5eb331142ae48736f
Reviewed-on: http://review.couchbase.org/23334
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
RCBC-101 Fix observe options passing to store methods

Change-Id: If00eb75a1313c6ff12f0b8877ed422970188e252
Reviewed-on: http://review.couchbase.org/23335
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
RCBC-102 Fix inconsistent return of store functions

The Bucket#set for example should return the object corresponding to
arguments passed:

  1.9.3p327 (main):002:0> conn.set("foo", "bar")
  851339802448297984
  1.9.3p327 (main):003:0> conn.set("foo" => "bar", "baz" => "foo")
  {"foo"=>2995536636664938496, "baz"=>16831440216388861952}

But when :observe option is used, it always return it like for
multi-set:

  1.9.3p327 (main):004:0> conn.set("foo", "bar", :observe => {:persisted => 1})
  {"foo"=>2559248876759744512}

Change-Id: Iab3d0e984da0bf6e98eb96f0a881114e37b896d0
Reviewed-on: http://review.couchbase.org/23336
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
http.c: remove redundant check

cause it is already checked in cb_context_alloc

Change-Id: I402dc96e205323ed9ebacbb78ce8f3be8628cd52
Reviewed-on: http://review.couchbase.org/23344
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
use one print call for debugging.

Change-Id: I8ac9605ad4e464428fb3d4ceebf14bfd87b77a3e
Reviewed-on: http://review.couchbase.org/23332
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
remove some duplication in context initialization

Change-Id: Ia61cc5c8d0ae41cb70ce81032015c6cbfe1a58cd
Reviewed-on: http://review.couchbase.org/23345
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
st type compatibility for ruby 1.8.7

Change-Id: Iab40ab00092967c6f5721a511c5b02d63bc990c9
Reviewed-on: http://review.couchbase.org/23346
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
result.c use rb_attr_get instead rb_ivar_get to prevent excess warnings

Change-Id: I3d1f5d39398548e51c8808fdcb33f9a8237c7718
Reviewed-on: http://review.couchbase.org/23389
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Separate DesignDoc as subclass of ViewRow

ViewRow needs not to be universal, cause design doc in initialized only
in Bucket#design_docs. Also, declaring methods at runtime is not good
practice cause it hurts VM cache in (i think) all realizations.

Change-Id: I1bc6f7c78db425297d38718a4ceb2e504f75944d
Reviewed-on: http://review.couchbase.org/23390
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Update release notes regarding new class DesingDoc

Change-Id: Icf86a56186ecc2e76ec141a5ee882c1dad2a8916
See: http://review.couchbase.org/23390
Reviewed-on: http://review.couchbase.org/23431
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
View::ArrayWithTotalRows

Change-Id: Id0d22731de3a55b648e0fad54e0626699eabaf30
Reviewed-on: http://review.couchbase.org/23441
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
tiny logic fixes to bucket

Change-Id: Ia8dea5f5251e7686234290d1608124c9bbbce9a2
Reviewed-on: http://review.couchbase.org/23443
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
giveup on http request when bucket is sweeped by GC

Change-Id: Ib2d886a5b948b6df4ac16f3115cafb7a37fdc3ad
Reviewed-on: http://review.couchbase.org/23445
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
intern "localhost" string

Change-Id: I05d5c7bf2a9e3688283bca0d284933dbc74d7f75
Reviewed-on: http://review.couchbase.org/23444
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>