Rakefile in plutus-0.5.2 vs Rakefile in plutus-0.7.0

- old
+ new

@@ -1,24 +1,11 @@ -require 'rake' -require 'yard' +require 'bundler/setup' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "plutus" - gem.summary = "A Plugin providing a Double Entry Accounting Engine for Rails" - gem.description = "The plutus plugin provides a complete double entry accounting system for use in any Ruby on Rails application. The plugin follows general Double Entry Bookkeeping practices. All calculations are done using BigDecimal in order to prevent floating point rounding errors. The plugin requires a decimal type on your database as well." - gem.email = "mbulat@crazydogsoftware.com" - gem.homepage = "http://github.com/mbulat/Plutus" - gem.authors = ["Michael Bulat"] - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end +require 'rspec/core/rake_task' -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" +desc "run specs" +RSpec::Core::RakeTask.new do |t| + t.rspec_opts = ["-c", "-f d", "-r ./spec/spec_helper.rb"] + t.pattern = 'spec/**/*_spec.rb' end -desc 'Generate documentation for the plutus plugin.' -YARD::Rake::YardocTask.new do |t| - t.files = ['lib/**/*.rb', 'app/**/*.rb'] # optional - t.options = [] # optional -end +task :default => :spec