pg 1.1.0-x64-mingw32 → 1.1.1-x64-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +6 -1
- data/ext/pg.c +7 -2
- data/ext/pg.h +9 -3
- data/ext/pg_connection.c +5 -5
- data/lib/2.0/pg_ext.so +0 -0
- data/lib/2.1/pg_ext.so +0 -0
- data/lib/2.2/pg_ext.so +0 -0
- data/lib/2.3/pg_ext.so +0 -0
- data/lib/2.4/pg_ext.so +0 -0
- data/lib/2.5/pg_ext.so +0 -0
- data/lib/libpq.dll +0 -0
- data/lib/pg.rb +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 821fe9ea1ffec905bbe98a536fc1d1b16780b0ab
|
4
|
+
data.tar.gz: 946f8a856d0a88444bc53f6a2969cb2b1e684ef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88256754fddcf50242595d8161d99f6a97a66a94b2732d70accb46ed9d1d861620aca59ac77fa90fa3ba65685e1e9113a0db06c9cd8b89ecd1b0b9130d0eab0b
|
7
|
+
data.tar.gz: 99ab1d73225678cce885c4a5f0ef75c5e0659dac17896aa8c282a9237cfe5b54410fdfad455e35f3e667373044ae6e63333ff773c0bdf02ad1bf66f337307abb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -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#
|
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
|
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
|
-
|
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
|
-
|
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 )
|
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 */
|
data/ext/pg_connection.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* pg_connection.c - PG::Connection class extension
|
3
|
-
* $Id: pg_connection.c,v
|
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, ¶msData );
|
@@ -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 );
|
data/lib/2.0/pg_ext.so
CHANGED
Binary file
|
data/lib/2.1/pg_ext.so
CHANGED
Binary file
|
data/lib/2.2/pg_ext.so
CHANGED
Binary file
|
data/lib/2.3/pg_ext.so
CHANGED
Binary file
|
data/lib/2.4/pg_ext.so
CHANGED
Binary file
|
data/lib/2.5/pg_ext.so
CHANGED
Binary file
|
data/lib/libpq.dll
CHANGED
Binary file
|
data/lib/pg.rb
CHANGED
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.
|
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-
|
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
|