forked from ruby/rdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rdoc.gemspec
67 lines (58 loc) · 1.97 KB
/
rdoc.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
55
56
57
58
59
60
61
62
63
64
65
66
67
begin
require_relative "lib/rdoc/version"
rescue LoadError
# for Ruby repository
require_relative "version"
end
Gem::Specification.new do |s|
s.name = "rdoc"
s.version = RDoc::VERSION
s.authors = [
"Eric Hodel",
"Dave Thomas",
"Phil Hagelberg",
"Tony Strauss",
"Zachary Scott",
"Hiroshi SHIBATA",
"ITOYANAGI Sakura"
]
s.email = ["drbrain@segment7.net", "", "", "", "mail@zzak.io", "hsbt@ruby-lang.org", "aycabta@gmail.com"]
s.summary = "RDoc produces HTML and command-line documentation for Ruby projects"
s.description = <<-DESCRIPTION
RDoc produces HTML and command-line documentation for Ruby projects.
RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line.
DESCRIPTION
s.homepage = "https://ruby.github.io/rdoc"
s.licenses = ["Ruby"]
s.metadata["homepage_uri"] = s.homepage
s.metadata["source_code_uri"] = "https://github.com/ruby/rdoc"
s.metadata["changelog_uri"] = "#{s.metadata["source_code_uri"]}/releases"
s.bindir = "exe"
s.executables = ["rdoc", "ri"]
s.require_paths = ["lib"]
# for ruby core repository. It was generated by
# `git ls-files -z`.split("\x0").each {|f| puts " #{f.dump}," unless f.start_with?(*%W[test/ spec/ features/ .]) }
non_lib_files = [
"CONTRIBUTING.rdoc",
"CVE-2013-0256.rdoc",
"ExampleMarkdown.md",
"ExampleRDoc.rdoc",
"History.rdoc",
"LEGAL.rdoc",
"LICENSE.rdoc",
"README.rdoc",
"RI.md",
"TODO.rdoc",
"exe/rdoc",
"exe/ri",
"man/ri.1",
]
template_files = Dir.glob("lib/rdoc/generator/template/**/*")
lib_files = Dir.glob("lib/**/*.{rb,kpeg,ry}")
s.files = (non_lib_files + template_files + lib_files).uniq
s.rdoc_options = ["--main", "README.rdoc"]
s.extra_rdoc_files += s.files.grep(%r[\A[^\/]+\.(?:rdoc|md)\z])
s.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
s.required_rubygems_version = Gem::Requirement.new(">= 2.2")
s.add_dependency 'psych', '>= 4.0.0'
end