Rakefile in enumlogic-1.0.3 vs Rakefile in enumlogic-1.0.4

- old
+ new

@@ -1,36 +1,25 @@ require 'rubygems' -require 'rake' +require 'bundler' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "enumlogic" - gem.summary = "Adds enumerations to your models" - gem.description = "Adds enumerations to your models" - gem.email = "bjohnson@binarylogic.com" - gem.homepage = "http://github.com/binarylogic/enumlogic" - gem.authors = ["binarylogic"] - gem.rubyforge_project = "enumlogic" - gem.add_development_dependency "rspec" - end - Jeweler::GemcutterTasks.new - Jeweler::RubyforgeTasks.new -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" -end +Bundler.setup require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| spec.libs << 'lib' << 'spec' spec.spec_files = FileList['spec/**/*_spec.rb'] end -Spec::Rake::SpecTask.new(:rcov) do |spec| - spec.libs << 'lib' << 'spec' - spec.pattern = 'spec/**/*_spec.rb' - spec.rcov = true +begin + require 'rcov/rcovtask' + Rcov::RcovTask.new do |test| + test.libs << 'test' + test.pattern = 'test/**/*_test.rb' + test.verbose = true + end +rescue LoadError + task :rcov do + abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" + end end -task :spec => :check_dependencies - -task :default => :spec \ No newline at end of file +task :default => :test