From 9a8060116e5033f3c1cd27c312da4ff2a712cf29 Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Sun, 15 Nov 2026 21:11:31 +0100 Subject: [PATCH] Clean-up gemspec --- bibtex-ruby.gemspec | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/bibtex-ruby.gemspec b/bibtex-ruby.gemspec index 4520e1a..ad241fa 100644 --- a/bibtex-ruby.gemspec +++ b/bibtex-ruby.gemspec @@ -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'] @@ -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