asciidoc-bib.gemspec 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. require File.expand_path('lib/asciidoc-bib/version', File.dirname(__FILE__))
  2. Gem::Specification.new do |s|
  3. s.name = 'asciidoc-bib'
  4. s.platform = Gem::Platform::RUBY
  5. s.author = 'Peter Lane'
  6. s.version = AsciidocBib::VERSION
  7. s.email = 'peterlane@gmx.com'
  8. s.summary = 'asciidoc-bib adds references from a bibtex file to an asciidoc file.'
  9. s.license = 'MIT'
  10. s.description = <<-END
  11. asciidoc-bib generates in-text references and a reference list from an asciidoc
  12. file, using a bibtex file as a source of citation information. The syntax for
  13. an in-text reference is simply [cite:bibref], and a line containing
  14. [bibliography] inserts a complete reference list. See the README for more
  15. examples and further options. The references are formatted using styles provided
  16. by CSL.
  17. END
  18. s.files = Dir['lib/**/*'] + Dir['samples/*'] + [
  19. 'LICENSE.txt',
  20. 'changes.txt',
  21. 'README.rdoc',
  22. 'bin/asciidoc-bib'
  23. ]
  24. s.extra_rdoc_files = ['README.rdoc', 'LICENSE.txt']
  25. s.rdoc_options << '-m' << 'README.rdoc'
  26. s.executables << 'asciidoc-bib'
  27. s.required_ruby_version = '>= 2.0'
  28. s.add_runtime_dependency('bibtex-ruby', '~>5.0', '>=5.1.4')
  29. s.add_runtime_dependency('citeproc-ruby', '~>1.0', '>=1.0.5')
  30. s.add_runtime_dependency('csl-styles', '~>1.0', '>=1.0.1.6')
  31. end