Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Merge ab14adf into b13de90
Browse files Browse the repository at this point in the history
  • Loading branch information
oanatmaria committed Apr 7, 2020
2 parents b13de90 + ab14adf commit 5e37c3e
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ require:
- rubocop-performance
- rubocop-rspec

inherit_mode:
merge:
- Exclude

AllCops:
TargetRubyVersion: '2.3'
Exclude:
- 'Rakefile'
- 'Gemfile'

Documentation:
Enabled: false

Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@


## [4.0.14](https://github.com/puppetlabs/facter-ng/tree/4.0.14) (2020-04-01)

[Full Changelog](https://github.com/puppetlabs/facter-ng/compare/4.0.13...4.0.14)

### Added

- \(FACT-2512\) Handle Raspbian as Debian [\#421](https://github.com/puppetlabs/facter-ng/pull/421) ([mlove-au](https://github.com/mlove-au))
- \(FACT-2231\) Add AIX mountpoints fact [\#398](https://github.com/puppetlabs/facter-ng/pull/398) ([oanatmaria](https://github.com/oanatmaria))
- \(FACT-2471\) Add Linux partitions fact [\#393](https://github.com/puppetlabs/facter-ng/pull/393) ([oanatmaria](https://github.com/oanatmaria))
- Debugger tool [\#391](https://github.com/puppetlabs/facter-ng/pull/391) ([sebastian-miclea](https://github.com/sebastian-miclea))
- \(FACT-2435\) Expose :expand as an option to execute command [\#342](https://github.com/puppetlabs/facter-ng/pull/342) ([florindragos](https://github.com/florindragos))

### Fixed

- \(FACT-2511\) Remove file logger [\#425](https://github.com/puppetlabs/facter-ng/pull/425) ([IrimieBogdan](https://github.com/IrimieBogdan))
- \(FACT-2498\) Internal fact loader should only load facts once [\#420](https://github.com/puppetlabs/facter-ng/pull/420) ([IrimieBogdan](https://github.com/IrimieBogdan))
- Avoid exceptions for zone facts on FreeBSD [\#412](https://github.com/puppetlabs/facter-ng/pull/412) ([smortex](https://github.com/smortex))
- \(FACT-2475\) Fix os.release on Debian [\#410](https://github.com/puppetlabs/facter-ng/pull/410) ([oanatmaria](https://github.com/oanatmaria))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org'

gemspec name: 'facter'

group(:release, optional: true) do
gem 'github_changelog_generator' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0')
end

local_gemfile = File.expand_path('Gemfile.local', __dir__)
eval_gemfile(local_gemfile) if File.exist?(local_gemfile)
55 changes: 55 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,58 @@ RSpec::Core::RakeTask.new(:spec)
Dir.glob(File.join('tasks/**/*.rake')).each { |file| load file }

task default: :spec

def retrieve_from_keyboard
puts "Please provide the next release tag:\n"
next_version = $stdin.gets.chomp
/[0-9]+\.[0-9]+\.[0-9]+/.match?(next_version) ? next_version : raise(ArgumentError, " The string that you entered is invalid!")
end


if Bundler.rubygems.find_name('github_changelog_generator').any?
require 'github_changelog_generator/task'

GitHubChangelogGenerator::RakeTask.new :changelog do |config|

raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include?('changelog') && ENV['CHANGELOG_GITHUB_TOKEN'].nil?
config.user = 'puppetlabs'
config.project = 'facter-ng'
config.since_tag = File.read('VERSION').strip
config.future_release = retrieve_from_keyboard
config.exclude_labels = ['maintenance']
config.add_pr_wo_labels = true
config.issues = false
config.max_issues = 100
config.header = ''
config.base = 'CHANGELOG.md'
config.merge_prefix = '### UNCATEGORIZED PRS; GO LABEL THEM'
config.configure_sections = {
"Changed": {
"prefix": '### Changed',
"labels": ['backwards-incompatible']
},
"Added": {
"prefix": '### Added',
"labels": ['feature']
},
"Fixed": {
"prefix": '### Fixed',
"labels": ['bugfix']
}
}
end
else
desc 'Generate a Changelog from GitHub'
task :changelog do
raise <<EOM
The changelog tasks depends on github_changelog_generator gem.
Please install github_changelog_generator:
---
Gemfile:
optional:
':release':
- gem: 'github_changelog_generator'
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
EOM
end
end

0 comments on commit 5e37c3e

Please sign in to comment.