From 81a9ed615fd365bcaf375a0cb15ef35e604ca23b Mon Sep 17 00:00:00 2001 From: Brett Beutell Date: Fri, 30 Sep 2016 17:08:36 -0700 Subject: [PATCH] Comment out postgres-pr dependencies (fixes #80) This dependency is only used if RUBY_ENVIRONMENT=="JAVA", which is not the case for me. --- Gemfile | 2 +- lib/mysqltopostgres.rb | 2 +- mysqltopostgres.gemspec | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index d1f6eff..77ecdb7 100755 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' gem 'rake', '~> 10.3' gem 'mysql-pr', '~> 2.9' -gem 'postgres-pr', '~> 0.6' +# gem 'postgres-pr', '~> 0.6' platforms :jruby do gem 'activerecord' diff --git a/lib/mysqltopostgres.rb b/lib/mysqltopostgres.rb index bc7f412..ae93379 100644 --- a/lib/mysqltopostgres.rb +++ b/lib/mysqltopostgres.rb @@ -1,7 +1,7 @@ if RUBY_PLATFORM == 'java' require 'active_record' - require 'postgres-pr/postgres-compat' + # require 'postgres-pr/postgres-compat' else require 'pg' require 'pg_ext' diff --git a/mysqltopostgres.gemspec b/mysqltopostgres.gemspec index c2f2f5c..ae04312 100755 --- a/mysqltopostgres.gemspec +++ b/mysqltopostgres.gemspec @@ -82,7 +82,7 @@ Gem::Specification.new do |s| ] s.add_dependency('mysql-pr', ['~> 2.9']) - s.add_dependency('postgres-pr', ['~> 0.6']) + # s.add_dependency('postgres-pr', ['~> 0.6']) s.add_dependency('test-unit', ['~> 2.1']) if RUBY_PLATFORM == 'java'