-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
35 lines (28 loc) · 1.12 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
#!/usr/bin/env ruby
$:.unshift('lib')
require 'redmine_plugin_support'
require 'redmine_chilli_pdf'
require 'tasks/contributor_tasks'
RedminePluginSupport::Base.setup do |plugin|
plugin.project_name = 'redmine_chilli_pdf'
plugin.default_task = [:test]
plugin.tasks = [:db, :doc, :release, :clean, :test]
plugin.redmine_root = File.expand_path(File.dirname(__FILE__) + '/../../../')
end
Dir["lib/tasks/**/*.rake"].sort.each { |ext| load ext }
task :default => [:test]
begin
require 'hoe'
Hoe.plugin :git
$hoe = Hoe.spec('redmine_chilli_pdf') do
self.readme_file = 'README.md'
self.version = RedmineChilliPDF::VERSION
self.summary = "RedmineChilliProject (/Redmine) plugin which implements/enhances PDF-export functionality using the Webkit rendering engine."
self.extra_deps = [['wicked_pdf', '~> 0.7'], ['nokogiri', '~> 1.4']]
self.extra_dev_deps = []
end
ContributorTasks.new
rescue LoadError
puts "You are missing the 'hoe' gem, which is used for gem packaging & release management."
puts "Install using 'gem install hoe' if you need packaging & release rake tasks."
end