spec/includes.rb in cross-stub-0.2.1 vs spec/includes.rb in cross-stub-0.2.2
- old
+ new
@@ -5,10 +5,10 @@
# ///////////////////////////////////////////////////////////////////////
RUBY_VM = [
RUBY_VERSION.gsub(/[^\d]/,''),
RUBY_PLATFORM =~ /java/i ? 'j' : '',
- RUBY_DESCRIPTION =~ /enterprise/i ? 'e' : ''
+ (Object.const_defined?(:RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : '') =~ /enterprise/i ? 'e' : ''
].join
PROJECT_ROOT = File.join(File.dirname(File.expand_path(__FILE__)), '..')
PROJECT_FILE = lambda{|*args| File.join(*[PROJECT_ROOT, *args]) }