-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
hexapdf.gemspec
54 lines (46 loc) · 2.02 KB
/
hexapdf.gemspec
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
42
43
44
45
46
47
48
49
50
51
52
53
54
require_relative 'lib/hexapdf/version'
PKG_FILES = Dir.glob([
'bin/*',
'lib/**/*.rb',
'data/**/*',
])
description = 'HexaPDF local development version only'
if ENV['REAL_GEM']
PKG_FILES.concat(Dir.glob(['Rakefile', 'LICENSE', 'agpl-3.0.txt', 'README.md', 'CHANGELOG.md',
'VERSION', 'CONTRIBUTERS', 'man/man1/hexapdf.1',
'examples/*', 'test/**/*']))
description = <<~DESC
HexaPDF is a pure Ruby library with an accompanying application for working with PDF
files.
In short, it allows creating new PDF files, manipulating existing PDF files, merging multiple
PDF files into one, extracting meta information, text, images and files from PDF files, securing
PDF files by encrypting them and optimizing PDF files for smaller file size or other
criteria.
HexaPDF was designed with ease of use and performance in mind. It uses lazy loading and lazy
computing when possible and tries to produce small PDF files by default.
DESC
end
Gem::Specification.new do |s|
s.name = 'hexapdf'
s.version = HexaPDF::VERSION
s.summary = "HexaPDF - A Versatile PDF Creation and Manipulation Library For Ruby"
s.description = description
s.licenses = ['AGPL-3.0', 'Nonstandard']
s.files = PKG_FILES
s.require_path = 'lib'
s.executables = ['hexapdf']
s.add_dependency('cmdparse', '~> 3.0', '>= 3.0.3')
s.add_dependency('geom2d', '~> 0.4', '>= 0.4.1')
s.add_dependency('openssl', '>= 2.2.1')
s.add_development_dependency('kramdown', '~> 2.3')
s.add_development_dependency('minitest', '~> 5.16')
s.add_development_dependency('reline', '~> 0.1')
s.add_development_dependency('rubocop', '~> 1.0')
s.add_development_dependency('webrick')
s.add_development_dependency('rake')
s.add_development_dependency('simplecov')
s.required_ruby_version = '>= 2.7'
s.author = 'Thomas Leitner'
s.email = 't_leitner@gmx.at'
s.homepage = "https://hexapdf.gettalong.org"
end