Skip to content

Commit 5e226d4

Browse files
committed
allow to require jdbc/postgresql (maintain conventions) even as the gem name is f*cked
1 parent 24c43fb commit 5e226d4

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

jdbc-postgres/lib/jdbc/postgres.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ def self.jdbc_version
4848
load_driver :require
4949
end
5050
end
51-
PostgreSQL = Postgres
51+
PostgreSQL = Postgres unless const_defined?(:PostgreSQL)
5252
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'jdbc/postgres'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require 'jdbc/postgresql/version'
2+
3+
module Jdbc
4+
PostgreSQL = Postgres unless const_defined?(:PostgreSQL)
5+
end

0 commit comments

Comments
 (0)