rowland / fb

Firebird Extension Library for Ruby
64 stars 36 forks source link

I can't build the gem on Windows #9

Closed zedalaye closed 13 years ago

zedalaye commented 13 years ago

It seems that the PLATFORM constant does not exists.

http://www.tutorialspoint.com/ruby/ruby_predefined_constants.htm

I replaced with the RUBY_PLATFORM constant and with the new algorithm to find the Firebird Root Directory the gem can now be build AND installed by Windows users running RubyInstaller + DevKit

I search for the Firebird Root Directory in the FIREBIRD environment variable, then in the Win32 registry and then I let your brute force algorithm do find default Firebird installations in Program Files.

rowland commented 13 years ago

Yes, the old PLATFORM constant was deprecated long ago and only laziness prevented me from updating it.

I'm not setup right now to test the searching of the Firebird root directory on Windows, but the patch doesn't break the build on Mac and presumably won't on Linux, so it's been merged.