forked from indirect/rails-footnotes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
executable file
·49 lines (44 loc) · 1.57 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "rails-footnotes"
s.version = "3.6.6"
s.rubyforge_project = "rails-footnotes"
s.summary = "Every Rails page has footnotes that gives information about your application and links back to your editor."
s.email = "jose@plataformatec.com.br"
s.homepage = "http://github.com/josevalim/rails-footnotes"
s.description = "Every Rails page has footnotes that gives information about your application and links back to your editor."
s.authors = ['José Valim']
s.files = FileList["[A-Z]*", "{lib}/**/*"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc 'Run tests for Footnotes.'
Rake::TestTask.new(:test) do |t|
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for Footnotes.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Footnotes'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('MIT-LICENSE')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'metric_fu'
MetricFu::Configuration.run do |config|
#skipping: churn, :stats
config.metrics = [:saikuro, :flog, :flay, :reek, :roodi, :rcov]
# config.graphs = [:flog, :flay, :reek, :roodi, :rcov]
config.rcov[:rcov_opts] << "-Itest"
end
rescue LoadError
end