summaryrefslogtreecommitdiff
path: root/asciidoctor.gemspec
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2016-06-04 20:07:12 -0600
committerDan Allen <dan.j.allen@gmail.com>2016-06-04 20:07:12 -0600
commit100a12bc4d2021b99c274e3a3b180210a06bd06a (patch)
tree32e7cfa5af537ed08217ccb898bc13493c783e3a /asciidoctor.gemspec
parent938ac1d07e3dee2135a6a397d3858f44a16122fa (diff)
fix gemspec syntax so it works with parser used by the Maven plugin
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))$/)