Skip to content
This repository
Browse code

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

  • Loading branch information...
commit f2470ea113e2cdc79b476473a9816acfdec56543 1 parent 2c00b21
David Chelimsky authored May 20, 2011

Showing 1 changed file with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. 15  Rakefile
15  Rakefile
@@ -2,6 +2,20 @@ require "bundler"
2 2
 Bundler.setup
3 3
 Bundler::GemHelper.install_tasks
4 4
 
  5
+task :build => :raise_if_psych_is_defined
  6
+
  7
+task :raise_if_psych_is_defined do
  8
+  if defined?(Psych)
  9
+    raise <<-MSG
  10
+===============================================================================
  11
+Gems compiled in Ruby environments with Psych loaded are incompatible with Ruby
  12
+environments that don't have Psych loaded. Try building this gem in Ruby 1.8.7
  13
+instead.
  14
+===============================================================================
  15
+MSG
  16
+  end
  17
+end
  18
+
5 19
 require "rake"
6 20
 require "yaml"
7 21
 
@@ -10,6 +24,7 @@ require "rspec/core/rake_task"
10 24
 require "rspec/core/version"
11 25
 
12 26
 cucumber_loaded = false
  27
+
13 28
 begin
14 29
   require "cucumber/rake/task"
15 30
 

0 notes on commit f2470ea

Please sign in to comment.
Something went wrong with that request. Please try again.