diff --git a/Manifest.txt b/Manifest.txt index 283d473c2..8d53b4704 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -46,7 +46,6 @@ lib/pg/basic_type_mapping.rb lib/pg/coder.rb lib/pg/connection.rb lib/pg/constants.rb -lib/pg/deprecated_constants.rb lib/pg/exceptions.rb lib/pg/result.rb lib/pg/text_decoder.rb diff --git a/lib/pg.rb b/lib/pg.rb index 8934f6db2..cd9ca09e0 100644 --- a/lib/pg.rb +++ b/lib/pg.rb @@ -70,7 +70,3 @@ def self::connect( *args ) end # module PG -autoload :PGError, 'pg/deprecated_constants' -autoload :PGconn, 'pg/deprecated_constants' -autoload :PGresult, 'pg/deprecated_constants' - diff --git a/lib/pg/deprecated_constants.rb b/lib/pg/deprecated_constants.rb deleted file mode 100644 index 42cab041d..000000000 --- a/lib/pg/deprecated_constants.rb +++ /dev/null @@ -1,24 +0,0 @@ -# -*- ruby -*- -#encoding: utf-8 - -# Warn about use of deprecated constants when this is autoloaded -unless ENV['PG_SKIP_DEPRECATION_WARNING'] - callsite = caller(3).first - - warn <<-END_OF_WARNING -The PGconn, PGresult, and PGError constants are deprecated, and will be -removed as of version 1.0. - -You should use PG::Connection, PG::Result, and PG::Error instead, respectively. - -You can disable this warning by setting the PG_SKIP_DEPRECATION_WARNING environment -variable. - -Called from #{callsite} - END_OF_WARNING -end - -PGconn = PG::Connection -PGresult = PG::Result -PGError = PG::Error - diff --git a/pg.gemspec b/pg.gemspec index f4666fc69..eddbb8408 100644 --- a/pg.gemspec +++ b/pg.gemspec @@ -1,17 +1,17 @@ # -*- encoding: utf-8 -*- -# stub: pg 0.22.0.pre20171227221214 ruby lib +# stub: pg 0.22.0.pre20180110074041 ruby lib # stub: ext/extconf.rb Gem::Specification.new do |s| s.name = "pg".freeze - s.version = "0.22.0.pre20171227221214" + s.version = "0.22.0.pre20180110074041" s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Michael Granger".freeze, "Lars Kanis".freeze] s.cert_chain = ["certs/ged.pem".freeze] - s.date = "2017-12-27" - s.description = "Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].\n\nIt works with {PostgreSQL 9.1 and later}[http://www.postgresql.org/support/versioning/].\n\nA small example usage:\n\n #!/usr/bin/env ruby\n\n require 'pg'\n\n # Output a table of current connections to the DB\n conn = PG.connect( dbname: 'sales' )\n conn.exec( \"SELECT * FROM pg_stat_activity\" ) do |result|\n puts \" PID | User | Query\"\n result.each do |row|\n puts \" %7d | %-16s | %s \" %\n row.values_at('procpid', 'usename', 'current_query')\n end\n end".freeze + s.date = "2018-01-10" + s.description = "Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].\n\nIt works with {PostgreSQL 9.2 and later}[http://www.postgresql.org/support/versioning/].\n\nA small example usage:\n\n #!/usr/bin/env ruby\n\n require 'pg'\n\n # Output a table of current connections to the DB\n conn = PG.connect( dbname: 'sales' )\n conn.exec( \"SELECT * FROM pg_stat_activity\" ) do |result|\n puts \" PID | User | Query\"\n result.each do |row|\n puts \" %7d | %-16s | %s \" %\n row.values_at('procpid', 'usename', 'current_query')\n end\n end".freeze s.email = ["ged@FaerieMUD.org".freeze, "lars@greiz-reinsdorf.de".freeze] s.extensions = ["ext/extconf.rb".freeze] s.extra_rdoc_files = ["Contributors.rdoc".freeze, "History.rdoc".freeze, "Manifest.txt".freeze, "README-OS_X.rdoc".freeze, "README-Windows.rdoc".freeze, "README.ja.rdoc".freeze, "README.rdoc".freeze, "ext/errorcodes.txt".freeze, "Contributors.rdoc".freeze, "History.rdoc".freeze, "README-OS_X.rdoc".freeze, "README-Windows.rdoc".freeze, "README.ja.rdoc".freeze, "README.rdoc".freeze, "POSTGRES".freeze, "LICENSE".freeze, "ext/gvl_wrappers.c".freeze, "ext/pg.c".freeze, "ext/pg_binary_decoder.c".freeze, "ext/pg_binary_encoder.c".freeze, "ext/pg_coder.c".freeze, "ext/pg_connection.c".freeze, "ext/pg_copy_coder.c".freeze, "ext/pg_errors.c".freeze, "ext/pg_result.c".freeze, "ext/pg_text_decoder.c".freeze, "ext/pg_text_encoder.c".freeze, "ext/pg_type_map.c".freeze, "ext/pg_type_map_all_strings.c".freeze, "ext/pg_type_map_by_class.c".freeze, "ext/pg_type_map_by_column.c".freeze, "ext/pg_type_map_by_mri_type.c".freeze, "ext/pg_type_map_by_oid.c".freeze, "ext/pg_type_map_in_ruby.c".freeze, "ext/util.c".freeze]