Sha256: 45626579cdf354ad943b19975c63119d63f85e14a1868d1e3c05fc3a4677250c

Contents?: true

Size: 745 Bytes

Versions: 15

Compression:

Stored size: 745 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

desc 'Run all specs'
task :spec do
  ENV['YNAB_CONVERT_ENV'] = 'test'

  RSpec::Core::RakeTask.new(:spec) do |t|
    t.pattern = Dir.glob('spec/**/*_spec.rb')
    t.rspec_opts = '--format documentation'
  end
end

desc 'Run all tests (synonym for spec)'
task :test do
  Rake::Task[:spec].invoke
end

namespace 'spec' do
  desc 'Enable debug logging'
  task :debug do
    ENV['YNAB_CONVERT_DEBUG'] = 'true'

    Rake::Task[:spec].invoke
  end
end

desc 'Check code format'
RuboCop::RakeTask.new

desc 'Run tests and check code format'
task :ci do
  Rake::Task[:spec].invoke
  Rake::Task[:rubocop].invoke
end

task default: :ci

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ynab_convert-2.0.6 Rakefile
ynab_convert-2.0.5 Rakefile
ynab_convert-2.0.4 Rakefile
ynab_convert-2.0.3 Rakefile
ynab_convert-2.0.1 Rakefile
ynab_convert-2.0.0 Rakefile
ynab_convert-1.0.8 Rakefile
ynab_convert-1.0.7 Rakefile
ynab_convert-1.0.6 Rakefile
ynab_convert-1.0.5 Rakefile
ynab_convert-1.0.4 Rakefile
ynab_convert-1.0.3 Rakefile
ynab_convert-1.0.2 Rakefile
ynab_convert-1.0.1 Rakefile
ynab_convert-0.1.0.pre Rakefile