Skip to content

Commit

Permalink
Merge pull request #9 from mozilla-it/pdk
Browse files Browse the repository at this point in the history
Add github changelog support, misc enchancements
  • Loading branch information
Ashish Vijayaram authored Sep 16, 2020
2 parents 15791af + 5f7736d commit 5006420
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
spec/spec_helper.rb:
mock_with: ':rspec'
spec_overrides:
- 'RSpec.configure do |c|'
- " c.after(:suite) do"
- " RSpec::Puppet::Coverage.report!"
- " end"
- "end"

Gemfile:
optional:
':development':
- gem: 'github_changelog_generator'
git: 'https://github.com/skywinder/github-changelog-generator'
ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ group :development do
gem "puppet-module-posix-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:ruby]
gem "puppet-module-win-default-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "puppet-module-win-dev-r#{minor_version}", '~> 0.3', require: false, platforms: [:mswin, :mingw, :x64_mingw]
gem "github_changelog_generator", require: false, git: 'https://github.com/skywinder/github-changelog-generator', ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
end

puppet_version = ENV['PUPPET_GEM_VERSION']
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "duosecurity-duo_unix",
"version": "0.3.4",
"author": "Duo Security",
"author": "mozilla-it",
"summary": "Installs, configures, and manages Duo Unix.",
"license": "GPL-2.0",
"source": "https://github.com/mozilla-it/puppet-duo_unix",
Expand Down
10 changes: 9 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
RSpec.configure do |c|
c.mock_with :rspec
end

require 'puppetlabs_spec_helper/module_spec_helper'
require 'rspec-puppet-facts'

Expand Down Expand Up @@ -39,7 +43,6 @@
end
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
c.after(:suite) do
RSpec::Puppet::Coverage.report!
end
end

Expand All @@ -53,3 +56,8 @@ def ensure_module_defined(module_name)
end

# 'spec_overrides' from sync.yml will appear below this line
RSpec.configure do |c|
c.after(:suite) do
RSpec::Puppet::Coverage.report!
end
end

0 comments on commit 5006420

Please sign in to comment.