Sha256: 4a589ebfff23e6b27108b4681dc481af40ad82dcb71bc9e386c28276ddd3ef35

Contents?: true

Size: 787 Bytes

Versions: 19

Compression:

Stored size: 787 Bytes

Contents

# frozen_string_literal: true
require 'rake/testtask'

namespace :spec do
  desc 'run all tests'
  task all: [:omdb, :skyscanner, :airbnb, :geonames]

  task :omdb do
    sh 'ruby spec/omdb_spec.rb'
  end

  task :skyscanner do
    sh 'ruby spec/skyscanner_spec.rb'
  end

  task :airbnb do
    sh 'ruby spec/airbnb_spec.rb'
  end

  task :geonames do
    sh 'ruby spec/geonames_spec.rb'
  end
end

desc 'delete cassette fixtures'
task :wipe do
  sh 'rm spec/fixtures/cassettes/*.yml' do |ok, _|
    puts(ok ? 'Cassettes deleted' : 'No cassettes 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

19 entries across 19 versions & 1 rubygems

Version Path
movlog-0.4.2 Rakefile
movlog-0.4.1 Rakefile
movlog-0.4.0 Rakefile
movlog-0.3.15 Rakefile
movlog-0.3.14 Rakefile
movlog-0.3.13 Rakefile
movlog-0.3.12 Rakefile
movlog-0.3.11 Rakefile
movlog-0.3.10 Rakefile
movlog-0.3.9 Rakefile
movlog-0.3.8 Rakefile
movlog-0.3.7 Rakefile
movlog-0.3.6 Rakefile
movlog-0.3.5 Rakefile
movlog-0.3.4 Rakefile
movlog-0.3.3 Rakefile
movlog-0.3.2 Rakefile
movlog-0.3.1 Rakefile
movlog-0.3.0 Rakefile