pg 1.2.0 → 1.2.1

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: e1618ae02150b1bed4ee83669aff1133e74d07f0a9ccdf2e3cee3a6a57ba738f
4
- data.tar.gz: 5c70825cf567d526e5e11679f88806e3c1723acb301bc356992df417575b8d3a
3
+ metadata.gz: 3c640c9fcec2200f5de6f54e4966312d71998eeda8df38e4b103318871b0332e
4
+ data.tar.gz: 5d298acf56930ebbbb96908bd69d34bcc2c59eb9b0567436d2c6b8793b6153d8
5
5
  SHA512:
6
- metadata.gz: f55fc75632dc1c60b1620f83cadcc961cf601f50bb30a878159ddbca10eaaccf0ee9ff2028fbb2e74f979d570c1b809d07224fc4bd664e15ecf5fb05ec8398e2
7
- data.tar.gz: d92e3c96466f13a8679c9ac68d14a01c1fd2133efc637d7e0dd4c0f3649ffbc769a1f100b8bbe705b5a4d9cdb5d8921b1a6b19ad34eee6d7a73eff31de9480c7
6
+ metadata.gz: aa78484afbafd0533fdc2fca192c946c5914ffd30a748c11d4a0dc8401b6dbeb925bebcd3ed7fb78c85f578341dc86dc652975ac28e91fa458034d205a928b4f
7
+ data.tar.gz: 3ad1e7faf70460a1324adb3ca0e6cd11371870f57dd4a5d996fdb9cbba1db2800fa409acacadd39024d38e6e2983e455d2432db90ac2f28f3dd684d3b7984e66
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
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: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -12,8 +12,8 @@ cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
14
  MIIENDCCApygAwIBAgIBATANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdnZWQv
15
- REM9RmFlcmllTVVEL0RDPW9yZzAeFw0xODExMjAxODI5NTlaFw0xOTExMjAxODI5
16
- NTlaMCIxIDAeBgNVBAMMF2dlZC9EQz1GYWVyaWVNVUQvREM9b3JnMIIBojANBgkq
15
+ REM9RmFlcmllTVVEL0RDPW9yZzAeFw0xOTEwMDkwMDM2NTdaFw0yMDEwMDgwMDM2
16
+ NTdaMCIxIDAeBgNVBAMMF2dlZC9EQz1GYWVyaWVNVUQvREM9b3JnMIIBojANBgkq
17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o0SvQRgjQVmhbQvExRnCMCoW1yb
29
+ FJiN7A5RA2Iy2E61OG1Ul5nGmaDmx/PNB/6JIbIV3B9Uq8aTZx4uOjK7r8vMl1/t
30
+ ZfY7r6HejJfXlcO2m6JDMbpdyEVv916LncBkzZRz6vnnNCx+31f15FKddxujpAFd
31
+ qpn3JRQY+oj7ZkoccL/IUiDpxQWeS3oOoz9qr2kVTp8R50InZimt79FqCl/1m66W
32
+ kdOuf+wM3DDx7Rt4IVNHrhGlyfMr7xjKW1Q3gll+pMN1DT6Ajx/t3JDSEg7BnnEW
33
+ r7AciSO6J4ApUdqyG+coLFlGdtgFTgRHv7ihbQtDI7Z/LV7A4Spn1j2PK3j0Omri
34
+ kSl1hPVigRytfgdVGiLXzvkkrkgj9EknCaj5UHbac7XvVBrljXj9hsnnqTANaKsg
35
+ jBZSA+N+xUTgUWpXjjwsLZjzJkhWATJWq+krNXcqpwXo6HsjmdUxoFMt63RBb+sI
36
+ XrxOxp8o0uOkU7FdLSGsyqJ2LzsR4obN
37
37
  -----END CERTIFICATE-----
38
- date: 2019-12-24 00:00:00.000000000 Z
38
+ date: 2020-01-02 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: hoe-mercurial
@@ -57,14 +57,14 @@ dependencies:
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.9'
60
+ version: '0.10'
61
61
  type: :development
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.9'
67
+ version: '0.10'
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: hoe-highline
70
70
  requirement: !ruby/object:Gem::Requirement
@@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
317
317
  - !ruby/object:Gem::Version
318
318
  version: '0'
319
319
  requirements: []
320
- rubygems_version: 3.0.6
320
+ rubygems_version: 3.0.3
321
321
  signing_key:
322
322
  specification_version: 4
323
323
  summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
metadata.gz.sig CHANGED
Binary file