Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Whitespace cleanup.
  • Loading branch information
jnunemaker committed Jun 27, 2009
1 parent 902c5d2 commit bdc4426
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -10,13 +10,14 @@ begin
gem.homepage = "http://github.com/jnunemaker/mongomapper"
gem.authors = ["John Nunemaker"]
gem.rubyforge_project = "mongomapper"

gem.add_dependency('activesupport')
gem.add_dependency('mongodb-mongo')
gem.add_dependency('jnunemaker-validatable')

gem.add_development_dependency('mocha')
gem.add_development_dependency('jnunemaker-matchy', '0.4.0')
gem.add_development_dependency('thoughtbot-quietbacktrace')
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end

Jeweler::RubyforgeTasks.new
Expand Down Expand Up @@ -69,4 +70,3 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end

1 change: 0 additions & 1 deletion lib/mongomapper.rb
Expand Up @@ -19,7 +19,6 @@
require dir + 'embedded_document'
require dir + 'document'


module MongoMapper
class DocumentNotFound < StandardError; end
class DocumentNotValid < StandardError
Expand Down
5 changes: 0 additions & 5 deletions lib/mongomapper/document.rb
Expand Up @@ -15,7 +15,6 @@ def self.included(model)
end

module ClassMethods

def find(*args)
options = args.extract_options!

Expand Down Expand Up @@ -121,7 +120,6 @@ def collection(name=nil)
end

private

def find_every(options)
criteria, options = FinderOptions.new(options).to_a
collection.find(criteria, options).to_a.map { |doc| new(doc) }
Expand Down Expand Up @@ -175,9 +173,6 @@ def update_multiple(docs)
end
end

####################
# Instance Methods #
####################
module InstanceMethods
def collection
self.class.collection
Expand Down
1 change: 0 additions & 1 deletion lib/mongomapper/embedded_document.rb
Expand Up @@ -125,7 +125,6 @@ def apply_validations_for(key)
end

module InstanceMethods

def initialize(attrs={})
initialize_embedded_associations(attrs)
self.attributes = attrs
Expand Down
1 change: 0 additions & 1 deletion test/test_associations.rb
Expand Up @@ -9,7 +9,6 @@ class Address
key :zip, Integer
end


class AssociationsTest < Test::Unit::TestCase
def setup
@document = Class.new do
Expand Down
1 change: 0 additions & 1 deletion test/test_callbacks.rb
Expand Up @@ -83,5 +83,4 @@ def clear_history
doc.history.should include(:after_destroy)
end
end

end
1 change: 0 additions & 1 deletion test/test_document.rb
Expand Up @@ -934,6 +934,5 @@ def name_and_age=(new_value)
doc.updated_at.should_not == old_updated_at
end
end

end # instance of a document
end # DocumentTest
1 change: 0 additions & 1 deletion test/test_embedded_document.rb
Expand Up @@ -237,6 +237,5 @@ def name_and_age=(new_value)
doc1.should_not == doc2
end
end

end # instance of a embedded document
end
1 change: 0 additions & 1 deletion test/test_key.rb
Expand Up @@ -197,5 +197,4 @@ class KeyTest < Test::Unit::TestCase
end
end
end

end # KeyTest

0 comments on commit bdc4426

Please sign in to comment.