| 1 |
begin |
| 2 |
require_relative "lib/rdoc/version" |
| 3 |
rescue LoadError |
| 4 |
# for Ruby repository |
| 5 |
require_relative "version" |
| 6 |
end |
| 7 |
|
| 8 |
Gem::Specification.new do |s| |
| 9 |
s.name = "rdoc" |
| 10 |
s.version = RDoc::VERSION |
| 11 |
|
| 12 |
s.authors = [ |
| 13 |
"Eric Hodel", |
| 14 |
"Dave Thomas", |
| 15 |
"Phil Hagelberg", |
| 16 |
"Tony Strauss", |
| 17 |
"Zachary Scott", |
| 18 |
"Hiroshi SHIBATA", |
| 19 |
"ITOYANAGI Sakura" |
| 20 |
] |
| 21 |
s.email = ["[email protected]", "", "", "", "[email protected]", "[email protected]", "[email protected]"] |
| 22 |
|
| 23 |
s.summary = "RDoc produces HTML and command-line documentation for Ruby projects" |
| 24 |
s.description = <<-DESCRIPTION |
| 25 |
RDoc produces HTML and command-line documentation for Ruby projects. |
| 26 |
RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line. |
| 27 |
DESCRIPTION |
| 28 |
s.homepage = "https://ruby.github.io/rdoc" |
| 29 |
s.licenses = ["Ruby"] |
| 30 |
|
| 31 |
s.metadata["homepage_uri"] = s.homepage |
| 32 |
s.metadata["source_code_uri"] = "https://github.com/ruby/rdoc" |
| 33 |
s.metadata["changelog_uri"] = "#{s.metadata["source_code_uri"]}/releases" |
| 34 |
|
| 35 |
s.bindir = "exe" |
| 36 |
s.executables = ["rdoc", "ri"] |
| 37 |
s.require_paths = ["lib"] |
| 38 |
# for ruby core repository. It was generated by |
| 39 |
# `git ls-files -z`.split("\x0").each {|f| puts " #{f.dump}," unless f.start_with?(*%W[test/ spec/ features/ .]) } |
| 40 |
s.files = [ |
| 41 |
"CONTRIBUTING.rdoc", |
| 42 |
"CVE-2013-0256.rdoc", |
| 43 |
"ExampleMarkdown.md", |
| 44 |
"ExampleRDoc.rdoc", |
| 45 |
"History.rdoc", |
| 46 |
"LEGAL.rdoc", |
| 47 |
"LICENSE.rdoc", |
| 48 |
"README.rdoc", |
| 49 |
"RI.rdoc", |
| 50 |
"TODO.rdoc", |
| 51 |
"exe/rdoc", |
| 52 |
"exe/ri", |
| 53 |
"lib/rdoc.rb", |
| 54 |
"lib/rdoc/alias.rb", |
| 55 |
"lib/rdoc/anon_class.rb", |
| 56 |
"lib/rdoc/any_method.rb", |
| 57 |
"lib/rdoc/attr.rb", |
| 58 |
"lib/rdoc/class_module.rb", |
| 59 |
"lib/rdoc/code_object.rb", |
| 60 |
"lib/rdoc/code_objects.rb", |
| 61 |
"lib/rdoc/comment.rb", |
| 62 |
"lib/rdoc/constant.rb", |
| 63 |
"lib/rdoc/context.rb", |
| 64 |
"lib/rdoc/context/section.rb", |
| 65 |
"lib/rdoc/cross_reference.rb", |
| 66 |
"lib/rdoc/encoding.rb", |
| 67 |
"lib/rdoc/erb_partial.rb", |
| 68 |
"lib/rdoc/erbio.rb", |
| 69 |
"lib/rdoc/extend.rb", |
| 70 |
"lib/rdoc/generator.rb", |
| 71 |
"lib/rdoc/generator/darkfish.rb", |
| 72 |
"lib/rdoc/generator/json_index.rb", |
| 73 |
"lib/rdoc/generator/markup.rb", |
| 74 |
"lib/rdoc/generator/pot.rb", |
| 75 |
"lib/rdoc/generator/pot/message_extractor.rb", |
| 76 |
"lib/rdoc/generator/pot/po.rb", |
| 77 |
"lib/rdoc/generator/pot/po_entry.rb", |
| 78 |
"lib/rdoc/generator/ri.rb", |
| 79 |
"lib/rdoc/generator/template/darkfish/.document", |
| 80 |
"lib/rdoc/generator/template/darkfish/_footer.rhtml", |
| 81 |
"lib/rdoc/generator/template/darkfish/_head.rhtml", |
| 82 |
"lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml", |
| 83 |
"lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml", |
| 84 |
"lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml", |
| 85 |
"lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml", |
| 86 |
"lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml", |
| 87 |
"lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml", |
| 88 |
"lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml", |
| 89 |
"lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml", |
| 90 |
"lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml", |
| 91 |
"lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml", |
| 92 |
"lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml", |
| 93 |
"lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml", |
| 94 |
"lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml", |
| 95 |
"lib/rdoc/generator/template/darkfish/class.rhtml", |
| 96 |
"lib/rdoc/generator/template/darkfish/css/fonts.css", |
| 97 |
"lib/rdoc/generator/template/darkfish/css/rdoc.css", |
| 98 |
"lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf", |
| 99 |
"lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf", |
| 100 |
"lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf", |
| 101 |
"lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf", |
| 102 |
"lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf", |
| 103 |
"lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf", |
| 104 |
"lib/rdoc/generator/template/darkfish/images/add.png", |
| 105 |
"lib/rdoc/generator/template/darkfish/images/arrow_up.png", |
| 106 |
"lib/rdoc/generator/template/darkfish/images/brick.png", |
| 107 |
"lib/rdoc/generator/template/darkfish/images/brick_link.png", |
| 108 |
"lib/rdoc/generator/template/darkfish/images/bug.png", |
| 109 |
"lib/rdoc/generator/template/darkfish/images/bullet_black.png", |
| 110 |
"lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png", |
| 111 |
"lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png", |
| 112 |
"lib/rdoc/generator/template/darkfish/images/date.png", |
| 113 |
"lib/rdoc/generator/template/darkfish/images/delete.png", |
| 114 |
"lib/rdoc/generator/template/darkfish/images/find.png", |
| 115 |
"lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif", |
| 116 |
"lib/rdoc/generator/template/darkfish/images/macFFBgHack.png", |
| 117 |
"lib/rdoc/generator/template/darkfish/images/package.png", |
| 118 |
"lib/rdoc/generator/template/darkfish/images/page_green.png", |
| 119 |
"lib/rdoc/generator/template/darkfish/images/page_white_text.png", |
| 120 |
"lib/rdoc/generator/template/darkfish/images/page_white_width.png", |
| 121 |
"lib/rdoc/generator/template/darkfish/images/plugin.png", |
| 122 |
"lib/rdoc/generator/template/darkfish/images/ruby.png", |
| 123 |
"lib/rdoc/generator/template/darkfish/images/tag_blue.png", |
| 124 |
"lib/rdoc/generator/template/darkfish/images/tag_green.png", |
| 125 |
"lib/rdoc/generator/template/darkfish/images/transparent.png", |
| 126 |
"lib/rdoc/generator/template/darkfish/images/wrench.png", |
| 127 |
"lib/rdoc/generator/template/darkfish/images/wrench_orange.png", |
| 128 |
"lib/rdoc/generator/template/darkfish/images/zoom.png", |
| 129 |
"lib/rdoc/generator/template/darkfish/index.rhtml", |
| 130 |
"lib/rdoc/generator/template/darkfish/js/darkfish.js", |
| 131 |
"lib/rdoc/generator/template/darkfish/js/search.js", |
| 132 |
"lib/rdoc/generator/template/darkfish/page.rhtml", |
| 133 |
"lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml", |
| 134 |
"lib/rdoc/generator/template/darkfish/servlet_root.rhtml", |
| 135 |
"lib/rdoc/generator/template/darkfish/table_of_contents.rhtml", |
| 136 |
"lib/rdoc/generator/template/json_index/.document", |
| 137 |
"lib/rdoc/generator/template/json_index/js/navigation.js", |
| 138 |
"lib/rdoc/generator/template/json_index/js/searcher.js", |
| 139 |
"lib/rdoc/ghost_method.rb", |
| 140 |
"lib/rdoc/i18n.rb", |
| 141 |
"lib/rdoc/i18n/locale.rb", |
| 142 |
"lib/rdoc/i18n/text.rb", |
| 143 |
"lib/rdoc/include.rb", |
| 144 |
"lib/rdoc/known_classes.rb", |
| 145 |
"lib/rdoc/markdown.kpeg", |
| 146 |
"lib/rdoc/markdown/entities.rb", |
| 147 |
"lib/rdoc/markdown/literals.kpeg", |
| 148 |
"lib/rdoc/markup.rb", |
| 149 |
"lib/rdoc/markup/attr_changer.rb", |
| 150 |
"lib/rdoc/markup/attr_span.rb", |
| 151 |
"lib/rdoc/markup/attribute_manager.rb", |
| 152 |
"lib/rdoc/markup/attributes.rb", |
| 153 |
"lib/rdoc/markup/blank_line.rb", |
| 154 |
"lib/rdoc/markup/block_quote.rb", |
| 155 |
"lib/rdoc/markup/document.rb", |
| 156 |
"lib/rdoc/markup/formatter.rb", |
| 157 |
"lib/rdoc/markup/hard_break.rb", |
| 158 |
"lib/rdoc/markup/heading.rb", |
| 159 |
"lib/rdoc/markup/include.rb", |
| 160 |
"lib/rdoc/markup/indented_paragraph.rb", |
| 161 |
"lib/rdoc/markup/list.rb", |
| 162 |
"lib/rdoc/markup/list_item.rb", |
| 163 |
"lib/rdoc/markup/paragraph.rb", |
| 164 |
"lib/rdoc/markup/parser.rb", |
| 165 |
"lib/rdoc/markup/pre_process.rb", |
| 166 |
"lib/rdoc/markup/raw.rb", |
| 167 |
"lib/rdoc/markup/regexp_handling.rb", |
| 168 |
"lib/rdoc/markup/rule.rb", |
| 169 |
"lib/rdoc/markup/table.rb", |
| 170 |
"lib/rdoc/markup/to_ansi.rb", |
| 171 |
"lib/rdoc/markup/to_bs.rb", |
| 172 |
"lib/rdoc/markup/to_html.rb", |
| 173 |
"lib/rdoc/markup/to_html_crossref.rb", |
| 174 |
"lib/rdoc/markup/to_html_snippet.rb", |
| 175 |
"lib/rdoc/markup/to_joined_paragraph.rb", |
| 176 |
"lib/rdoc/markup/to_label.rb", |
| 177 |
"lib/rdoc/markup/to_markdown.rb", |
| 178 |
"lib/rdoc/markup/to_rdoc.rb", |
| 179 |
"lib/rdoc/markup/to_table_of_contents.rb", |
| 180 |
"lib/rdoc/markup/to_test.rb", |
| 181 |
"lib/rdoc/markup/to_tt_only.rb", |
| 182 |
"lib/rdoc/markup/verbatim.rb", |
| 183 |
"lib/rdoc/meta_method.rb", |
| 184 |
"lib/rdoc/method_attr.rb", |
| 185 |
"lib/rdoc/mixin.rb", |
| 186 |
"lib/rdoc/normal_class.rb", |
| 187 |
"lib/rdoc/normal_module.rb", |
| 188 |
"lib/rdoc/options.rb", |
| 189 |
"lib/rdoc/parser.rb", |
| 190 |
"lib/rdoc/parser/c.rb", |
| 191 |
"lib/rdoc/parser/changelog.rb", |
| 192 |
"lib/rdoc/parser/markdown.rb", |
| 193 |
"lib/rdoc/parser/rd.rb", |
| 194 |
"lib/rdoc/parser/ripper_state_lex.rb", |
| 195 |
"lib/rdoc/parser/ruby.rb", |
| 196 |
"lib/rdoc/parser/ruby_tools.rb", |
| 197 |
"lib/rdoc/parser/simple.rb", |
| 198 |
"lib/rdoc/parser/text.rb", |
| 199 |
"lib/rdoc/rd.rb", |
| 200 |
"lib/rdoc/rd/block_parser.ry", |
| 201 |
"lib/rdoc/rd/inline.rb", |
| 202 |
"lib/rdoc/rd/inline_parser.ry", |
| 203 |
"lib/rdoc/rdoc.rb", |
| 204 |
"lib/rdoc/require.rb", |
| 205 |
"lib/rdoc/ri.rb", |
| 206 |
"lib/rdoc/ri/driver.rb", |
| 207 |
"lib/rdoc/ri/formatter.rb", |
| 208 |
"lib/rdoc/ri/paths.rb", |
| 209 |
"lib/rdoc/ri/store.rb", |
| 210 |
"lib/rdoc/ri/task.rb", |
| 211 |
"lib/rdoc/rubygems_hook.rb", |
| 212 |
"lib/rdoc/servlet.rb", |
| 213 |
"lib/rdoc/single_class.rb", |
| 214 |
"lib/rdoc/stats.rb", |
| 215 |
"lib/rdoc/stats/normal.rb", |
| 216 |
"lib/rdoc/stats/quiet.rb", |
| 217 |
"lib/rdoc/stats/verbose.rb", |
| 218 |
"lib/rdoc/store.rb", |
| 219 |
"lib/rdoc/task.rb", |
| 220 |
"lib/rdoc/text.rb", |
| 221 |
"lib/rdoc/token_stream.rb", |
| 222 |
"lib/rdoc/tom_doc.rb", |
| 223 |
"lib/rdoc/top_level.rb", |
| 224 |
"lib/rdoc/version.rb", |
| 225 |
"man/ri.1", |
| 226 |
] |
| 227 |
# files from .gitignore |
| 228 |
s.files << "lib/rdoc/rd/block_parser.rb" << "lib/rdoc/rd/inline_parser.rb" << "lib/rdoc/markdown.rb" << "lib/rdoc/markdown/literals.rb" |
| 229 |
|
| 230 |
s.rdoc_options = ["--main", "README.rdoc"] |
| 231 |
s.extra_rdoc_files += s.files.grep(%r[\A[^\/]+\.(?:rdoc|md)\z]) |
| 232 |
|
| 233 |
s.required_ruby_version = Gem::Requirement.new(">= 2.6.0") |
| 234 |
s.required_rubygems_version = Gem::Requirement.new(">= 2.2") |
| 235 |
|
| 236 |
s.add_dependency 'psych', '>= 4.0.0' |
| 237 |
end |