[前][次][番号順一覧][スレッド一覧]

ruby-changes:62871

From: Hiroshi <ko1@a...>
Date: Wed, 9 Sep 2020 21:53:28 +0900 (JST)
Subject: [ruby-changes:62871] 01828a955a (master): Promote tsort to default gems

https://git.ruby-lang.org/ruby.git/commit/?id=01828a955a

From 01828a955a2d776263bda84ee12d9ea922bbfa01 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Wed, 9 Sep 2020 21:53:09 +0900
Subject: Promote tsort to default gems


diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 087feb5..05049e6 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -67,8 +67,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L67
   Akinori MUSHA (knu)
 [lib/time.rb]
   Tanaka Akira (akr)
-[lib/tsort.rb]
-  Tanaka Akira (akr)
 [lib/un.rb]
   WATANABE Hirofumi (eban)
 [lib/unicode_normalize.rb, lib/unicode_normalize/*]
@@ -255,6 +253,9 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L253
 [lib/tracer.rb]
   Keiju ISHITSUKA (keiju)
   https://github.com/ruby/tracer
+[lib/tsort.rb]
+  Tanaka Akira (akr)
+  https://github.com/ruby/tsort
 [lib/uri.rb, lib/uri/*]
   YAMADA, Akira (akira)
   https://github.com/ruby/uri
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index fd5b8c5..7e4c13b 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -23,7 +23,6 @@ Gem:: Package management framework for Ruby https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L23
 SecureRandom:: Interface for secure random number generator
 Shellwords:: Manipulates strings with word parsing rules of UNIX Bourne shell
 Time:: Extends the Time class with methods for parsing and conversion
-TSort:: Topological sorting using Tarjan's algorithm
 un.rb:: Utilities to replace common UNIX commands
 
 == Extensions
@@ -80,6 +79,7 @@ Tempfile:: A utility class for managing temporary files https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L79
 Timeout:: Auto-terminate potentially long-running operations in Ruby
 tmpdir.rb:: Extends the Dir class to manage the OS temporary file path
 Tracer:: Outputs a source level execution trace of a Ruby program
+TSort:: Topological sorting using Tarjan's algorithm
 URI:: A Ruby module providing support for Uniform Resource Identifiers
 WEBrick:: An HTTP server toolkit for Ruby
 YAML:: Ruby client library for the Psych YAML implementation
diff --git a/lib/tsort.gemspec b/lib/tsort.gemspec
new file mode 100644
index 0000000..4656d0b
--- /dev/null
+++ b/lib/tsort.gemspec
@@ -0,0 +1,22 @@ https://github.com/ruby/ruby/blob/trunk/lib/tsort.gemspec#L1
+Gem::Specification.new do |spec|
+  spec.name          = "tsort"
+  spec.version       = "0.1.0"
+  spec.authors       = ["Tanaka Akira"]
+  spec.email         = ["akr@f..."]
+
+  spec.summary       = %q{Topological sorting using Tarjan's algorithm}
+  spec.description   = %q{Topological sorting using Tarjan's algorithm}
+  spec.homepage      = "https://github.com/ruby/tsort"
+  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 1943eeb..8a672db 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -67,6 +67,7 @@ REPOSITORIES = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L67
   rinda: "ruby/rinda",
   erb: "ruby/erb",
   nkf: "ruby/nkf",
+  tsort: "ruby/tsort",
 }
 
 def sync_default_gems(gem)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]