pg 1.2.0-x86-mingw32 → 1.2.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
  SHA256:
3
- metadata.gz: 2023df7a37c1bc32c0230dafb138bee3b75925795d72c3f90eddf9ac003909b2
4
- data.tar.gz: e7d81f034652c74afbc959cd5b52900fe5971446b6f03cf71260f31c9c16c19a
3
+ metadata.gz: a9228035f544e9042496c0ffe406ab2bc0edb840ae539924a56d8b4cab851a3b
4
+ data.tar.gz: 4661f4c7af9637e0578a2dd9aee77cd7b146cdc1c0aff863eb08686294f07bc8
5
5
  SHA512:
6
- metadata.gz: 5721da83eb1dbed2d307f3d17f012ecc34b545de1c091d5c0720b68cb9662978cc01fed10efadc40d3233e24e0f4030e09621dfaba109e636fcdf721afac17f9
7
- data.tar.gz: 90ac26e0be824fce47b2e389e61a9a81b812980aa02d23f6e720b4f0d10fd59c44bba1f004d9af8da2b3a6ea90c217f3ef6032a815da9b0338f6fc2a7851bcf8
6
+ metadata.gz: b71ff29ea7a9be361dae356a6029b4e621896a3ccc5ae768d7237b0936f6d76e4f329c089b6f1c98fdedea19b58fed2a675277ecdb38c6a2103fd2eb1375a8d7
7
+ data.tar.gz: 64f2020d656bea09d85313201c2e730f26821fe6b06a5b124892f4c7cc4e076adbf14a52741ad47c7729bcad71863fe84718b6b30cc68793cfa163799532f5cf
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,10 @@
1
+ == v1.2.1 [2020-01-02] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Enhancements:
4
+
5
+ - Added internal API for sequel_pg compatibility.
6
+
7
+
1
8
  == v1.2.0 [2019-12-20] Michael Granger <ged@FaerieMUD.org>
2
9
 
3
10
  Repository:
@@ -118,7 +118,7 @@ PG::Coder objects can be used to set up a PG::TypeMap or alternatively
118
118
  to convert single values to/from their string representation.
119
119
 
120
120
  The following PostgreSQL column types are supported by ruby-pg (TE = Text Encoder, TD = Text Decoder, BE = Binary Encoder, BD = Binary Decoder):
121
- * Integer: {TE}[rdoc-ref:PG::TextEncoder::Integer], {TD}[rdoc-ref:PG::TextDecoder::Integer], {BD}[rdoc-ref:PG::BinaryDecoder::Integer]
121
+ * Integer: {TE}[rdoc-ref:PG::TextEncoder::Integer], {TD}[rdoc-ref:PG::TextDecoder::Integer], {BD}[rdoc-ref:PG::BinaryDecoder::Integer] 💡 No links? Switch to {here}[https://deveiate.org/code/pg/README_rdoc.html#label-Type+Casts] 💡
122
122
  * BE: {Int2}[rdoc-ref:PG::BinaryEncoder::Int2], {Int4}[rdoc-ref:PG::BinaryEncoder::Int4], {Int8}[rdoc-ref:PG::BinaryEncoder::Int8]
123
123
  * Float: {TE}[rdoc-ref:PG::TextEncoder::Float], {TD}[rdoc-ref:PG::TextDecoder::Float], {BD}[rdoc-ref:PG::BinaryDecoder::Float]
124
124
  * Numeric: {TE}[rdoc-ref:PG::TextEncoder::Numeric], {TD}[rdoc-ref:PG::TextDecoder::Numeric]
@@ -295,7 +295,7 @@ task 'gem:windows' => ['ChangeLog'] do
295
295
  RakeCompilerDock.sh <<-EOT
296
296
  mkdir ~/.gem &&
297
297
  (cp build/gem/gem-*.pem ~/.gem/ || true) &&
298
- gem install -Ng &&
298
+ bundle install --local &&
299
299
  rake cross native gem MAKE="make -j`nproc`"
300
300
  EOT
301
301
  end
@@ -167,6 +167,11 @@ static const rb_data_type_t pgresult_type = {
167
167
  #endif
168
168
  };
169
169
 
170
+ /* Needed by sequel_pg gem, do not delete */
171
+ int pg_get_result_enc_idx(VALUE self)
172
+ {
173
+ return pgresult_get_this(self)->enc_idx;
174
+ }
170
175
 
171
176
  /*
172
177
  * Global functions
@@ -333,8 +338,7 @@ pg_result_check( VALUE self )
333
338
  * Special care must be taken when PG::Tuple objects are used.
334
339
  * In this case #clear must not be called unless all PG::Tuple objects of this result are fully materialized.
335
340
  *
336
- * If PG::Result#autoclear? is true then the result is marked as cleared
337
- * and the underlying C struct will be cleared automatically by libpq.
341
+ * If PG::Result#autoclear? is +true+ then the result is only marked as cleared but clearing the underlying C struct will happen when the callback returns.
338
342
  *
339
343
  */
340
344
  VALUE
@@ -362,8 +366,10 @@ pgresult_cleared_p( VALUE self )
362
366
  * call-seq:
363
367
  * res.autoclear? -> boolean
364
368
  *
365
- * Returns +true+ if the underlying C struct will be cleared automatically by libpq.
366
- * Elsewise the result is cleared by PG::Result#clear or by the GC when it's no longer in use.
369
+ * Returns +true+ if the underlying C struct will be cleared at the end of a callback.
370
+ * This applies only to Result objects received by the block to PG::Cinnection#set_notice_receiver .
371
+ *
372
+ * All other Result objects are automatically cleared by the GC when the object is no longer in use or manually by PG::Result#clear .
367
373
  *
368
374
  */
369
375
  VALUE
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/pg.rb CHANGED
@@ -36,7 +36,7 @@ end
36
36
  module PG
37
37
 
38
38
  # Library version
39
- VERSION = '1.2.0'
39
+ VERSION = '1.2.1'
40
40
 
41
41
  # VCS revision
42
42
  REVISION = %q$Revision: 6f611e78845a $
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.2.0
4
+ version: 1.2.1
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Michael Granger
@@ -34,7 +34,7 @@ cert_chain:
34
34
  83uuAYSy65yXDGXXPVBeKPVnYrqp91pqpS5Nh7wfuiCrE8lgU8PATh7K4BV1UhAT
35
35
  0MHbAT42wTYkfUj3
36
36
  -----END CERTIFICATE-----
37
- date: 2019-12-24 00:00:00.000000000 Z
37
+ date: 2020-01-02 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: hoe-mercurial
metadata.gz.sig CHANGED
Binary file