-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimg_to_pdf.gemspec
49 lines (41 loc) · 1.77 KB
/
img_to_pdf.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
require "pathname"
require_relative "lib/img_to_pdf/version"
Gem::Specification.new do |spec|
spec.name = "img_to_pdf"
spec.version = ImgToPdf::VERSION
spec.authors = ["Yuya.Nishida."]
spec.email = ["[email protected]"]
summary_text = ""
readme_path = Pathname(__dir__) / "README.md"
if readme_path.exist?
summary_text = File.foreach(readme_path, chomp: true).
lazy.grep_v(/\A\s*\z|\A\#/).first
else # on Dependabot
warn("No README.md, so cannot set gem summary and description.")
end
spec.description = spec.summary = summary_text
spec.homepage = "https://github.com/nishidayuya/#{spec.name}"
spec.license = "X11"
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["rubygems_mfa_required"] = "true"
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path(__dir__)) {
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
}
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_runtime_dependency "mini_magick"
spec.add_runtime_dependency "prawn"
spec.add_development_dependency "rake"
spec.add_development_dependency "rubocop"
spec.add_development_dependency "simplecov"
# for broken test-reporter:
# https://github.com/codeclimate/test-reporter/issues/418
spec.add_development_dependency "simplecov-lcov"
spec.add_development_dependency "test-unit"
spec.metadata["rubygems_mfa_required"] = "true"
end