Skip to content

Commit

Permalink
More bundler friendly paths
Browse files Browse the repository at this point in the history
  • Loading branch information
skyeagle committed Apr 20, 2011
1 parent ad352fc commit 114358e
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Guardfile
Expand Up @@ -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
14 changes: 14 additions & 0 deletions lib/mongoid-ancestry.rb
@@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions lib/mongoid/ancestry.rb

This file was deleted.

@@ -1,6 +1,6 @@
require 'spec_helper'

require 'mongoid/ancestry/exceptions'
require 'mongoid-ancestry/exceptions'


describe MongoidAncestry do
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions spec/support/models.rb
@@ -1,6 +1,3 @@
require 'mongoid/ancestry'


class MongoidAncestry

def self.with_model options = {}
Expand Down

0 comments on commit 114358e

Please sign in to comment.