Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.628 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"
rsync dir + "/*", "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.