Skip to content

Commit

Permalink
Remove extraneous files from gem distribution (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
jturkel authored Oct 28, 2022
1 parent 561f204 commit 33a7f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# avromatic changelog

## 4.2.0
- Remove unnecessary files from the gem distribution.

## 4.1.1
- Fix eager loading of nested models when using the Zeitwerk classloader with Rails.

Expand Down
2 changes: 1 addition & 1 deletion avromatic.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
raise 'RubyGems 2.0 or newer is required to set allowed_push_host.'
end

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(bin/|lib/|LICENSE.txt)}) }
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
Expand Down

0 comments on commit 33a7f73

Please sign in to comment.