Skip to content

Commit

Permalink
Exclude examples folder from gem build
Browse files Browse the repository at this point in the history
  • Loading branch information
Artheanos committed Mar 22, 2024
1 parent c3abf8b commit 1057463
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mailtrap.gemspec
Expand Up @@ -23,7 +23,9 @@ Gem::Specification.new do |spec|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject do |f|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|github|travis|circleci)|appveyor)})
(f == __FILE__) || f.match(
%r{\A(?:(?:bin|test|spec|features|examples)/|\.(?:git|github|travis|circleci)|appveyor)}
)
end
end
spec.require_paths = ['lib']
Expand Down

0 comments on commit 1057463

Please sign in to comment.