summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-10 13:54:28 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-10 18:56:16 +0900
commitcee8e95761faeb482f303d1ea67c2dd91408f01f (patch)
tree3859f03298c6fb90014798f96101e1add86b94c1
parentea78960ee5cb78c6aaaaa7091b85066a011c51e9 (diff)
Promote abbrev to default gems
-rw-r--r--doc/maintainers.rdoc5
-rw-r--r--doc/standard_library.rdoc2
-rw-r--r--lib/abbrev.gemspec22
-rw-r--r--tool/sync_default_gems.rb1
4 files changed, 27 insertions, 3 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 05049e6a49..af5e3e57c9 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -38,8 +38,6 @@ Zachary Scott (zzak)
=== Libraries
-[lib/abbrev.rb]
- Akinori MUSHA (knu)
[lib/base64.rb]
Yusuke Endoh (mame)
[lib/drb.rb, lib/drb/*]
@@ -106,6 +104,9 @@ Zachary Scott (zzak)
=== Libraries
+[lib/abbrev.rb]
+ Akinori MUSHA (knu)
+ https://github.com/ruby/abbrev
[lib/benchmark.rb]
_unmaintained_
https://github.com/ruby/benchmark
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index 7e4c13b329..d561ecbc7b 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -8,7 +8,6 @@ description.
== Libraries
-Abbrev:: Calculates a set of unique abbreviations for a given set of strings
Base64:: Support for encoding and decoding binary data using a Base64 representation
DEBUGGER__:: Debugging functionality for Ruby
DRb:: Distributed object system for Ruby
@@ -42,6 +41,7 @@ WIN32OLE:: Provides an interface for OLE Automation in Ruby
== Libraries
+Abbrev:: Calculates a set of unique abbreviations for a given set of strings
Benchmark:: Provides methods to measure and report the time used to execute code
Bundler:: Manage your Ruby application's gem dependencies
CGI:: Support for the Common Gateway Interface protocol
diff --git a/lib/abbrev.gemspec b/lib/abbrev.gemspec
new file mode 100644
index 0000000000..4edf0edaa3
--- /dev/null
+++ b/lib/abbrev.gemspec
@@ -0,0 +1,22 @@
+Gem::Specification.new do |spec|
+ spec.name = "abbrev"
+ spec.version = "0.1.0"
+ spec.authors = ["Akinori MUSHA"]
+ spec.email = ["knu@idaemons.org"]
+
+ spec.summary = %q{Calculates a set of unique abbreviations for a given set of strings}
+ spec.description = %q{Calculates a set of unique abbreviations for a given set of strings}
+ spec.homepage = "https://github.com/ruby/abbrev"
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
+ spec.licenses = ["Ruby", "BSD-2-Clause"]
+
+ spec.metadata["homepage_uri"] = spec.homepage
+ spec.metadata["source_code_uri"] = spec.homepage
+
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+ end
+ spec.bindir = "exe"
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+ spec.require_paths = ["lib"]
+end
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 8a672dbf34..dc8e6b2e1e 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -68,6 +68,7 @@ REPOSITORIES = {
erb: "ruby/erb",
nkf: "ruby/nkf",
tsort: "ruby/tsort",
+ abbrev: "ruby/abbrev",
}
def sync_default_gems(gem)