Skip to content

Commit 7840cee

Browse files
committed
(maint) apply rubocop fixes
oops!
1 parent 049bedc commit 7840cee

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
44

5+
56
## [v0.2.0](https://github.com/puppetlabs/puppet-modulebuilder/tree/v0.2.0) (2020-04-30)
67

78
[Full Changelog](https://github.com/puppetlabs/puppet-modulebuilder/compare/v0.1.0...v0.2.0)

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ group :development do
1313
gem 'rubocop-rspec', '~> 1.38'
1414

1515
gem 'codecov', '~> 0.1'
16+
gem 'github_changelog_generator', '~> 1.15', require: false
1617
gem 'simplecov', '~> 0.18'
1718
gem 'simplecov-console', '~> 0.6'
18-
gem 'github_changelog_generator', '~> 1.15', require: false
1919
end
2020

2121
if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.5.0')

Rakefile

+10-6
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,23 @@ end
2525

2626
task default: [:spec, :acceptance]
2727

28-
2928
if Bundler.rubygems.find_name('github_changelog_generator').any?
3029
require 'github_changelog_generator/task'
3130
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
32-
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
33-
config.user = "puppetlabs"
34-
config.project = "puppet-modulebuilder"
31+
config.user = 'puppetlabs'
32+
config.project = 'puppet-modulebuilder'
3533
require 'puppet/modulebuilder/version'
3634
config.future_release = "v#{Puppet::Modulebuilder::VERSION}"
3735
config.exclude_labels = ['maintenance']
38-
config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."
36+
config.header = <<-HEADER
37+
# Change log
38+
39+
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
40+
HEADER
41+
.gsub(%r{^ *}, '')
42+
3943
config.add_pr_wo_labels = true
4044
config.issues = false
41-
config.merge_prefix = "### UNCATEGORIZED PRS; GO LABEL THEM"
45+
config.merge_prefix = '### UNCATEGORIZED PRS; GO LABEL THEM'
4246
end
4347
end

0 commit comments

Comments
 (0)