pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/ruby-pg



Module Name:    pkgsrc
Committed By:   taca
Date:           Thu Apr 27 13:46:29 UTC 2023

Modified Files:
        pkgsrc/databases/ruby-pg: Makefile PLIST distinfo

Log Message:
databases/ruby-pg: update to 1.5.2

1.5.0 (2023-04-24)

Enhancements:

o Better support for binary format:

  * Extend PG::Connection#copy_data to better support binary transfers #511
  * Add binary COPY encoder and decoder:
    - PG::BinaryEncoder::CopyRow
    - PG::BinaryDecoder::CopyRow
  * Add binary timestamp encoders:
    - PG::BinaryEncoder::TimestampUtc
    - PG::BinaryEncoder::TimestampLocal
    - PG::BinaryEncoder::Timestamp
  * Add PG::BinaryEncoder::Float4 and Float8
  * Add binary date type: #515
    - PG::BinaryEncoder::Date
    - PG::BinaryDecoder::Date
  * Add PG::Result#binary_tuples #511 It is useful for COPY and not
    deprecated in that context.
  * Add PG::TextEncoder::Bytea to BasicTypeRegistry #506

o Ractor support: #519

  * Pg is now fully compatible with Ractor introduced in Ruby-3.0 and
    doesn't use any global mutable state.
  * All type en/decoders and type maps are shareable between ractors if they
    are made frozen by Ractor.make_shareable.
  * Also frozen PG::Result and PG::Tuple objects can be shared.
  * All frozen objects (except PG::Connection) can still be used to do
    communication with the PostgreSQL server or to read retrieved data.
  * PG::Connection is not shareable and must be created within each Ractor
    to establish a dedicated connection.

o Use keyword arguments instead of hashes for Coder initialization and
  #to_h.  #511

o Add PG::Result.res_status as a class method and extend Result#res_status
  to return the status of self.  #508

o Reduce the number of files loaded at require 'pg' by using autoload.  #513
  Previously stdlib libraries date, json, ipaddr and bigdecimal were static
  dependencies, but now only socket is mandatory.

o Improve garbage collector performance by adding write barriers to all PG
  classes.  #518 Now they can be promoted to the old generation, which means
  they only get marked on major GC.

o New method PG::Connection#check_socket to check the socket state. #521

o Mark many internal constants as private. #522

o Update Windows fat binary gem to OpenSSL-3.1.0.

Bugfixes:

o Move nfields-check of stream-methods after result status check #507 This
  ensures that the nfield-check doesn't hide errors like statement timeout.

Removed:

o Remove deprecated PG::BasicTypeRegistry.register_type and co. Part of #519

o Add deprecation warning about PG::Coder initialization per Hash argument.
  #514 It is recommended to use keyword arguments instead.

o The internal encoding cache was removed.  #516 It shouldn't have a
  practical performance impact.

Repository:

o rake test tries to find PostgreSQL server commands by pg_config #503 So
  there's no need to set the PATH manuelly any longer.

1.5.1 (2023-04-24)

o Don't overwrite flags of timestamp coders.  #524 Fixes a regression in
  rails: rails/rails#48049

1.5.2 (2023-04-26)

o Fix regression in copy_data regarding binary format when using no coder.
  #527


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/databases/ruby-pg/Makefile
cvs rdiff -u -r1.20 -r1.21 pkgsrc/databases/ruby-pg/PLIST
cvs rdiff -u -r1.33 -r1.34 pkgsrc/databases/ruby-pg/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/ruby-pg/Makefile
diff -u pkgsrc/databases/ruby-pg/Makefile:1.38 pkgsrc/databases/ruby-pg/Makefile:1.39
--- pkgsrc/databases/ruby-pg/Makefile:1.38      Sun Feb 26 14:30:35 2023
+++ pkgsrc/databases/ruby-pg/Makefile   Thu Apr 27 13:46:29 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.38 2023/02/26 14:30:35 taca Exp $
+# $NetBSD: Makefile,v 1.39 2023/04/27 13:46:29 taca Exp $
 
-DISTNAME=      pg-1.4.6
+DISTNAME=      pg-1.5.2
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/}
 CATEGORIES=    databases
 

Index: pkgsrc/databases/ruby-pg/PLIST
diff -u pkgsrc/databases/ruby-pg/PLIST:1.20 pkgsrc/databases/ruby-pg/PLIST:1.21
--- pkgsrc/databases/ruby-pg/PLIST:1.20 Sun Feb 26 14:30:35 2023
+++ pkgsrc/databases/ruby-pg/PLIST      Thu Apr 27 13:46:29 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.20 2023/02/26 14:30:35 taca Exp $
+@comment $NetBSD: PLIST,v 1.21 2023/04/27 13:46:29 taca Exp $
 ${GEM_HOME}/build_info/${GEM_NAME}.info
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_EXTSDIR}/gem.build_complete
@@ -68,15 +68,24 @@ ${GEM_LIBDIR}/lib/pg/basic_type_map_base
 ${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/binary_decoder/date.rb
+${GEM_LIBDIR}/lib/pg/binary_decoder/timestamp.rb
+${GEM_LIBDIR}/lib/pg/binary_encoder/timestamp.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/text_decoder/date.rb
+${GEM_LIBDIR}/lib/pg/text_decoder/inet.rb
+${GEM_LIBDIR}/lib/pg/text_decoder/json.rb
+${GEM_LIBDIR}/lib/pg/text_decoder/numeric.rb
+${GEM_LIBDIR}/lib/pg/text_decoder/timestamp.rb
+${GEM_LIBDIR}/lib/pg/text_encoder/date.rb
+${GEM_LIBDIR}/lib/pg/text_encoder/inet.rb
+${GEM_LIBDIR}/lib/pg/text_encoder/json.rb
+${GEM_LIBDIR}/lib/pg/text_encoder/numeric.rb
+${GEM_LIBDIR}/lib/pg/text_encoder/timestamp.rb
 ${GEM_LIBDIR}/lib/pg/tuple.rb
 ${GEM_LIBDIR}/lib/pg/type_map_by_column.rb
 ${GEM_LIBDIR}/lib/pg/version.rb
@@ -118,4 +127,3 @@ ${GEM_LIBDIR}/translation/po/all.pot
 ${GEM_LIBDIR}/translation/po/ja.po
 ${GEM_LIBDIR}/translation/po4a.cfg
 ${GEM_HOME}/specifications/${GEM_NAME}.gemspec
-${GEM_HOME}/specifications/${GEM_NAME}.gemspec

Index: pkgsrc/databases/ruby-pg/distinfo
diff -u pkgsrc/databases/ruby-pg/distinfo:1.33 pkgsrc/databases/ruby-pg/distinfo:1.34
--- pkgsrc/databases/ruby-pg/distinfo:1.33      Sun Feb 26 14:30:35 2023
+++ pkgsrc/databases/ruby-pg/distinfo   Thu Apr 27 13:46:29 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.33 2023/02/26 14:30:35 taca Exp $
+$NetBSD: distinfo,v 1.34 2023/04/27 13:46:29 taca Exp $
 
-BLAKE2s (pg-1.4.6.gem) = fea7a751a698e64f88a7f39de8a3dfe79e7c6db1c50cab13c0a26c4febabcf33
-SHA512 (pg-1.4.6.gem) = e917ab392d3d06afac9fdbc5ce43f3d81698ef39f1260ac84086a2048d87c4e612a981c15e2def731915c0dc5445e9eaede714318ab0b4dec338993c58782128
-Size (pg-1.4.6.gem) = 224256 bytes
+BLAKE2s (pg-1.5.2.gem) = 223936dee5525944e846113783e88a2aff6fe321daa72bfaba5977b7618f7032
+SHA512 (pg-1.5.2.gem) = 1ff0758064f4ea8646e79c964b37848b47145fb357038d9297a9c9583d9be1530f0c9ed1073f0d5f98835f7ae20733275c0e508c57eb5b1463d374c9e8d01fe5
+Size (pg-1.5.2.gem) = 232448 bytes



Home | Main Index | Thread Index | Old Index