diff options
Diffstat (limited to 'tool')
-rw-r--r-- | tool/sync_default_gems.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 810f1e9a92..1c07073e2d 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -48,6 +48,7 @@ # * https://github.com/ruby/yaml # * https://github.com/ruby/uri # * https://github.com/ruby/openssl +# * https://github.com/ruby/did_you_mean # require 'fileutils' @@ -102,6 +103,7 @@ $repositories = { yaml: "ruby/yaml", uri: "ruby/uri", openssl: "ruby/openssl", + did_you_mean: "ruby/did_you_mean" } def sync_default_gems(gem) @@ -262,6 +264,12 @@ def sync_default_gems(gem) when "readlineext" sync_lib "readline-ext" mv "lib/readline-ext.gemspec", "ext/readline" + when "did_you_mean" + rm_rf(%w[lib/did_you_mean* test/did_you_mean]) + cp_r(Dir.glob("#{upstream}/lib/did_you_mean*"), "lib") + cp_r("#{upstream}/did_you_mean.gemspec", "lib/did_you_mean") + cp_r("#{upstream}/test", "test/did_you_mean") + rm_rf(%w[test/did_you_mean/tree_spell/test_explore.rb]) else sync_lib gem end |