forked from Marketcircle/jiraSOAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
57 lines (41 loc) · 1.06 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
50
51
52
53
54
55
56
57
require 'rubygems'
task :default => :test
### MACRUBY BONUSES
if RUBY_ENGINE == 'macruby' and MACRUBY_REVISION.match(/^git commit/)
require 'rake/compiletask'
Rake::CompileTask.new do |t|
t.files = FileList["lib/**/*.rb"]
t.verbose = true
end
desc 'Clean MacRuby binaries'
task :clean do
FileList["lib/**/*.rbo"].each { |bin| rm bin }
end
end
### GEM STUFF
require 'rake/gempackagetask'
spec = Gem::Specification.load 'jiraSOAP.gemspec'
Rake::GemPackageTask.new(spec) { }
require 'rubygems/dependency_installer'
desc 'Build the gem and install it'
task :install => :gem do
Gem::DependencyInstaller.new.install "pkg/#{spec.file_name}"
end
### TESTING
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.ruby_opts = ['-rhelper.rb']
t.verbose = true
end
desc 'Startup irb with jiraSOAP loaded'
task :console do
sh 'irb -Ilib -rubygems -rjiraSOAP'
end
### DOCUMENTATION
begin
require 'yard'
YARD::Rake::YardocTask.new
rescue LoadError => e
warn 'yard not available. Install it with: gem install yard'
end