From 8bef6e2b316f77aea6743e6cc19a0417e2131f47 Mon Sep 17 00:00:00 2001 From: Anil Wadghule Date: Thu, 8 Apr 2010 22:01:25 +0530 Subject: [PATCH] Make RUBY_PLATFORM windows regex consistent --- railties/lib/rails/commands/runner.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/railties/lib/rails/commands/runner.rb b/railties/lib/rails/commands/runner.rb index 1570b9a..2df7912 100644 --- a/railties/lib/rails/commands/runner.rb +++ b/railties/lib/rails/commands/runner.rb @@ -18,7 +18,7 @@ ARGV.clone.options do |opts| opts.on("-h", "--help", "Show this help message.") { $stderr.puts opts; exit } - if RUBY_PLATFORM !~ /mswin/ + if RUBY_PLATFORM !~ /(:?mswin|mingw)/ opts.separator "" opts.separator "You can also use runner as a shebang line for your scripts like this:" opts.separator "-------------------------------------------------------------" -- 1.7.0.4