Sha256: 8e1f68e48da5f69699703b2b3b50373cc628e5819c4a42f8e869fd35280cad49

Contents?: true

Size: 1019 Bytes

Versions: 1

Compression:

Stored size: 1019 Bytes

Contents

require 'rake'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
require File.expand_path( File.dirname(__FILE__) + "/lib/buildr/jaxb_xjc/version")

gem_spec = Gem::Specification.load(File.expand_path('buildr-jaxb-xjc.gemspec', File.dirname(__FILE__)))

Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
end

task :default => :spec

desc "Generate RDoc documentation in rdoc/"
Rake::RDocTask.new :rdoc do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = gem_spec.name
  rdoc.options = gem_spec.rdoc_options.clone
  rdoc.rdoc_files.include('lib/**/*.rb')
  rdoc.rdoc_files.include gem_spec.extra_rdoc_files
end

Rake::GemPackageTask.new(gem_spec).define

namespace :deploy do
  desc "Tag release with current version"
  task :tag do
    system("git tag -a #{Buildr::JaxbXjc::Version::STRING} -m 'Released #{Buildr::JaxbXjc::Version::STRING}'")
    puts "Tagged locally.  `git push --tags` if you're sure."
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buildr-jaxb-xjc-0.0.1 Rakefile