-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
55 lines (44 loc) · 1.52 KB
/
Rakefile
File metadata and controls
55 lines (44 loc) · 1.52 KB
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
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "assembla"
gemspec.summary = "Command line access to assembla"
gemspec.description = "This gem provides access to assembla tickets. It supports listing, creating and modyfing functionality"
gemspec.email = "imoryc@gmail.com"
gemspec.homepage = "http://github.com/ignacy/assembla"
gemspec.authors = ["Ignacy Moryc"]
gemspec.add_dependency('hpricot', '>= 0.8.1')
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler"
end
############################
require 'spec/rake/spectask'
desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
t.spec_files = FileList['spec/*_spec.rb']
end
desc "Print specdocs"
Spec::Rake::SpecTask.new(:doc) do |t|
t.spec_opts = ["--format", "specdoc", "--dry-run"]
t.spec_files = FileList['spec/*_spec.rb']
end
desc "Run all examples with RCov"
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = FileList['spec/*_spec.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'examples']
end
task :default => :spec
############################
require 'rake/rdoctask'
Rake::RDocTask.new do |t|
t.rdoc_dir = 'rdoc'
t.title = "assembla, command line assembla.com client"
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
t.options << '--charset' << 'utf-8'
t.rdoc_files.include('README.textile')
t.rdoc_files.include('lib/assembla.rb')
end