Rakefile in mixlib-versioning-1.1.0 vs Rakefile in mixlib-versioning-1.2.1
- old
+ new
@@ -1,18 +1,32 @@
-require 'bundler/gem_tasks'
+require "bundler/gem_tasks"
-require 'rspec/core/rake_task'
+require "rspec/core/rake_task"
+require "mixlib/versioning/version"
+
RSpec::Core::RakeTask.new(:unit)
-require 'rubocop/rake_task'
-desc 'Run Ruby style checks'
+require "chefstyle"
+require "rubocop/rake_task"
+desc "Run Ruby style checks"
RuboCop::RakeTask.new(:style)
-require 'yard'
+require "yard"
YARD::Rake::YardocTask.new(:doc)
+begin
+ require "github_changelog_generator/task"
+
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
+ config.issues = false
+ config.future_release = Mixlib::Versioning::VERSION
+ end
+rescue LoadError
+ puts "github_changelog_generator is not available. gem install github_changelog_generator to generate changelogs"
+end
+
namespace :travis do
- desc 'Run tests on Travis'
+ desc "Run tests on Travis"
task ci: [:style, :unit]
end
task default: [:style, :unit]