require 'rubygems' require 'rake' #===--- Test require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end task :test => :check_dependencies #===--- Reek begin require 'reek/rake/task' Reek::Rake::Task.new do |t| t.fail_on_error = true t.verbose = false t.source_files = 'lib/**/*.rb' end rescue LoadError puts "Reek (or a dependency) not available. Install it with: gem install reek" end #===--- Jeweler begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "test_env" gem.summary = %Q{My own personal test environment} gem.description = %Q{My own personal test environment} gem.email = "c00lryguy@gmail.com" gem.homepage = "http://github.com/c00lryguy/test_env" gem.authors = ["Ryan Lewis"] # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end