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

6
spec/spec.opts Normal file
View file

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