Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 24 additions & 17 deletions bibtex-ruby.gemspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# frozen_string_literal: true

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)

require 'bibtex/version'
require_relative 'lib/bibtex/version'

Gem::Specification.new do |s|
s.name = 'bibtex-ruby'
s.version = BibTeX::Version::STRING.dup
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>= 3.3'
s.authors = ['Sylvester Keil']
s.email = ['sylvester@keil.or.at']
Expand All @@ -17,24 +13,35 @@ Gem::Specification.new do |s|

s.summary = 'A BibTeX parser, converter and API for Ruby.'
s.description = <<-END_DESCRIPTION.gsub(/^\s+/, '')
BibTeX-Ruby is the Rubyist's swiss-army-knife for all things BibTeX. It
includes a parser for all common BibTeX objects (@string, @preamble,
@comment and regular entries) and a sophisticated name parser that
tokenizes correctly formatted names; BibTeX-Ruby recognizes BibTeX string
replacements, joins values containing multiple strings or variables,
supports cross-references, and decodes common LaTeX formatting
instructions to unicode; if you are in a hurry, it also allows for easy
export/conversion to formats such as YAML, JSON, CSL, and XML (BibTeXML).
BibTeX-Ruby is the Rubyist's swiss-army-knife for all things BibTeX.
It includes a parser for all common BibTeX objects
(@string, @preamble, @comment and regular entries)
and a sophisticated name parser that tokenizes correctly formatted names;
BibTeX-Ruby recognizes BibTeX string replacements,
joins values containing multiple strings or variables,
supports cross-references,
and decodes common LaTeX formatting instructions to unicode;
if you are in a hurry, it also allows for easy export/conversion
to formats such as YAML, JSON, CSL, and XML (BibTeXML).
END_DESCRIPTION

s.add_dependency('latex-decode', ['~>0.0'])
s.add_dependency('logger', ['~>1.7'])
s.add_dependency('racc', ['~>1.7'])

s.files = Dir['lib/**/*.{rb,y}', 'History.txt', 'LICENSE', 'README.md']
s.executables = []
s.require_path = 'lib'
s.metadata['rubygems_mfa_required'] = 'true'
s.files = Dir[
'lib/**/*.{rb,y}',
'History.txt',
'LICENSE',
'README.md'
]

s.metadata = {
'source_code_uri' => 'https://github.com/inukshuk/bibtex-ruby',
'bug_tracker_uri' => 'https://github.com/inukshuk/bibtex-ruby/issues',
'changelog_uri' => 'https://github.com/inukshuk/bibtex-ruby/blob/master/History.txt',
'rubygems_mfa_required' => 'true'
}
end

# vim: syntax=ruby
Loading