pg 0.21.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -11,9 +11,9 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
14
+ MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
15
15
  GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
16
- HhcNMTYwODIwMTgxNzQyWhcNMTcwODIwMTgxNzQyWjA+MQwwCgYDVQQDDANnZWQx
16
+ HhcNMTcwOTI3MDAzMDQ0WhcNMTgwOTI3MDAzMDQ0WjA+MQwwCgYDVQQDDANnZWQx
17
17
  GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
18
18
  ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
19
19
  83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
@@ -26,17 +26,17 @@ cert_chain:
26
26
  /D+K9JW9DDs3Yjgv9k4h7YMhW5gftosd+NkNC/+Y2CkCAwEAAaN1MHMwCQYDVR0T
27
27
  BAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFHKN/nkRusdqCJEuq3lgB3fJvyTg
28
28
  MBwGA1UdEQQVMBOBEWdlZEBGYWVyaWVNVUQub3JnMBwGA1UdEgQVMBOBEWdlZEBG
29
- YWVyaWVNVUQub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X0qdrKi+2aZZ0NGuFj9AItBsVmAvkBGIpX4TEKQp5haEbPpmaqO5nIIhV26PXmyT
37
+ OMKv6pWsoS81vw5KAGBmfX8nht/Py90DQrbRvakATGI=
38
38
  -----END CERTIFICATE-----
39
- date: 2017-06-12 00:00:00.000000000 Z
39
+ date: 2018-01-10 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hoe-mercurial
@@ -101,6 +101,9 @@ dependencies:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.6'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 0.6.2
104
107
  type: :development
105
108
  prerelease: false
106
109
  version_requirements: !ruby/object:Gem::Requirement
@@ -108,6 +111,9 @@ dependencies:
108
111
  - - "~>"
109
112
  - !ruby/object:Gem::Version
110
113
  version: '0.6'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 0.6.2
111
117
  - !ruby/object:Gem::Dependency
112
118
  name: hoe-bundler
113
119
  requirement: !ruby/object:Gem::Requirement
@@ -167,7 +173,7 @@ dependencies:
167
173
  description: |-
168
174
  Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
169
175
 
170
- 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/].
171
177
 
172
178
  A small example usage:
173
179
 
@@ -269,7 +275,6 @@ files:
269
275
  - lib/pg/coder.rb
270
276
  - lib/pg/connection.rb
271
277
  - lib/pg/constants.rb
272
- - lib/pg/deprecated_constants.rb
273
278
  - lib/pg/exceptions.rb
274
279
  - lib/pg/result.rb
275
280
  - lib/pg/text_decoder.rb
@@ -311,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
316
  version: '0'
312
317
  requirements: []
313
318
  rubyforge_project:
314
- rubygems_version: 2.6.12
319
+ rubygems_version: 2.7.3
315
320
  signing_key:
316
321
  specification_version: 4
317
322
  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
-