Re: [Ironruby-core] The Proper way to detect the Windows Platform in Ruby

2010-03-11 Thread Mark Ryall
&& RUBY_PLATFORM =~ /mswin|mingw/ ;\ >> >> ruby-1.8.6p368\lib\ruby\gems\1.8\gems\rspec-1.2.8\spec\spec_helper.rb(16): >> ::RUBY_PLATFORM == 'java' >> >> ruby-1.8.6p368\lib\ruby\gems\1.8\gems\rspec-1.2.8\spec\spec\package\bin_spec_spec.rb(8): >> pen

Re: [Ironruby-core] The Proper way to detect the Windows Platform in Ruby

2010-03-11 Thread Will Green
\1.8\gems\rubygems-update-1.3.5\ChangeLog(3793): > * changed spec to use the RUBY_PLATFORM for Platform::CURRENT > > ruby-1.8.6p368\lib\ruby\gems\1.8\gems\rubygems-update-1.3.5\lib\rubygems.rb(1036): > @@win_platform = !!WIN_PATTERNS.find { |r| RUBY_PLATFORM =~ r } > > ruby-1.8.6p368\lib\ru

Re: [Ironruby-core] The Proper way to detect the Windows Platform in Ruby

2010-03-11 Thread Ivan Porto Carrero
I've been using ENV['OS'] == 'Windows_NT' to detect windows relaibly On Thursday, March 11, 2010, Will Green wrote: > Thought I'd share this with everyone: > http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/ > > > From one of the JRuby core > team. 

[Ironruby-core] The Proper way to detect the Windows Platform in Ruby

2010-03-11 Thread Will Green
Thought I'd share this with everyone: http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/ >From one of the JRuby core team. -- Will Green http://hotgazpacho.org/ ___