From 2d93b523e11131375758f9a5454e12e4eb6926c7 Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 30 Aug 2021 03:00:02 +0900 Subject: Add irb section to tool/sync_default_gems.rb --- tool/sync_default_gems.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tool/sync_default_gems.rb') diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 04b9fe7877..82d372d855 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -133,6 +133,13 @@ def sync_default_gems(gem) cp_r(Dir.glob("#{upstream}/lib/reline*"), "lib") cp_r("#{upstream}/test/reline", "test") cp_r("#{upstream}/reline.gemspec", "lib/reline") + when "irb" + rm_rf(%w[lib/irb lib/irb.rb test/irb]) + cp_r(Dir.glob("#{upstream}/lib/irb*"), "lib") + cp_r("#{upstream}/test/irb", "test") + cp_r("#{upstream}/irb.gemspec", "lib/irb") + cp_r("#{upstream}/man/irb.1", "man/irb.1") + cp_r("#{upstream}/doc/irb", "doc") when "json" rm_rf(%w[ext/json test/json]) cp_r("#{upstream}/ext/json/ext", "ext/json") -- cgit v1.2.1