From 3ec79e4288df602301e26ae7b2f2b651ff745862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Fri, 25 Mar 2011 02:59:11 +0000 Subject: [PATCH] renamed "mri" to "ruby", for consistency with RUBY_ENGINE --- activesupport/lib/active_support/testing/performance.rb | 4 ++-- .../active_support/testing/performance/{mri.rb => ruby.rb} | 0 .../lib/active_support/testing/performance/ruby/mri.rb | 0 .../lib/active_support/testing/performance/ruby/yarv.rb | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename activesupport/lib/active_support/testing/performance/{mri.rb => ruby.rb} (100%) create mode 100644 activesupport/lib/active_support/testing/performance/ruby/mri.rb create mode 100644 activesupport/lib/active_support/testing/performance/ruby/yarv.rb diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index 351835553f..a7faf6267a 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -271,9 +271,9 @@ module ActiveSupport end end -RUBY_ENGINE ||= "ruby" +RUBY_ENGINE = "ruby" unless defined?(RUBY_ENGINE) case RUBY_ENGINE - when "ruby" then require 'active_support/testing/performance/mri' + when "ruby" then require 'active_support/testing/performance/ruby' else $stderr.puts "Your ruby interpreter is not supported for benchmarking." exit diff --git a/activesupport/lib/active_support/testing/performance/mri.rb b/activesupport/lib/active_support/testing/performance/ruby.rb similarity index 100% rename from activesupport/lib/active_support/testing/performance/mri.rb rename to activesupport/lib/active_support/testing/performance/ruby.rb diff --git a/activesupport/lib/active_support/testing/performance/ruby/mri.rb b/activesupport/lib/active_support/testing/performance/ruby/mri.rb new file mode 100644 index 0000000000..e69de29bb2 diff --git a/activesupport/lib/active_support/testing/performance/ruby/yarv.rb b/activesupport/lib/active_support/testing/performance/ruby/yarv.rb new file mode 100644 index 0000000000..e69de29bb2