diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-20 02:24:59 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-20 02:24:59 +0000 |
commit | d6ec12417a1d554825a291dae10e8508a0cbbd06 (patch) | |
tree | 3dff23229c4b4edd033f61a3840f319285ff130f /tool/sync_default_gems.rb | |
parent | 6d4a5caa6227ab9cc67f039b4dfaaddc0230b372 (diff) | |
download | ruby-d6ec12417a1d554825a291dae10e8508a0cbbd06.tar.gz |
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
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r-- | tool/sync_default_gems.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index f4e5a73381..75094376e2 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -30,6 +30,7 @@ # * https://github.com/ruby/irb # * https://github.com/ruby/sync # * https://github.com/ruby/tracer +# * https://github.com/ruby/shell # $repositories = { @@ -62,7 +63,8 @@ $repositories = { rss: 'ruby/rss', irb: 'ruby/irb', sync: 'ruby/sync', - tracer: 'ruby/tracer' + tracer: 'ruby/tracer', + shell: 'ruby/shell' } 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" + when "rexml", "rss", "matrix", "irb", "csv", "shell" sync_lib gem else end end def sync_lib(repo) - `rm -rf lib/#{repo}* test/#{repo}` + `rm -rf lib/#{repo}.rb lib/#{repo}/* test/#{repo}` `cp -rf ../#{repo}/lib/* lib` `cp -rf ../#{repo}/test/#{repo} test` `cp -f ../#{repo}/#{repo}.gemspec lib/#{repo}` |