Sha256: 15bd664a6493ac7881729599b6eb23b06ecd7a78c695857d8be0eda06723f042

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require './lib/license_finder/platform'
require 'rspec/core/rake_task'

desc "Run all specs in spec/"
task :spec do
  RSpec::Core::RakeTask.new(:spec) do |t|
    t.fail_on_error = true
    t.pattern = "./spec/**/*_spec.rb"
    t.rspec_opts = %w[--color]
  end
end

desc "Run all specs in features/"
task :features do
  RSpec::Core::RakeTask.new(:features) do |t|
    t.fail_on_error = true
    t.pattern = "./features/**/*_spec.rb"
    opts = %w[--color --format d]
    opts += LicenseFinder::Platform.darwin? ? [] : %w[--tag ~ios]
    t.rspec_opts = opts
  end
end

desc "Check for non-Ruby development dependencies."
task :check_dependencies do
  require './lib/license_finder'
  satisfied = true
  LicenseFinder::PackageManager.package_managers.each do |package_manager|
    satisfied = false unless package_manager.installed?(LicenseFinder::Logger.new(debug:true))
  end
  exit 1 unless satisfied
end

task :spec     => :check_dependencies
task :features => :check_dependencies

task :default => [:spec, :features]

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
license_finder-2.1.2 Rakefile
license_finder-2.1.1 Rakefile
license_finder-2.1.0 Rakefile
license_finder-2.1.0.rc9 Rakefile
license_finder-2.1.0.rc8 Rakefile
license_finder-2.1.0.rc7 Rakefile