Sha256: d50f117bf43ba42110226b4591f7f2a945577bff0f7447bf015ca478a8f7cbd1

Contents?: true

Size: 860 Bytes

Versions: 4

Compression:

Stored size: 860 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rdoc/task'
require 'rubocop/rake_task'

RuboCop::RakeTask.new

desc 'Default Task'
task default: %i[test rubocop]

namespace :ci do
  task :build do
    puts 'Creating tests/output directory...'
    FileUtils.mkdir_p 'tests/output'
    Rake::Task[:test].invoke
  end
end

# Run the unit tests
desc 'Run all unit tests'
Rake::TestTask.new('test') do |t|
  t.libs << 'lib'
  t.pattern = 'tests/*_test.rb'
  t.verbose = true
end

# Genereate the RDoc documentation
desc 'Create documentation'
Rake::RDocTask.new('doc') do |rdoc|
  rdoc.title = 'Ruby GPX API'
  rdoc.rdoc_dir = 'html'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc 'open an irb session preloaded with this gem'
task :console do
  sh 'irb -r pp -r ./lib/gpx.rb'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gpx-1.2.0 Rakefile
gpx-1.1.2 Rakefile
gpx-1.1.1 Rakefile
gpx-1.1.0 Rakefile