mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00

(https://github.com/ruby/irb/pull/648)
IRB already has several features that rely on rdoc, such as:
- Autocompletion's document dialog
- Autocompletion's `PerfectMatchedProc`
- The `show_doc` command
- Easter egg
And we could use its pager more in the future too. So it makes sense to
declare rdoc as a dependency instead of relying on the one bundled with
Ruby.
4dffbb1dd3
46 lines
1.4 KiB
Ruby
46 lines
1.4 KiB
Ruby
begin
|
|
require_relative "lib/irb/version"
|
|
rescue LoadError
|
|
# for Ruby core repository
|
|
require_relative "version"
|
|
end
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = "irb"
|
|
spec.version = IRB::VERSION
|
|
spec.authors = ["aycabta", "Keiju ISHITSUKA"]
|
|
spec.email = ["aycabta@gmail.com", "keiju@ruby-lang.org"]
|
|
|
|
spec.summary = %q{Interactive Ruby command-line tool for REPL (Read Eval Print Loop).}
|
|
spec.description = %q{Interactive Ruby command-line tool for REPL (Read Eval Print Loop).}
|
|
spec.homepage = "https://github.com/ruby/irb"
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
|
|
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
spec.metadata["documentation_uri"] = spec.homepage
|
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/releases"
|
|
|
|
spec.files = [
|
|
".document",
|
|
"Gemfile",
|
|
"LICENSE.txt",
|
|
"README.md",
|
|
"Rakefile",
|
|
"bin/console",
|
|
"bin/setup",
|
|
"doc/irb/irb-tools.rd.ja",
|
|
"doc/irb/irb.rd.ja",
|
|
"exe/irb",
|
|
"irb.gemspec",
|
|
"man/irb.1",
|
|
] + Dir.glob("lib/**/*")
|
|
spec.bindir = "exe"
|
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
spec.require_paths = ["lib"]
|
|
|
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7")
|
|
|
|
spec.add_dependency "reline", ">= 0.3.6"
|
|
spec.add_dependency "rdoc", "~> 6.5"
|
|
end
|