repubmark/repubmark.gemspec

52 lines
1.5 KiB
Ruby
Raw Normal View History

2024-10-18 08:32:34 -04:00
# frozen_string_literal: true
require_relative 'lib/repubmark/version'
Gem::Specification.new do |spec|
repo = 'https://git.causa-arcana.com/causa-arcana/repubmark'
mail = 'me+repubmark@kotovalexarian.com'
home = repo
# bugs = "mailto:#{mail}"
docs = "https://www.rubydoc.info/gems/repubmark/#{Repubmark::VERSION}"
spec.name = 'repubmark'
spec.version = Repubmark::VERSION
spec.license = 'MIT'
spec.homepage = home
spec.required_ruby_version = '~> 3.2'
spec.authors = ['Alex Kotov']
spec.email = [mail]
spec.summary =
'A Markdown-inspired markup language ' \
'that can be compiled into HTML and Gemtext'
spec.description = <<~DESCRIPTION.split("\n").map(&:strip).join ' '
A Markdown-inspired markup language that can be compiled into HTML and
Gemtext
DESCRIPTION
spec.metadata['rubygems_mfa_required'] = 'true'
spec.metadata['homepage_uri'] = home
spec.metadata['source_code_uri'] = home
# spec.metadata['bug_tracker_uri'] = FIXME: bugs
spec.metadata['documentation_uri'] = docs
2024-10-18 11:01:41 -04:00
# spec.metadata['changelog_uri'] = TODO: changelog
2024-10-18 08:32:34 -04:00
spec.bindir = 'exe'
spec.require_paths = ['lib']
spec.files = Dir.chdir __dir__ do
2024-10-18 11:01:41 -04:00
`git ls-files -z`.split("\x0").select do |f|
f.start_with?(*%w[exe/ lib/ LICENSE])
2024-10-18 08:32:34 -04:00
end
end
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename f }
spec.add_dependency 'addressable', '~> 2.8'
spec.add_dependency 'i18n', '~> 1.14'
end