From 97c08e1138dc2f9b99d17f5622d2ad2f9f6d725c Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 11 Dec 2018 20:27:59 -0800 Subject: Only ship the required library files in the gem artifact Don't ship the test and dev files in the gem artifact. Signed-off-by: Tim Smith --- .expeditor/config.yml | 30 ++++++++++++++---------------- .github/CODEOWNERS | 5 ++++- mixlib-log.gemspec | 6 +++--- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 8fc137b..fb57921 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -1,43 +1,41 @@ -# Documentation available at http://expeditor-docs.es.chef.io/ - +# Documentation available at https://expeditor.chef.io/docs/getting-started/ +--- # Slack channel in Chef Software slack to send notifications about build failures, etc slack: notify_channel: chef-notify +# This publish is triggered by the `built_in:publish_rubygems` artifact_action. rubygems: - mixlib-log github: + # This deletes the GitHub PR branch after successfully merged into the release branch + delete_branch_on_merge: true # The tag format to use (e.g. v1.0.0) version_tag_format: "v{{version}}" - # The Github Team primarily responsible for handling incoming Pull Requests. - maintainer_group: chef/client-maintainers - # Which Github branches to build gems from, and what versions - # (as determined by the value in the VERSION file) those branches are responsible - # for building. - release_branch: - - master: - version_constraint: 2.* + # allow bumping the minor release via label + minor_bump_labels: + - "Expeditor: Bump Minor Version" -promote: - action: - - built_in:publish_rubygems - - built_in:rollover_changelog +changelog: + rollup_header: Changes not yet released to rubygems.org # These actions are taken, in order they are specified, anytime a Pull Request is merged. merge_actions: - built_in:bump_version: ignore_labels: - - "Version: Skip Bump" - "Expeditor: Skip Version Bump" - "Expeditor: Skip All" - bash:.expeditor/update_version.sh: only_if: built_in:bump_version - built_in:update_changelog: ignore_labels: - - "Meta: Exclude From Changelog" - "Expeditor: Exclude From Changelog" - "Expeditor: Skip All" - built_in:build_gem: only_if: built_in:bump_version +promote: + actions: + - built_in:rollover_changelog + - built_in:publish_rubygems diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 59c6d93..fee8d42 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,4 @@ -* @chef/client-maintainers +# Order is important. The last matching pattern has the most precedence. + +* @chef/client-maintainers +.expeditor/** @chef/jex-team diff --git a/mixlib-log.gemspec b/mixlib-log.gemspec index fe418eb..bedd1dd 100644 --- a/mixlib-log.gemspec +++ b/mixlib-log.gemspec @@ -6,10 +6,10 @@ Gem::Specification.new do |gem| gem.version = Mixlib::Log::VERSION gem.summary = "A gem that provides a simple mixin for log functionality" gem.email = "info@chef.io" - gem.homepage = "https://www.chef.io" + gem.homepage = "https://github.com/chef/mixlib-log" gem.license = "Apache-2.0" gem.authors = ["Chef Software, Inc."] - gem.extra_rdoc_files = ["README.md", "LICENSE", "NOTICE"] - gem.files = Dir["lib/**/*"] + Dir["spec/**/*"] + ["Gemfile", "Rakefile", ".gemtest", "mixlib-log.gemspec"] + gem.files = %w{LICENSE} + Dir.glob("lib/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } + gem.require_paths = ['lib'] gem.required_ruby_version = ">= 2.2" end -- cgit v1.2.1 From 34755fab50c56fbc38e96df4e5d8fa50d1ed4284 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 17 Dec 2018 17:17:28 -0800 Subject: Chefstyle fix Signed-off-by: Tim Smith --- mixlib-log.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixlib-log.gemspec b/mixlib-log.gemspec index bedd1dd..13d4fca 100644 --- a/mixlib-log.gemspec +++ b/mixlib-log.gemspec @@ -10,6 +10,6 @@ Gem::Specification.new do |gem| gem.license = "Apache-2.0" gem.authors = ["Chef Software, Inc."] gem.files = %w{LICENSE} + Dir.glob("lib/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } - gem.require_paths = ['lib'] + gem.require_paths = ["lib"] gem.required_ruby_version = ">= 2.2" end -- cgit v1.2.1