Permalink
Browse files

Moved tasks for easy includes, update dependencies in gemspec

  • Loading branch information...
1 parent 7af0e98 commit 78fa26aad857e68d8de0ede6d5a9d9ce5952f890 @cheald cheald committed Feb 1, 2011
Showing with 10 additions and 5 deletions.
  1. +5 −5 lib/{tasks/mongrations.rake → mongrations/tasks.rb}
  2. +5 −0 mongrations.gemspec
@@ -31,11 +31,11 @@
raise "VERSION is required" unless version
MongoMapper::Migrator.run(:down, @path, version)
end
- end
- desc 'Rolls the schema back to the previous version. Specify the number of steps with STEP=n'
- task :mongo_rollback => :environment do
- step = ENV['STEP'] ? ENV['STEP'].to_i : 1
- MongoMapper::Migrator.rollback(@path, step)
+ desc 'Rolls the schema back to the previous version. Specify the number of steps with STEP=n'
+ task :rollback => :environment do
+ step = ENV['STEP'] ? ENV['STEP'].to_i : 1
+ MongoMapper::Migrator.rollback(@path, step)
+ end
end
end
View
@@ -18,4 +18,9 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
+
+ s.add_development_dependency "shoulda"
+ s.add_development_dependency "matchy"
+
+ s.add_dependency "mongo_mapper"
end

0 comments on commit 78fa26a

Please sign in to comment.