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

ruby-changes:62878

From: Hiroshi <ko1@a...>
Date: Thu, 10 Sep 2020 20:43:35 +0900 (JST)
Subject: [ruby-changes:62878] cf681038d6 (master): Promote shellwords to default gems

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

From cf681038d621bbd8bb7808b7b153535397df0e68 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 10 Sep 2020 15:42:23 +0900
Subject: Promote shellwords to default gems


diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index af5e3e5..4b8a029 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -61,8 +61,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L61
   https://github.com/rubygems/rubygems
 [lib/securerandom.rb]
   Tanaka Akira (akr)
-[lib/shellwords.rb]
-  Akinori MUSHA (knu)
 [lib/time.rb]
   Tanaka Akira (akr)
 [lib/un.rb]
@@ -234,6 +232,9 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L232
 [lib/set.rb]
   Akinori MUSHA (knu)
   https://github.com/ruby/set
+[lib/shellwords.rb]
+  Akinori MUSHA (knu)
+  https://github.com/ruby/shellwords
 [lib/singleton.rb]
   Yukihiro Matsumoto (matz)
   https://github.com/ruby/singleton
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index d561ecb..74d9301 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -20,7 +20,6 @@ resolv-replace.rb:: Replace Socket DNS with Resolv https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L20
 Resolv::  Thread-aware DNS resolver library in Ruby
 Gem:: Package management framework for Ruby
 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
 un.rb:: Utilities to replace common UNIX commands
 
@@ -74,6 +73,7 @@ Racc:: A LALR(1) parser generator written in Ruby. https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L73
 RDoc:: Produces HTML and command-line documentation for Ruby
 Rinda:: The Linda distributed computing paradigm in Ruby
 Set:: Provides a class to deal with collections of unordered, unique values
+Shellwords:: Manipulates strings with word parsing rules of UNIX Bourne shell
 Singleton:: Implementation of the Singleton pattern for Ruby
 Tempfile:: A utility class for managing temporary files
 Timeout:: Auto-terminate potentially long-running operations in Ruby
diff --git a/lib/shellwords.gemspec b/lib/shellwords.gemspec
new file mode 100644
index 0000000..8ae87b2
--- /dev/null
+++ b/lib/shellwords.gemspec
@@ -0,0 +1,22 @@ https://github.com/ruby/ruby/blob/trunk/lib/shellwords.gemspec#L1
+Gem::Specification.new do |spec|
+  spec.name          = "shellwords"
+  spec.version       = "0.1.0"
+  spec.authors       = ["Akinori MUSHA"]
+  spec.email         = ["knu@i..."]
+
+  spec.summary       = %q{Manipulates strings with word parsing rules of UNIX Bourne shell.}
+  spec.description   = %q{Manipulates strings with word parsing rules of UNIX Bourne shell.}
+  spec.homepage      = "https://github.com/ruby/shellwords"
+  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 dc8e6b2..a787c87 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -69,6 +69,7 @@ REPOSITORIES = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L69
   nkf: "ruby/nkf",
   tsort: "ruby/tsort",
   abbrev: "ruby/abbrev",
+  shellwords: "ruby/shellwords",
 }
 
 def sync_default_gems(gem)
-- 
cgit v0.10.2


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

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