forked from jongilbraith/simple-private-messages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (33 loc) · 1.16 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
begin
require "jeweler"
Jeweler::Tasks.new do |gem|
gem.name = "simple-private-messages"
gem.summary = "Simple private messages plugin for Rails 3"
gem.files = Dir["{lib}/**/*", "{app}/**/*", "{config}/**/*"]
gem.email = "ferdinand.niedermann@gmail.com"
gem.authors = ["Jon Gilbraith","Ferdinand Niedermann"]
gem.homepage="http://github.com/nerdinand/simple-private-messages"
gem.description="Rails plugin that provides basic private messaging functionality between the users of a site."
end
rescue
puts "Jeweler or one of its dependencies is not installed."
end
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the simple_private_messages plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the simple_private_messages plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'SimplePrivateMessages'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end