-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
48 lines (39 loc) · 1.01 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
# Look in the tasks/setup.rb file for the various options that can be
# configured in this Rakefile. The .rake files in the tasks directory
# are where the options are used.
require 'rake/testtask'
require 'rake/rdoctask'
require 'rcov/rcovtask'
begin
require 'bones'
Bones.setup
rescue LoadError
begin
load 'tasks/setup.rb'
rescue LoadError
raise RuntimeError, '### please install the "bones" gem ###'
end
end
ensure_in_path 'lib'
require 'newsberry'
task :default => :test
desc 'Test the newsberry plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Performs code coverage on the newsberry plugin.'
Rcov::RcovTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/*_test.rb']
t.verbose = true
end
PROJ.name = 'newsberry'
PROJ.authors = 'Petyo Ivanov'
PROJ.email = '[email protected]'
PROJ.url = 'http://newsberry.com'
PROJ.version = Newsberry::VERSION
PROJ.rubyforge.name = 'newsberry'
PROJ.spec.opts << '--color'
# EOF