Permalink
Browse files

Add support for MagLev.

  • Loading branch information...
1 parent 01bcd00 commit a6b0db25be12cbd85a9434567c8f7efe74662e28 @timfel timfel committed Sep 21, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/bundler/dependency.rb
@@ -79,7 +79,7 @@ def to_lock
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 @@ def jruby?
defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
end
+ def maglev?
+ defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
+ end
+
def mswin?
Bundler::WINDOWS
end

0 comments on commit a6b0db2

Please sign in to comment.