Skip to content

Commit

Permalink
update gemspec files
Browse files Browse the repository at this point in the history
- use IO.popen to invoke git ls-files
- include spec and rake task files in gem
- include documentation files in gem
- include bin files in gem
- mark test files in spec
  • Loading branch information
mojavelinux committed Jun 11, 2016
1 parent 1562870 commit 8ca7686
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docbookrx.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ Gem::Specification.new do |s|
s.description = 'The prescription for all your DocBook pain. Converts DocBook XML to AsciiDoc.'
s.license = 'MIT'

s.files = Dir['lib/*', 'lib/*/**']
files = begin
IO.popen('git ls-files -z') {|io| io.read }.split "\0"
rescue
Dir['**/*']
end
s.files = files.grep(/^(?:(?:bin|lib|tasks|spec)\/.+|Rakefile|LICENSE|(?:README|WORKLOG)\.adoc)$/)
s.executables = ['docbookrx']
s.test_files = s.files.grep(/^spec\//)
s.extra_rdoc_files = Dir['README.adoc', 'LICENSE']
s.require_paths = ['lib']

Expand Down

0 comments on commit 8ca7686

Please sign in to comment.