diff options
author | Kohei Suzuki <kohei-suzuki@cookpad.com> | 2013-05-17 09:21:54 +0900 |
---|---|---|
committer | Kohei Suzuki <kohei-suzuki@cookpad.com> | 2013-05-23 13:32:41 +0900 |
commit | 1d393ab46ead701f14d6b5c137ce5c2b6ba4b781 (patch) | |
tree | 79920c3bc772c143378689975382100c58f94f0f /lib/bundler.rb | |
parent | ce04e469b883dc74e2338aba055bec38036ad29e (diff) | |
download | bundler-1d393ab46ead701f14d6b5c137ce5c2b6ba4b781.tar.gz |
Move constants to use it from SharedHelpers
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 54137df3..1223fe66 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -5,6 +5,7 @@ require 'bundler/gem_path_manipulation' require 'bundler/rubygems_ext' require 'bundler/rubygems_integration' require 'bundler/version' +require 'bundler/constants' module Bundler preserve_gem_path @@ -64,10 +65,6 @@ module Bundler class SecurityError < BundlerError; status_code(19) ; end class LockfileError < BundlerError; status_code(20) ; end - WINDOWS = RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)! - FREEBSD = RbConfig::CONFIG["host_os"] =~ /bsd/ - NULL = WINDOWS ? "NUL" : "/dev/null" - # Internal errors, should be rescued class VersionConflict < BundlerError attr_reader :conflicts |