Author: donaldp
Date: Mon Oct 22 08:42:54 2012
New Revision: 1400799
URL: http://svn.apache.org/viewvc?rev=1400799&view=rev
Log:
Add some checks to ensure we are staging the release uder the correct ruby
Modified:
buildr/trunk/rakelib/stage.rake
Modified: buildr/trunk/rakelib/stage.rake
URL:
http://svn.apache.org/viewvc/buildr/trunk/rakelib/stage.rake?rev=1400799&r1=1400798&r2=1400799&view=diff
==============================================================================
--- buildr/trunk/rakelib/stage.rake (original)
+++ buildr/trunk/rakelib/stage.rake Mon Oct 22 08:42:54 2012
@@ -68,6 +68,9 @@ task 'prepare' do |task, args|
rubyforge.login
rubyforge.scrape_project(spec.name)
end.call
+
+ raise "Can not run stage process under jruby" if RUBY_PLATFORM[/java/]
+ raise "Can not run staging process under older rubies" unless RUBY_VERSION
>= '1.9'
end
task 'stage' => %w(clobber prepare) do |task, args|