We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 514dc0f commit e98ea1bCopy full SHA for e98ea1b
lib/spring/binstub.rb
@@ -1,12 +1,15 @@
1
+require 'rbconfig'
2
+
3
command = File.basename($0)
4
bin_path = File.expand_path("../../../bin/spring", __FILE__)
5
6
if command == "spring"
7
load bin_path
8
else
9
disable = ENV["DISABLE_SPRING"]
10
+ not_windows = !(RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
11
- if disable.nil? || disable.empty? || disable == "0"
12
+ if not_windows && (disable.nil? || disable.empty? || disable == "0")
13
ARGV.unshift(command)
14
15
end
0 commit comments