Sha256: 0ee87a73d79e54fa1808a173ecce8b9f0651371a99187c45ef062f50812b16e4

Contents?: true

Size: 1.7 KB

Versions: 1

Compression:

Stored size: 1.7 KB

Contents

require 'rake'
require 'rspec/core/rake_task'
require 'rake/testtask'

$:.unshift File.expand_path('../lib', __FILE__)

require 'acts_as_audited'

desc 'Default: run specs and tests'
task :default => [:spec, :test]

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "acts_as_audited"
    gem.summary = %Q{ActiveRecord extension that logs all changes to your models in an audits table}
    gem.email = "brandon@opensoul.org"
    gem.homepage = "http://github.com/collectiveidea/acts_as_audited"
    gem.authors = ["Brandon Keepers", "Kenneth Kalmer"]
    gem.rdoc_options << '--main' << 'README.rdoc' << '--line-numbers' << '--inline-source'
    gem.version = ActsAsAudited::VERSION

    gem.add_dependency 'activerecord', '3.0.3'
    gem.add_development_dependency "rails", '3.0.3'
    gem.add_development_dependency "rspec-rails", '~> 2.4.0'
    # 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: bundle install"
end

RSpec::Core::RakeTask.new do |t|
  t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
  t.pattern = 'spec/*_spec.rb'
end

task :spec => :check_dependencies

RSpec::Core::RakeTask.new(:rcov) do |t|
  t.rcov = true
  t.rcov_opts =  %q[--exclude "spec"]
end

desc 'Test the acts_as_audited generators'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/*_test.rb'
  t.verbose = true
end

task :test => :check_dependencies

begin
  require 'yard'
  YARD::Rake::YardocTask.new
rescue LoadError
  puts "YARD (or a dependency) not available. Install it with: bundle install"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_audited-2.0.0.rc5 Rakefile