diff --git a/.hoerc b/.hoerc index 45dedddf8..e50a7b0f6 100644 --- a/.hoerc +++ b/.hoerc @@ -1,2 +1,2 @@ --- -exclude: !ruby/regexp /(?:\.(hg|hoe|bundle|irb|pry|ruby-(version|gemset)|gems|tm|DS_Store|travis\.yml)|sample|tmp|certs|build|lib/.*(so|dll)|appveyor\.yml|misc|Gemfile|pg\.gemspec)/ +exclude: !ruby/regexp /(?:\.(hg|hoe|bundle|irb|pry|ruby-(version|gemset)|gems|tm|DS_Store|travis\.yml)|sample|vendor|tmp|certs|build|lib/.*(so|dll)|appveyor\.yml|misc|Gemfile|pg\.gemspec)/ diff --git a/lib/pg/deprecated_constants.rb b/lib/pg/deprecated_constants.rb index 9f91b72f5..42cab041d 100644 --- a/lib/pg/deprecated_constants.rb +++ b/lib/pg/deprecated_constants.rb @@ -2,18 +2,21 @@ #encoding: utf-8 # Warn about use of deprecated constants when this is autoloaded -callsite = caller(3).first +unless ENV['PG_SKIP_DEPRECATION_WARNING'] + callsite = caller(3).first -warn <