Debian Codegraph @

ttfunk.gemspec

raw
1 # frozen_string_literal: true
2
3 Gem::Specification.new do |spec|
4 spec.name = 'ttfunk'
5 spec.version = '1.8.0'
6 spec.platform = Gem::Platform::RUBY
7 spec.summary = 'TrueType Font Metrics Parser'
8 spec.description = 'Font Metrics Parser for the Prawn PDF generator'
9
10 spec.files = Dir.glob('lib/**/*') +
11 ['CHANGELOG.md', 'README.md', 'COPYING', 'LICENSE', 'GPLv2', 'GPLv3']
12
13 if File.basename($PROGRAM_NAME) == 'gem' && ARGV.include?('build')
14 signing_key = File.expand_path('~/.gem/gem-private_key.pem')
15 if File.exist?(signing_key)
16 spec.cert_chain = ['certs/pointlessone.pem']
17 spec.signing_key = signing_key
18 else
19 warn 'WARNING: Signing key is missing. The gem is not signed and its authenticity can not be verified.'
20 end
21 end
22
23 spec.authors = [
24 'Alexander Mankuta',
25 'Gregory Brown',
26 'Brad Ediger',
27 'Daniel Nelson',
28 'Jonathan Greenberg',
29 'James Healy',
30 'Cameron Dutro',
31 ]
32 spec.email = [
33 '[email protected]',
34 '[email protected]',
35 '[email protected]',
36 '[email protected]',
37 '[email protected]',
38 '[email protected]',
39 '[email protected]',
40 ]
41 spec.licenses = %w[Nonstandard GPL-2.0-only GPL-3.0-only]
42 spec.homepage = 'http://prawnpdf.org/'
43 spec.metadata = {
44 'rubygems_mfa_required' => 'true',
45 'homepage_uri' => spec.homepage,
46 'changelog_uri' => "https://github.com/prawnpdf/ttfunk/blob/#{spec.version}/CHANGELOG.md",
47 'source_code_uri' => 'https://github.com/prawnpdf/ttfunk',
48 'documentation_uri' => "https://prawnpdf.org/docs/ttfunk/#{spec.version}/",
49 'bug_tracker_uri' => 'https://github.com/prawnpdf/ttfunk/issues',
50 }
51
52 spec.required_ruby_version = '>= 2.7'
53 spec.add_runtime_dependency('bigdecimal', '~> 3.1')
54 spec.add_development_dependency('prawn-dev', '~> 0.4.0')
55 end