Skip to content

Commit

Permalink
Merge pull request #53 from amatsuda/exclude_specs_from_gem_package
Browse files Browse the repository at this point in the history
Exclude spec files from gem package
  • Loading branch information
pirj authored Aug 4, 2024
2 parents d6977e0 + 7e17430 commit 2c6ef81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rspec-collection_matchers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Gem::Specification.new do |spec|
'source_code_uri' => 'https://github.com/rspec/rspec-collection_matchers',
}

spec.files = `git ls-files`.split($/)
spec.files = `git ls-files -- lib/*`.split("\n")
spec.files += %w[README.md LICENSE.txt Changelog.md]
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(spec|features)/})
spec.require_paths = ["lib"]
Expand Down

0 comments on commit 2c6ef81

Please sign in to comment.