pg 0.14.0.pre.351 → 0.14.0.pre.353

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.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,10 +1,63 @@
1
+ 2012-06-17 Lars Kanis <kanis@comcard.de>
2
+
3
+ * Rakefile.cross, ext/extconf.rb,
4
+ misc/postgresql-9.1.4.mingw-w64-support.patch:
5
+ Update windows cross compilation tasks to the latest
6
+ Openssl+Postgresql versions and the latest mingw-w64 compiler
7
+ [a45710f8db30] [tip]
8
+
9
+ * Rakefile:
10
+ Use RbConfig instead of obsolete and deprecated Config.
11
+ [d67cbb4310ac]
12
+
13
+ 2012-06-17 Michael Granger <ged@FaerieMUD.org>
14
+
15
+ * History.rdoc, ext/pg_connection.c, lib/pg.rb:
16
+ Bumped minor version, updated history.
17
+ [a3a3177b921c]
18
+
19
+ * .hoerc, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
20
+ spec/pg/result_spec.rb:
21
+ New method: PG::Result#check. (fixes #123)
22
+
23
+ This method exposes a previously internal-only function for checking
24
+ the status of a PG::Result, primarily for people using the async
25
+ interface. The check is done for you if you're using the synchronous
26
+ interface, but there was no way to get the same behavior for results
27
+ fetched via PG::Connection#get_result.
28
+
29
+ This change also adds the PG::Connection associated with a result as
30
+ an instance variable (@connection) on the PG::Result object.
31
+
32
+ Thanks to @royaltm for the idea.
33
+ [237cc4f69f63]
34
+
35
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
36
+ New method: PG::Connection#set_default_encoding (fixes #124)
37
+
38
+ This pulls up the code that sets the client_encoding in synchronous
39
+ connections into a public method that can be called by people using
40
+ the asynchronous API to achieve the same thing once the connection
41
+ is established.
42
+
43
+ Thanks to @royaltm for the suggestion.
44
+ [6680b395e6f4]
45
+
46
+ * Manifest.txt, sample/check_conn.rb:
47
+ Adding a minimal "connection-test function" example
48
+ [15bfcbe2bd5e]
49
+
50
+ * .rvm.gems:
51
+ Bump the hoe-deveiate version in the rvm gemset
52
+ [bc2ef3d461cd]
53
+
1
54
  2012-06-12 Mahlon E. Smith <mahlon@laika.com>
2
55
 
3
56
  * sample/warehouse_partitions.rb:
4
57
  Move indexes across tablespaces along with their parents. Remove
5
58
  the 'parent table' option, as we can derive that automatically from
6
59
  the pg_inherits table.
7
- [be46f44349bf] [tip]
60
+ [be46f44349bf]
8
61
 
9
62
  2012-05-07 Michael Granger <ged@FaerieMUD.org>
10
63
 
data/Rakefile CHANGED
@@ -26,7 +26,7 @@ EXTDIR = BASEDIR + 'ext'
26
26
  PKGDIR = BASEDIR + 'pkg'
27
27
  TMPDIR = BASEDIR + 'tmp'
28
28
 
29
- DLEXT = Config::CONFIG['DLEXT']
29
+ DLEXT = RbConfig::CONFIG['DLEXT']
30
30
  EXT = LIBDIR + "pg_ext.#{DLEXT}"
31
31
 
32
32
  TEST_DIRECTORY = BASEDIR + "tmp_test_specs"
@@ -18,8 +18,8 @@ else
18
18
  end
19
19
 
20
20
  # Cross-compilation constants
21
- OPENSSL_VERSION = ENV['OPENSSL_VERSION'] || '1.0.0e'
22
- POSTGRESQL_VERSION = ENV['POSTGRESQL_VERSION'] || '9.1.1'
21
+ OPENSSL_VERSION = ENV['OPENSSL_VERSION'] || '1.0.1c'
22
+ POSTGRESQL_VERSION = ENV['POSTGRESQL_VERSION'] || '9.1.4'
23
23
 
24
24
  COMPILE_HOME = Pathname( "./build" ).expand_path
25
25
  STATIC_SOURCESDIR = COMPILE_HOME + 'sources'
@@ -36,7 +36,7 @@ OPENSSL_MAKEFILE = STATIC_OPENSSL_BUILDDIR + 'Makefile'
36
36
  LIBSSLEAY32 = STATIC_OPENSSL_BUILDDIR + 'libssleay32.a'
37
37
  LIBEAY32 = STATIC_OPENSSL_BUILDDIR + 'libeay32.a'
38
38
 
39
- OPENSSL_PATCHES = Rake::FileList[ MISCDIR + "openssl-#{OPENSSL_VERSION}.*.patch" ]
39
+ OPENSSL_PATCHES = Rake::FileList[ (MISCDIR + "openssl-#{OPENSSL_VERSION}.*.patch").to_s ]
40
40
 
41
41
  # Static PostgreSQL build vars
42
42
  STATIC_POSTGRESQL_BUILDDIR = STATIC_BUILDDIR + "postgresql-#{POSTGRESQL_VERSION}"
@@ -55,6 +55,7 @@ POSTGRESQL_GLOBAL_MAKEFILE = STATIC_POSTGRESQL_SRCDIR + 'Makefile.global'
55
55
  POSTGRESQL_SHLIB_MAKEFILE = STATIC_POSTGRESQL_SRCDIR + 'Makefile.shlib'
56
56
  POSTGRESQL_SHLIB_MF_ORIG = STATIC_POSTGRESQL_SRCDIR + 'Makefile.shlib.orig'
57
57
  POSTGRESQL_LIB = STATIC_POSTGRESQL_LIBDIR + 'libpq.a'
58
+ POSTGRESQL_PATCHES = Rake::FileList[ (MISCDIR + "postgresql-#{POSTGRESQL_VERSION}.*.patch").to_s ]
58
59
 
59
60
  CROSS_PREFIX = begin
60
61
  Rake::ExtensionCompiler.mingw_host
@@ -171,6 +172,12 @@ file STATIC_POSTGRESQL_BUILDDIR => POSTGRESQL_TARBALL do |t|
171
172
  STATIC_POSTGRESQL_BUILDDIR.mkpath
172
173
  run 'tar', '-xjf', POSTGRESQL_TARBALL.to_s, '-C', STATIC_POSTGRESQL_BUILDDIR.parent.to_s
173
174
  mv POSTGRESQL_SHLIB_MAKEFILE, POSTGRESQL_SHLIB_MF_ORIG
175
+
176
+ POSTGRESQL_PATCHES.each do |patchfile|
177
+ puts " applying patch #{patchfile}..."
178
+ run 'patch', '-Np1', '-d', STATIC_POSTGRESQL_BUILDDIR.to_s,
179
+ '-i', File.expand_path( patchfile, BASEDIR )
180
+ end
174
181
  end
175
182
 
176
183
  # generate the makefile in a clean build location
@@ -200,7 +207,7 @@ end
200
207
  # patch the Makefile.shlib -- depend on the build dir so it's only
201
208
  # rewritten if the tarball is re-extracted.
202
209
  file POSTGRESQL_SHLIB_MAKEFILE => POSTGRESQL_SHLIB_MF_ORIG do |t|
203
- tf = Tempfile.new( POSTGRESQL_SHLIB_MAKEFILE.basename )
210
+ tf = Tempfile.new( POSTGRESQL_SHLIB_MAKEFILE.basename.to_s )
204
211
  POSTGRESQL_SHLIB_MF_ORIG.open( File::RDONLY ) do |ifh|
205
212
  ifh.each_line do |line|
206
213
  tf.print( line.sub(/^(\s*haslibarule\s*=\s*yes)/, "# \\1 ") )
@@ -19,6 +19,7 @@ if ENV['CROSS_COMPILING']
19
19
  $LDFLAGS << " -L#{CONFIG['libdir']}"
20
20
 
21
21
  # Link against all required libraries for static build, if they are available
22
+ have_library( 'crypt32', 'CertOpenStore' ) && append_library( $libs, 'crypt32' )
22
23
  have_library( 'gdi32', 'CreateDC' ) && append_library( $libs, 'gdi32' )
23
24
  have_library( 'secur32' ) && append_library( $libs, 'secur32' )
24
25
  have_library( 'ws2_32', 'WSASocket') && append_library( $libs, 'ws2_32' )
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.14.0.pre.351
4
+ version: 0.14.0.pre.353
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- �Ct�{��\}dɱjEyT�z�:��O��
1
+ F�O�#{t{�Y�� �+��x L���S󙫵��=�