Skip to content

Commit

Permalink
databases/ruby-pg: update to 1.4.3
Browse files Browse the repository at this point in the history
pkgsrc change: Update HOMEPAGE to GitHUb.

Here are quote from changes of two minor release, for full change, please
refer: <https://github.com/ged/ruby-pg/blob/master/History.rdoc>.

1.4.0 (2022-06-20)

Added:
* Add PG::Connection#hostaddr, present since PostgreSQL-12. #453
* Add PG::Connection.conninfo_parse to wrap PQconninfoParse. #453

Bugfixes:
* Try IPv6 and IPv4 addresses, if DNS resolves to both. #452
* Re-add block-call semantics to PG::Connection.new accidently removed in pg-1.3.0. #454
* Handle client error after all data consumed in #copy_data for output. #455
* Avoid spurious keyword argument warning on Ruby 2.7. #456
* Change connection setup to respect connect_timeout parameter. #459
* Fix indefinite hang in case of connection error on Windows #458
* Set connection attribute of PG::Error in various places where it was missing. #461
* Fix transaction leak on early break/return. #463
* Update Windows fat binary gem to OpenSSL-1.1.1o and PostgreSQL-14.4.

Enhancements:
* Don't flush at each put_copy_data call, but flush at get_result. #462

1.3.0 (2022-01-20)

Install Enhancements:
* Print some install help if libpq wasn't found. #396 This should help to
  pick the necessary package without googling.
* Update Windows fat binary gem to OpenSSL-1.1.1m and PostgreSQL-14.1.
* Add binary Windows gems for Ruby 3.0 and 3.1.
* Make the library path of libpq available in ruby as
  PG::POSTGRESQL_LIB_PATH and add it to the search paths on Windows similar
  to rpath on Unix systems. TritonDataCenter#373
* Fall back to pkg-config if pg_config is not found. TritonDataCenter#380
* Add option to extconf.rb to disable nogvl-wrapping of libpq functions. All
  methods (except PG::Connection.ping) are nonblocking now, so that GVL
  unlock is in theory no longer necessary. However it can have some
  advantage in concurrency, so that GVL unlock is still enabled by
  default. Use:

	gem inst pg – –disable-gvl-unlock

API Enhancements:

* Add full compatibility to Fiber.scheduler introduced in Ruby-3.0. #397
* Add support for pipeline mode of PostgreSQL-14. #401
* Allow specification of multiple hosts in PostgreSQL URI. TritonDataCenter#387
* Add new method conn.backend_key - used to implement our own cancel method.

Type cast enhancements:
* Add PG::BasicTypeMapForQueries::BinaryData for encoding of bytea columns. TritonDataCenter#348
* Reduce time to build coder maps and permit to reuse them for several type
  maps per PG::BasicTypeRegistry::CoderMapsBundle.new(conn) . TritonDataCenter#376
* Make BasicTypeRegistry a class and use a global default instance of
  it. Now a local type registry can be instanciated and given to the type
  map, to avoid changing shared global states.
* Allow PG::BasicTypeMapForQueries to take a Proc as callback for undefined types.

Other Enhancements:
* Convert all PG classes implemented in C to TypedData objects. TritonDataCenter#349
* Support ObjectSpace.memsize_of(obj) on all classes implemented in C. TritonDataCenter#393
* Make all PG objects implemented in C memory moveable and therefore
  GC.compact friendly. TritonDataCenter#349
* Update errorcodes and error classes to PostgreSQL-14.0.
* Add PG::CONNECTION_* constants for conn.status of newer PostgreSQL versions.
* Add better support for logical replication. TritonDataCenter#339
* Change conn.socket_io to read+write mode and to a BasicSocket object
  instead of IO.
* Use rb_io_wait() and the conn.socket_io object if available for better
  compatibility to Fiber.scheduler . Fall back to rb_wait_for_single_fd() on
  ruby < 3.0.
* On Windows use a specialized wait function as a workaround for very poor
  performance of rb_io_wait(). #416

Bugfixes:
* Release GVL while calling PQping which is a blocking method, but it didn't
  release GVL so far.
* Fix Connection#transaction to no longer block on interrupts, for instance
  when pressing Ctrl-C and cancel a running query. TritonDataCenter#390
* Avoid casting of OIDs to fix compat with Redshift database. TritonDataCenter#369
* Call conn.block before each conn.get_result call to avoid possible
  blocking in case of a slow network and multiple query results.
* Sporadic Errno::ENOTSOCK when using conn.socket_io on Windows #398

Deprecated:
* Add deprecation warning to PG::BasicTypeRegistry.register_type and siblings.

Removed:
* Remove support of ruby-2.2, 2.3 and 2.4. Minimum is ruby-2.5 now.
* Remove support for PostgreSQL-9.2. Minimum is PostgreSQL-9.3 now.
* Remove constant PG::REVISION, which was broken since pg-1.1.4.

Repository:
* Replace Hoe by Bundler for gem packaging
* Add Github Actions CI and testing of source and binary gems.
  • Loading branch information
taca committed Aug 11, 2022
1 parent 220881a commit 3fb56b1
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 26 deletions.
6 changes: 3 additions & 3 deletions databases/ruby-pg/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# $NetBSD: Makefile,v 1.34 2020/03/23 15:20:09 taca Exp $
# $NetBSD: Makefile,v 1.35 2022/08/11 04:00:18 taca Exp $

DISTNAME= pg-1.2.3
DISTNAME= pg-1.4.3
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/}
CATEGORIES= databases

MAINTAINER= [email protected]
HOMEPAGE= https://bitbucket.org/ged/ruby-pg/
HOMEPAGE= https://github.com/ged/ruby-pg
COMMENT= Ruby extension for PostgreSQL
LICENSE= 2-clause-bsd OR ruby-license

Expand Down
73 changes: 54 additions & 19 deletions databases/ruby-pg/PLIST
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
@comment $NetBSD: PLIST,v 1.18 2020/01/16 15:16:19 taca Exp $
@comment $NetBSD: PLIST,v 1.19 2022/08/11 04:00:18 taca Exp $
${GEM_HOME}/build_info/${GEM_NAME}.info
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_EXTSDIR}/gem.build_complete
${GEM_EXTSDIR}/pg/postgresql_lib_path.rb
${GEM_EXTSDIR}/pg_ext.${RUBY_DLEXT}
${GEM_LIBDIR}/.appveyor.yml
${GEM_LIBDIR}/.gems
${GEM_LIBDIR}/.gemtest
${GEM_LIBDIR}/.github/workflows/binary-gems.yml
${GEM_LIBDIR}/.github/workflows/source-gem.yml
${GEM_LIBDIR}/.gitignore
${GEM_LIBDIR}/.hgsigs
${GEM_LIBDIR}/.hgtags
${GEM_LIBDIR}/.irbrc
${GEM_LIBDIR}/.pryrc
${GEM_LIBDIR}/.tm_properties
${GEM_LIBDIR}/.travis.yml
${GEM_LIBDIR}/BSDL
${GEM_LIBDIR}/ChangeLog
${GEM_LIBDIR}/Contributors.rdoc
${GEM_LIBDIR}/Gemfile
${GEM_LIBDIR}/History.rdoc
${GEM_LIBDIR}/LICENSE
${GEM_LIBDIR}/Manifest.txt
Expand All @@ -17,6 +29,8 @@ ${GEM_LIBDIR}/README.ja.rdoc
${GEM_LIBDIR}/README.rdoc
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/Rakefile.cross
${GEM_LIBDIR}/certs/ged.pem
${GEM_LIBDIR}/certs/larskanis-2022.pem
${GEM_LIBDIR}/ext/errorcodes.def
${GEM_LIBDIR}/ext/errorcodes.rb
${GEM_LIBDIR}/ext/errorcodes.txt
Expand Down Expand Up @@ -49,32 +63,53 @@ ${GEM_LIBDIR}/ext/vc/pg.sln
${GEM_LIBDIR}/ext/vc/pg_18/pg.vcproj
${GEM_LIBDIR}/ext/vc/pg_19/pg_19.vcproj
${GEM_LIBDIR}/lib/pg.rb
${GEM_LIBDIR}/lib/pg/basic_type_mapping.rb
${GEM_LIBDIR}/lib/pg/basic_type_map_based_on_result.rb
${GEM_LIBDIR}/lib/pg/basic_type_map_for_queries.rb
${GEM_LIBDIR}/lib/pg/basic_type_map_for_results.rb
${GEM_LIBDIR}/lib/pg/basic_type_registry.rb
${GEM_LIBDIR}/lib/pg/binary_decoder.rb
${GEM_LIBDIR}/lib/pg/coder.rb
${GEM_LIBDIR}/lib/pg/connection.rb
${GEM_LIBDIR}/lib/pg/constants.rb
${GEM_LIBDIR}/lib/pg/exceptions.rb
${GEM_LIBDIR}/lib/pg/postgresql_lib_path.rb
${GEM_LIBDIR}/lib/pg/result.rb
${GEM_LIBDIR}/lib/pg/text_decoder.rb
${GEM_LIBDIR}/lib/pg/text_encoder.rb
${GEM_LIBDIR}/lib/pg/tuple.rb
${GEM_LIBDIR}/lib/pg/type_map_by_column.rb
${GEM_LIBDIR}/lib/pg/version.rb
${GEM_LIBDIR}/lib/pg_ext.${RUBY_DLEXT}
${GEM_LIBDIR}/spec/data/expected_trace.out
${GEM_LIBDIR}/spec/data/random_binary_data
${GEM_LIBDIR}/spec/helpers.rb
${GEM_LIBDIR}/spec/pg/basic_type_mapping_spec.rb
${GEM_LIBDIR}/spec/pg/connection_spec.rb
${GEM_LIBDIR}/spec/pg/connection_sync_spec.rb
${GEM_LIBDIR}/spec/pg/result_spec.rb
${GEM_LIBDIR}/spec/pg/tuple_spec.rb
${GEM_LIBDIR}/spec/pg/type_map_by_class_spec.rb
${GEM_LIBDIR}/spec/pg/type_map_by_column_spec.rb
${GEM_LIBDIR}/spec/pg/type_map_by_mri_type_spec.rb
${GEM_LIBDIR}/spec/pg/type_map_by_oid_spec.rb
${GEM_LIBDIR}/spec/pg/type_map_in_ruby_spec.rb
${GEM_LIBDIR}/spec/pg/type_map_spec.rb
${GEM_LIBDIR}/spec/pg/type_spec.rb
${GEM_LIBDIR}/spec/pg_spec.rb
${GEM_LIBDIR}/misc/openssl-pg-segfault.rb
${GEM_LIBDIR}/misc/postgres/History.txt
${GEM_LIBDIR}/misc/postgres/Manifest.txt
${GEM_LIBDIR}/misc/postgres/README.txt
${GEM_LIBDIR}/misc/postgres/Rakefile
${GEM_LIBDIR}/misc/postgres/lib/postgres.rb
${GEM_LIBDIR}/misc/ruby-pg/History.txt
${GEM_LIBDIR}/misc/ruby-pg/Manifest.txt
${GEM_LIBDIR}/misc/ruby-pg/README.txt
${GEM_LIBDIR}/misc/ruby-pg/Rakefile
${GEM_LIBDIR}/misc/ruby-pg/lib/ruby/pg.rb
${GEM_LIBDIR}/pg.gemspec
${GEM_LIBDIR}/rakelib/task_extension.rb
${GEM_LIBDIR}/sample/array_insert.rb
${GEM_LIBDIR}/sample/async_api.rb
${GEM_LIBDIR}/sample/async_copyto.rb
${GEM_LIBDIR}/sample/async_mixed.rb
${GEM_LIBDIR}/sample/check_conn.rb
${GEM_LIBDIR}/sample/copydata.rb
${GEM_LIBDIR}/sample/copyfrom.rb
${GEM_LIBDIR}/sample/copyto.rb
${GEM_LIBDIR}/sample/cursor.rb
${GEM_LIBDIR}/sample/disk_usage_report.rb
${GEM_LIBDIR}/sample/issue-119.rb
${GEM_LIBDIR}/sample/losample.rb
${GEM_LIBDIR}/sample/minimal-testcase.rb
${GEM_LIBDIR}/sample/notify_wait.rb
${GEM_LIBDIR}/sample/pg_statistics.rb
${GEM_LIBDIR}/sample/replication_monitor.rb
${GEM_LIBDIR}/sample/test_binary_values.rb
${GEM_LIBDIR}/sample/wal_shipper.rb
${GEM_LIBDIR}/sample/warehouse_partitions.rb
${GEM_HOME}/specifications/${GEM_NAME}.gemspec
8 changes: 4 additions & 4 deletions databases/ruby-pg/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.29 2021/10/26 10:10:03 nia Exp $
$NetBSD: distinfo,v 1.30 2022/08/11 04:00:18 taca Exp $

BLAKE2s (pg-1.2.3.gem) = ca58d9630d17d66b799d5ded0fc53e07b9ac076a1c5df8a73c2555ddc19b09af
SHA512 (pg-1.2.3.gem) = dd8fa7b256102aea7588fd7e1d4e28199be2bf9910149d266b5379e78a7a57aa2a22763d04a559f4763842cad4ba8d0fbc33e8b43b7497dc77039edfd1029585
Size (pg-1.2.3.gem) = 196608 bytes
BLAKE2s (pg-1.4.3.gem) = cf8271ebcc62f036eec00d424a62f04d4fe5418a5faaa736c492396193b1791f
SHA512 (pg-1.4.3.gem) = d529863cb47016b8681fef3ddc149fe579c25dd4b9633b2885621f767bebfe43db4b4f6916f2cf4c330d93191f189ff03425498078e10a90f1c6ee071276a907
Size (pg-1.4.3.gem) = 201728 bytes

0 comments on commit 3fb56b1

Please sign in to comment.