-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathafm.gemspec
More file actions
41 lines (40 loc) · 1.11 KB
/
afm.gemspec
File metadata and controls
41 lines (40 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Rolling my own file_list to not have to rely on rake
# as this breaks ruby-setup on GitHub actions
# This should be good enough for now, even though
# FileList does a lot more.
def self.file_list(*patterns)
patterns.map do |pattern|
Dir.glob(pattern)
end.flatten.reject do |file|
File.basename(file).start_with?(".")
end
end
Gem::Specification.new do |s|
s.name = "afm"
s.version = File.read("VERSION")
s.authors = ["Jan Krutisch"]
s.summary = "reading Adobe Font Metrics (afm) files"
s.description = "a simple library to read afm files and use the data conveniently"
s.email = "jan@krutisch.de"
s.extra_rdoc_files = [
"LICENSE",
"README.md"
]
s.files = file_list(
"LICENSE",
"README.md",
"Rakefile",
"VERSION",
"CHANGELOG.md",
"lib/*.rb",
"test/*",
"test/fixtures/*"
)
s.homepage = "http://github.com/halfbyte/afm"
s.require_paths = ["lib"]
s.license = "MIT"
s.add_development_dependency "rake", "~> 13.3"
s.add_development_dependency "rdoc", "~> 6.14"
s.add_development_dependency "minitest", "~> 5.25"
s.required_ruby_version = ">= 3.2.0"
end