Skip to content

Commit

Permalink
Remove lint files from gem
Browse files Browse the repository at this point in the history
(I lumped all lib/* files together - the list was longer)

Before
------

[".codeclimate.yml",
 ".github/workflows/ci.yaml",
 ".gitignore",
 ".rspec",
 ".rubocop.yml",
 ".rubocop_cc.yml",
 ".rubocop_local.yml",
 ".whitesource",
 ".yamllint",
 "CHANGELOG.md",
 "Gemfile",
 "LICENSE.txt",
 "README.md",
 "Rakefile",
 "activerecord-virtual_attributes.gemspec",
 "bin/console",
 "bin/setup",
 "init.rb",
 "lib/*",
 "renovate.json"]

After
-----

["CHANGELOG.md",
 "Gemfile",
 "LICENSE.txt",
 "README.md",
 "Rakefile",
 "activerecord-virtual_attributes.gemspec",
 "init.rb",
 "lib/*"]
  • Loading branch information
kbrock committed Aug 7, 2024
1 parent d9098b6 commit 61b401f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord-virtual_attributes.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin)/}) || f.match(/^(\.)|renovate.json/) }
end

spec.require_paths = ["lib"]
Expand Down

0 comments on commit 61b401f

Please sign in to comment.