pg 0.21.0-x86-mingw32 → 1.0.0-x86-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.
@@ -39,7 +39,7 @@ describe PG::Result do
39
39
  expect( e.to_a ).to eq [{'a'=>'1', 'b'=>'2'}]
40
40
  end
41
41
 
42
- context "result streaming", :postgresql_92 do
42
+ context "result streaming" do
43
43
  it "can iterate over all tuples in single row mode" do
44
44
  @conn.send_query( "SELECT generate_series(2,4) AS a; SELECT 1 AS b, generate_series(5,6) AS c" )
45
45
  @conn.set_single_row_mode
@@ -199,7 +199,7 @@ describe PG::Result do
199
199
  expect( out_bytes ).to eq( in_bytes )
200
200
  end
201
201
 
202
- it "returns the parameter type of the specified prepared statement parameter", :postgresql_92 do
202
+ it "returns the parameter type of the specified prepared statement parameter" do
203
203
  query = 'SELECT * FROM pg_stat_activity WHERE user = $1::name AND query = $2::text'
204
204
  @conn.prepare( 'queryfinder', query )
205
205
  res = @conn.describe_prepared( 'queryfinder' )
@@ -386,7 +386,7 @@ describe PG::Result do
386
386
  end
387
387
 
388
388
  it "the raised result is nil in case of a connection error" do
389
- c = PGconn.connect_start( '127.0.0.1', 54320, "", "", "me", "xxxx", "somedb" )
389
+ c = PG::Connection.connect_start( '127.0.0.1', 54320, "", "", "me", "xxxx", "somedb" )
390
390
  expect {
391
391
  c.exec "select 1"
392
392
  }.to raise_error {|error|
@@ -75,7 +75,7 @@ describe "PG::Type derivations" do
75
75
  expect( intdec_incrementer.decode("3") ).to eq( 4 )
76
76
  end
77
77
 
78
- it "should decode integers of different lengths form text format" do
78
+ it "should decode integers of different lengths from text format" do
79
79
  30.times do |zeros|
80
80
  expect( textdec_int.decode("1" + "0"*zeros) ).to eq( 10 ** zeros )
81
81
  expect( textdec_int.decode(zeros==0 ? "0" : "9"*zeros) ).to eq( 10 ** zeros - 1 )
@@ -7,7 +7,7 @@ require 'pg'
7
7
 
8
8
  describe PG do
9
9
 
10
- it "knows what version of the libpq library is loaded", :postgresql_91 do
10
+ it "knows what version of the libpq library is loaded" do
11
11
  expect( PG.library_version ).to be_an( Integer )
12
12
  expect( PG.library_version ).to be >= 90100
13
13
  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: 0.21.0
4
+ version: 1.0.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Michael Granger
@@ -11,26 +11,32 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIDPDCCAiSgAwIBAgIBAzANBgkqhkiG9w0BAQUFADBEMQ0wCwYDVQQDDARsYXJz
15
- MR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZImiZPyLGQB
16
- GRYCZGUwHhcNMTcwNDA0MTgyNDE1WhcNMTgwNDA0MTgyNDE1WjBEMQ0wCwYDVQQD
17
- DARsYXJzMR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZIm
18
- iZPyLGQBGRYCZGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZb4Uv
19
- RFJfRu/VEWiy3psh2jinETjiuBrL0NeRFGf8H7iU9+gx/DI/FFhfHGLrDeIskrJx
20
- YIWDMmEjVO10UUdj7wu4ZhmU++0Cd7Kq9/TyP/shIP3IjqHjVLCnJ3P6f1cl5rxZ
21
- gqo+d3BAoDrmPk0rtaf6QopwUw9RBiF8V4HqvpiY+ruJotP5UQDP4/lVOKvA8PI9
22
- P0GmVbFBrbc7Zt5h78N3UyOK0u+nvOC23BvyHXzCtcFsXCoEkt+Wwh0RFqVZdnjM
23
- LMO2vULHKKHDdX54K/sbVCj9pN9h1aotNzrEyo55zxn0G9PHg/G3P8nMvAXPkUTe
24
- brhXrfCwWRvOXA4TAgMBAAGjOTA3MAkGA1UdEwQCMAAw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13 00:00:00.000000000 Z
39
+ date: 2018-01-10 00:00:00.000000000 Z
34
40
  dependencies:
35
41
  - !ruby/object:Gem::Dependency
36
42
  name: hoe-mercurial
@@ -95,6 +101,9 @@ dependencies:
95
101
  - - "~>"
96
102
  - !ruby/object:Gem::Version
97
103
  version: '0.6'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 0.6.2
98
107
  type: :development
99
108
  prerelease: false
100
109
  version_requirements: !ruby/object:Gem::Requirement
@@ -102,6 +111,9 @@ dependencies:
102
111
  - - "~>"
103
112
  - !ruby/object:Gem::Version
104
113
  version: '0.6'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 0.6.2
105
117
  - !ruby/object:Gem::Dependency
106
118
  name: hoe-bundler
107
119
  requirement: !ruby/object:Gem::Requirement
@@ -161,7 +173,7 @@ dependencies:
161
173
  description: |-
162
174
  Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
163
175
 
164
- It works with {PostgreSQL 9.1 and later}[http://www.postgresql.org/support/versioning/].
176
+ It works with {PostgreSQL 9.2 and later}[http://www.postgresql.org/support/versioning/].
165
177
 
166
178
  A small example usage:
167
179
 
@@ -262,13 +274,13 @@ files:
262
274
  - lib/2.2/pg_ext.so
263
275
  - lib/2.3/pg_ext.so
264
276
  - lib/2.4/pg_ext.so
277
+ - lib/2.5/pg_ext.so
265
278
  - lib/libpq.dll
266
279
  - lib/pg.rb
267
280
  - lib/pg/basic_type_mapping.rb
268
281
  - lib/pg/coder.rb
269
282
  - lib/pg/connection.rb
270
283
  - lib/pg/constants.rb
271
- - lib/pg/deprecated_constants.rb
272
284
  - lib/pg/exceptions.rb
273
285
  - lib/pg/result.rb
274
286
  - lib/pg/text_decoder.rb
@@ -305,7 +317,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
305
317
  version: '2.0'
306
318
  - - "<"
307
319
  - !ruby/object:Gem::Version
308
- version: '2.5'
320
+ version: '2.6'
309
321
  required_rubygems_version: !ruby/object:Gem::Requirement
310
322
  requirements:
311
323
  - - ">="
@@ -313,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
325
  version: '0'
314
326
  requirements: []
315
327
  rubyforge_project:
316
- rubygems_version: 2.6.12
328
+ rubygems_version: 2.6.14
317
329
  signing_key:
318
330
  specification_version: 4
319
331
  summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
metadata.gz.sig CHANGED
Binary file
@@ -1,21 +0,0 @@
1
- # -*- ruby -*-
2
- #encoding: utf-8
3
-
4
- # Warn about use of deprecated constants when this is autoloaded
5
- callsite = caller(3).first
6
-
7
- warn <<END_OF_WARNING
8
- The PGconn, PGresult, and PGError constants are deprecated, and will be
9
- removed as of version 1.0.
10
-
11
- You should use PG::Connection, PG::Result, and PG::Error instead, respectively.
12
-
13
- Called from #{callsite}
14
- END_OF_WARNING
15
-
16
-
17
-
18
- PGconn = PG::Connection
19
- PGresult = PG::Result
20
- PGError = PG::Error
21
-