aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/performance.rb
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-03-25 17:18:06 +0000
committerGonçalo Silva <goncalossilva@gmail.com>2011-03-25 17:18:06 +0000
commit995d543b6458f84b05bd75464c7c270f1dfb14d2 (patch)
treede983b21fcd8c3d475f0bc26a4b25e06ade0cdac /activesupport/lib/active_support/testing/performance.rb
parent2fa426c9444dc6dd1b701592cf4d636739556b9e (diff)
downloadrails-995d543b6458f84b05bd75464c7c270f1dfb14d2.tar.gz
rails-995d543b6458f84b05bd75464c7c270f1dfb14d2.tar.bz2
rails-995d543b6458f84b05bd75464c7c270f1dfb14d2.zip
added basic structure for Rubinius
Diffstat (limited to 'activesupport/lib/active_support/testing/performance.rb')
-rw-r--r--activesupport/lib/active_support/testing/performance.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index a7faf6267a..ae78fafe78 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -271,10 +271,11 @@ module ActiveSupport
end
end
-RUBY_ENGINE = "ruby" unless defined?(RUBY_ENGINE)
+RUBY_ENGINE = 'ruby' unless defined?(RUBY_ENGINE) # mri 1.8
case RUBY_ENGINE
- when "ruby" then require 'active_support/testing/performance/ruby'
+ when 'ruby' then require 'active_support/testing/performance/ruby'
+ when 'rubinius' then require 'active_support/testing/performance/rubinius'
else
- $stderr.puts "Your ruby interpreter is not supported for benchmarking."
+ $stderr.puts 'Your ruby interpreter is not supported for benchmarking.'
exit
end