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:           Sun Sep 23 13:56:53 UTC 2018

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

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

== v1.1.3 [2018-09-06] Michael Granger <ged%FaerieMUD.org@localhost>

- Revert opimization that was sometimes causing EBADF in rb_wait_for_single_fd().

== v1.1.2 [2018-08-28] Michael Granger <ged%FaerieMUD.org@localhost>

- Don't generate aliases for JOHAB encoding.
  This avoids linking to deprecated/private function rb_enc(db)_alias().

== v1.1.1 [2018-08-27] Michael Granger <ged%FaerieMUD.org@localhost>

- Reduce deprecation warnings to only one message per deprecation.

== v1.1.0 [2018-08-24] Michael Granger <ged%FaerieMUD.org@localhost>

Deprecated (disable warnings per PG_SKIP_DEPRECATION_WARNING=1):
- Forwarding conn.exec to conn.exec_params is deprecated.
- Forwarding conn.exec_params to conn.exec is deprecated.
- Forwarding conn.async_exec to conn.async_exec_params.
- Forwarding conn.send_query to conn.send_query_params is deprecated.
- Forwarding conn.async_exec_params to conn.async_exec is deprecated.

PG::Connection enhancements:
- Provide PG::Connection#sync_* and PG::Connection#async_* query methods for explicit calling syncronous or asynchronous libpq API.
- Make PG::Connection#exec and siblings switchable between sync and async API per PG::Connection.async_api= and change the default to async flavors.
- Add async flavors of exec_params, prepare, exec_prepared, describe_prepared and describe_portal.
  They are identical to their syncronous counterpart, but make use of PostgreSQL's async API.
- Replace `rb_thread_fd_select()` by faster `rb_wait_for_single_fd()` in `conn.block` and `conn.async_exec` .
- Add PG::Connection#discard_results .
- Raise an ArgumentError for strings containing zero bytes by #escape, #escape_literal, #escape_identifier, #quote_ident and PG::TextEncoder::Identifier. These methods previously truncated strings.

Result retrieval enhancements:
- Add PG::Result#tuple_values to retrieve all field values of a row as array.
- Add PG::Tuple, PG::Result#tuple and PG::Result#stream_each_tuple .
  PG::Tuple offers a way to lazy cast result values.
- Estimate PG::Result size allocated by libpq and notify the garbage collector about it when running on Ruby-2.4 or newer.
- Make the estimated PG::Result size available to ObjectSpace.memsize_of(result) .

Type cast enhancements:
- Replace Ruby code by a faster C implementation of the SimpleDecoder's timestamp decode functions. github #20
- Interpret years with up to 7 digists and BC dates by timestamp decoder.
- Add text timestamp decoders for UTC vs. local timezone variations.
- Add text timestamp encoders for UTC timezone.
- Add decoders for binary timestamps: PG::BinaryDecoder::Timestamp and variations.
- Add PG::Coder#flags accessor to allow modifications of de- respectively encoder behaviour.
- Add a flag to raise TypeError for invalid input values to PG::TextDecoder::Array .
- Add a text decoder for inet/cidr written in C.
- Add a numeric decoder written in C.
- Ensure input text is zero terminated for text format in PG::Coder#decode .

Source code enhancements:
- Fix headers and permission bits of various repository files.

Bugfixes:
- Properly decode array with prepended dimensions. #272
  For now dimension decorations are ignored, but a correct Array is returned.
- Array-Decoder: Avoid leaking memory when an Exception is raised while parsing. Fixes #279


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/databases/ruby-pg/Makefile
cvs rdiff -u -r1.16 -r1.17 pkgsrc/databases/ruby-pg/PLIST
cvs rdiff -u -r1.23 -r1.24 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.30 pkgsrc/databases/ruby-pg/Makefile:1.31
--- pkgsrc/databases/ruby-pg/Makefile:1.30      Sun Feb 25 14:19:24 2018
+++ pkgsrc/databases/ruby-pg/Makefile   Sun Sep 23 13:56:53 2018
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2018/02/25 14:19:24 taca Exp $
+# $NetBSD: Makefile,v 1.31 2018/09/23 13:56:53 taca Exp $
 
-DISTNAME=      pg-1.0.0
+DISTNAME=      pg-1.1.3
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/}
 CATEGORIES=    databases
 

Index: pkgsrc/databases/ruby-pg/PLIST
diff -u pkgsrc/databases/ruby-pg/PLIST:1.16 pkgsrc/databases/ruby-pg/PLIST:1.17
--- pkgsrc/databases/ruby-pg/PLIST:1.16 Sun Feb 25 14:19:24 2018
+++ pkgsrc/databases/ruby-pg/PLIST      Sun Sep 23 13:56:53 2018
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2018/02/25 14:19:24 taca Exp $
+@comment $NetBSD: PLIST,v 1.17 2018/09/23 13:56:53 taca Exp $
 ${GEM_HOME}/build_info/${GEM_NAME}.info
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_EXTSDIR}/gem.build_complete
@@ -34,6 +34,7 @@ ${GEM_LIBDIR}/ext/pg_errors.c
 ${GEM_LIBDIR}/ext/pg_result.c
 ${GEM_LIBDIR}/ext/pg_text_decoder.c
 ${GEM_LIBDIR}/ext/pg_text_encoder.c
+${GEM_LIBDIR}/ext/pg_tuple.c
 ${GEM_LIBDIR}/ext/pg_type_map.c
 ${GEM_LIBDIR}/ext/pg_type_map_all_strings.c
 ${GEM_LIBDIR}/ext/pg_type_map_by_class.c
@@ -48,6 +49,7 @@ ${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/binary_decoder.rb
 ${GEM_LIBDIR}/lib/pg/coder.rb
 ${GEM_LIBDIR}/lib/pg/connection.rb
 ${GEM_LIBDIR}/lib/pg/constants.rb
@@ -55,6 +57,7 @@ ${GEM_LIBDIR}/lib/pg/exceptions.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_ext.${RUBY_DLEXT}
 ${GEM_LIBDIR}/spec/data/expected_trace.out
@@ -62,7 +65,9 @@ ${GEM_LIBDIR}/spec/data/random_binary_da
 ${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

Index: pkgsrc/databases/ruby-pg/distinfo
diff -u pkgsrc/databases/ruby-pg/distinfo:1.23 pkgsrc/databases/ruby-pg/distinfo:1.24
--- pkgsrc/databases/ruby-pg/distinfo:1.23      Sun Feb 25 14:19:24 2018
+++ pkgsrc/databases/ruby-pg/distinfo   Sun Sep 23 13:56:53 2018
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.23 2018/02/25 14:19:24 taca Exp $
+$NetBSD: distinfo,v 1.24 2018/09/23 13:56:53 taca Exp $
 
-SHA1 (pg-1.0.0.gem) = ef2bbde400a47744aea9b32948331d0ad318c3d2
-RMD160 (pg-1.0.0.gem) = bef8ef8f340435b932028bf569e7ddb81e5e094a
-SHA512 (pg-1.0.0.gem) = 1cac025ab8a95b4429534b98377eedeb1e3f8b2c4a859363c4174d477577caf39557b002cde4e745189fa9a29e9181ff9d564d822f15ff5c4f03f7389b0d0398
-Size (pg-1.0.0.gem) = 213504 bytes
-SHA1 (patch-ext_extconf.rb) = 161b826521c4e3b5a5c6aaa88dae572e36257b9c
+SHA1 (pg-1.1.3.gem) = c26d2d390b3476f836a6604d3445bb3ae85a985e
+RMD160 (pg-1.1.3.gem) = b3c0a49cbea45fef32ee42ee90e5f2f890c3d79f
+SHA512 (pg-1.1.3.gem) = 0a1089a3687085169ff3225f93ee0722e93f1d8b05e4034f29d602afd584580036a23d5d2743f77c4023e593ed573b72ca2bcba6400b0ecc428b4717590ad27f
+Size (pg-1.1.3.gem) = 233472 bytes



Home | Main Index | Thread Index | Old Index