Skip to content

Commit

Permalink
Exclude the screenshot files from the built gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jun 15, 2024
1 parent 54bbdc9 commit 4d9fd08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gemspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ metadata:
generated_files:
- man/ronin-app.1

excluded_files:
- screenshots/*.svg

required_ruby_version: ">= 3.1.0"

dependencies:
Expand Down
1 change: 1 addition & 0 deletions ronin-app.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Gem::Specification.new do |gem|
gem.files = `git ls-files`.split($/)
gem.files = glob[gemspec['files']] if gemspec['files']
gem.files += Array(gemspec['generated_files'])
gem.files -= glob[gemspec['excluded_files']] if gemspec['excluded_files']
# exclude test files from the packages gem
gem.files -= glob[gemspec['test_files'] || 'spec/{**/}*']

Expand Down

0 comments on commit 4d9fd08

Please sign in to comment.