pg 1.1.1-x64-mingw32 → 1.1.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +7 -1
- data/ext/pg.c +1 -4
- data/ext/pg.h +0 -3
- 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
- data/spec/helpers.rb +1 -0
- data/spec/pg/connection_spec.rb +16 -0
- 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: 297b04be76576c28a27569752072310064ffa03e
|
4
|
+
data.tar.gz: 622e7a4704c211a83f75d4ee1df21c1babb576c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d8fe76d249606aab43bd746f5e46f894a136f8717d72146fb7f3a1eb5c75d3938b31a41f0ad387a5160f76965233b18272d4785986fa5c7a9988f1e6854180
|
7
|
+
data.tar.gz: 102409058cf84ee4b01bd94d04c142a24b71d7a2f9d6e19ed47776b959bd4b767a4e9e66d4d7e8ede7f7ff0b7c82a7de3e0662fdd5c45082f3314c96f4f44877
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
== v1.1.
|
1
|
+
== v1.1.2 [2018-08-28] Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
- Don't generate aliases for JOHAB encoding.
|
4
|
+
This avoids linking to deprecated/private function rb_enc(db)_alias().
|
5
|
+
|
6
|
+
|
7
|
+
== v1.1.1 [2018-08-27] Michael Granger <ged@FaerieMUD.org>
|
2
8
|
|
3
9
|
- Reduce deprecation warnings to only one message per deprecation.
|
4
10
|
|
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 2d334508484a 2018/08/27 11:33:43 lars $
|
4
4
|
*
|
5
5
|
* Author/s:
|
6
6
|
*
|
@@ -143,9 +143,6 @@ pg_find_or_create_johab(void)
|
|
143
143
|
}
|
144
144
|
|
145
145
|
enc_index = rb_define_dummy_encoding(aliases[0]);
|
146
|
-
for (i = 1; i < sizeof(aliases)/sizeof(aliases[0]); ++i) {
|
147
|
-
rb_enc_alias(aliases[i], aliases[0]);
|
148
|
-
}
|
149
146
|
return rb_enc_from_index(enc_index);
|
150
147
|
}
|
151
148
|
|
data/ext/pg.h
CHANGED
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
data/spec/helpers.rb
CHANGED
@@ -22,6 +22,7 @@ module PG::TestingHelpers
|
|
22
22
|
|
23
23
|
mod.around( :each ) do |example|
|
24
24
|
begin
|
25
|
+
@conn.set_default_encoding
|
25
26
|
@conn.exec( 'BEGIN' ) unless example.metadata[:without_transaction]
|
26
27
|
desc = example.source_location.join(':')
|
27
28
|
@conn.exec %Q{SET application_name TO '%s'} %
|
data/spec/pg/connection_spec.rb
CHANGED
@@ -1236,6 +1236,22 @@ describe PG::Connection do
|
|
1236
1236
|
expect( @conn.internal_encoding ).to eq( Encoding::ASCII_8BIT )
|
1237
1237
|
end
|
1238
1238
|
|
1239
|
+
it "the connection should use JOHAB dummy encoding when it's set to JOHAB" do
|
1240
|
+
@conn.set_client_encoding "JOHAB"
|
1241
|
+
val = @conn.exec("SELECT chr(x'3391'::int)").values[0][0]
|
1242
|
+
expect( val.encoding.name ).to eq( "JOHAB" )
|
1243
|
+
expect( val.unpack("H*")[0] ).to eq( "dc65" )
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
it "can retrieve server encoding as text" do
|
1247
|
+
enc = @conn.parameter_status "server_encoding"
|
1248
|
+
expect( enc ).to eq( "UTF8" )
|
1249
|
+
end
|
1250
|
+
|
1251
|
+
it "can retrieve server encoding as ruby encoding" do
|
1252
|
+
expect( @conn.external_encoding ).to eq( Encoding::UTF_8 )
|
1253
|
+
end
|
1254
|
+
|
1239
1255
|
it "uses the client encoding for escaped string" do
|
1240
1256
|
original = "Möhre to 'scape".encode( "utf-16be" )
|
1241
1257
|
@conn.set_client_encoding( "euc_jp" )
|
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.2
|
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-29 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
|