pg 1.1.0-x64-mingw32 → 1.1.1-x64-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: bc3ed0ec5eb9d50880ba29e5390403d422b17a7f
4
- data.tar.gz: 868a4e4959bf3d911549c240c4cf78019c90d9d0
3
+ metadata.gz: 821fe9ea1ffec905bbe98a536fc1d1b16780b0ab
4
+ data.tar.gz: 946f8a856d0a88444bc53f6a2969cb2b1e684ef8
5
5
  SHA512:
6
- metadata.gz: 6e0a599cacd044706a514a76d88553db31de5bded326b398c3622ef714853f77413c5f0e5932bd57d071a96f9eca0228b767372102c29297c0a6798067615acb
7
- data.tar.gz: 15ed7e326d193a6ada07bfbbfcabb1e07b1312ef39c4b6b16af3ec2b458035c4960544280d760c8e11d97caf514f3a39edbc57a78fe3de65bf95cf7baacf6e2e
6
+ metadata.gz: 88256754fddcf50242595d8161d99f6a97a66a94b2732d70accb46ed9d1d861620aca59ac77fa90fa3ba65685e1e9113a0db06c9cd8b89ecd1b0b9130d0eab0b
7
+ data.tar.gz: 99ab1d73225678cce885c4a5f0ef75c5e0659dac17896aa8c282a9237cfe5b54410fdfad455e35f3e667373044ae6e63333ff773c0bdf02ad1bf66f337307abb
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: x64-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
Binary file