aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/parallel_workers.rb
diff options
context:
space:
mode:
authorHemant Kumar <gethemant@gmail.com>2013-07-19 02:25:01 +0530
committerHemant Kumar <gethemant@gmail.com>2013-07-29 23:22:56 +0530
commitf87a582018485e634044644057ffb024a524377c (patch)
treeaf477aadb01ff2152ef80b0758a192555b2d9a1c /lib/bundler/parallel_workers.rb
parent9695e085771294aac7416507773f8f7c9058875b (diff)
downloadbundler-f87a582018485e634044644057ffb024a524377c.tar.gz
Use newly introduced current_ruby method for platform
Diffstat (limited to 'lib/bundler/parallel_workers.rb')
-rw-r--r--lib/bundler/parallel_workers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/parallel_workers.rb b/lib/bundler/parallel_workers.rb
index 8a3408f2..3071b49a 100644
--- a/lib/bundler/parallel_workers.rb
+++ b/lib/bundler/parallel_workers.rb
@@ -8,7 +8,7 @@ module Bundler
autoload :ThreadWorker, "bundler/parallel_workers/thread_worker"
def self.worker_pool(size, job)
- if WINDOWS || RUBY_PLATFORM == 'java'
+ if Bundler.current_ruby.mswin? || Bundler.current_ruby.jruby?
ThreadWorker.new(size, job)
else
UnixWorker.new(size, job)