Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-pg for openSUSE:Factory checked in at 2022-12-13 18:56:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-pg (Old) and /work/SRC/openSUSE:Factory/.rubygem-pg.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-pg" Tue Dec 13 18:56:50 2022 rev:45 rq:1042651 version:1.4.5 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-pg/rubygem-pg.changes 2022-10-30 18:29:14.282514737 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-pg.new.1835/rubygem-pg.changes 2022-12-13 18:57:16.203780529 +0100 @@ -1,0 +2,16 @@ +Wed Dec 7 11:29:18 UTC 2022 - Stephan Kulow <co...@suse.com> + +updated to version 1.4.5 + see installed History.rdoc + + == v1.4.5 [2022-11-17] Lars Kanis <l...@greiz-reinsdorf.de> + + - Return the libpq default port when blank in conninfo. #492 + - Add PG::DEF_PGPORT constant and use it in specs. #492 + - Fix name resolution when empty or `nil` port is given. + - Update error codes to PostgreSQL-15. + - Update Windows fat binary gem to PostgreSQL-15.1 AND OpenSSL-1.1.1s. + + + +------------------------------------------------------------------- Old: ---- pg-1.4.4.gem New: ---- pg-1.4.5.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-pg.spec ++++++ --- /var/tmp/diff_new_pack.kGpCbB/_old 2022-12-13 18:57:16.979784670 +0100 +++ /var/tmp/diff_new_pack.kGpCbB/_new 2022-12-13 18:57:16.979784670 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-pg -Version: 1.4.4 +Version: 1.4.5 Release: 0 %define mod_name pg %define mod_full_name %{mod_name}-%{version} ++++++ pg-1.4.4.gem -> pg-1.4.5.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/binary-gems.yml new/.github/workflows/binary-gems.yml --- old/.github/workflows/binary-gems.yml 2022-10-11 13:30:28.000000000 +0200 +++ new/.github/workflows/binary-gems.yml 2022-11-17 14:18:00.000000000 +0100 @@ -45,7 +45,7 @@ include: - ruby: "3.1" platform: "x64-mingw-ucrt" - PGVERSION: 15.0-rc1-windows-x64 + PGVERSION: 15.1-1-windows-x64 - ruby: "2.5" platform: "x64-mingw32" PGVERSION: 10.20-1-windows diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/source-gem.yml new/.github/workflows/source-gem.yml --- old/.github/workflows/source-gem.yml 2022-10-11 13:30:28.000000000 +0200 +++ new/.github/workflows/source-gem.yml 2022-11-17 14:18:00.000000000 +0100 @@ -31,15 +31,15 @@ include: - os: windows ruby: "head" - PGVERSION: 15.0-rc1-windows-x64 - PGVER: "14" + PGVERSION: 15.1-1-windows-x64 + PGVER: "15" - os: windows ruby: "2.5" PGVERSION: 9.4.26-1-windows-x64 PGVER: "9.4" - os: ubuntu ruby: "head" - PGVER: "14" + PGVER: "15" - os: ubuntu ruby: "3.1" PGVER: "12" @@ -51,11 +51,11 @@ PGVER: "13" - os: ubuntu ruby: "truffleruby-head" - PGVER: "14" + PGVER: "15" - os: macos ruby: "head" - PGVERSION: 13.8-1-osx - PGVER: "13" + PGVERSION: 15.1-1-osx + PGVER: "15" runs-on: ${{ matrix.os }}-latest env: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc --- old/History.rdoc 2022-10-11 13:30:28.000000000 +0200 +++ new/History.rdoc 2022-11-17 14:18:00.000000000 +0100 @@ -1,3 +1,12 @@ +== v1.4.5 [2022-11-17] Lars Kanis <l...@greiz-reinsdorf.de> + +- Return the libpq default port when blank in conninfo. #492 +- Add PG::DEF_PGPORT constant and use it in specs. #492 +- Fix name resolution when empty or `nil` port is given. +- Update error codes to PostgreSQL-15. +- Update Windows fat binary gem to PostgreSQL-15.1 AND OpenSSL-1.1.1s. + + == v1.4.4 [2022-10-11] Lars Kanis <l...@greiz-reinsdorf.de> - Revert to let libpq do the host iteration while connecting. #485 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2022-10-11 13:30:28.000000000 +0200 +++ new/Rakefile 2022-11-17 14:18:00.000000000 +0100 @@ -92,7 +92,7 @@ desc "Update list of server error codes" task :update_error_codes do - URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=refs/tags/REL_14_0" + URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=refs/tags/REL_15_0" ERRORCODES_TXT = "ext/errorcodes.txt" sh "wget #{URL_ERRORCODES_TXT.inspect} -O #{ERRORCODES_TXT.inspect} || curl #{URL_ERRORCODES_TXT.inspect} -o #{ERRORCODES_TXT.inspect}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile.cross new/Rakefile.cross --- old/Rakefile.cross 2022-10-11 13:30:28.000000000 +0200 +++ new/Rakefile.cross 2022-11-17 14:18:00.000000000 +0100 @@ -31,8 +31,8 @@ self.host_platform = toolchain # Cross-compilation constants - self.openssl_version = ENV['OPENSSL_VERSION'] || '1.1.1q' - self.postgresql_version = ENV['POSTGRESQL_VERSION'] || '14.5' + self.openssl_version = ENV['OPENSSL_VERSION'] || '1.1.1s' + self.postgresql_version = ENV['POSTGRESQL_VERSION'] || '15.1' # Check if symlinks work in the current working directory. # This fails, if rake-compiler-dock is running on a Windows box. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/errorcodes.def new/ext/errorcodes.def --- old/ext/errorcodes.def 2022-10-11 13:30:28.000000000 +0200 +++ new/ext/errorcodes.def 2022-11-17 14:18:00.000000000 +0100 @@ -367,6 +367,10 @@ register_error_class( "2203F", klass ); } { + VALUE klass = define_error_class( "SqlJsonItemCannotBeCastToTargetType", "22" ); + register_error_class( "2203G", klass ); +} +{ VALUE klass = define_error_class( "IntegrityConstraintViolation", NULL ); register_error_class( "23000", klass ); register_error_class( "23", klass ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/errorcodes.txt new/ext/errorcodes.txt --- old/ext/errorcodes.txt 2022-10-11 13:30:28.000000000 +0200 +++ new/ext/errorcodes.txt 2022-11-17 14:18:00.000000000 +0100 @@ -2,7 +2,7 @@ # errcodes.txt # PostgreSQL error codes # -# Copyright (c) 2003-2021, PostgreSQL Global Development Group +# Copyright (c) 2003-2022, PostgreSQL Global Development Group # # This list serves as the basis for generating source files containing error # codes. It is kept in a common format to make sure all these source files have @@ -222,6 +222,7 @@ 2203D E ERRCODE_TOO_MANY_JSON_ARRAY_ELEMENTS too_many_json_array_elements 2203E E ERRCODE_TOO_MANY_JSON_OBJECT_MEMBERS too_many_json_object_members 2203F E ERRCODE_SQL_JSON_SCALAR_REQUIRED sql_json_scalar_required +2203G E ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE sql_json_item_cannot_be_cast_to_target_type Section: Class 23 - Integrity Constraint Violation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/pg.c new/ext/pg.c --- old/ext/pg.c 2022-10-11 13:30:28.000000000 +0200 +++ new/ext/pg.c 2022-11-17 14:18:00.000000000 +0100 @@ -679,6 +679,9 @@ rb_define_const(rb_mPGconstants, "INVALID_OID", INT2FIX(InvalidOid)); rb_define_const(rb_mPGconstants, "InvalidOid", INT2FIX(InvalidOid)); + /* PostgreSQL compiled in default port */ + rb_define_const(rb_mPGconstants, "DEF_PGPORT", INT2FIX(DEF_PGPORT)); + /* Add the constants to the toplevel namespace */ rb_include_module( rb_mPG, rb_mPGconstants ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/pg_connection.c new/ext/pg_connection.c --- old/ext/pg_connection.c 2022-10-11 13:30:28.000000000 +0200 +++ new/ext/pg_connection.c 2022-11-17 14:18:00.000000000 +0100 @@ -702,7 +702,10 @@ pgconn_port(VALUE self) { char* port = PQport(pg_get_pgconn(self)); - return INT2NUM(atoi(port)); + if (!port || port[0] == '\0') + return INT2NUM(DEF_PGPORT); + else + return INT2NUM(atoi(port)); } /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/pg/connection.rb new/lib/pg/connection.rb --- old/lib/pg/connection.rb 2022-10-11 13:30:28.000000000 +0200 +++ new/lib/pg/connection.rb 2022-11-17 14:18:00.000000000 +0100 @@ -723,6 +723,7 @@ # This requires PostgreSQL-10+, so no DNS resolving is done on earlier versions. ihosts = iopts[:host].split(",", -1) iports = iopts[:port].split(",", -1) + iports = [nil] if iports.size == 0 iports = iports * ihosts.size if iports.size == 1 raise PG::ConnectionBad, "could not match #{iports.size} port numbers to #{ihosts.size} hosts" if iports.size != ihosts.size diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/pg/version.rb new/lib/pg/version.rb --- old/lib/pg/version.rb 2022-10-11 13:30:28.000000000 +0200 +++ new/lib/pg/version.rb 2022-11-17 14:18:00.000000000 +0100 @@ -1,4 +1,4 @@ module PG # Library version - VERSION = '1.4.4' + VERSION = '1.4.5' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2022-10-11 13:30:28.000000000 +0200 +++ new/metadata 2022-11-17 14:18:00.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: pg version: !ruby/object:Gem::Version - version: 1.4.4 + version: 1.4.5 platform: ruby authors: - Michael Granger @@ -30,7 +30,7 @@ sc3NyOkGUGdfiee5VRG31Sh3LLON3YGED+zZAS+ZF6598y4vhv8MBLa1Oy357byC tTg= -----END CERTIFICATE----- -date: 2022-10-11 00:00:00.000000000 Z +date: 2022-11-17 00:00:00.000000000 Z dependencies: [] description: Pg is the Ruby interface to the PostgreSQL RDBMS. It works with PostgreSQL 9.3 and later. Binary files old/metadata.gz.sig and new/metadata.gz.sig differ