Moving initial loading parts

This commit is contained in:
Sam Lown 2010-05-11 15:37:50 +02:00
parent c1052ccb77
commit 11a56e6f48
3 changed files with 19 additions and 13 deletions

View file

@ -1,6 +1,6 @@
require 'rake' require 'rake'
require "rake/rdoctask" require "rake/rdoctask"
require File.join(File.expand_path(File.dirname(__FILE__)),'lib','couchrest','extended_document') require File.join(File.expand_path(File.dirname(__FILE__)),'lib','couchrest_extended_document')
begin begin
require 'spec/rake/spectask' require 'spec/rake/spectask'

View file

@ -1,17 +1,6 @@
gem 'samlown-couchrest'
require 'couchrest'
require 'active_support'
require 'mime/types'
require "enumerator"
require File.join(File.dirname(__FILE__), "property") require File.join(File.dirname(__FILE__), "property")
require File.join(File.dirname(__FILE__), 'mixins') require File.join(File.dirname(__FILE__), 'mixins')
require File.join(File.dirname(__FILE__), 'casted_model')
# Monkey patches
require File.join(File.dirname(__FILE__), 'support', 'couchrest')
require File.join(File.dirname(__FILE__), 'support', 'rails') if defined?(Rails)
module CouchRest module CouchRest

View file

@ -1,4 +1,21 @@
# require File.join(File.dirname(__FILE__), "couchrest", "extended_document")
require File.join(File.dirname(__FILE__), "couchrest", "extended_document") gem 'samlown-couchrest'
require 'couchrest'
require 'active_support'
require 'mime/types'
require "enumerator"
# Monkey patches applied to couchrest
require File.join(File.dirname(__FILE__), 'couchrest', 'support', 'couchrest')
# Base libraries
require File.join(File.dirname(__FILE__), 'couchrest', 'extended_document')
require File.join(File.dirname(__FILE__), 'couchrest', 'casted_model')
# Add rails support *after* everything has loaded
require File.join(File.dirname(__FILE__), 'couchrest', 'support', 'rails') if defined?(Rails)