Sha256: 9595599d83b05e8d8630ea57aa0ff0c46b08ca1f2c00dc1c5b174a28c8877ec7

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

# frozen_string_literal: true
require 'rake/testtask'

task default: :spec

desc 'Run specs'
Rake::TestTask.new(name=:spec) do |t|
  t.pattern = 'spec/*_spec.rb'
end

# desc 'run tests'
# task :spec do
#   sh 'ruby spec/airbnbapi_spec.rb'
#   sh 'ruby spec/googledistanceapi_spec.rb'
#
# end

desc 'delete cassette fixtures'
task :wipe do
  sh 'rm spec/fixtures/cassettes/*.yml' do |ok, _|
    puts(ok ? 'Cassettes deleted' : 'No casseettes found')
  end
end

namespace :quality do
  desc 'run all quality checks'
  task all: [:rubocop, :flog, :flay]

  task :flog do
    sh 'flog lib/'
  end

  task :flay do
    sh 'flay lib/'
  end

  task :rubocop do
    sh 'rubocop'
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
VIAJERO-0.1.74 Rakefile
VIAJERO-0.1.73 Rakefile
Time_Traveler-0.1.72 Rakefile
Time_Traveler-0.1.71 Rakefile
Time_Traveler-0.1.70 Rakefile