Skip to content

Commit

Permalink
Do not package gems with tests files
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyadsl committed Mar 10, 2020
1 parent d3be0c4 commit 80bea87
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
5 changes: 3 additions & 2 deletions api/solidus_api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ Gem::Specification.new do |gem|
gem.summary = 'REST API for the Solidus e-commerce framework.'
gem.description = gem.summary

gem.files = `git ls-files`.split($\)
gem.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(spec|script)/})
end
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "solidus_api"
gem.require_paths = ["lib"]
gem.version = Spree.solidus_version
Expand Down
4 changes: 3 additions & 1 deletion backend/solidus_backend.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Gem::Specification.new do |s|
s.homepage = 'http://solidus.io'
s.license = 'BSD-3-Clause'

s.files = `git ls-files`.split("\n")
s.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(spec|script)/})
end
s.require_path = 'lib'
s.requirements << 'none'

Expand Down
4 changes: 3 additions & 1 deletion core/solidus_core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Gem::Specification.new do |s|
s.homepage = 'http://solidus.io'
s.license = 'BSD-3-Clause'

s.files = `git ls-files`.split("\n")
s.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(spec|script)/})
end
s.require_path = 'lib'

s.required_ruby_version = '>= 2.4.0'
Expand Down
4 changes: 3 additions & 1 deletion frontend/solidus_frontend.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Gem::Specification.new do |s|
s.homepage = 'http://solidus.io/'
s.license = 'BSD-3-Clause'

s.files = `git ls-files`.split("\n")
s.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(spec|script)/})
end
s.require_path = 'lib'
s.requirements << 'none'

Expand Down
4 changes: 3 additions & 1 deletion sample/solidus_sample.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Gem::Specification.new do |s|
s.homepage = 'http://solidus.io/'
s.license = 'BSD-3-Clause'

s.files = `git ls-files`.split("\n")
s.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(spec|script)/})
end
s.require_path = 'lib'
s.requirements << 'none'

Expand Down

0 comments on commit 80bea87

Please sign in to comment.