pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/ruby-pg databases/ruby-pg: update to 1.2.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/48148291f24c
branches:  trunk
changeset: 409252:48148291f24c
user:      taca <taca%pkgsrc.org@localhost>
date:      Thu Jan 16 15:16:19 2020 +0000

description:
databases/ruby-pg: update to 1.2.2

== v1.2.2 [2020-01-06] Michael Granger <ged%FaerieMUD.org@localhost>

Enhancements:

- Add a binary gem for Ruby 2.7.


== v1.2.1 [2020-01-02] Michael Granger <ged%FaerieMUD.org@localhost>

Enhancements:

- Added internal API for sequel_pg compatibility.


== v1.2.0 [2019-12-20] Michael Granger <ged%FaerieMUD.org@localhost>

Repository:
- Our primary repository has been moved to Github https://github.com/ged/ruby-pg .
  Most of the issues from https://bitbucket.org/ged/ruby-pg have been migrated. #43

API enhancements:
- Add PG::Result#field_name_type= and siblings to allow symbols to be used as field names. #306
- Add new methods for error reporting:
  - PG::Connection#set_error_context_visibility
  - PG::Result#verbose_error_message
  - PG::Result#result_verbose_error_message (alias)
- Update errorcodes and error classes to PostgreSQL-12.0.
- New constants: PG_DIAG_SEVERITY_NONLOCALIZED, PQERRORS_SQLSTATE, PQSHOW_CONTEXT_NEVER, PQSHOW_CONTEXT_ERRORS, PQSHOW_CONTEXT_ALWAYS

Type cast enhancements:
- Add PG::TextEncoder::Record and PG::TextDecoder::Record for en/decoding of Composite Types. #258, #36
- Add PG::BasicTypeRegistry.register_coder to register instances instead of classes.
  This is useful to register parametrized en/decoders like PG::TextDecoder::Record .
- Add PG::BasicTypeMapForQueries#encode_array_as= to switch between various interpretations of ruby arrays.
- Add Time, Array<Time>, Array<BigDecimal> and Array<IPAddr> encoders to PG::BasicTypeMapForQueries
- Exchange sprintf based float encoder by very fast own implementation with more natural format. #301
- Define encode and decode methods only in en/decoders that implement it, so that they can be queried by respond_to? .
- Improve PG::TypeMapByColumn#inspect
- Accept Integer and Float as input to TextEncoder::Numeric . #310

Other enhancements:
- Allocate the data part and the ruby object of PG::Result in one step, so that we don't need to check for valid data.
  This removes PG::Result.allocate and PG::Result.new, which were callable but without any practical use. #42
- Make use of PQresultMemorySize() of PostgreSQL-12 and fall back to our internal estimator.
- Improve performance of PG::Result#stream_each_tuple .
- Store client encoding in data part of PG::Connection and PG::Result objects, so that we no longer use ruby's internal encoding bits. #280
- Update Windows fat binary gem to OpenSSL-1.1.1d and PostgreSQL-12.1.
- Add support for TruffleRuby. It is regulary tested as part of our CI.
- Enable +frozen_string_literal+ in all pg's ruby files

Bugfixes:
- Update the license in gemspec to "BSD-2-Clause".
  It was incorrectly labeled "BSD-3-Clause". #40
- Respect PG::Coder#flags in PG::Coder#to_h.
- Fix PG::Result memsize reporting after #clear.
- Release field names to GC on PG::Result#clear.
- Fix double free in PG::Result#stream_each_tuple when an exception is raised in the block.
- Fix PG::Result#stream_each_tuple to deliver typemapped values.
- Fix encoding of Array<unknown> with PG::BasicTypeMapForQueries

Deprecated:
- Add a deprecation warning to PG::Connection#socket .

Removed:
- Remove PG::Connection#guess_result_memsize= which was temporary added in pg-1.1.
- Remove PG::Result.allocate and PG::Result.new (see enhancements).
- Remove support of tainted objects. #307
- Remove support of ruby-2.0 and 2.1. Minimum is ruby-2.2 now.

Documentation:
- Update description of connection params. See PG::Connection.new
- Link many method descriptions to corresponding libpq's documentation.
- Update sync_* and async_* query method descriptions and document the aliases.
  The primary documentation is now at the async_* methods which are the default since pg-1.1.
- Fix documentation of many constants

diffstat:

 databases/ruby-pg/Makefile |   4 ++--
 databases/ruby-pg/PLIST    |   7 ++++---
 databases/ruby-pg/distinfo |  10 +++++-----
 3 files changed, 11 insertions(+), 10 deletions(-)

diffs (55 lines):

diff -r 384cdb424ac5 -r 48148291f24c databases/ruby-pg/Makefile
--- a/databases/ruby-pg/Makefile        Thu Jan 16 15:15:24 2020 +0000
+++ b/databases/ruby-pg/Makefile        Thu Jan 16 15:16:19 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.32 2019/01/20 13:19:13 taca Exp $
+# $NetBSD: Makefile,v 1.33 2020/01/16 15:16:19 taca Exp $
 
-DISTNAME=      pg-1.1.4
+DISTNAME=      pg-1.2.2
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/}
 CATEGORIES=    databases
 
diff -r 384cdb424ac5 -r 48148291f24c databases/ruby-pg/PLIST
--- a/databases/ruby-pg/PLIST   Thu Jan 16 15:15:24 2020 +0000
+++ b/databases/ruby-pg/PLIST   Thu Jan 16 15:16:19 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2018/09/23 13:56:53 taca Exp $
+@comment $NetBSD: PLIST,v 1.18 2020/01/16 15:16:19 taca Exp $
 ${GEM_HOME}/build_info/${GEM_NAME}.info
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_EXTSDIR}/gem.build_complete
@@ -31,6 +31,7 @@
 ${GEM_LIBDIR}/ext/pg_connection.c
 ${GEM_LIBDIR}/ext/pg_copy_coder.c
 ${GEM_LIBDIR}/ext/pg_errors.c
+${GEM_LIBDIR}/ext/pg_record_coder.c
 ${GEM_LIBDIR}/ext/pg_result.c
 ${GEM_LIBDIR}/ext/pg_text_decoder.c
 ${GEM_LIBDIR}/ext/pg_text_encoder.c
@@ -42,8 +43,8 @@
 ${GEM_LIBDIR}/ext/pg_type_map_by_mri_type.c
 ${GEM_LIBDIR}/ext/pg_type_map_by_oid.c
 ${GEM_LIBDIR}/ext/pg_type_map_in_ruby.c
-${GEM_LIBDIR}/ext/util.c
-${GEM_LIBDIR}/ext/util.h
+${GEM_LIBDIR}/ext/pg_util.c
+${GEM_LIBDIR}/ext/pg_util.h
 ${GEM_LIBDIR}/ext/vc/pg.sln
 ${GEM_LIBDIR}/ext/vc/pg_18/pg.vcproj
 ${GEM_LIBDIR}/ext/vc/pg_19/pg_19.vcproj
diff -r 384cdb424ac5 -r 48148291f24c databases/ruby-pg/distinfo
--- a/databases/ruby-pg/distinfo        Thu Jan 16 15:15:24 2020 +0000
+++ b/databases/ruby-pg/distinfo        Thu Jan 16 15:16:19 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.25 2019/01/20 13:19:13 taca Exp $
+$NetBSD: distinfo,v 1.26 2020/01/16 15:16:19 taca Exp $
 
-SHA1 (pg-1.1.4.gem) = c38302c2f1962f7031f6f960e7a68fbfa4e4f2f0
-RMD160 (pg-1.1.4.gem) = eac9d3644788ebd9d1ba39cb6cb65df390670997
-SHA512 (pg-1.1.4.gem) = 442eadb4e9fe51aaef71cb5bbe8786c61dc4cfaa1241491270cb251f062abae88b6b2ef88dec7ab6ba2baa6390e954a2fcf4862cc95be4bc516e029c788fa1d9
-Size (pg-1.1.4.gem) = 233984 bytes
+SHA1 (pg-1.2.2.gem) = 2e185e03c0a82b8a67f9d32f8e5292bfee3e7fda
+RMD160 (pg-1.2.2.gem) = 9a0814702d20509bd39c0a43c2ecf173cba35786
+SHA512 (pg-1.2.2.gem) = 5c7cc90afb75a66e80cfc34c4875cf22b005aa0a27e78db6f71d1829f870c6409b73326a9925f79c0d642e93ea51d1f84c7383323fea44b7488e83deb7754951
+Size (pg-1.2.2.gem) = 196608 bytes



Home | Main Index | Thread Index | Old Index