Skip to content

Commit

Permalink
Drop specs when building gem
Browse files Browse the repository at this point in the history
Previously our key and cert test fixtures were shipped in the gem, which
triggered security scanners. This deletes the `spec` directory from each
platform specific gem and reduces the size of each gem by about 1MB. To
reproduce use:

    bundle exec rake package:gem

For reasons described in PA-5400 we don't currently use `gem build .gemspec`
to build puppet gems.

No changes are needed to the .gemspec or Gemfile, because they both
include the content from project_data.yaml.
  • Loading branch information
joshcooper committed Feb 9, 2024
1 parent a3e77e7 commit 447e1ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/project_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ summary: 'Puppet, an automated configuration management tool'
description: 'Puppet, an automated configuration management tool'
version_file: 'lib/puppet/version.rb'
# files and gem_files are space separated lists
files: '[A-Z]* install.rb bin lib conf man examples ext tasks spec locales'
# Make sure these gem requirements are in sync with the gempspec and Gemfile
gem_files: '[A-Z]* install.rb bin lib conf man examples ext tasks spec locales'
gem_test_files: 'spec/**/*'
files: '[A-Z]* install.rb bin lib conf man examples ext tasks locales'
# Make sure these gem requirements are in sync with the gemspec and Gemfile
gem_files: '[A-Z]* install.rb bin lib conf man examples ext tasks locales'
gem_test_files:
gem_executables: 'puppet'
gem_default_executables: 'puppet'
gem_license: 'Apache-2.0'
Expand Down

0 comments on commit 447e1ae

Please sign in to comment.