Skip to content
This repository
Browse code

Use yajl over json if available.

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

0 notes on commit e29ded5

Please sign in to comment.
Something went wrong with that request. Please try again.