pg 0.17.1-x86-mingw32 → 0.18.0.pre20141017160319-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +1885 -169
- data/History.rdoc +6 -0
- data/Manifest.txt +25 -1
- data/README.rdoc +47 -0
- data/Rakefile +21 -12
- data/Rakefile.cross +39 -33
- data/ext/extconf.rb +27 -26
- data/ext/pg.c +73 -19
- data/ext/pg.h +194 -6
- data/ext/pg_binary_decoder.c +160 -0
- data/ext/pg_binary_encoder.c +160 -0
- data/ext/pg_coder.c +473 -0
- data/ext/pg_connection.c +872 -534
- data/ext/pg_copy_coder.c +557 -0
- data/ext/pg_result.c +266 -111
- data/ext/pg_text_decoder.c +424 -0
- data/ext/pg_text_encoder.c +631 -0
- data/ext/pg_type_map.c +113 -0
- data/ext/pg_type_map_all_strings.c +113 -0
- data/ext/pg_type_map_by_column.c +254 -0
- data/ext/pg_type_map_by_mri_type.c +266 -0
- data/ext/pg_type_map_by_oid.c +341 -0
- data/ext/util.c +149 -0
- data/ext/util.h +65 -0
- data/lib/1.9/pg_ext.so +0 -0
- data/lib/2.0/pg_ext.so +0 -0
- data/lib/2.1/pg_ext.so +0 -0
- data/lib/i386-mingw32/libpq.dll +0 -0
- data/lib/pg.rb +11 -1
- data/lib/pg/basic_type_mapping.rb +377 -0
- data/lib/pg/coder.rb +74 -0
- data/lib/pg/connection.rb +43 -1
- data/lib/pg/result.rb +13 -3
- data/lib/pg/text_decoder.rb +42 -0
- data/lib/pg/text_encoder.rb +27 -0
- data/lib/pg/type_map_by_column.rb +15 -0
- data/spec/{lib/helpers.rb → helpers.rb} +95 -35
- data/spec/pg/basic_type_mapping_spec.rb +251 -0
- data/spec/pg/connection_spec.rb +416 -214
- data/spec/pg/result_spec.rb +146 -116
- data/spec/pg/type_map_by_column_spec.rb +135 -0
- data/spec/pg/type_map_by_mri_type_spec.rb +122 -0
- data/spec/pg/type_map_by_oid_spec.rb +133 -0
- data/spec/pg/type_map_spec.rb +39 -0
- data/spec/pg/type_spec.rb +649 -0
- data/spec/pg_spec.rb +10 -18
- metadata +130 -52
- metadata.gz.sig +0 -0
- data/lib/1.8/pg_ext.so +0 -0
data/spec/pg_spec.rb
CHANGED
@@ -1,43 +1,35 @@
|
|
1
1
|
#!/usr/bin/env rspec
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
-
|
5
|
-
require 'pathname'
|
4
|
+
require_relative 'helpers'
|
6
5
|
|
7
|
-
basedir = Pathname( __FILE__ ).dirname.parent
|
8
|
-
libdir = basedir + 'lib'
|
9
|
-
|
10
|
-
$LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
|
11
|
-
$LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
|
12
|
-
}
|
13
|
-
|
14
|
-
require 'rspec'
|
15
|
-
require 'spec/lib/helpers'
|
16
6
|
require 'pg'
|
17
7
|
|
18
8
|
describe PG do
|
19
9
|
|
20
10
|
it "knows what version of the libpq library is loaded", :postgresql_91 do
|
21
|
-
PG.library_version.
|
22
|
-
PG.library_version.
|
11
|
+
expect( PG.library_version ).to be_an( Integer )
|
12
|
+
expect( PG.library_version ).to be >= 90100
|
23
13
|
end
|
24
14
|
|
25
15
|
|
26
16
|
it "knows whether or not the library is threadsafe" do
|
27
|
-
PG.
|
17
|
+
expect( PG ).to be_threadsafe()
|
28
18
|
end
|
29
19
|
|
30
20
|
it "does have hierarchical error classes" do
|
31
|
-
PG::UndefinedTable.ancestors[0,4].
|
21
|
+
expect( PG::UndefinedTable.ancestors[0,4] ).to eq([
|
32
22
|
PG::UndefinedTable,
|
33
23
|
PG::SyntaxErrorOrAccessRuleViolation,
|
34
24
|
PG::ServerError,
|
35
|
-
|
25
|
+
PG::Error
|
26
|
+
])
|
36
27
|
|
37
|
-
PG::InvalidSchemaName.ancestors[0,3].
|
28
|
+
expect( PG::InvalidSchemaName.ancestors[0,3] ).to eq([
|
38
29
|
PG::InvalidSchemaName,
|
39
30
|
PG::ServerError,
|
40
|
-
|
31
|
+
PG::Error
|
32
|
+
])
|
41
33
|
end
|
42
34
|
|
43
35
|
end
|
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.
|
4
|
+
version: 0.18.0.pre20141017160319
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -11,98 +11,139 @@ bindir: bin
|
|
11
11
|
cert_chain:
|
12
12
|
- |
|
13
13
|
-----BEGIN CERTIFICATE-----
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
MlGgwc//cCsBG8sa
|
14
|
+
MIIDPDCCAiSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBEMQ0wCwYDVQQDDARsYXJz
|
15
|
+
MR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZImiZPyLGQB
|
16
|
+
GRYCZGUwHhcNMTQwMzEzMTkxMzIwWhcNMTUwMzEzMTkxMzIwWjBEMQ0wCwYDVQQD
|
17
|
+
DARsYXJzMR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZIm
|
18
|
+
iZPyLGQBGRYCZGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZb4Uv
|
19
|
+
RFJfRu/VEWiy3psh2jinETjiuBrL0NeRFGf8H7iU9+gx/DI/FFhfHGLrDeIskrJx
|
20
|
+
YIWDMmEjVO10UUdj7wu4ZhmU++0Cd7Kq9/TyP/shIP3IjqHjVLCnJ3P6f1cl5rxZ
|
21
|
+
gqo+d3BAoDrmPk0rtaf6QopwUw9RBiF8V4HqvpiY+ruJotP5UQDP4/lVOKvA8PI9
|
22
|
+
P0GmVbFBrbc7Zt5h78N3UyOK0u+nvOC23BvyHXzCtcFsXCoEkt+Wwh0RFqVZdnjM
|
23
|
+
LMO2vULHKKHDdX54K/sbVCj9pN9h1aotNzrEyo55zxn0G9PHg/G3P8nMvAXPkUTe
|
24
|
+
brhXrfCwWRvOXA4TAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0G
|
25
|
+
A1UdDgQWBBRAHK81igrXodaDj8a8/BIKsaZrETANBgkqhkiG9w0BAQUFAAOCAQEA
|
26
|
+
OLXQJzpDvZEIIm7HMhiAni/0XFYFcklZreXHkZg50A3xpZgaUi1Jt6V4ieui8Q5D
|
27
|
+
cKM+NdldrFUzGsB5cra9Yh1Zl9K6p0qUJDE2NzCoYsdHUhIZ7IivUGXJeO0MajDB
|
28
|
+
u7oxFVLgFZe6vq0VTp6YdkgLx+i0opThblODd7nanogcEGtRXOLeDy9OrCkZHawO
|
29
|
+
ipRAAGwLRNlqnpvWA0SWLZIr1qRr/a/2jTVqC7x/fvYnHK8dEjzo0Koqwe93fjVq
|
30
|
+
dEMb9GKKDGe1DUUwwxgdQbAHWSRnA3y22J0gnhKKqhBif1WhHs4mvMQWbt1/LwI1
|
31
|
+
X8cdILgQUIFiNGDx8uP2rQ==
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
33
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: hoe-mercurial
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.4'
|
42
|
+
type: :development
|
43
|
+
prerelease: false
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '1.4'
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: hoe-deveiate
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.6'
|
56
|
+
type: :development
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.6'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: hoe-highline
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.2'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.2'
|
36
77
|
- !ruby/object:Gem::Dependency
|
37
78
|
name: rdoc
|
38
79
|
requirement: !ruby/object:Gem::Requirement
|
39
80
|
requirements:
|
40
|
-
- - ~>
|
81
|
+
- - "~>"
|
41
82
|
- !ruby/object:Gem::Version
|
42
83
|
version: '4.0'
|
43
84
|
type: :development
|
44
85
|
prerelease: false
|
45
86
|
version_requirements: !ruby/object:Gem::Requirement
|
46
87
|
requirements:
|
47
|
-
- - ~>
|
88
|
+
- - "~>"
|
48
89
|
- !ruby/object:Gem::Version
|
49
90
|
version: '4.0'
|
50
91
|
- !ruby/object:Gem::Dependency
|
51
92
|
name: rake-compiler
|
52
93
|
requirement: !ruby/object:Gem::Requirement
|
53
94
|
requirements:
|
54
|
-
- - ~>
|
95
|
+
- - "~>"
|
55
96
|
- !ruby/object:Gem::Version
|
56
97
|
version: '0.9'
|
57
98
|
type: :development
|
58
99
|
prerelease: false
|
59
100
|
version_requirements: !ruby/object:Gem::Requirement
|
60
101
|
requirements:
|
61
|
-
- - ~>
|
102
|
+
- - "~>"
|
62
103
|
- !ruby/object:Gem::Version
|
63
104
|
version: '0.9'
|
64
105
|
- !ruby/object:Gem::Dependency
|
65
106
|
name: hoe
|
66
107
|
requirement: !ruby/object:Gem::Requirement
|
67
108
|
requirements:
|
68
|
-
- - ~>
|
109
|
+
- - "~>"
|
69
110
|
- !ruby/object:Gem::Version
|
70
|
-
version: 3.
|
111
|
+
version: '3.12'
|
71
112
|
type: :development
|
72
113
|
prerelease: false
|
73
114
|
version_requirements: !ruby/object:Gem::Requirement
|
74
115
|
requirements:
|
75
|
-
- - ~>
|
116
|
+
- - "~>"
|
76
117
|
- !ruby/object:Gem::Version
|
77
|
-
version: 3.
|
118
|
+
version: '3.12'
|
78
119
|
- !ruby/object:Gem::Dependency
|
79
|
-
name: hoe-
|
120
|
+
name: hoe-bundler
|
80
121
|
requirement: !ruby/object:Gem::Requirement
|
81
122
|
requirements:
|
82
|
-
- - ~>
|
123
|
+
- - "~>"
|
83
124
|
- !ruby/object:Gem::Version
|
84
|
-
version: '0
|
125
|
+
version: '1.0'
|
85
126
|
type: :development
|
86
127
|
prerelease: false
|
87
128
|
version_requirements: !ruby/object:Gem::Requirement
|
88
129
|
requirements:
|
89
|
-
- - ~>
|
130
|
+
- - "~>"
|
90
131
|
- !ruby/object:Gem::Version
|
91
|
-
version: '0
|
132
|
+
version: '1.0'
|
92
133
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
134
|
+
name: rspec
|
94
135
|
requirement: !ruby/object:Gem::Requirement
|
95
136
|
requirements:
|
96
|
-
- - ~>
|
137
|
+
- - "~>"
|
97
138
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
139
|
+
version: '3.0'
|
99
140
|
type: :development
|
100
141
|
prerelease: false
|
101
142
|
version_requirements: !ruby/object:Gem::Requirement
|
102
143
|
requirements:
|
103
|
-
- - ~>
|
144
|
+
- - "~>"
|
104
145
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
146
|
+
version: '3.0'
|
106
147
|
description: |-
|
107
148
|
Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
|
108
149
|
|
@@ -141,11 +182,23 @@ extra_rdoc_files:
|
|
141
182
|
- LICENSE
|
142
183
|
- ext/gvl_wrappers.c
|
143
184
|
- ext/pg.c
|
185
|
+
- ext/pg_binary_decoder.c
|
186
|
+
- ext/pg_binary_encoder.c
|
187
|
+
- ext/pg_coder.c
|
144
188
|
- ext/pg_connection.c
|
189
|
+
- ext/pg_copy_coder.c
|
145
190
|
- ext/pg_errors.c
|
146
191
|
- ext/pg_result.c
|
192
|
+
- ext/pg_text_decoder.c
|
193
|
+
- ext/pg_text_encoder.c
|
194
|
+
- ext/pg_type_map.c
|
195
|
+
- ext/pg_type_map_all_strings.c
|
196
|
+
- ext/pg_type_map_by_column.c
|
197
|
+
- ext/pg_type_map_by_mri_type.c
|
198
|
+
- ext/pg_type_map_by_oid.c
|
199
|
+
- ext/util.c
|
147
200
|
files:
|
148
|
-
- .gemtest
|
201
|
+
- ".gemtest"
|
149
202
|
- BSDL
|
150
203
|
- ChangeLog
|
151
204
|
- Contributors.rdoc
|
@@ -167,17 +220,39 @@ files:
|
|
167
220
|
- ext/gvl_wrappers.h
|
168
221
|
- ext/pg.c
|
169
222
|
- ext/pg.h
|
223
|
+
- ext/pg_binary_decoder.c
|
224
|
+
- ext/pg_binary_encoder.c
|
225
|
+
- ext/pg_coder.c
|
170
226
|
- ext/pg_connection.c
|
227
|
+
- ext/pg_copy_coder.c
|
171
228
|
- ext/pg_errors.c
|
172
229
|
- ext/pg_result.c
|
230
|
+
- ext/pg_text_decoder.c
|
231
|
+
- ext/pg_text_encoder.c
|
232
|
+
- ext/pg_type_map.c
|
233
|
+
- ext/pg_type_map_all_strings.c
|
234
|
+
- ext/pg_type_map_by_column.c
|
235
|
+
- ext/pg_type_map_by_mri_type.c
|
236
|
+
- ext/pg_type_map_by_oid.c
|
237
|
+
- ext/util.c
|
238
|
+
- ext/util.h
|
173
239
|
- ext/vc/pg.sln
|
174
240
|
- ext/vc/pg_18/pg.vcproj
|
175
241
|
- ext/vc/pg_19/pg_19.vcproj
|
242
|
+
- lib/1.9/pg_ext.so
|
243
|
+
- lib/2.0/pg_ext.so
|
244
|
+
- lib/2.1/pg_ext.so
|
245
|
+
- lib/i386-mingw32/libpq.dll
|
176
246
|
- lib/pg.rb
|
247
|
+
- lib/pg/basic_type_mapping.rb
|
248
|
+
- lib/pg/coder.rb
|
177
249
|
- lib/pg/connection.rb
|
178
250
|
- lib/pg/constants.rb
|
179
251
|
- lib/pg/exceptions.rb
|
180
252
|
- lib/pg/result.rb
|
253
|
+
- lib/pg/text_decoder.rb
|
254
|
+
- lib/pg/text_encoder.rb
|
255
|
+
- lib/pg/type_map_by_column.rb
|
181
256
|
- sample/array_insert.rb
|
182
257
|
- sample/async_api.rb
|
183
258
|
- sample/async_copyto.rb
|
@@ -198,13 +273,16 @@ files:
|
|
198
273
|
- sample/warehouse_partitions.rb
|
199
274
|
- spec/data/expected_trace.out
|
200
275
|
- spec/data/random_binary_data
|
201
|
-
- spec/
|
276
|
+
- spec/helpers.rb
|
277
|
+
- spec/pg/basic_type_mapping_spec.rb
|
202
278
|
- spec/pg/connection_spec.rb
|
203
279
|
- spec/pg/result_spec.rb
|
280
|
+
- spec/pg/type_map_by_column_spec.rb
|
281
|
+
- spec/pg/type_map_by_mri_type_spec.rb
|
282
|
+
- spec/pg/type_map_by_oid_spec.rb
|
283
|
+
- spec/pg/type_map_spec.rb
|
284
|
+
- spec/pg/type_spec.rb
|
204
285
|
- spec/pg_spec.rb
|
205
|
-
- lib/1.8/pg_ext.so
|
206
|
-
- lib/1.9/pg_ext.so
|
207
|
-
- lib/2.0/pg_ext.so
|
208
286
|
homepage: https://bitbucket.org/ged/ruby-pg
|
209
287
|
licenses:
|
210
288
|
- BSD
|
@@ -213,27 +291,27 @@ licenses:
|
|
213
291
|
metadata: {}
|
214
292
|
post_install_message:
|
215
293
|
rdoc_options:
|
216
|
-
- -f
|
294
|
+
- "-f"
|
217
295
|
- fivefish
|
218
|
-
- -t
|
296
|
+
- "-t"
|
219
297
|
- 'pg: The Ruby Interface to PostgreSQL'
|
220
|
-
- -m
|
298
|
+
- "-m"
|
221
299
|
- README.rdoc
|
222
300
|
require_paths:
|
223
301
|
- lib
|
224
302
|
required_ruby_version: !ruby/object:Gem::Requirement
|
225
303
|
requirements:
|
226
|
-
- -
|
304
|
+
- - ">="
|
227
305
|
- !ruby/object:Gem::Version
|
228
306
|
version: 1.8.7
|
229
307
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
308
|
requirements:
|
231
|
-
- -
|
309
|
+
- - ">"
|
232
310
|
- !ruby/object:Gem::Version
|
233
|
-
version:
|
311
|
+
version: 1.3.1
|
234
312
|
requirements: []
|
235
|
-
rubyforge_project:
|
236
|
-
rubygems_version: 2.0
|
313
|
+
rubyforge_project:
|
314
|
+
rubygems_version: 2.3.0
|
237
315
|
signing_key:
|
238
316
|
specification_version: 4
|
239
317
|
summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
|
metadata.gz.sig
CHANGED
Binary file
|
data/lib/1.8/pg_ext.so
DELETED
Binary file
|