Revert "Updated with Rubinius Support"

This reverts commit 3ce23a8ee0.
This commit is contained in:
Marc Peabody
2011-01-12 15:37:38 -05:00
parent b7c27f5b01
commit 670101783b
4 changed files with 16 additions and 23 deletions

View File

@@ -13,18 +13,13 @@ end
def ruby_version?(version)
RUBY_VERSION =~ /^#{version}/ ||
(version == 'jruby' && defined?(JRUBY_VERSION)) ||
(version == 'mri' && (! defined?(JRUBY_VERSION) && ! defined?(Rubinius))) ||
(version == 'rbx' && defined?(Rubinius))
(version == 'mri' && ! defined?(JRUBY_VERSION))
end
def in_ruby_version(*versions)
yield if versions.any? { |v| ruby_version?(v) }
end
def not_in_ruby_version(*versions)
yield unless versions.any? { |v| ruby_version?(v) }
end
# Standard, generic replacement value.
# If value19 is given, it is used inplace of value for Ruby 1.9.
def __(value="FILL ME IN", value19=:mu)
@@ -57,7 +52,7 @@ class Object
end
end
in_ruby_version("1.9", "rbx") do
in_ruby_version("1.9") do
public :method_missing
end
end