Skip to content

Commit

Permalink
Don't ship test / example files in the gem artifact (#282)
Browse files Browse the repository at this point in the history
This keeps the install size down and helps out Windows systems where
malware scans of each file have to take place. This drops the gem
artifact (compressed) from 58k to 17k.

Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 authored and jaymzh committed Oct 31, 2019
1 parent 5d3d502 commit 872e620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdl.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Gem::Specification.new do |spec|
spec.homepage = "http://github.com/markdownlint/markdownlint"
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.files = %w{LICENSE.txt Gemfile} + Dir.glob("*.gemspec") + Dir.glob("lib/**/*")
spec.bindir = "bin"
spec.executables = %w{mdl}
spec.require_paths = ["lib"]

spec.required_ruby_version = '>= 2.4'
Expand Down

0 comments on commit 872e620

Please sign in to comment.