forked from gtarnovan/simple_audit
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
56 lines (50 loc) · 1.58 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the simple_audit plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the simple_audit plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'SimpleAudit'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
#
# Gemify
#
begin
require 'jeweler'
test_files = FileList['test/**/*'].to_a
gem_files = FileList[
'[a-zA-Z]*',
'lib/**/*',
'generators/**/*',
'rails/**/*',
].to_a + test_files
Jeweler::Tasks.new do |gemspec|
gemspec.name = "simple_audit"
gemspec.summary = "Simple auditing solution for ActiveRecord models"
gemspec.description = <<-EOD
Provides a straightforward way for auditing changes on active record models, especially for composite entities.
Also provides helper methods for easily rendering an audit trail in Ruby on Rails views.
EOD
gemspec.email = ["[email protected]", "[email protected]"]
gemspec.homepage = "http://github.com/gtarnovan/simple_audit"
gemspec.authors = ["Gabriel Tarnovan", "Mihai Tarnovan"]
gemspec.version = "0.2.0"
gemspec.files = gem_files
gemspec.test_files = test_files
gemspec.rubyforge_project = 'simple_audit'
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end