Skip to content

Commit

Permalink
Comment out postgres-pr dependencies (fixes maxlapshin#80)
Browse files Browse the repository at this point in the history
This dependency is only used if RUBY_ENVIRONMENT=="JAVA",
which is not the case for me.
  • Loading branch information
Brett Beutell committed Oct 1, 2016
1 parent 2ec92a2 commit 81a9ed6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/mysqltopostgres.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion mysqltopostgres.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 81a9ed6

Please sign in to comment.