summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-20 02:24:59 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-20 02:24:59 +0000
commitd6ec12417a1d554825a291dae10e8508a0cbbd06 ()
tree3dff23229c4b4edd033f61a3840f319285ff130f
parent6d4a5caa6227ab9cc67f039b4dfaaddc0230b372 (diff)
Promote Shell library to default gems.
* doc/*: Move entry to default gems category from standard library. * lib/shell/*: Added `Shell::VERSION` and re-used it with @RELEASE_VERSION. * test/shell/test_command_processor.rb: added missing require for test library. * tool/sync_default_gems.rb: Support shell library. We need to ignore shellwords.rb when syncing shell* files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--doc/maintainers.rdoc4
-rw-r--r--doc/standard_library.rdoc2
-rw-r--r--lib/shell/shell.gemspec21
-rw-r--r--lib/shell/version.rb3
-rw-r--r--test/shell/test_command_processor.rb1
-rw-r--r--tool/sync_default_gems.rb8
6 files changed, 32 insertions, 7 deletions
@@ -117,8 +117,6 @@ Zachary Scott (zzak)
Akinori MUSHA (knu)
[lib/securerandom.rb]
Tanaka Akira (akr)
-[lib/shell.rb, lib/shell/*]
- Keiju ISHITSUKA (keiju)
[lib/shellwords.rb]
Akinori MUSHA (knu)
[lib/singleton.rb]
@@ -219,6 +217,8 @@ Zachary Scott (zzak)
[lib/scanf.rb]
David A. Black (dblack)
https://.com/ruby/scanf
[lib/sync.rb]
Keiju ISHITSUKA (keiju)
[lib/tracer.rb]
@@ -47,7 +47,6 @@ Rinda:: The Linda distributed computing paradigm in Ruby
Gem:: Package management framework for Ruby
SecureRandom:: Interface for secure random number generator
Set:: Provides a class to deal with collections of unordered, unique values
-Shell:: An idiomatic Ruby interface for common UNIX shell commands
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
@@ -93,6 +92,7 @@ RDoc:: Produces HTML and command-line documentation for Ruby
REXML:: An XML toolkit for Ruby
RSS:: Family of libraries that support various formats of XML "feeds"
Scanf:: A Ruby implementation of the C function scanf(3)
Synchronizer:: A module that provides a two-phase lock with a counter
Tracer:: Outputs a source level execution trace of a Ruby program
WEBrick:: An HTTP server toolkit for Ruby
@@ -0,0 +1,21 @@
@@ -11,6 +11,7 @@
#
class Shell # :nodoc:
- @RELEASE_VERSION = "0.7"
@LAST_UPDATE_DATE = "07/03/20"
end
@@ -1,4 +1,5 @@
# frozen_string_literal: false
require 'shell'
require 'tmpdir'
@@ -30,6 +30,7 @@
# * https://.com/ruby/irb
# * https://.com/ruby/sync
# * https://.com/ruby/tracer
#
$repositories = {
@@ -62,7 +63,8 @@ $repositories = {
rss: 'ruby/rss',
irb: 'ruby/irb',
sync: 'ruby/sync',
- tracer: 'ruby/tracer'
}
def sync_default_gems(gem)
@@ -226,14 +228,14 @@ def sync_default_gems(gem)
`cp -rf ../tracer/lib/* lib`
`cp -rf ../tracer/test/test_tracer.rb test`
`cp -f ../tracer/tracer.gemspec lib`
- when "rexml", "rss", "matrix", "irb", "csv"
sync_lib gem
else
end
end
def sync_lib(repo)
- `rm -rf lib/#{repo}* test/#{repo}`
`cp -rf ../#{repo}/lib/* lib`
`cp -rf ../#{repo}/test/#{repo} test`
`cp -f ../#{repo}/#{repo}.gemspec lib/#{repo}`