Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 49 lines (34 sloc) 0.866 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
require 'rubygems'

task :default => :test


### MACRUBY BONUSES

if RUBY_ENGINE == 'macruby'
  require 'rake/compiletask'
  Rake::CompileTask.new
end


### GEM STUFF

require 'rubygems/package_task'
spec = Gem::Specification.load 'jiraSOAP.gemspec'
Gem::PackageTask.new(spec) { }

desc 'Build the gem and install it'
task :install => :gem do
  require 'rubygems/dependency_installer'
  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
Something went wrong with that request. Please try again.