-
Notifications
You must be signed in to change notification settings - Fork 2
/
kramdown-plantuml.gemspec
50 lines (43 loc) · 2.07 KB
/
kramdown-plantuml.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
# frozen_string_literal: true
require_relative 'lib/kramdown-plantuml/which'
require_relative 'lib/kramdown-plantuml/version'
Gem::Specification.new do |spec|
spec.name = 'kramdown-plantuml'
spec.version = Kramdown::PlantUml::VERSION
spec.authors = ['Swedbank Pay']
spec.email = ['opensource@swedbankpay.com']
spec.summary = <<~SUMMARY
kramdown-plantuml allows you to use PlantUML syntax within fenced code
blocks with Kramdown (Jekyll's default Markdown parser).
SUMMARY
spec.homepage = 'https://github.com/SwedbankPay/kramdown-plantuml'
spec.license = 'MIT'
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/SwedbankPay/kramdown-plantuml'
# 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__)) do
if Which.which('git')
files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
# Explicitly add plantuml.jar to the list of files as it is not committed to Git.
files.append(Dir['bin/**/plantuml*.jar'].first)
else
puts "Git not found, no files added to #{spec.name}."
end
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_dependency 'htmlentities', '~> 4'
spec.add_dependency 'kramdown', '~> 2.3'
spec.add_dependency 'kramdown-parser-gfm', '~> 1.1'
spec.add_dependency 'open3', '~> 0.1'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.2'
spec.add_development_dependency 'rspec-html-matchers', '>= 0.9'
spec.add_development_dependency 'rspec-its', '~> 1.3'
spec.add_development_dependency 'rubocop', '~> 1.12'
spec.add_development_dependency 'rubocop-rake', '~> 0.6'
spec.add_development_dependency 'rubocop-rspec', '~> 2.4'
end