Slim down bundled gem by excluding test files and docs

This commit is contained in:
Grey Baker 2018-12-01 10:49:55 +00:00
parent 3419a01349
commit 14113ba85b
2 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,7 @@ Breaking changes:
Features: Features:
- [#2327](https://github.com/rails-api/active_model_serializers/pull/2327) Add support for Ruby 2.6 on Travis CI (@wasifhossain) - [#2327](https://github.com/rails-api/active_model_serializers/pull/2327) Add support for Ruby 2.6 on Travis CI (@wasifhossain)
- [#2304](https://github.com/rails-api/active_model_serializers/pull/2304) Slim down bundled gem by excluding test files and docs (@greysteil)
Fixes: Fixes:

View File

@ -15,8 +15,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/rails-api/active_model_serializers' spec.homepage = 'https://github.com/rails-api/active_model_serializers'
spec.license = 'MIT' spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0") spec.files = Dir["CHANGELOG.md", "MIT-LICENSE", "README.md", "lib/**/*"]
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib'] spec.require_paths = ['lib']
spec.executables = [] spec.executables = []