Sha256: 52642c6379d9786ef0ccb78e79ab8c0e548aa0f9f1346cab48d57d066357afba

Contents?: true

Size: 1.5 KB

Versions: 2

Compression:

Stored size: 1.5 KB

Contents

require 'rake'
require 'rubygems'
require 'rake/rdoctask'
require 'spec/rake/spectask'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name        = "jira4r"
    s.summary     = "Ruby library for controlling JIRA"
    s.email       = "remi@remitaylor.com"
    s.homepage    = "http://github.com/remi/jira4r"
    s.description = "Ruby library for controlling JIRA"
    s.authors     = %w( bwalding remi )
    s.files       = FileList["[A-Z]*", "{lib,spec,examples,rails_generators}/**/*"] 
    # s.executables = "neato" 
    # s.add_dependency 'person-project' 
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Spec::Rake::SpecTask.new do |t|
  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
end

Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'jira4r'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc 'Confirm that gemspec is $SAFE'
task :safe do
  require 'yaml'
  require 'rubygems/specification'
  data = File.read('jira4r.gemspec')
  spec = nil
  if data !~ %r{!ruby/object:Gem::Specification}
    Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
  else
    spec = YAML.load(data)
  end
  spec.validate
  puts spec
  puts "OK"
end

task :default => :spec

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
remi-jira4r-1.0.0 Rakefile
mort666-jira4r-1.0.2 Rakefile