-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathjekyll-asciidoc.gemspec
43 lines (37 loc) · 1.9 KB
/
jekyll-asciidoc.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
require File.absolute_path 'lib/jekyll-asciidoc/version', __dir__
require 'open3' unless defined? Open3
Gem::Specification.new do |s|
s.name = 'jekyll-asciidoc'
s.version = Jekyll::AsciiDoc::VERSION
s.summary = 'A Jekyll plugin that converts the AsciiDoc source files in your site to HTML pages using Asciidoctor.'
s.description = s.summary
s.authors = ['Dan Allen', 'Paul Rayner']
s.email = ['[email protected]']
s.homepage = 'https://github.com/asciidoctor/jekyll-asciidoc'
s.license = 'MIT'
s.metadata = {
'bug_tracker_uri' => 'https://github.com/asciidoctor/jekyll-asciidoc/issues',
'changelog_uri' => 'https://github.com/asciidoctor/jekyll-asciidoc/blob/master/CHANGELOG.adoc',
'mailing_list_uri' => 'http://discuss.asciidoctor.org',
'source_code_uri' => 'https://github.com/asciidoctor/jekyll-asciidoc',
}
# NOTE the required ruby version is informational only
# it tracks the minimum version required by Jekyll >= 3.0.0 (see https://jekyllrb.com/docs/installation/#requirements)
# we don't enforce it because it can't be overridden and can cause builds to break
#s.required_ruby_version = '>= 2.2.0'
files = begin
(result = Open3.popen3('git ls-files -z') {|_, out| out.read }.split ?\0).empty? ? Dir['**/*'] : result
rescue ::SystemCallError
Dir['**/*']
end
s.files = files.grep %r/^(?:lib\/.+|Gemfile|LICENSE|(?:CHANGELOG|README)\.adoc|\.yardopts|jekyll-asciidoc\.gemspec)$/
#s.test_files = files.grep %r/^spec\/./
s.require_paths = ['lib']
s.add_runtime_dependency 'asciidoctor', '~> 2.0'
s.add_runtime_dependency 'jekyll', '>= 3.0.0'
s.add_development_dependency 'jekyll-mentions', '~> 1.6.0'
s.add_development_dependency 'kramdown-parser-gfm', '~> 1.1.0' # required when testing Jekyll 3
s.add_development_dependency 'pygments.rb', '~> 2.4.0'
s.add_development_dependency 'rake', '~> 13.1.0'
s.add_development_dependency 'rspec', '~> 3.12.0'
end