Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.724 kB
# -*- ruby -*-
require 'rakelib/git'
namespace :rubyspec do
desc "Synchronize ./spec/ruby with a current clone of RubySpec"
task :sync do
unless dir = ENV['DIR']
raise "Use DIR= to specify a clone of rubyspec"
end
unless is_git_project dir, "rubyspec.git"
raise "#{dir} is not a rubyspec clone. Clone from 'git://github.com/rubyspec/rubyspec.git'"
end
rm_rf "spec/ruby"
rm_rf "#{dir}/optional/capi/ext/rubyspec_version.h"
rsync "#{dir}/*", "spec/ruby"
cp "#{dir}/.gitignore", "spec/ruby"
version = Dir.chdir(dir) { `git log --pretty=oneline -1`[0..7] }
sh "git add spec/ruby/"
sh "git commit -m 'Updated CI specs to RubySpec #{version}.' spec/ruby"
end
end
Jump to Line
Something went wrong with that request. Please try again.