pg 0.19.1.pre20170115074000-x64-mingw32 → 0.19.1.pre20170124220800-x64-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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76ebb4bd3a84cb4254a91b0211244f552a8a60f2
4
- data.tar.gz: 6d1b5912fdbb3ef84c4a80a3a9edb5d712fa5252
3
+ metadata.gz: 00ad3e00f6108c7b52a87149179cf9d3ae0075d7
4
+ data.tar.gz: c988fc73776423138645d922e585018aa4933b97
5
5
  SHA512:
6
- metadata.gz: 6d4a516f0e2f9a7cfb67e9dabebdf4fe324014f268ea6245ab56d29c0a2b52f998ae7d7fc415c16a9ef30421dd3b26e7b0aa08790f614fed7445849d99e8d8f5
7
- data.tar.gz: 4a37cc1386fd511503c7903e88f2e36798a9ac68321bf482f1c66048d2dad2c00f18f0e1de6525734b9aa2144b595931a97650e5efd70f62c5e40292911cbe01
6
+ metadata.gz: 7c0520a2524a1db813736f08b299b2f38b2fffff9c0e5345f3b4578680bfbef9a8b8b1eeef3705f9712736e6777edf761a603e4c600b5fb64d046034e8ad4c53
7
+ data.tar.gz: 6564fa853a77d8f51df65c7a8d19a231d3cdc9f0c679517de202502dac2b896840060708d25c928a6af5c33c528a8a02ff8c7439883e74967e30a07298ee0159
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,8 +1,20 @@
1
+ 2017-01-24 Lars Kanis <lars@greiz-reinsdorf.de>
2
+
3
+ * History.rdoc:
4
+ Update History file regarding RI2 support.
5
+ [d52339653fe3] [tip]
6
+
7
+ * lib/pg.rb:
8
+ Add support for RubyInstaller2 to Windows binary gem.
9
+
10
+ RI2 ignores PATH setting for DLL search, but provides it's own API.
11
+ [87fe14131d78]
12
+
1
13
  2017-01-14 Lars Kanis <lars@greiz-reinsdorf.de>
2
14
 
3
15
  * History.rdoc:
4
16
  Update History file. [ci-skip]
5
- [0d1921b825d7] [tip]
17
+ [0d1921b825d7]
6
18
 
7
19
  * Rakefile.cross:
8
20
  Update Windows binary rubies to support 2.0 to 2.4
@@ -4,6 +4,7 @@ Enhancements:
4
4
  - Update error codes to PostgreSQL-9.6
5
5
  - Update Windows binary gems to Ruby-2.4, PostgreSQL 9.6.1 and
6
6
  OpenSSL 1.0.2j.
7
+ - Add support for RubyInstaller2 to Windows binary gems.
7
8
 
8
9
  Bugfixes:
9
10
  - Use secure JSON methods for JSON (de)serialisation. #248
Binary file
data/lib/pg.rb CHANGED
@@ -8,11 +8,22 @@ rescue LoadError
8
8
  major_minor = RUBY_VERSION[ /^(\d+\.\d+)/ ] or
9
9
  raise "Oops, can't extract the major/minor version from #{RUBY_VERSION.dump}"
10
10
 
11
- # Set the PATH environment variable, so that libpq.dll can be found.
12
- old_path = ENV['PATH']
13
- ENV['PATH'] = "#{File.expand_path("..", __FILE__)};#{old_path}"
14
- require "#{major_minor}/pg_ext"
15
- ENV['PATH'] = old_path
11
+ add_dll_path = proc do |path, &block|
12
+ begin
13
+ require 'ruby_installer'
14
+ RubyInstaller.add_dll_directory(path, &block)
15
+ rescue LoadError
16
+ old_path = ENV['PATH']
17
+ ENV['PATH'] = "#{path};#{old_path}"
18
+ yield
19
+ ENV['PATH'] = old_path
20
+ end
21
+ end
22
+
23
+ # Temporary add this directory for DLL search, so that libpq.dll can be found.
24
+ add_dll_path.call(__dir__) do
25
+ require "#{major_minor}/pg_ext"
26
+ end
16
27
  else
17
28
  raise
18
29
  end
@@ -24,7 +35,7 @@ end
24
35
  module PG
25
36
 
26
37
  # Library version
27
- VERSION = '0.19.1.pre20170115074000'
38
+ VERSION = '0.19.1.pre20170124220800'
28
39
 
29
40
  # VCS revision
30
41
  REVISION = %q$Revision$
@@ -61,4 +72,3 @@ end # module PG
61
72
 
62
73
  # Backward-compatible aliase
63
74
  PGError = PG::Error
64
-
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.19.1.pre20170115074000
4
+ version: 0.19.1.pre20170124220800
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Michael Granger
@@ -30,7 +30,7 @@ cert_chain:
30
30
  PizTJCem24R2bzZN5VGvA5tpqgwytgcFq1PZofgFxK2uKPCS+tmsA8wIjjGzFsnR
31
31
  WfgqWGyHn5K4wejsMic/uA==
32
32
  -----END CERTIFICATE-----
33
- date: 2017-01-15 00:00:00.000000000 Z
33
+ date: 2017-01-25 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: hoe-mercurial
metadata.gz.sig CHANGED
Binary file