summaryrefslogtreecommitdiff
path: root/asciidoctor.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'asciidoctor.gemspec')
-rw-r--r--asciidoctor.gemspec9
1 files changed, 5 insertions, 4 deletions
diff --git a/asciidoctor.gemspec b/asciidoctor.gemspec
index d7909386..fc6dcfdc 100644
--- a/asciidoctor.gemspec
+++ b/asciidoctor.gemspec
@@ -11,11 +11,12 @@ Gem::Specification.new do |s|
s.homepage = 'http://asciidoctor.org'
s.license = 'MIT'
- s.files = begin
- `git ls-files -z`.split "\0"
+ begin
+ s.files = `git ls-files -z`.split "\0"
rescue
- Dir['**/*']
- end.grep(/^(?:(?:bin|data|features|lib|man|test)\/.+|Rakefile|(?:CHANGELOG|CONTRIBUTING|LICENSE|README)\.adoc)$/)
+ s.files = Dir['**/*']
+ end
+ s.files = s.files.grep(/^(?:(?:bin|data|features|lib|man|test)\/.+|Rakefile|(?:CHANGELOG|CONTRIBUTING|LICENSE|README)\.adoc)$/)
s.executables = s.files.grep(/^bin\//).map {|f| File.basename f }
s.test_files = s.files.grep(/^(?:test\/.*_test\.rb|features\/.*\.(?:feature|rb))$/)