Test RUBY_VERSION rather than VERSION (which no longer exists in 1.9).

This commit is contained in:
Patrick Mahoney 2011-12-12 21:38:47 -06:00
parent 509e1e5a91
commit faa8a6c5b3
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
require 'ffi' require 'ffi'
if VERSION =~ /^1.8/ if RUBY_VERSION =~ /^1.8/
require 'process_shared/define_singleton_method' require 'process_shared/define_singleton_method'
module ProcessShared module ProcessShared

View File

@ -1,4 +1,4 @@
require 'rubygems' if VERSION =~ /^1.8/ require 'rubygems' if RUBY_VERSION =~ /^1.8/
gem 'minitest' gem 'minitest'
require 'minitest/spec' require 'minitest/spec'
require 'minitest/autorun' require 'minitest/autorun'