Kurt StephensNerd Up! | ||
Ruby 1.9 : postgres gem patchKurt on Thu, 2008-05-22 13:56.
I did this little hackage during a boring PGcon 2008 talk… This patch allows the postgres gem 0.7.9.2008.01.28 to be compiled under Ruby 1.9 against PostgreSQL 8.3.0 client libraries. It appears to work against a PostgreSQL 8.1 server, but I have not run any detailed testing, yet. --- ext/extconf.rb.orig 2008-05-22 09:47:06.000000000 -0500 +++ ext/extconf.rb 2008-05-22 09:52:28.000000000 -0500 @@ -1,6 +1,9 @@ +# Ruby 1.9 +PLATFORM = RUBY_PLATFORM unless defined? PLATFORM + # windows compatibility, need different library name if(PLATFORM =~ /mingw|mswin/) then $libname = '/ms/libpq' else Enjoy! |
||
Recent comments
9 weeks 2 days ago
19 weeks 3 days ago
38 weeks 1 day ago
1 year 2 weeks ago
1 year 35 weeks ago
1 year 48 weeks ago
1 year 50 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago