Skip to content

Commit

Permalink
Don't package test files with gem
Browse files Browse the repository at this point in the history
  • Loading branch information
yujinakayama committed Dec 13, 2014
1 parent bdf5a7f commit f849f4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Development

* Exclude spec files from the gem package to lighten the package size.

## v3.0.0

* Check whether rspec-rails is used in the target project via `Gemfile.lock` when `-s/--skip-dynamic-analysis` option is specified. ([#88](https://github.com/yujinakayama/transpec/issues/88))
Expand Down
3 changes: 1 addition & 2 deletions transpec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ Gem::Specification.new do |spec|
spec.homepage = 'http://yujinakayama.me/transpec/'
spec.license = 'MIT'

spec.files = `git ls-files`.split($/)
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
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']

spec.required_ruby_version = '>= 1.9.3'
Expand Down

0 comments on commit f849f4c

Please sign in to comment.