mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
b0b3022f95
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/reline/commit/c09b7c454a
23 lines
825 B
Ruby
23 lines
825 B
Ruby
|
|
lib = File.expand_path('../lib', __FILE__)
|
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
require 'reline/version'
|
|
|
|
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
|