pg 0.19.1.pre20170115074000-x86-mingw32 → 0.19.1.pre20170124220800-x86-mingw32

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: d835246dce71c866924323e0c1ac7b0a0dfd7ad6
4
- data.tar.gz: 340749760129fe1559e7aab1bba560a40977f75b
3
+ metadata.gz: b0c33a66fd9c0f611dc3c76c8770d7a32e71e023
4
+ data.tar.gz: 02ca7744cd5a6212332d819212435827b1691c2b
5
5
  SHA512:
6
- metadata.gz: 90ad92b1e21b0b7c2a9cca657cb5f16c880a00cfa816407519a575edef341076b6f510af80040e654223545b50f80197c95add8a0cf9df0f31163c7b0e97c434
7
- data.tar.gz: 6f1ef9e2569558ad6614c541dba8d9650e1de7b1c0b2b7bcef3c759b95c5327369f3cd65e482f5ea1e530eca355a4c9784d6665487ad116c7bf4164794751353
6
+ metadata.gz: 8947ec1af326b331488dd51c7c1ee464c78c108100c7a971a4e27f62ec0ed8ff4710a3c692b28e9fa73b28f725026edd5eeb03a1d3f98fd71cf673f4b632f89c
7
+ data.tar.gz: dd012393c6e8ff359220f7af31ed591509d9a52040029cf66efdb0ffaf7fde127eb0051985af544626ada56daa31a3a639c6b93c9162e6002661c855864c26ad
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,3 @@
1
- 7Mk�ۀ��[<Ur/��DlJ*��4sK죍^1J3�>��S p����b���}�>���|�+�|j/T�����*�3n~�*Qk8�"��5�~�t�̘6���Azxf������G!/����!A��o~F6;��*<.� ot`i�^۰��R�Ca��o����)�SC̢���j�M��=5��L��|����=6�ڬl�l@��5�E3���V������Vj*m� ���1�Q�%�3�z(�D��
1
+ eGV�����������~���V�+�Xi�/��YTfiz���|��Ⱥc��@{搆�!F9%�"� $zH��_$E��3#��ܬ�&V2guqw(� &n>hۤדdC��rp��~,���Zbߴ�<Z��x�<��+��Ӄ��/�2qc�L��\q%�i���N���#�
2
+ L����v3���~�.�6�� �/7H$k�J�����Ӿ#b
3
+ 4��K����;���a���PswF��סbw
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: x86-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