Skip to content

Commit

Permalink
Merge pull request #25 from r7kamura/gemspec-files
Browse files Browse the repository at this point in the history
Reduce more files from gem package
  • Loading branch information
r7kamura authored Aug 2, 2024
2 parents ca3cf84 + d101500 commit 9d7f263
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixed

- Reduce some files from gem package.

## 0.5.0 - 2024-03-28

### Added
Expand Down
9 changes: 8 additions & 1 deletion rspec-request_describer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/r7kamura/rspec-request_describer'
spec.license = 'MIT'

spec.files = `git ls-files -z`.split("\x0").grep_v(%r{^spec/})
gemspec = File.basename(__FILE__)
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
ls.readlines("\x0", chomp: true).reject do |f|
(f == gemspec) ||
f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])

Check warning on line 18 in rspec-request_describer.gemspec

View workflow job for this annotation

GitHub Actions / rubocop / rubocop

Lint/UnneededSplatExpansion: Pass array contents as separate arguments.
end
end

spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
Expand Down

0 comments on commit 9d7f263

Please sign in to comment.