diff options
author | Hemant Kumar <gethemant@gmail.com> | 2013-07-19 02:25:01 +0530 |
---|---|---|
committer | Hemant Kumar <gethemant@gmail.com> | 2013-07-29 23:22:56 +0530 |
commit | f87a582018485e634044644057ffb024a524377c (patch) | |
tree | af477aadb01ff2152ef80b0758a192555b2d9a1c /lib/bundler/parallel_workers.rb | |
parent | 9695e085771294aac7416507773f8f7c9058875b (diff) | |
download | bundler-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.rb | 2 |
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) |