do_postgres 0.10.0-x86-mswin32-60 → 0.10.1-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.markdown +22 -0
- data/LICENSE +1 -1
- data/README.markdown +106 -3
- data/Rakefile +56 -9
- data/ext/do_postgres/compat.h +55 -0
- data/ext/{do_postgres_ext/do_postgres_ext.c → do_postgres/do_postgres.c} +42 -49
- data/ext/{do_postgres_ext → do_postgres}/error.h +0 -0
- data/ext/{do_postgres_ext → do_postgres}/extconf.rb +4 -3
- data/ext/{do_postgres_ext → do_postgres}/pg_config.h +0 -0
- data/lib/do_postgres/1.8/do_postgres.so +0 -0
- data/lib/do_postgres/1.9/do_postgres.so +0 -0
- data/lib/do_postgres/version.rb +1 -1
- data/lib/do_postgres.rb +12 -16
- data/spec/command_spec.rb +2 -2
- data/spec/connection_spec.rb +22 -7
- data/spec/encoding_spec.rb +2 -1
- data/spec/reader_spec.rb +1 -1
- data/spec/result_spec.rb +12 -13
- data/spec/spec_helper.rb +27 -36
- data/spec/typecast/array_spec.rb +1 -1
- data/spec/typecast/bigdecimal_spec.rb +2 -2
- data/spec/typecast/boolean_spec.rb +2 -2
- data/spec/typecast/byte_array_spec.rb +1 -1
- data/spec/typecast/class_spec.rb +1 -1
- data/spec/typecast/date_spec.rb +2 -2
- data/spec/typecast/datetime_spec.rb +2 -2
- data/spec/typecast/float_spec.rb +2 -2
- data/spec/typecast/integer_spec.rb +1 -1
- data/spec/typecast/nil_spec.rb +3 -3
- data/spec/typecast/other_spec.rb +8 -0
- data/spec/typecast/range_spec.rb +1 -1
- data/spec/typecast/string_spec.rb +1 -1
- data/spec/typecast/time_spec.rb +1 -1
- data/tasks/compile.rake +81 -0
- data/tasks/release.rake +12 -71
- data/tasks/retrieve.rake +5 -9
- data/tasks/spec.rake +19 -15
- metadata +76 -39
- data/HISTORY.markdown +0 -12
- data/Manifest.txt +0 -34
- data/lib/do_postgres_ext.so +0 -0
- data/spec/lib/rspec_immediate_feedback_formatter.rb +0 -3
- data/tasks/gem.rake +0 -8
- data/tasks/install.rake +0 -15
- data/tasks/native.rake +0 -35
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: do_postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- Dirkjan Bussink
|
@@ -9,48 +9,38 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-09 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: data_objects
|
17
17
|
type: :runtime
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 0.10.1
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
type: :
|
26
|
+
name: bacon
|
27
|
+
type: :development
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: "1.1"
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
-
type: :runtime
|
38
|
-
version_requirement:
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - "="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.10.0
|
44
|
-
version:
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: rspec
|
36
|
+
name: rake-compiler
|
47
37
|
type: :development
|
48
38
|
version_requirement:
|
49
39
|
version_requirements: !ruby/object:Gem::Requirement
|
50
40
|
requirements:
|
51
41
|
- - ~>
|
52
42
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
43
|
+
version: "0.7"
|
54
44
|
version:
|
55
45
|
description: Implements the DataObjects API for PostgreSQL
|
56
46
|
email: d.bussink@gmail.com
|
@@ -58,8 +48,10 @@ executables: []
|
|
58
48
|
|
59
49
|
extensions: []
|
60
50
|
|
61
|
-
extra_rdoc_files:
|
62
|
-
|
51
|
+
extra_rdoc_files:
|
52
|
+
- README.markdown
|
53
|
+
- ChangeLog.markdown
|
54
|
+
- LICENSE
|
63
55
|
files:
|
64
56
|
- lib/do_postgres/encoding.rb
|
65
57
|
- lib/do_postgres/transaction.rb
|
@@ -68,7 +60,6 @@ files:
|
|
68
60
|
- spec/command_spec.rb
|
69
61
|
- spec/connection_spec.rb
|
70
62
|
- spec/encoding_spec.rb
|
71
|
-
- spec/lib/rspec_immediate_feedback_formatter.rb
|
72
63
|
- spec/reader_spec.rb
|
73
64
|
- spec/result_spec.rb
|
74
65
|
- spec/spec_helper.rb
|
@@ -82,32 +73,59 @@ files:
|
|
82
73
|
- spec/typecast/float_spec.rb
|
83
74
|
- spec/typecast/integer_spec.rb
|
84
75
|
- spec/typecast/nil_spec.rb
|
76
|
+
- spec/typecast/other_spec.rb
|
85
77
|
- spec/typecast/range_spec.rb
|
86
78
|
- spec/typecast/string_spec.rb
|
87
79
|
- spec/typecast/time_spec.rb
|
88
|
-
- tasks/
|
89
|
-
- tasks/install.rake
|
90
|
-
- tasks/native.rake
|
80
|
+
- tasks/compile.rake
|
91
81
|
- tasks/release.rake
|
92
82
|
- tasks/retrieve.rake
|
93
83
|
- tasks/spec.rake
|
94
|
-
- ext/
|
95
|
-
- ext/
|
96
|
-
- ext/
|
97
|
-
- ext/
|
84
|
+
- ext/do_postgres/extconf.rb
|
85
|
+
- ext/do_postgres/do_postgres.c
|
86
|
+
- ext/do_postgres/compat.h
|
87
|
+
- ext/do_postgres/error.h
|
88
|
+
- ext/do_postgres/pg_config.h
|
98
89
|
- LICENSE
|
99
90
|
- Rakefile
|
100
|
-
-
|
91
|
+
- ChangeLog.markdown
|
101
92
|
- README.markdown
|
102
|
-
-
|
103
|
-
- lib/
|
93
|
+
- lib/do_postgres/1.8/do_postgres.so
|
94
|
+
- lib/do_postgres/1.9/do_postgres.so
|
104
95
|
has_rdoc: false
|
105
|
-
homepage:
|
96
|
+
homepage:
|
106
97
|
licenses: []
|
107
98
|
|
108
|
-
post_install_message:
|
109
|
-
|
110
|
-
|
99
|
+
post_install_message: |+
|
100
|
+
|
101
|
+
======================================================================================================
|
102
|
+
|
103
|
+
You've installed the binary version of do_postgres.
|
104
|
+
It was built using PostgreSQL version 8.3.9.
|
105
|
+
It's recommended to use the exact same version to avoid potential issues.
|
106
|
+
|
107
|
+
At the time of building this gem, the necessary DLL files where available
|
108
|
+
in the following download:
|
109
|
+
|
110
|
+
http://wwwmaster.postgresql.org/redir/107/h/binary/v8.3.9/win32/postgresql-8.3.9-1-binaries-no-installer.zip
|
111
|
+
|
112
|
+
You can put the following files available in this package in your Ruby bin
|
113
|
+
directory, for example C:\Ruby\bin
|
114
|
+
|
115
|
+
- lib\libpq.dll
|
116
|
+
- bin\ssleay32.dll
|
117
|
+
- bin\libeay32.dll
|
118
|
+
- bin\libintl-8.dll
|
119
|
+
- bin\libiconv-2.dll
|
120
|
+
- bin\krb5_32.dll
|
121
|
+
- bin\comerr32.dll
|
122
|
+
- bin\k5sprt32.dll
|
123
|
+
- bin\gssapi32.dll
|
124
|
+
|
125
|
+
======================================================================================================
|
126
|
+
|
127
|
+
rdoc_options:
|
128
|
+
- --charset=UTF-8
|
111
129
|
require_paths:
|
112
130
|
- lib
|
113
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -129,5 +147,24 @@ rubygems_version: 1.3.5
|
|
129
147
|
signing_key:
|
130
148
|
specification_version: 3
|
131
149
|
summary: DataObjects PostgreSQL Driver
|
132
|
-
test_files:
|
133
|
-
|
150
|
+
test_files:
|
151
|
+
- spec/command_spec.rb
|
152
|
+
- spec/connection_spec.rb
|
153
|
+
- spec/encoding_spec.rb
|
154
|
+
- spec/reader_spec.rb
|
155
|
+
- spec/result_spec.rb
|
156
|
+
- spec/spec_helper.rb
|
157
|
+
- spec/typecast/array_spec.rb
|
158
|
+
- spec/typecast/bigdecimal_spec.rb
|
159
|
+
- spec/typecast/boolean_spec.rb
|
160
|
+
- spec/typecast/byte_array_spec.rb
|
161
|
+
- spec/typecast/class_spec.rb
|
162
|
+
- spec/typecast/date_spec.rb
|
163
|
+
- spec/typecast/datetime_spec.rb
|
164
|
+
- spec/typecast/float_spec.rb
|
165
|
+
- spec/typecast/integer_spec.rb
|
166
|
+
- spec/typecast/nil_spec.rb
|
167
|
+
- spec/typecast/other_spec.rb
|
168
|
+
- spec/typecast/range_spec.rb
|
169
|
+
- spec/typecast/string_spec.rb
|
170
|
+
- spec/typecast/time_spec.rb
|
data/HISTORY.markdown
DELETED
data/Manifest.txt
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
.gitignore
|
2
|
-
HISTORY.markdown
|
3
|
-
LICENSE
|
4
|
-
Manifest.txt
|
5
|
-
README.markdown
|
6
|
-
Rakefile
|
7
|
-
autobuild.rb
|
8
|
-
buildfile
|
9
|
-
ext-java/src/main/java/DoPostgresExtService.java
|
10
|
-
ext-java/src/main/java/do_postgres/PostgresDriverDefinition.java
|
11
|
-
ext/do_postgres_ext/do_postgres_ext.c
|
12
|
-
ext/do_postgres_ext/extconf.rb
|
13
|
-
lib/do_postgres.rb
|
14
|
-
lib/do_postgres/transaction.rb
|
15
|
-
lib/do_postgres/version.rb
|
16
|
-
script/timezone_spec_runner.rb
|
17
|
-
script/timezones.txt
|
18
|
-
spec/command_spec.rb
|
19
|
-
spec/connection_spec.rb
|
20
|
-
spec/reader_spec.rb
|
21
|
-
spec/result_spec.rb
|
22
|
-
spec/spec.opts
|
23
|
-
spec/spec_helper.rb
|
24
|
-
spec/typecast/bigdecimal_spec.rb
|
25
|
-
spec/typecast/boolean_spec.rb
|
26
|
-
spec/typecast/byte_array_spec.rb
|
27
|
-
spec/typecast/class_spec.rb
|
28
|
-
spec/typecast/date_spec.rb
|
29
|
-
spec/typecast/datetime_spec.rb
|
30
|
-
spec/typecast/float_spec.rb
|
31
|
-
spec/typecast/integer_spec.rb
|
32
|
-
spec/typecast/nil_spec.rb
|
33
|
-
spec/typecast/string_spec.rb
|
34
|
-
spec/typecast/time_spec.rb
|
data/lib/do_postgres_ext.so
DELETED
Binary file
|
data/tasks/gem.rake
DELETED
data/tasks/install.rake
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
def sudo_gem(cmd)
|
2
|
-
sh "#{SUDO} #{RUBY} -S gem #{cmd}", :verbose => false
|
3
|
-
end
|
4
|
-
|
5
|
-
# Installation
|
6
|
-
|
7
|
-
desc "Install #{GEM_SPEC.name} #{GEM_SPEC.version}"
|
8
|
-
task :install => [ :package ] do
|
9
|
-
sudo_gem "install pkg/#{GEM_SPEC.name}-#{GEM_SPEC.version} --no-update-sources"
|
10
|
-
end
|
11
|
-
|
12
|
-
desc "Uninstall #{GEM_SPEC.name} #{GEM_SPEC.version}"
|
13
|
-
task :uninstall => [ :clean ] do
|
14
|
-
sudo_gem "uninstall #{GEM_SPEC.name} -v#{GEM_SPEC.version} -I -x"
|
15
|
-
end
|
data/tasks/native.rake
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
gem('rake-compiler')
|
3
|
-
require 'rake/extensiontask'
|
4
|
-
|
5
|
-
Rake::ExtensionTask.new('do_postgres_ext', GEM_SPEC) do |ext|
|
6
|
-
|
7
|
-
postgres_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', 'pgsql'))
|
8
|
-
|
9
|
-
# automatically add build options to avoid need of manual input
|
10
|
-
if RUBY_PLATFORM =~ /mswin|mingw/ then
|
11
|
-
ext.config_options << "--with-pgsql-server-include=#{postgres_lib}/include/server"
|
12
|
-
ext.config_options << "--with-pgsql-client-include=#{postgres_lib}/include"
|
13
|
-
ext.config_options << "--with-pgsql-win32-include=#{postgres_lib}/include/server/port/win32"
|
14
|
-
ext.config_options << "--with-pgsql-client-lib=#{postgres_lib}/lib"
|
15
|
-
else
|
16
|
-
ext.cross_compile = true
|
17
|
-
ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
|
18
|
-
ext.cross_config_options << "--with-pgsql-server-include=#{postgres_lib}/include/server"
|
19
|
-
ext.cross_config_options << "--with-pgsql-client-include=#{postgres_lib}/include"
|
20
|
-
ext.cross_config_options << "--with-pgsql-win32-include=#{postgres_lib}/include/server/port/win32"
|
21
|
-
ext.cross_config_options << "--with-pgsql-client-lib=#{postgres_lib}/lib"
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
rescue LoadError
|
26
|
-
warn "To cross-compile, install rake-compiler (gem install rake-compiler)"
|
27
|
-
|
28
|
-
if (tasks_dir = ROOT.parent + 'tasks').directory?
|
29
|
-
require tasks_dir + 'ext_helper'
|
30
|
-
require tasks_dir + 'ext_helper_java'
|
31
|
-
|
32
|
-
setup_c_extension("#{GEM_SPEC.name}_ext", GEM_SPEC)
|
33
|
-
setup_java_extension("#{GEM_SPEC.name}_ext", GEM_SPEC)
|
34
|
-
end
|
35
|
-
end
|