summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Michaels-Ober <sferik@gmail.com>2011-09-21 16:49:26 -0700
committerErik Michaels-Ober <sferik@gmail.com>2011-09-21 16:49:26 -0700
commit1e7bb2e409d13329bd8ccea990accc624d487389 (patch)
tree7d7fa9de148b6de8a414fa2c1e281ef056b1dd72
parent01bcd0000e43512b9788aeaf5179db7de67883df (diff)
parenta6b0db25be12cbd85a9434567c8f7efe74662e28 (diff)
downloadbundler-1e7bb2e409d13329bd8ccea990accc624d487389.tar.gz
Merge pull request #1444 from timfel/patch-1
Add support for MagLev.
-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