From fc1d06b25d0ba3b1fb14b55cbff0218d8298bcf0 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 8 Nov 2019 14:31:43 +0900 Subject: [PATCH] Added gemspec for readline gem that is wrapper library for reline and readline extension --- doc/maintainers.rdoc | 4 ++++ lib/readline.gemspec | 23 +++++++++++++++++++++++ tool/sync_default_gems.rb | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 lib/readline.gemspec diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc index 56e921303a..1cc73dfa20 100644 --- a/doc/maintainers.rdoc +++ b/doc/maintainers.rdoc @@ -232,6 +232,10 @@ Zachary Scott (zzak) Aaron Patterson (tenderlove), Hiroshi SHIBATA (hsbt) https://github.com/ruby/racc https://rubygems.org/gems/racc +[lib/readline.rb] + aycabta + https://github.com/ruby/readline + https://rubygems.org/gems/readline [lib/rdoc.rb, lib/rdoc/*] Eric Hodel (drbrain), Hiroshi SHIBATA (hsbt) https://github.com/ruby/rdoc diff --git a/lib/readline.gemspec b/lib/readline.gemspec new file mode 100644 index 0000000000..0f8ff96119 --- /dev/null +++ b/lib/readline.gemspec @@ -0,0 +1,23 @@ +Gem::Specification.new do |spec| + spec.name = 'readline' + spec.version = '0.0.1.pre.1' + spec.authors = ['aycabta'] + spec.email = ['aycabta@gmail.com'] + + spec.summary = %q{It's a loader for "readline".} + spec.description = <<~EOD + This is just loader for "readline". If Ruby has "readline-ext" gem that + is a native extension, this gem will load its first. If Ruby doesn't have + the "readline-ext" gem this gem will load "reline" that is a compatible + library with "readline-ext" gem and is implemented by pure Ruby. + EOD + spec.homepage = 'https://github.com/ruby/readline' + spec.license = 'Ruby license' + + spec.files = Dir['BSDL', 'COPYING', 'README.md', 'lib/readline.rb'] + spec.require_paths = ['lib'] + + spec.add_runtime_dependency 'reline' + spec.add_development_dependency 'bundler' + spec.add_development_dependency 'rake' +end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 3e0bd4eba9..3cd9177e63 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -42,6 +42,7 @@ # * https://github.com/ruby/net-pop # * https://github.com/ruby/net-smtp # * https://github.com/ruby/cgi +# * https://github.com/ruby/readline # require 'fileutils' @@ -91,6 +92,7 @@ $repositories = { netpop: "ruby/net-pop", netsmtp: "ruby/net-smtp", cgi: "ruby/cgi", + readline: "ruby/readline", } def sync_default_gems(gem)