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
remove some duplication in context initialization

Change-Id: Ia61cc5c8d0ae41cb70ce81032015c6cbfe1a58cd
st type compatibility for ruby 1.8.7

Change-Id: Iab40ab00092967c6f5721a511c5b02d63bc990c9