Skip to content

Commit be43c22

Browse files
committed
Add a build_for_local_ruby task to simplify local testing flow
A common way to test RDoc changes is to build `ruby/ruby`'s documentation with the latest RDoc changes. When RDoc was a default gem, we can sync it to `ruby/ruby` with its `tool/sync_default_gems.rb` script. Now that RDoc is a bundled gem, we need to use a different method to sync it to `ruby/ruby`. And so far building it and moving it to `ruby/ruby`'s bundled gems folder is the easiest way to do it.
1 parent f6289b7 commit be43c22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ task :clean do
9999
end
100100
end
101101

102+
desc "Build #{Bundler::GemHelper.gemspec.full_name} and move it to local ruby/ruby project's bundled gems folder"
103+
task build_for_local_ruby: :build do
104+
sh "mv #{path}.gem ../ruby/gems/"
105+
end
106+
102107
begin
103108
require 'rubocop/rake_task'
104109
rescue LoadError

0 commit comments

Comments
 (0)