BibApp/BibApp — pull request #44 by cjuergen (2011-10-12 07:38:15+00:00)
Title: Detect windows platform based on host_os rathern than RUBY_PLATFORM

Hi Howard,

while testing BibApp apart from setting up a real test instance I tried installing it locally on windows.
I noted that solr might not start due to the platform detection in
lib/tasks/solr.rake

if RUBY_PLATFORM.include?('mswin32')

this fails for mingw, which I'm using, and should fail for jruby (RUBY_PLATFOM value = java)

Solved it by using

require 'rbconfig'
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/

as indicated in
http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/