Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use yajl over json if available.

  • Loading branch information...
commit e29ded5a3ebb5d6f89b3c3ae370f7dba7b53dbe6 1 parent 1001e12
@paulcarey authored
Showing with 10 additions and 4 deletions.
  1. +1 −1  Rakefile
  2. +7 −1 lib/relaxdb.rb
  3. +2 −2 relaxdb.gemspec
View
2  Rakefile
@@ -4,7 +4,7 @@ require 'spec/rake/spectask'
PLUGIN = "relaxdb"
NAME = "relaxdb"
-GEM_VERSION = "0.5.2"
+GEM_VERSION = "0.5.3"
AUTHOR = "Paul Carey"
EMAIL = "paul.p.carey@gmail.com"
HOMEPAGE = "http://github.com/paulcarey/relaxdb/"
View
8 lib/relaxdb.rb
@@ -1,6 +1,12 @@
require 'rubygems'
require 'extlib'
-require 'json'
+
+begin
+ require 'yajl'
+ require 'yajl/json_gem'
+rescue LoadError
+ require 'json'
+end
require 'cgi'
require 'net/http'
View
4 relaxdb.gemspec
@@ -3,8 +3,8 @@
Gem::Specification.new do |s|
s.name = "relaxdb"
- s.version = "0.5.2"
- s.date = "2010-05-13"
+ s.version = "0.5.3"
+ s.date = "2010-05-19"
s.summary = "RelaxDB provides a simple interface to CouchDB"
s.email = "paul.p.carey@gmail.com"
s.homepage = "http://github.com/paulcarey/relaxdb/"
Please sign in to comment.
Something went wrong with that request. Please try again.