pg 0.19.1.pre20170115074000 → 0.19.1.pre20170124220800

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b994ea1b438637312d2a06c4d3f2ddec61962c0
4
- data.tar.gz: 9df1f107a35a6fc287dc1745ed737402f6029483
3
+ metadata.gz: c0493fece40de96cf95c5f5e4ef967ca5bd205c3
4
+ data.tar.gz: ee71730505611b6df1efe869ca17e5d2be535ae0
5
5
  SHA512:
6
- metadata.gz: 1a4c8ef59573eb59f0b2e6674aa09dcdfe04a25db70e4ca712a2041312e380a8a04dac3036edc0e4913a359553e7a932bd6129187bac29af47dcf9e16032bb87
7
- data.tar.gz: 85b80f993e4cf027ba3b7b90b6931901936f90e0e44afe06712252a005f9ddd1691ffb2101a3ff967883e5cccb64a11c2c0f067904a6b6dc72f81f331f1d5cf4
6
+ metadata.gz: e2255d0cd72c2331f4ac66593d56e4cde4e6d2f65eadd5711399e1a6b8c8c40b8d1957e4208c679e8d294c3b509fc9f22c7010e25cbef32373ec4cbe723ea50b
7
+ data.tar.gz: dca39f627c0cd9fe8f31da0120a1982acb943407e0f9d04b6aafc3b9e57512e7016afd8ec3c6480eef074ffc33f0401dd8eff42687c4dcb274b398dfd019cdc3
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
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: ruby
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