Skip to content

Commit

Permalink
fix gemspec regex
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Sep 6, 2016
1 parent 7ccdcc6 commit 2b49731
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion minima.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ Gem::Specification.new do |spec|

spec.metadata["plugin_type"] = "theme"

spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(_includes|_layouts|_sass|LICENSE|README)/i}) }
spec.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r{^(_(includes|layouts|sass)/|(LICENSE|README)((\.(txt|md|markdown)|$)))}i)
end

spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

Expand Down

0 comments on commit 2b49731

Please sign in to comment.