Hi @christian.becker, this issue has been fixed on master (and will be released in 2.0). I have restarted maintainership of Ruby SDK, so now updates will be more frequent. To verify your code you can do the following:
git clone git://github.com/couchbase/couchbase-ruby-client.git
cd couchbase-ruby-client
bundle install
bundle exec rake compile
bundle exec rake console
And then in console:
irb(main):001:0> cb = Couchbase.connect('couchbase://127.0.0.1/beer-sample', password: 'password', username: 'Administrator')
=> #<Couchbase::Bucket:0x000055c7fd434db8 "couchbase://127.0.0.1/beer-sample/" transcoder=Couchbase::Transcoder::Document, default_flags=0x0, connected=true, timeout=2500000, bootstrap_transport=:cccp>
irb(main):002:0> cb.design_docs['beer'].brewery_beers(limit: 3, descending: true).each { |row| p cb.get(row.id) }
#<Couchbase::Result:0x000055c7fd460328 operation=:get key="zea_rotisserie_and_brewery-z_p_a_india_pale_ale" cas=1534869667137716224>
#<Couchbase::Result:0x000055c7fd47bf60 operation=:get key="zea_rotisserie_and_brewery-ponchartrain_porter" cas=1534869667110256640>
#<Couchbase::Result:0x000055c7fd47b3a8 operation=:get key="zea_rotisserie_and_brewery-lager" cas=1534869666832449536>
=> [{:key=>"[\"zea_rotisserie_and_brewery\",\"zea_rotisserie_and_brewery-z_p_a_india_pale_ale\"]", :id=>"zea_rotisserie_and_brewery-z_p_a_india_pale_ale", :value=>"null"}, {:key=>"[\"zea_rotisserie_and_brewery\",\"zea_rotisserie_and_brewery-ponchartrain_porter\"]", :id=>"zea_rotisserie_and_brewery-ponchartrain_porter", :value=>"null"}, {:key=>"[\"zea_rotisserie_and_brewery\",\"zea_rotisserie_and_brewery-lager\"]", :id=>"zea_rotisserie_and_brewery-lager", :value=>"null"}]
But also you can use :include_docs => true
option to view to automatically perform Bucket#get
for each id
.