Permalink
Browse files

Make sure we don't build rspec-core with Ruby 1.9.2

  • Loading branch information...
1 parent 2c00b21 commit f2470ea113e2cdc79b476473a9816acfdec56543 @dchelimsky dchelimsky committed May 20, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 Rakefile
View
@@ -2,6 +2,20 @@ require "bundler"
Bundler.setup
Bundler::GemHelper.install_tasks
+task :build => :raise_if_psych_is_defined
+
+task :raise_if_psych_is_defined do
+ if defined?(Psych)
+ raise <<-MSG
+===============================================================================
+Gems compiled in Ruby environments with Psych loaded are incompatible with Ruby
+environments that don't have Psych loaded. Try building this gem in Ruby 1.8.7
+instead.
+===============================================================================
+MSG
+ end
+end
+
require "rake"
require "yaml"
@@ -10,6 +24,7 @@ require "rspec/core/rake_task"
require "rspec/core/version"
cucumber_loaded = false
+
begin
require "cucumber/rake/task"

0 comments on commit f2470ea

Please sign in to comment.