summaryrefslogtreecommitdiff
path: root/lib/bundler/dependency.rb
diff options
context:
space:
mode:
authorTim Felgentreff <timfelgentreff@gmail.com>2011-09-21 16:18:25 -0700
committerTim Felgentreff <timfelgentreff@gmail.com>2011-09-21 16:18:25 -0700
commita6b0db25be12cbd85a9434567c8f7efe74662e28 (patch)
tree7d7fa9de148b6de8a414fa2c1e281ef056b1dd72 /lib/bundler/dependency.rb
parent01bcd0000e43512b9788aeaf5179db7de67883df (diff)
downloadbundler-a6b0db25be12cbd85a9434567c8f7efe74662e28.tar.gz
Add support for MagLev.
Diffstat (limited to 'lib/bundler/dependency.rb')
-rw-r--r--lib/bundler/dependency.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/dependency.rb b/lib/bundler/dependency.rb
index a798b6cbff..453d568e58 100644
--- a/lib/bundler/dependency.rb
+++ b/lib/bundler/dependency.rb
@@ -79,7 +79,7 @@ module Bundler
private
def ruby?
- !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx")
+ !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev")
end
def ruby_18?
@@ -110,6 +110,10 @@ module Bundler
defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
end
+ def maglev?
+ defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
+ end
+
def mswin?
Bundler::WINDOWS
end