1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/irb/irb.gemspec
Nobuyoshi Nakada 9e940eae60
[ruby/irb] Moved development dependencies to Gemfile
As expressions in a gemspec file are evaluated at the build time,
but not the run time, the conditional in the gemspec will not work
as intended.

https://github.com/ruby/irb/commit/42f364ea23
2021-04-08 21:41:00 +09:00

40 lines
1.1 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 = ["Keiju ISHITSUKA"]
spec.email = ["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.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.5")
spec.add_dependency "reline", ">= 0.1.5"
end