Permalink
Browse files

Added rake.

  • Loading branch information...
1 parent 1e811d3 commit ef70958a9d21a9a67eadabb97117564c08f3a8ee @rubiety committed Apr 2, 2012
Showing with 43 additions and 13 deletions.
  1. +18 −12 Gemfile.lock
  2. +23 −0 Rakefile
  3. +2 −1 factory_girl_upgrader.gemspec
View
30 Gemfile.lock
@@ -1,22 +1,27 @@
PATH
remote: .
specs:
- factory_girl_upgrader (0.1.0)
- activesupport (~> 3.0.10)
+ factory_girl_upgrader (0.1.3)
+ activesupport (~> 3.0)
factory_girl (~> 2.0)
i18n (~> 0.6.0)
ruby_parser (~> 2.3.1)
- ruby_scribe (~> 0.1.0)
- ruby_transform (~> 0.1.0)
+ ruby_scribe (~> 0.1.4)
+ ruby_transform (~> 0.1.4)
thor (~> 0.13)
GEM
remote: http://rubygems.org/
specs:
- activesupport (3.0.10)
+ activesupport (3.2.3)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
diff-lcs (1.1.3)
- factory_girl (2.1.0)
+ factory_girl (2.6.4)
+ activesupport (>= 2.3.9)
i18n (0.6.0)
+ multi_json (1.2.0)
+ rake (0.9.2.2)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
@@ -27,23 +32,24 @@ GEM
rspec-mocks (2.6.0)
ruby_parser (2.3.1)
sexp_processor (~> 3.0)
- ruby_scribe (0.1.2)
- activesupport (~> 3.0.10)
+ ruby_scribe (0.1.5)
+ activesupport (~> 3.0)
i18n (~> 0.6.0)
ruby_parser (~> 2.3.1)
thor (~> 0.13)
- ruby_transform (0.1.1)
- activesupport (~> 3.0.10)
+ ruby_transform (0.1.4)
+ activesupport (~> 3.0)
i18n (~> 0.6.0)
ruby_parser (~> 2.3.1)
- ruby_scribe (~> 0.1.0)
+ ruby_scribe (~> 0.1.4)
thor (~> 0.13)
- sexp_processor (3.0.7)
+ sexp_processor (3.1.0)
thor (0.14.6)
PLATFORMS
ruby
DEPENDENCIES
factory_girl_upgrader!
+ rake
rspec (~> 2.0)
View
23 Rakefile
@@ -0,0 +1,23 @@
+require 'rubygems'
+require 'bundler/setup'
+
+require 'rake'
+require 'rspec/core/rake_task'
+
+Bundler::GemHelper.install_tasks
+
+desc 'Default: run unit tests.'
+task :default => [:clean, :test]
+
+desc "Run Specs"
+RSpec::Core::RakeTask.new(:spec) do |t|
+end
+
+task :test => :spec
+
+desc "Clean up files."
+task :clean do |t|
+ FileUtils.rm_rf "tmp"
+ Dir.glob("spec/db/*.sqlite3").each {|f| FileUtils.rm f }
+ Dir.glob("validates_lengths_from_database-*.gem").each {|f| FileUtils.rm f }
+end
View
3 factory_girl_upgrader.gemspec
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
s.add_dependency("factory_girl", ["~> 2.0"])
s.add_dependency("ruby_parser", ["~> 2.3.1"])
s.add_dependency("ruby_scribe", ["~> 0.1.4"])
- s.add_dependency("ruby_transform", ["~> 0.1.2"])
+ s.add_dependency("ruby_transform", ["~> 0.1.4"])
s.add_development_dependency("rspec", ["~> 2.0"])
+ s.add_development_dependency("rake")
end

0 comments on commit ef70958

Please sign in to comment.