Permalink
Browse files

update to couchbase 1.0.0

  • Loading branch information...
1 parent 8a5f528 commit d58c2aa8181f5ac32eefaf28a2fec983b3bd748b @avsej committed Jan 19, 2012
Showing with 9 additions and 15 deletions.
  1. +1 −1 Gemfile
  2. +4 −10 Gemfile.lock
  3. +4 −4 hello-world.rb
View
@@ -1,4 +1,4 @@
source "http://rubygems.org"
gem "activesupport"
-gem "couchbase", '0.9.8'
+gem "couchbase", '1.0.0'
View
@@ -3,20 +3,14 @@ GEM
specs:
activesupport (3.1.3)
multi_json (~> 1.0)
- couchbase (0.9.8)
- curb (~> 0.7.15)
- memcached (~> 1.3)
- yaji (~> 0.0.9)
- yajl-ruby (~> 0.8.2)
- curb (0.7.16)
- memcached (1.3.5)
+ couchbase (1.0.0)
+ yajl-ruby (~> 1.1.0)
multi_json (1.0.4)
- yaji (0.0.10)
- yajl-ruby (0.8.3)
+ yajl-ruby (1.1.0)
PLATFORMS
ruby
DEPENDENCIES
activesupport
- couchbase (= 0.9.8)
+ couchbase (= 1.0.0)
View
@@ -1,12 +1,12 @@
require 'rubygems'
-require 'bundler/setup'
-Bundler.require(:default)
+require 'couchbase'
-client = Couchbase.new "http://localhost:8091/pools/default"
+client = Couchbase.new "http://127.0.0.1:8091/pools/default"
+client.quiet = false
begin
spoon = client.get "spoon"
puts spoon
-rescue Memcached::NotFound => e
+rescue Couchbase::Error::NotFound => e
puts "There is no spoon."
client.set "spoon", "Hello World!", :ttl => 10
end

0 comments on commit d58c2aa

Please sign in to comment.