Add some checks to ensure we are staging the release uder the correct ruby
authorPeter Donald <donaldp@apache.org>
Mon, 22 Oct 2012 08:42:54 +0000 (08:42 +0000)
committerPeter Donald <donaldp@apache.org>
Mon, 22 Oct 2012 08:42:54 +0000 (08:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@1400799 13f79535-47bb-0310-9956-ffa450edef68

rakelib/stage.rake

index bc9a2ab..4e47ffd 100644 (file)
@@ -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|