summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-10-13 22:28:59 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-10-14 14:42:53 +0900
commit9aab916990f355cfee6606e400c7a165c5dd10f0 (patch)
treea7d6c1dc4e96afc6baba3621ea5660798bdc6f34 /tool/sync_default_gems.rb
parent1e316edf6063b8f12b0ec67e3d2404fc919a96f4 (diff)
Promote pathname to default gems
Diffstat (limited to 'tool/sync_default_gems.rb')
-rw-r--r--tool/sync_default_gems.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 685e5745ad..57aa347566 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -80,6 +80,7 @@ REPOSITORIES = {
pp: "ruby/pp",
prettyprint: "ruby/prettyprint",
drb: "ruby/drb",
+ pathname: "ruby/pathname",
}
def sync_default_gems(gem)
@@ -308,6 +309,12 @@ def sync_default_gems(gem)
cp_r("#{upstream}/test/bigdecimal", "test")
cp_r("#{upstream}/bigdecimal.gemspec", "ext/bigdecimal")
`git checkout ext/bigdecimal/depend`
+ when "pathname"
+ rm_rf(%w[ext/pathname test/pathname])
+ cp_r("#{upstream}/ext/pathname", "ext")
+ cp_r("#{upstream}/test/pathname", "test")
+ cp_r("#{upstream}/pathname.gemspec", "ext/pathname")
+ `git checkout ext/pathname/depend`
else
sync_lib gem, upstream
end