Sha256: c15560f227bffb2c301220afb447ff7fb4a02e745b81d7405759d0d279dce4be

Contents?: true

Size: 786 Bytes

Versions: 5

Compression:

Stored size: 786 Bytes

Contents

require "bundler"
require "rubygems"
require "rubygems/package_task"
require "rdoc/task"
require "rspec/core/rake_task"
require "mixlib/config/version"

Bundler::GemHelper.install_tasks

task default: [:style, :spec]

desc "Run specs"
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = "spec/**/*_spec.rb"
end

begin
  require "chefstyle"
  require "rubocop/rake_task"
  RuboCop::RakeTask.new(:style) do |task|
    task.options += ["--display-cop-names", "--no-color"]
  end
rescue LoadError
  puts "chefstyle/rubocop is not available.  gem install chefstyle to do style checking."
end

RDoc::Task.new do |rdoc|
  rdoc.rdoc_dir = "rdoc"
  rdoc.title = "mixlib-config #{Mixlib::Config::VERSION}"
  rdoc.rdoc_files.include("README*")
  rdoc.rdoc_files.include("lib/**/*.rb")
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mixlib-config-2.2.13 Rakefile
mixlib-config-2.2.12 Rakefile
mixlib-config-2.2.11 Rakefile
mixlib-config-2.2.10 Rakefile
mixlib-config-2.2.8 Rakefile