do_postgres 0.10.15-x86-mingw32 → 0.10.16-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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a307e99a311cc40f8edecbffc89e03b5a07c154
4
- data.tar.gz: d1cb5d7fee5289f19ad87d8aa423b98dc51c0387
3
+ metadata.gz: 1d6e7efe4ef4d2fb2a7a2d9dabc5208325e66ed1
4
+ data.tar.gz: b8ebcc6d538de8da77f98ea49fe0d0e0ee459ff5
5
5
  SHA512:
6
- metadata.gz: f5a426c9ebaafa6dbf57456d8c188c8ce947d85d5fde38da04720e78c87165805c97b84db9216a6dcd9e8d90407d9ad240289cb6f7e4ff765769e7c7fe379651
7
- data.tar.gz: 2ae60d301d1eee31530914023685819b490132f508c03c0f9fdb6decdd39a313e3d668b4be916845b78ff5a00d7caed1407c46a8fb4af4fc6e691d6fbf8e2e9f
6
+ metadata.gz: f497e782041b80e81155dab4c22b7ba9143bff8ae0cf647d7027169343b098a1ac6d8e6e9e58db7f64e02e1d88c8ce3352ed86f23f8ecce51987ba09e37d1685
7
+ data.tar.gz: d9ce922cd4134afbfc0e459e542648ffcd33cf3ec93050cf2030de842c156cb6e1e06ee64ace91842e49b26995c3f8a7177fb0e769021966ba857a9680efbc79
data/ChangeLog.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.10.16 2015-05-17
2
+
3
+ * Fix compile issue with do\_postgres on stock OS X Ruby
4
+
1
5
  ## 0.10.15 2015-02-15
2
6
 
3
7
  * Ruby 2.2 support
@@ -14,11 +14,21 @@ def pg_config(type)
14
14
  IO.popen("pg_config --#{type}").readline.chomp rescue nil
15
15
  end
16
16
 
17
+ # The preheader argument wasn't introduced till Ruby 1.9.3.
18
+ def have_header_with_preheader(header, preheader)
19
+ if method(:have_header).arity == -2
20
+ have_header(header, preheader)
21
+ else
22
+ have_header(header)
23
+ end
24
+ end
25
+
17
26
  def have_build_env
18
27
  (have_library('pq') || have_library('libpq')) &&
19
28
  have_header('libpq-fe.h') && have_header('libpq/libpq-fs.h') &&
20
- have_header('postgres.h') && have_header('mb/pg_wchar.h') &&
21
- have_header('catalog/pg_type.h')
29
+ have_header('postgres.h') &&
30
+ have_header_with_preheader('mb/pg_wchar.h', 'postgres.h') &&
31
+ have_header_with_preheader('catalog/pg_type.h', 'postgres.h')
22
32
  end
23
33
 
24
34
  $CFLAGS << ' -UENABLE_NLS -DHAVE_GETTIMEOFDAY -DHAVE_CRYPT' if RUBY_PLATFORM =~ /mswin|mingw/
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module DataObjects
2
2
  module Postgres
3
- VERSION = '0.10.15'
3
+ VERSION = '0.10.16'
4
4
  end
5
5
  end
data/tasks/compile.rake CHANGED
@@ -70,7 +70,7 @@ begin
70
70
  ext.classpath = '../do_jdbc/lib/do_jdbc_internal.jar'
71
71
  ext.java_compiling do |gem|
72
72
  gem.add_dependency 'jdbc-postgres', '>=8.2'
73
- gem.add_dependency 'do_jdbc', '0.10.15'
73
+ gem.add_dependency 'do_jdbc', '0.10.16'
74
74
  end
75
75
  end
76
76
  rescue LoadError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: do_postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.15
4
+ version: 0.10.16
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Dirkjan Bussink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-15 00:00:00.000000000 Z
11
+ date: 2015-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: data_objects
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.10.15
19
+ version: 0.10.16
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.10.15
26
+ version: 0.10.16
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement