Skip to content

Commit d7db365

Browse files
authored
Merge pull request #3 from hortoncd/limit-files-in-build
Remove files from the gem build
2 parents f19688f + 813c3ec commit d7db365

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

github-app-auth.gemspec

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ Gem::Specification.new do |spec|
1616
spec.metadata["source_code_uri"] = "#{spec.homepage}"
1717
spec.metadata["changelog_uri"] = "#{spec.homepage}"
1818

19-
# Specify which files should be added to the gem when it is released.
20-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23-
end
19+
spec.files = Dir.glob("lib/**/*") + %w[CODE_OF_CONDUCT.md LICENSE.txt README.md]
2420
spec.require_paths = ["lib"]
2521
spec.add_dependency "jwt", "~> 2.7"
2622
spec.add_dependency "octokit", "~> 6.1"

0 commit comments

Comments
 (0)