summaryrefslogtreecommitdiff
path: root/lib/bundler/gem_installer.rb
diff options
context:
space:
mode:
authorHemant Kumar <gethemant@gmail.com>2013-07-27 01:41:20 +0530
committerHemant Kumar <gethemant@gmail.com>2013-07-29 23:22:56 +0530
commit64f201c6ff2498773dd02b80586354623612e1d0 (patch)
tree6bbc3f0f20f9ac56f1105543d9fc876e76c7e78b /lib/bundler/gem_installer.rb
parent41ee4215711aa3eab3f373dc8068dcaf8cd3f833 (diff)
downloadbundler-64f201c6ff2498773dd02b80586354623612e1d0.tar.gz
Add check for JRuby apart from Windows on build_extensions method
Diffstat (limited to 'lib/bundler/gem_installer.rb')
-rw-r--r--lib/bundler/gem_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/gem_installer.rb b/lib/bundler/gem_installer.rb
index 381bd284d8..749ff53653 100644
--- a/lib/bundler/gem_installer.rb
+++ b/lib/bundler/gem_installer.rb
@@ -6,7 +6,7 @@ module Bundler
# Bundler needs to install gems regardless of binstub overwriting
end
- if WINDOWS
+ if Bundler.current_ruby.mswin? || Bundler.current_ruby.jruby?
def build_extensions
# Gain the lock because rubygems use Dir.chdir
SharedHelpers.chdir('.') do