Sha256: 351686cb5074131d20d48d429d65e8dc9cee0726c62be46989aa6a52ddf4e8a7

Contents?: true

Size: 1.55 KB

Versions: 6

Compression:

Stored size: 1.55 KB

Contents

# encoding: utf-8

require 'rubygems'

begin
  require 'bundler'
rescue LoadError => e
  warn e.message
  warn "Run `gem install bundler` to install Bundler."
  exit -1
end

begin
  Bundler.setup(:development)
rescue Bundler::BundlerError => e
  warn e.message
  warn "Run `bundle install` to install missing gems."
  exit e.status_code
end

require 'rake'

desc "Removes the tmp and pkg directories"
task :clean do
  pwd = Dir.pwd.to_s
  FileUtils.rm_rf Dir["#{pwd}/tmp"]
  FileUtils.rm_rf Dir["#{pwd}/pkg"]
end

desc "Copies resource files to the tmp directory (for testing purposes)"
task :prepare do
  pwd = Dir.pwd.to_s
  FileUtils.cp_r("#{pwd}/resources/.", "#{pwd}/tmp")
end

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new


Rake::Task[:spec].enhance [:clean, :prepare]

task :test    => :spec
task :default => :spec

require 'yard'
YARD::Rake::YardocTask.new
task :doc => :yard

desc "Adds copyright headers to source/spec files."
task :headers do
  require 'copyright_header'

  args = {
      :license => 'MIT',
      :copyright_software => 'timewizard',
      :copyright_software_description => 'A Ruby library for manipulating iOS and Android version numbers.',
      :copyright_holders => ['Richard Harrah <topplethenunnery@gmail.com>'],
      :copyright_years => ['2015'],
      :add_path => 'lib/:spec/',
      :output_dir => '.'
  }

  command_line = CopyrightHeader::CommandLine.new args
  command_line.execute
end

task :abide => :build do
  require 'abide'

  Bundler.clean_exec 'lebascii'
end

require "bundler/gem_tasks"

Rake::Task[:build].enhance [:clean]

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
timewizard-0.3.0.pre.alpha.pre.53 Rakefile
timewizard-0.3.0.pre.alpha.pre.52 Rakefile
timewizard-0.3.0.pre.alpha.pre.51 Rakefile
timewizard-0.3.0.pre.alpha.pre.50 Rakefile
timewizard-0.3.0.pre.alpha.pre.49 Rakefile
timewizard-0.3.0.pre.alpha.pre.48 Rakefile