-
Notifications
You must be signed in to change notification settings - Fork 12
/
middleman-asciidoc.gemspec
30 lines (25 loc) · 1.14 KB
/
middleman-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
# -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)
require 'middleman-asciidoc/version'
Gem::Specification.new do |s|
s.name = 'middleman-asciidoc'
s.version = Middleman::AsciiDoc::VERSION
s.summary = 'AsciiDoc support for Middleman'
s.description = 'Converts AsciiDoc files in the source directory to HTML pages. Allows page data to be specified using AsciiDoc attributes defined in the document header (as an alternative to YAML front matter).'
s.authors = ['Dan Allen']
s.email = ['[email protected]']
s.homepage = 'https://github.com/middleman/middleman-asciidoc'
s.license = 'MIT'
s.required_ruby_version = '>= 2.0.0'
files = begin
output = IO.popen('git ls-files -z', err: File::NULL) {|io| io.read }.split %(\0)
$?.success? ? output : Dir['**/*']
rescue
Dir['**/*']
end
s.files = files.grep %r/^(?:lib\/.+|Gemfile|Rakefile|(?:CHANGELOG|CONTRIBUTING|LICENSE|README)\.adoc|#{s.name}\.gemspec)$/
s.test_files = files.grep %r/^(?:features|fixtures)\/.+/
s.require_paths = ['lib']
s.add_runtime_dependency 'middleman-core', '~> 4.0'
s.add_runtime_dependency 'asciidoctor', '>= 1.5.0'
end