Sun Sep 23 13:56:53 2018 UTC ()
databases/ruby-pg: update to 1.1.3

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

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

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

- 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>

- Reduce deprecation warnings to only one message per deprecation.

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

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


(taca)
diff -r1.30 -r1.31 pkgsrc/databases/ruby-pg/Makefile
diff -r1.16 -r1.17 pkgsrc/databases/ruby-pg/PLIST
diff -r1.23 -r1.24 pkgsrc/databases/ruby-pg/distinfo

cvs diff -r1.30 -r1.31 pkgsrc/databases/ruby-pg/Makefile (expand / switch to unified diff)

--- pkgsrc/databases/ruby-pg/Makefile 2018/02/25 14:19:24 1.30
+++ pkgsrc/databases/ruby-pg/Makefile 2018/09/23 13:56:53 1.31
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.30 2018/02/25 14:19:24 taca Exp $ 1# $NetBSD: Makefile,v 1.31 2018/09/23 13:56:53 taca Exp $
2 2
3DISTNAME= pg-1.0.0 3DISTNAME= pg-1.1.3
4PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/} 4PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:C/postgres/&ql/}
5CATEGORIES= databases 5CATEGORIES= databases
6 6
7MAINTAINER= pkgsrc-users@NetBSD.org 7MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= https://bitbucket.org/ged/ruby-pg/ 8HOMEPAGE= https://bitbucket.org/ged/ruby-pg/
9COMMENT= Ruby extension for PostgreSQL 9COMMENT= Ruby extension for PostgreSQL
10LICENSE= 2-clause-bsd OR ruby-license 10LICENSE= 2-clause-bsd OR ruby-license
11 11
12CONFIGURE_ARGS= --with-pgsql-include-dir=${PGSQL_PREFIX}/include/postgresql \ 12CONFIGURE_ARGS= --with-pgsql-include-dir=${PGSQL_PREFIX}/include/postgresql \
13 --with-pgsql-lib-dir=${PGSQL_PREFIX}/lib 13 --with-pgsql-lib-dir=${PGSQL_PREFIX}/lib
14 14
15.include "../../lang/ruby/gem.mk" 15.include "../../lang/ruby/gem.mk"
16.include "../../mk/pgsql.buildlink3.mk" 16.include "../../mk/pgsql.buildlink3.mk"

cvs diff -r1.16 -r1.17 pkgsrc/databases/ruby-pg/PLIST (expand / switch to unified diff)

--- pkgsrc/databases/ruby-pg/PLIST 2018/02/25 14:19:24 1.16
+++ pkgsrc/databases/ruby-pg/PLIST 2018/09/23 13:56:53 1.17
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.16 2018/02/25 14:19:24 taca Exp $ 1@comment $NetBSD: PLIST,v 1.17 2018/09/23 13:56:53 taca Exp $
2${GEM_HOME}/build_info/${GEM_NAME}.info 2${GEM_HOME}/build_info/${GEM_NAME}.info
3${GEM_HOME}/cache/${GEM_NAME}.gem 3${GEM_HOME}/cache/${GEM_NAME}.gem
4${GEM_EXTSDIR}/gem.build_complete 4${GEM_EXTSDIR}/gem.build_complete
5${GEM_EXTSDIR}/pg_ext.${RUBY_DLEXT} 5${GEM_EXTSDIR}/pg_ext.${RUBY_DLEXT}
6${GEM_LIBDIR}/.gemtest 6${GEM_LIBDIR}/.gemtest
7${GEM_LIBDIR}/BSDL 7${GEM_LIBDIR}/BSDL
8${GEM_LIBDIR}/ChangeLog 8${GEM_LIBDIR}/ChangeLog
9${GEM_LIBDIR}/Contributors.rdoc 9${GEM_LIBDIR}/Contributors.rdoc
10${GEM_LIBDIR}/History.rdoc 10${GEM_LIBDIR}/History.rdoc
11${GEM_LIBDIR}/LICENSE 11${GEM_LIBDIR}/LICENSE
12${GEM_LIBDIR}/Manifest.txt 12${GEM_LIBDIR}/Manifest.txt
13${GEM_LIBDIR}/POSTGRES 13${GEM_LIBDIR}/POSTGRES
14${GEM_LIBDIR}/README-OS_X.rdoc 14${GEM_LIBDIR}/README-OS_X.rdoc
@@ -24,51 +24,56 @@ ${GEM_LIBDIR}/ext/extconf.rb @@ -24,51 +24,56 @@ ${GEM_LIBDIR}/ext/extconf.rb
24${GEM_LIBDIR}/ext/gvl_wrappers.c 24${GEM_LIBDIR}/ext/gvl_wrappers.c
25${GEM_LIBDIR}/ext/gvl_wrappers.h 25${GEM_LIBDIR}/ext/gvl_wrappers.h
26${GEM_LIBDIR}/ext/pg.c 26${GEM_LIBDIR}/ext/pg.c
27${GEM_LIBDIR}/ext/pg.h 27${GEM_LIBDIR}/ext/pg.h
28${GEM_LIBDIR}/ext/pg_binary_decoder.c 28${GEM_LIBDIR}/ext/pg_binary_decoder.c
29${GEM_LIBDIR}/ext/pg_binary_encoder.c 29${GEM_LIBDIR}/ext/pg_binary_encoder.c
30${GEM_LIBDIR}/ext/pg_coder.c 30${GEM_LIBDIR}/ext/pg_coder.c
31${GEM_LIBDIR}/ext/pg_connection.c 31${GEM_LIBDIR}/ext/pg_connection.c
32${GEM_LIBDIR}/ext/pg_copy_coder.c 32${GEM_LIBDIR}/ext/pg_copy_coder.c
33${GEM_LIBDIR}/ext/pg_errors.c 33${GEM_LIBDIR}/ext/pg_errors.c
34${GEM_LIBDIR}/ext/pg_result.c 34${GEM_LIBDIR}/ext/pg_result.c
35${GEM_LIBDIR}/ext/pg_text_decoder.c 35${GEM_LIBDIR}/ext/pg_text_decoder.c
36${GEM_LIBDIR}/ext/pg_text_encoder.c 36${GEM_LIBDIR}/ext/pg_text_encoder.c
 37${GEM_LIBDIR}/ext/pg_tuple.c
37${GEM_LIBDIR}/ext/pg_type_map.c 38${GEM_LIBDIR}/ext/pg_type_map.c
38${GEM_LIBDIR}/ext/pg_type_map_all_strings.c 39${GEM_LIBDIR}/ext/pg_type_map_all_strings.c
39${GEM_LIBDIR}/ext/pg_type_map_by_class.c 40${GEM_LIBDIR}/ext/pg_type_map_by_class.c
40${GEM_LIBDIR}/ext/pg_type_map_by_column.c 41${GEM_LIBDIR}/ext/pg_type_map_by_column.c
41${GEM_LIBDIR}/ext/pg_type_map_by_mri_type.c 42${GEM_LIBDIR}/ext/pg_type_map_by_mri_type.c
42${GEM_LIBDIR}/ext/pg_type_map_by_oid.c 43${GEM_LIBDIR}/ext/pg_type_map_by_oid.c
43${GEM_LIBDIR}/ext/pg_type_map_in_ruby.c 44${GEM_LIBDIR}/ext/pg_type_map_in_ruby.c
44${GEM_LIBDIR}/ext/util.c 45${GEM_LIBDIR}/ext/util.c
45${GEM_LIBDIR}/ext/util.h 46${GEM_LIBDIR}/ext/util.h
46${GEM_LIBDIR}/ext/vc/pg.sln 47${GEM_LIBDIR}/ext/vc/pg.sln
47${GEM_LIBDIR}/ext/vc/pg_18/pg.vcproj 48${GEM_LIBDIR}/ext/vc/pg_18/pg.vcproj
48${GEM_LIBDIR}/ext/vc/pg_19/pg_19.vcproj 49${GEM_LIBDIR}/ext/vc/pg_19/pg_19.vcproj
49${GEM_LIBDIR}/lib/pg.rb 50${GEM_LIBDIR}/lib/pg.rb
50${GEM_LIBDIR}/lib/pg/basic_type_mapping.rb 51${GEM_LIBDIR}/lib/pg/basic_type_mapping.rb
 52${GEM_LIBDIR}/lib/pg/binary_decoder.rb
51${GEM_LIBDIR}/lib/pg/coder.rb 53${GEM_LIBDIR}/lib/pg/coder.rb
52${GEM_LIBDIR}/lib/pg/connection.rb 54${GEM_LIBDIR}/lib/pg/connection.rb
53${GEM_LIBDIR}/lib/pg/constants.rb 55${GEM_LIBDIR}/lib/pg/constants.rb
54${GEM_LIBDIR}/lib/pg/exceptions.rb 56${GEM_LIBDIR}/lib/pg/exceptions.rb
55${GEM_LIBDIR}/lib/pg/result.rb 57${GEM_LIBDIR}/lib/pg/result.rb
56${GEM_LIBDIR}/lib/pg/text_decoder.rb 58${GEM_LIBDIR}/lib/pg/text_decoder.rb
57${GEM_LIBDIR}/lib/pg/text_encoder.rb 59${GEM_LIBDIR}/lib/pg/text_encoder.rb
 60${GEM_LIBDIR}/lib/pg/tuple.rb
58${GEM_LIBDIR}/lib/pg/type_map_by_column.rb 61${GEM_LIBDIR}/lib/pg/type_map_by_column.rb
59${GEM_LIBDIR}/lib/pg_ext.${RUBY_DLEXT} 62${GEM_LIBDIR}/lib/pg_ext.${RUBY_DLEXT}
60${GEM_LIBDIR}/spec/data/expected_trace.out 63${GEM_LIBDIR}/spec/data/expected_trace.out
61${GEM_LIBDIR}/spec/data/random_binary_data 64${GEM_LIBDIR}/spec/data/random_binary_data
62${GEM_LIBDIR}/spec/helpers.rb 65${GEM_LIBDIR}/spec/helpers.rb
63${GEM_LIBDIR}/spec/pg/basic_type_mapping_spec.rb 66${GEM_LIBDIR}/spec/pg/basic_type_mapping_spec.rb
64${GEM_LIBDIR}/spec/pg/connection_spec.rb 67${GEM_LIBDIR}/spec/pg/connection_spec.rb
 68${GEM_LIBDIR}/spec/pg/connection_sync_spec.rb
65${GEM_LIBDIR}/spec/pg/result_spec.rb 69${GEM_LIBDIR}/spec/pg/result_spec.rb
 70${GEM_LIBDIR}/spec/pg/tuple_spec.rb
66${GEM_LIBDIR}/spec/pg/type_map_by_class_spec.rb 71${GEM_LIBDIR}/spec/pg/type_map_by_class_spec.rb
67${GEM_LIBDIR}/spec/pg/type_map_by_column_spec.rb 72${GEM_LIBDIR}/spec/pg/type_map_by_column_spec.rb
68${GEM_LIBDIR}/spec/pg/type_map_by_mri_type_spec.rb 73${GEM_LIBDIR}/spec/pg/type_map_by_mri_type_spec.rb
69${GEM_LIBDIR}/spec/pg/type_map_by_oid_spec.rb 74${GEM_LIBDIR}/spec/pg/type_map_by_oid_spec.rb
70${GEM_LIBDIR}/spec/pg/type_map_in_ruby_spec.rb 75${GEM_LIBDIR}/spec/pg/type_map_in_ruby_spec.rb
71${GEM_LIBDIR}/spec/pg/type_map_spec.rb 76${GEM_LIBDIR}/spec/pg/type_map_spec.rb
72${GEM_LIBDIR}/spec/pg/type_spec.rb 77${GEM_LIBDIR}/spec/pg/type_spec.rb
73${GEM_LIBDIR}/spec/pg_spec.rb 78${GEM_LIBDIR}/spec/pg_spec.rb
74${GEM_HOME}/specifications/${GEM_NAME}.gemspec 79${GEM_HOME}/specifications/${GEM_NAME}.gemspec

cvs diff -r1.23 -r1.24 pkgsrc/databases/ruby-pg/distinfo (expand / switch to unified diff)

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