From faa8a6c5b30992bb968e615eb574c5e72b959dee Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Mon, 12 Dec 2011 21:38:47 -0600 Subject: [PATCH] Test RUBY_VERSION rather than VERSION (which no longer exists in 1.9). --- lib/process_shared.rb | 2 +- spec/spec_helper.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/process_shared.rb b/lib/process_shared.rb index 6b1e8bb..2f1b184 100644 --- a/lib/process_shared.rb +++ b/lib/process_shared.rb @@ -1,6 +1,6 @@ require 'ffi' -if VERSION =~ /^1.8/ +if RUBY_VERSION =~ /^1.8/ require 'process_shared/define_singleton_method' module ProcessShared diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7ae810f..5a24791 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,4 @@ -require 'rubygems' if VERSION =~ /^1.8/ +require 'rubygems' if RUBY_VERSION =~ /^1.8/ gem 'minitest' require 'minitest/spec' require 'minitest/autorun'