simplified json include

This commit is contained in:
Chris Anderson 2008-05-24 12:28:42 -07:00
parent 939ecaaf73
commit dc6c9276e5
2 changed files with 15 additions and 7 deletions

View file

@ -1,12 +1,14 @@
require File.dirname(__FILE__) + '/../deps/rest-client/lib/rest_client'
require "rubygems"
gem "json"
begin
require "json/ext"
rescue LoadError
$stderr.puts "C version of json (fjson) could not be loaded, using pure ruby one"
require "json/pure"
end
require 'json'
# gem "json"
# begin
# require "json/ext"
# rescue LoadError
# $stderr.puts "C version of json (fjson) could not be loaded, using pure ruby one"
# require "json/pure"
# end
require File.dirname(__FILE__) + '/database'
class CouchRest

6
spec/spec.opts Normal file
View file

@ -0,0 +1,6 @@
--colour
--format
progress
--loadby
mtime
--reverse