Skip to content

Commit

Permalink
Simplify spec.files in .gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
azimux committed Jan 11, 2024
1 parent 3d61bbe commit addc118
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions rubocop-rules.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,11 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = ">= 3.2"

spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(File.expand_path(f) == __FILE__) ||
f.start_with?(*%w[
.github
.gitignore
.ruby-version
CHANGELOG.md
Gemfile
Gemfile.lock
Rakefile
README.md
])
end
end
spec.files = spec.files = Dir[
"rules/**/*.yml",
".rubocop.yml",
"LICENSE.txt"
]

spec.add_dependency "rubocop"
spec.add_dependency "rubocop-rspec"
Expand Down

0 comments on commit addc118

Please sign in to comment.