Permalink
Browse files

More bundler friendly paths

  • Loading branch information...
1 parent ad352fc commit 114358e47659c7343172aef4a0bab514798c7d54 @skyeagle committed Apr 20, 2011
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- mongoid-ancestry (0.1.0)
+ mongoid-ancestry (0.2.0)
bson_ext (~> 1.3)
mongoid (~> 2.0)
mongoid-ancestry
View
@@ -3,8 +3,8 @@
guard 'rspec', :version => 2, :cli => "--format Fuubar" do
watch(%r{^spec/.+_spec\.rb})
- watch(%r{^lib/mongoid/ancestry/(.+)\.rb}) { |m| "spec/mongoid/ancestry/#{m[1]}_spec.rb" }
- watch('lib/mongoid/ancestry.rb') { "spec" }
+ watch(%r{^lib/mongoid-ancestry/(.+)\.rb}) { |m| "spec/lib/mongoid-ancestry/#{m[1]}_spec.rb" }
+ watch('lib/mongoid-ancestry.rb') { "spec" }
watch(%r{^spec/support/(.+)\.rb}) { "spec" }
watch('spec/spec_helper.rb') { "spec" }
end
View
@@ -0,0 +1,14 @@
+module Mongoid
+ module Ancestry
+ extend ActiveSupport::Concern
+
+ autoload :ClassMethods, 'mongoid-ancestry/class_methods'
+ autoload :InstanceMethods, 'mongoid-ancestry/instance_methods'
+ autoload :Error, 'mongoid-ancestry/exceptions'
+
+ included do
+ cattr_accessor :base_class
+ self.base_class = self
+ end
+ end
+end
View
@@ -1,14 +0,0 @@
-module Mongoid
- module Ancestry
- extend ActiveSupport::Concern
-
- autoload :ClassMethods, 'mongoid/ancestry/class_methods'
- autoload :InstanceMethods, 'mongoid/ancestry/instance_methods'
- autoload :Error, 'mongoid/ancestry/exceptions'
-
- included do
- cattr_accessor :base_class
- self.base_class = self
- end
- end
-end
@@ -1,6 +1,6 @@
require 'spec_helper'
-require 'mongoid/ancestry/exceptions'
+require 'mongoid-ancestry/exceptions'
describe MongoidAncestry do
View
@@ -4,6 +4,8 @@
require 'mongoid'
require 'rspec'
+require 'mongoid-ancestry'
+
Mongoid.configure do |config|
logger = Logger.new('log/test.log')
config.master = Mongo::Connection.new('localhost', 27017,
View
@@ -1,6 +1,3 @@
-require 'mongoid/ancestry'
-
-
class MongoidAncestry
def self.with_model options = {}

0 comments on commit 114358e

Please sign in to comment.