mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
a81e0600a7
When merged to ruby/ruby, reline.gemspec file is located under lib/reline, as the same as reline/version.rb. That is the latter path relative from the former differs from the ruby/reline case, and the reline/version.rb in the default load path will be loaded. Try `require_relative` not to load unexpected files. https://github.com/ruby/reline/commit/54905d0e1b
25 lines
797 B
Ruby
25 lines
797 B
Ruby
|
|
begin
|
|
require_relative 'lib/reline/version'
|
|
rescue LoadError
|
|
require_relative 'version'
|
|
end
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = 'reline'
|
|
spec.version = Reline::VERSION
|
|
spec.authors = ['aycabta']
|
|
spec.email = ['aycabta@gmail.com']
|
|
|
|
spec.summary = %q{Alternative GNU Readline or Editline implementation by pure Ruby.}
|
|
spec.description = %q{Alternative GNU Readline or Editline implementation by pure Ruby.}
|
|
spec.homepage = 'https://github.com/ruby/reline'
|
|
spec.license = 'Ruby'
|
|
|
|
spec.files = Dir['BSDL', 'COPYING', 'README.md', 'license_of_rb-readline', 'lib/**/*']
|
|
spec.require_paths = ['lib']
|
|
|
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.5')
|
|
|
|
spec.add_dependency 'io-console', '~> 0.5'
|
|
end
|