Sha256: a1fee6f5dffccad0d940bdec91661eda2de7ef28c47d82909378d26943571f01

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

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

desc 'Generate documentation for the userstamp plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Userstamp'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README', 'CHANGELOG', 'LICENSE')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

require 'echoe'
# update:
# rake build_gemspec
# rake install (always test that it builds, before uploading to github)
Echoe.new('userstamp', '2.0.0') do |p|
  p.description    = "This Rails plugin extends ActiveRecord::Base to add automatic updating of created_by and updated_by attributes of your models in much the same way that the ActiveRecord::Timestamp module updates created_(at/on) and updated_(at/on) attributes."
  p.url            = "http://github.com/delynn/userstamp"
  p.author         = "DeLynn Berry"
  p.email          = "delynn@gmail.com"
  p.ignore_pattern = ["tmp/*", "script/*", "nbproject/*", "rdoc/*"]
  p.dependencies   = ['actionpack','activerecord','activesupport']
  p.development_dependencies = ['echoe','activerecord','activesupport','actionpack']
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grosser-userstamp-2.0.0 Rakefile