pg 1.1.0-x86-mingw32 → 1.1.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ea9cfc4c36f1888221f2ded6fcc6c1a486aabbd
4
- data.tar.gz: a70f9d26bb95d9dab0effaeaaf4652141c35dcd4
3
+ metadata.gz: 660e2d8dfd110864822113b093f7cbbe91a0cbe2
4
+ data.tar.gz: bc543dea0fbb77559f7f19d1c76356729b93e2b6
5
5
  SHA512:
6
- metadata.gz: 56660baf6af243990326144096035301217f8f62926278457272c1c6a05e6ccdbdf61b48f0bdade2d3424655172f8ec804d03fe84c821ce7e7caeb4c7f0b49bf
7
- data.tar.gz: dc19a631722cd49b796fda28475959bd0024a850f5534d5e9d993e258849211dddfec62d24ec363da6dcac4da4ef080f345ed708b63a36b7f04355446e4dcfec
6
+ metadata.gz: 05da163ddd044bc18b2ad21ae0e6be9004eaef38a1c8e29b5e9cc1b90bde1451b01f109663e7a6e02c49f82761ccd64204f07a4a1ca846a81305258577ac95ce
7
+ data.tar.gz: 5027734f67264beec6fe06c7c9af916d93ac7618fbb3d7e4bee6509ca046f7ea87cc92d556909f338f7cf69a7ff29395c0c717621d3e0273446bd75b2fd84cb1
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,8 @@
1
+ == v1.1.1 [YYYY-MM-DD] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Reduce deprecation warnings to only one message per deprecation.
4
+
5
+
1
6
  == v1.1.0 [2018-08-24] Michael Granger <ged@FaerieMUD.org>
2
7
 
3
8
  Deprecated (disable warnings per PG_SKIP_DEPRECATION_WARNING=1):
@@ -18,7 +23,7 @@ PG::Connection enhancements:
18
23
 
19
24
  Result retrieval enhancements:
20
25
  - Add PG::Result#tuple_values to retrieve all field values of a row as array.
21
- - Add PG::Tuple, PG::Result#tuple_values and PG::Result#stream_each_tuple .
26
+ - Add PG::Tuple, PG::Result#tuple and PG::Result#stream_each_tuple .
22
27
  PG::Tuple offers a way to lazy cast result values.
23
28
  - Estimate PG::Result size allocated by libpq and notify the garbage collector about it when running on Ruby-2.4 or newer.
24
29
  - Make the estimated PG::Result size available to ObjectSpace.memsize_of(result) .
data/ext/pg.c CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg.c - Toplevel extension
3
- * $Id: pg.c,v 0d4acc8a0bc5 2018/08/05 09:07:58 lars $
3
+ * $Id: pg.c,v be48d118eeed 2018/08/25 11:35:03 lars $
4
4
  *
5
5
  * Author/s:
6
6
  *
@@ -382,7 +382,12 @@ pg_s_init_ssl(VALUE self, VALUE do_ssl)
382
382
  void
383
383
  Init_pg_ext()
384
384
  {
385
- pg_skip_deprecation_warning = RTEST(rb_eval_string("ENV['PG_SKIP_DEPRECATION_WARNING']"));
385
+ if( RTEST(rb_eval_string("ENV['PG_SKIP_DEPRECATION_WARNING']")) ){
386
+ /* Set all bits to disable all deprecation warnings. */
387
+ pg_skip_deprecation_warning = 0xFFFF;
388
+ } else {
389
+ pg_skip_deprecation_warning = 0;
390
+ }
386
391
 
387
392
  rb_mPG = rb_define_module( "PG" );
388
393
  rb_mPGconstants = rb_define_module_under( rb_mPG, "Constants" );
data/ext/pg.h CHANGED
@@ -351,10 +351,16 @@ rb_encoding *pg_conn_enc_get _(( PGconn * ));
351
351
  void notice_receiver_proxy(void *arg, const PGresult *result);
352
352
  void notice_processor_proxy(void *arg, const char *message);
353
353
 
354
- /* reports if `-W' specified and PG_SKIP_DEPRECATION_WARNING environment variable isn't set */
355
- #define pg_deprecated(x) \
354
+ /* reports if `-W' specified and PG_SKIP_DEPRECATION_WARNING environment variable isn't set
355
+ *
356
+ * message_id identifies the warning, so that it's reported only once.
357
+ */
358
+ #define pg_deprecated(message_id, format_args) \
356
359
  do { \
357
- if( !pg_skip_deprecation_warning ) rb_warning x; \
360
+ if( !(pg_skip_deprecation_warning & (1 << message_id)) ){ \
361
+ pg_skip_deprecation_warning |= 1 << message_id; \
362
+ rb_warning format_args; \
363
+ } \
358
364
  } while(0);
359
365
 
360
366
  #endif /* end __pg_h */
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_connection.c - PG::Connection class extension
3
- * $Id: pg_connection.c,v e57f6b452eb3 2018/08/18 10:58:52 lars $
3
+ * $Id: pg_connection.c,v be48d118eeed 2018/08/25 11:35:03 lars $
4
4
  *
5
5
  */
6
6
 
@@ -1006,7 +1006,7 @@ pgconn_exec(int argc, VALUE *argv, VALUE self)
1006
1006
  }
1007
1007
  return rb_pgresult;
1008
1008
  }
1009
- pg_deprecated(("forwarding exec to exec_params is deprecated"));
1009
+ pg_deprecated(0, ("forwarding exec to exec_params is deprecated"));
1010
1010
 
1011
1011
  /* Otherwise, just call #exec_params instead for backward-compatibility */
1012
1012
  return pgconn_exec_params( argc, argv, self );
@@ -1321,7 +1321,7 @@ pgconn_exec_params( int argc, VALUE *argv, VALUE self )
1321
1321
  * is passed to #exec
1322
1322
  */
1323
1323
  if ( NIL_P(paramsData.params) ) {
1324
- pg_deprecated(("forwarding exec_params to exec is deprecated"));
1324
+ pg_deprecated(1, ("forwarding exec_params to exec is deprecated"));
1325
1325
  return pgconn_exec( 1, argv, self );
1326
1326
  }
1327
1327
  pgconn_query_assign_typemap( self, &paramsData );
@@ -1851,7 +1851,7 @@ pgconn_send_query(int argc, VALUE *argv, VALUE self)
1851
1851
  return Qnil;
1852
1852
  }
1853
1853
 
1854
- pg_deprecated(("forwarding async_exec to async_exec_params and send_query to send_query_params is deprecated"));
1854
+ pg_deprecated(2, ("forwarding async_exec to async_exec_params and send_query to send_query_params is deprecated"));
1855
1855
 
1856
1856
  /* If called with parameters, and optionally result_format,
1857
1857
  * use PQsendQueryParams
@@ -3223,7 +3223,7 @@ pgconn_async_exec_params(int argc, VALUE *argv, VALUE self)
3223
3223
  pgconn_discard_results( self );
3224
3224
  /* If called with no or nil parameters, use PQsendQuery for compatibility */
3225
3225
  if ( argc == 1 || (argc >= 2 && argc <= 4 && NIL_P(argv[1]) )) {
3226
- pg_deprecated(("forwarding async_exec_params to async_exec is deprecated"));
3226
+ pg_deprecated(3, ("forwarding async_exec_params to async_exec is deprecated"));
3227
3227
  pgconn_send_query( argc, argv, self );
3228
3228
  } else {
3229
3229
  pgconn_send_query_params( argc, argv, self );
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/pg.rb CHANGED
@@ -35,10 +35,10 @@ end
35
35
  module PG
36
36
 
37
37
  # Library version
38
- VERSION = '1.1.0'
38
+ VERSION = '1.1.1'
39
39
 
40
40
  # VCS revision
41
- REVISION = %q$Revision: ca83074366ac $
41
+ REVISION = %q$Revision: 71d5c24f937e $
42
42
 
43
43
  class NotAllCopyDataRetrieved < PG::Error
44
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Michael Granger
@@ -36,7 +36,7 @@ cert_chain:
36
36
  X0qdrKi+2aZZ0NGuFj9AItBsVmAvkBGIpX4TEKQp5haEbPpmaqO5nIIhV26PXmyT
37
37
  OMKv6pWsoS81vw5KAGBmfX8nht/Py90DQrbRvakATGI=
38
38
  -----END CERTIFICATE-----
39
- date: 2018-08-24 00:00:00.000000000 Z
39
+ date: 2018-08-27 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hoe-mercurial
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �#c�Z�K�0�iG�#���O<��kTHLȓ}g��舌�$�v��0�uMb������]��0}o�<(dR|��̻]���2�^\—37(���,�%+��w9��D$��,F���?���#�aM����o41���B���;[�� �=���Q�R#�̌�� �1�E �<�$�||A��zCS���@2��\�g���‡������O����ef5�>&b?!�3��3-��{��]sif#Bn{�+A��YLd��0:F§uDKu�J�7[?|��v_-S2B�>�����n������sU{;<G
2
- �z�Jm��˚���lt�###‘�տ�*�%[7���٭��sՌ�
1
+ Kc��ٲE�~d���rHM\#�h��W�ӕ�Ua��i�U���O��#W�U���9�,�u�F���,��f�����E�?9$�<�kˀ�)�N�ق����E4+�Z9]���V�Ꮥ� RI1��:H~v
2
+ �