From 5605afa19d54c9ff5450a0186a29c95c666f6503 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 21 Jun 2017 12:32:34 -0700 Subject: allow github-changelog-generator to be optional Signed-off-by: Lamont Granquist --- Rakefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 216cae1..67fe352 100644 --- a/Rakefile +++ b/Rakefile @@ -4,17 +4,21 @@ require "rspec/core/rake_task" require "rubygems/package_task" require "rake/extensiontask" require "ffi_yajl/version" -require "github_changelog_generator/task" Dir[File.expand_path("../*gemspec", __FILE__)].reverse_each do |gemspec_path| gemspec = eval(IO.read(gemspec_path)) Gem::PackageTask.new(gemspec).define end -GitHubChangelogGenerator::RakeTask.new :changelog do |config| - config.issues = false - config.since_tag = "1.0.1" - config.exclude_labels = %w{duplicate question invalid wontfix changelog_skip} +begin + require "github_changelog_generator/task" + GitHubChangelogGenerator::RakeTask.new :changelog do |config| + config.issues = false + config.since_tag = "1.0.1" + config.exclude_labels = %w{duplicate question invalid wontfix changelog_skip} + end +rescue LoadError + puts "no github-changelog-generator" end desc "Build it and ship it" -- cgit v1.2.1