pg 0.13.0-x86-mingw32 → 0.13.1-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.
data/BSDL ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (C) 1993-2010 Yukihiro Matsumoto. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions
5
+ are met:
6
+ 1. Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ 2. Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
+ SUCH DAMAGE.
data/ChangeLog CHANGED
@@ -1,8 +1,37 @@
1
+ 2012-02-12 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * .hgtags:
4
+ Added tag v0.13.1 for changeset 9e60b2c477cd
5
+ [f20d1b488312] [tip]
6
+
7
+ * .hgsigs:
8
+ Added signature for changeset 1ba641824000
9
+ [9e60b2c477cd] [v0.13.1]
10
+
11
+ * .hoerc, History.rdoc, Manifest.txt, lib/pg.rb:
12
+ Bumped patch version, updated History, Manifest.
13
+ [1ba641824000]
14
+
15
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
16
+ Raise a rescue-able exception when a connection is used after it's
17
+ been closed. (fixes #110)
18
+ [679b1db2b430]
19
+
20
+ 2012-02-11 Lars Kanis <kanis@comcard.de>
21
+
22
+ * Rakefile:
23
+ allow overriding of RUBY_CC_VERSION
24
+ [a9b8576bb35c]
25
+
26
+ * Rakefile.cross:
27
+ update Postgresql download URL for cross compilation
28
+ [216d08f2bc92]
29
+
1
30
  2012-02-09 Michael Granger <ged@FaerieMUD.org>
2
31
 
3
32
  * misc/postgres/README.txt, misc/postgres/lib/postgres.rb:
4
33
  Fix the Google group email and bump the patch version
5
- [64aa4a38059e] [tip]
34
+ [64aa4a38059e]
6
35
 
7
36
  * .hgignore, misc/postgres/History.txt, misc/postgres/Manifest.txt,
8
37
  misc/postgres/README.txt, misc/postgres/Rakefile,
@@ -1,3 +1,10 @@
1
+ == v0.13.1 [2012-02-12] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Made use of a finished PG::Connection raise a PG::Error instead of
4
+ a fatal error (#110).
5
+ - Added missing BSDL license file (#108)
6
+
7
+
1
8
  == v0.13.0 [2012-02-09] Michael Granger <ged@FaerieMUD.org>
2
9
 
3
10
  Reorganization of modules/classes to be better Ruby citizens (with backward-compatible aliases):
@@ -1,6 +1,5 @@
1
1
  .gemtest
2
- .hoerc
3
- .tm_properties
2
+ BSDL
4
3
  ChangeLog
5
4
  Contributors.rdoc
6
5
  History.rdoc
@@ -26,7 +25,6 @@ lib/pg/connection.rb
26
25
  lib/pg/constants.rb
27
26
  lib/pg/exceptions.rb
28
27
  lib/pg/result.rb
29
- misc/openssl-pg-segfault.rb
30
28
  sample/async_api.rb
31
29
  sample/async_copyto.rb
32
30
  sample/async_mixed.rb
data/Rakefile CHANGED
@@ -96,6 +96,8 @@ task :maint do
96
96
  ENV['MAINTAINER_MODE'] = 'yes'
97
97
  end
98
98
 
99
+ ENV['RUBY_CC_VERSION'] ||= '1.8.7:1.9.2'
100
+
99
101
  # Rake-compiler task
100
102
  Rake::ExtensionTask.new do |ext|
101
103
  ext.name = 'pg_ext'
@@ -46,7 +46,7 @@ pg_get_pgconn( VALUE self )
46
46
  PGconn *conn = pgconn_check( self );
47
47
 
48
48
  if ( !conn )
49
- rb_fatal( "Use of uninitialized PG::Connection." );
49
+ rb_raise( rb_ePGerror, "connection is closed" );
50
50
 
51
51
  return conn;
52
52
  }
Binary file
Binary file
data/lib/pg.rb CHANGED
@@ -19,7 +19,7 @@ end
19
19
  module PG
20
20
 
21
21
  # Library version
22
- VERSION = '0.13.0'
22
+ VERSION = '0.13.1'
23
23
 
24
24
  # VCS revision
25
25
  REVISION = %q$Revision$
@@ -672,6 +672,13 @@ describe PG::Connection do
672
672
  result.should == { 'one' => '47' }
673
673
  end
674
674
 
675
+ it "raises a rescue-able error if #finish is called twice", :without_transaction do
676
+ conn = PG.connect( @conninfo )
677
+
678
+ conn.finish
679
+ expect { conn.finish }.to raise_error( PG::Error, /connection is closed/i )
680
+ end
681
+
675
682
 
676
683
  describe "multinationalization support", :ruby_19 => true do
677
684
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 13
9
- - 0
10
- version: 0.13.0
9
+ - 1
10
+ version: 0.13.1
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - Michael Granger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-11 00:00:00 Z
18
+ date: 2012-02-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: hoe-mercurial
@@ -134,8 +134,7 @@ extra_rdoc_files:
134
134
  - ext/pg_result.c
135
135
  files:
136
136
  - .gemtest
137
- - .hoerc
138
- - .tm_properties
137
+ - BSDL
139
138
  - ChangeLog
140
139
  - Contributors.rdoc
141
140
  - History.rdoc
@@ -161,7 +160,6 @@ files:
161
160
  - lib/pg/constants.rb
162
161
  - lib/pg/exceptions.rb
163
162
  - lib/pg/result.rb
164
- - misc/openssl-pg-segfault.rb
165
163
  - sample/async_api.rb
166
164
  - sample/async_copyto.rb
167
165
  - sample/async_mixed.rb
data/.hoerc DELETED
@@ -1,2 +0,0 @@
1
- ---
2
- exclude: !ruby/regexp /\.(hg|DS_Store|rvm.*|irbrc|pryrc)|(coverage|manual|tmp\w*)\/|\.(bundle|so)$/
@@ -1,12 +0,0 @@
1
- # Settings
2
- projectDirectory = "$CWD"
3
- windowTitle = "${CWD/^.*\///} «$TM_DISPLAYNAME»"
4
- excludeInFileChooser = "{$exclude,.hg}"
5
-
6
- TM_MAKE = 'rake'
7
- TM_MAKE_FILE = '${projectDirectory}/Rakefile'
8
-
9
- [ source ]
10
- softTabs = false
11
- tabSize = 4
12
-
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- PGHOST = 'localhost'
4
- PGDB = 'test'
5
- #SOCKHOST = 'github.com'
6
- SOCKHOST = 'it-trac.laika.com'
7
-
8
- # Load pg first, so the libssl.so that libpq is linked against is loaded.
9
- require 'pg'
10
- $stderr.puts "connecting to postgres://#{PGHOST}/#{PGDB}"
11
- conn = PG.connect( PGHOST, :dbname => PGDB )
12
-
13
- # Now load OpenSSL, which might be linked against a different libssl.
14
- require 'socket'
15
- require 'openssl'
16
- $stderr.puts "Connecting to #{SOCKHOST}"
17
- sock = TCPSocket.open( SOCKHOST, 443 )
18
- ctx = OpenSSL::SSL::SSLContext.new
19
- sock = OpenSSL::SSL::SSLSocket.new( sock, ctx )
20
- sock.sync_close = true
21
-
22
- # The moment of truth...
23
- $stderr.puts "Attempting to connect..."
24
- begin
25
- sock.connect
26
- rescue Errno
27
- $stderr.puts "Got an error connecting, but no segfault."
28
- else
29
- $stderr.puts "Nope, no segfault!"
30
- end
31
-