|
| 1 | +# -*- encoding: utf-8 -*- |
| 2 | +require_relative 'lib/rdoc' |
| 3 | + |
| 4 | +Gem::Specification.new do |s| |
| 5 | + s.name = "rdoc" |
| 6 | + s.version = RDoc::VERSION |
| 7 | + |
| 8 | + s.required_rubygems_version = Gem::Requirement.new(">= 1.3") if |
| 9 | + s.respond_to? :required_rubygems_version= |
| 10 | + |
| 11 | + s.require_paths = ["lib"] |
| 12 | + s.authors = [ |
| 13 | + "Eric Hodel", |
| 14 | + "Dave Thomas", |
| 15 | + "Phil Hagelberg", |
| 16 | + "Tony Strauss", |
| 17 | + "Zachary Scott" |
| 18 | + ] |
| 19 | + |
| 20 | + s.description = <<-DESCRIPTION |
| 21 | +RDoc produces HTML and command-line documentation for Ruby projects. |
| 22 | +RDoc includes the +rdoc+ and +ri+ tools for generating and displaying documentation from the command-line. |
| 23 | + DESCRIPTION |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + s.executables = ["rdoc", "ri"] |
| 28 | + |
| 29 | + s.extra_rdoc_files += %w[ |
| 30 | + CVE-2013-0256.rdoc |
| 31 | + CONTRIBUTING.rdoc |
| 32 | + ExampleMarkdown.md |
| 33 | + ExampleRDoc.rdoc |
| 34 | + History.rdoc |
| 35 | + LEGAL.rdoc |
| 36 | + LICENSE.rdoc |
| 37 | + README.rdoc |
| 38 | + RI.rdoc |
| 39 | + TODO.rdoc |
| 40 | + ] |
| 41 | + |
| 42 | + s.files = File.readlines("Manifest.txt").map { |l| l.gsub("\n",'') } |
| 43 | + |
| 44 | + s.homepage = "http://docs.seattlerb.org/rdoc" |
| 45 | + s.licenses = ["Ruby"] |
| 46 | + s.post_install_message = <<-MESSAGE |
| 47 | +Depending on your version of ruby, you may need to install ruby rdoc/ri data: |
| 48 | +
|
| 49 | +<= 1.8.6 : unsupported |
| 50 | + = 1.8.7 : gem install rdoc-data; rdoc-data --install |
| 51 | + = 1.9.1 : gem install rdoc-data; rdoc-data --install |
| 52 | +>= 1.9.2 : nothing to do! Yay! |
| 53 | + MESSAGE |
| 54 | + |
| 55 | + s.rdoc_options = ["--main", "README.rdoc"] |
| 56 | + s.required_ruby_version = Gem::Requirement.new(">= 1.8.7") |
| 57 | + s.rubygems_version = "2.5.2" |
| 58 | + s.summary = "RDoc produces HTML and command-line documentation for Ruby projects" |
| 59 | + |
| 60 | + s.add_runtime_dependency("json", "~> 1.4") |
| 61 | + s.add_development_dependency("racc", "~> 1.4", "> 1.4.10") |
| 62 | + s.add_development_dependency("kpeg", "~> 0.9") |
| 63 | + s.add_development_dependency("minitest", "~> 4") |
| 64 | +end |
0 commit comments