pg 0.13.2-x86-mingw32 → 0.14.0.pre.353-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +230 -1
- data/History.rdoc +28 -0
- data/Manifest.txt +8 -0
- data/Rakefile +8 -2
- data/Rakefile.cross +11 -4
- data/ext/extconf.rb +7 -0
- data/ext/pg.c +76 -2
- data/ext/pg.h +2 -2
- data/ext/pg_connection.c +196 -81
- data/ext/pg_result.c +77 -58
- data/lib/1.8/pg_ext.so +0 -0
- data/lib/1.9/pg_ext.so +0 -0
- data/lib/pg.rb +1 -1
- data/lib/pg/connection.rb +7 -0
- data/sample/async_api.rb +2 -0
- data/sample/check_conn.rb +21 -0
- data/sample/disk_usage_report.rb +186 -0
- data/sample/issue-119.rb +94 -0
- data/sample/minimal-testcase.rb +17 -0
- data/sample/pg_statistics.rb +294 -0
- data/sample/replication_monitor.rb +231 -0
- data/sample/wal_shipper.rb +434 -0
- data/sample/warehouse_partitions.rb +320 -0
- data/spec/lib/helpers.rb +6 -1
- data/spec/pg/connection_spec.rb +205 -141
- data/spec/pg/result_spec.rb +18 -6
- data/spec/pg_spec.rb +9 -0
- metadata +50 -34
data/spec/pg_spec.rb
CHANGED
@@ -17,6 +17,15 @@ require 'pg'
|
|
17
17
|
|
18
18
|
describe PG do
|
19
19
|
|
20
|
+
it "knows what version of the libpq library is loaded", :postgresql_91 do
|
21
|
+
PG.library_version.should be_an( Integer )
|
22
|
+
PG.library_version.should >= 90100
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
it "knows whether or not the library is threadsafe" do
|
27
|
+
PG.should be_threadsafe()
|
28
|
+
end
|
20
29
|
|
21
30
|
end
|
22
31
|
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 1923832459
|
5
|
+
prerelease: 7
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
8
|
+
- 14
|
9
|
+
- 0
|
10
|
+
- pre
|
11
|
+
- 353
|
12
|
+
version: 0.14.0.pre.353
|
11
13
|
platform: x86-mingw32
|
12
14
|
authors:
|
13
15
|
- Michael Granger
|
@@ -15,7 +17,7 @@ autorequire:
|
|
15
17
|
bindir: bin
|
16
18
|
cert_chain: []
|
17
19
|
|
18
|
-
date: 2012-
|
20
|
+
date: 2012-06-18 00:00:00 Z
|
19
21
|
dependencies:
|
20
22
|
- !ruby/object:Gem::Dependency
|
21
23
|
name: hoe-mercurial
|
@@ -34,63 +36,63 @@ dependencies:
|
|
34
36
|
type: :development
|
35
37
|
version_requirements: *id001
|
36
38
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
39
|
+
name: rdoc
|
38
40
|
prerelease: false
|
39
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
42
|
none: false
|
41
43
|
requirements:
|
42
44
|
- - ~>
|
43
45
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
46
|
+
hash: 19
|
45
47
|
segments:
|
46
|
-
-
|
47
|
-
-
|
48
|
-
version: "
|
48
|
+
- 3
|
49
|
+
- 10
|
50
|
+
version: "3.10"
|
49
51
|
type: :development
|
50
52
|
version_requirements: *id002
|
51
53
|
- !ruby/object:Gem::Dependency
|
52
|
-
name:
|
54
|
+
name: rake-compiler
|
53
55
|
prerelease: false
|
54
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
57
|
none: false
|
56
58
|
requirements:
|
57
59
|
- - ~>
|
58
60
|
- !ruby/object:Gem::Version
|
59
|
-
hash:
|
61
|
+
hash: 5
|
60
62
|
segments:
|
61
|
-
-
|
62
|
-
-
|
63
|
-
version: "
|
63
|
+
- 0
|
64
|
+
- 7
|
65
|
+
version: "0.7"
|
64
66
|
type: :development
|
65
67
|
version_requirements: *id003
|
66
68
|
- !ruby/object:Gem::Dependency
|
67
|
-
name: hoe
|
69
|
+
name: hoe-deveiate
|
68
70
|
prerelease: false
|
69
71
|
requirement: &id004 !ruby/object:Gem::Requirement
|
70
72
|
none: false
|
71
73
|
requirements:
|
72
74
|
- - ~>
|
73
75
|
- !ruby/object:Gem::Version
|
74
|
-
hash:
|
76
|
+
hash: 9
|
75
77
|
segments:
|
76
|
-
-
|
77
|
-
-
|
78
|
-
version: "
|
78
|
+
- 0
|
79
|
+
- 1
|
80
|
+
version: "0.1"
|
79
81
|
type: :development
|
80
82
|
version_requirements: *id004
|
81
83
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
84
|
+
name: hoe
|
83
85
|
prerelease: false
|
84
86
|
requirement: &id005 !ruby/object:Gem::Requirement
|
85
87
|
none: false
|
86
88
|
requirements:
|
87
89
|
- - ~>
|
88
90
|
- !ruby/object:Gem::Version
|
89
|
-
hash:
|
91
|
+
hash: 7
|
90
92
|
segments:
|
91
93
|
- 3
|
92
|
-
-
|
93
|
-
version: "3.
|
94
|
+
- 0
|
95
|
+
version: "3.0"
|
94
96
|
type: :development
|
95
97
|
version_requirements: *id005
|
96
98
|
description: |-
|
@@ -120,13 +122,13 @@ executables: []
|
|
120
122
|
extensions: []
|
121
123
|
|
122
124
|
extra_rdoc_files:
|
123
|
-
- Manifest.txt
|
124
|
-
- README.rdoc
|
125
|
-
- README-Windows.rdoc
|
126
125
|
- Contributors.rdoc
|
127
|
-
- README-OS_X.rdoc
|
128
126
|
- History.rdoc
|
127
|
+
- Manifest.txt
|
128
|
+
- README-OS_X.rdoc
|
129
|
+
- README-Windows.rdoc
|
129
130
|
- README.ja.rdoc
|
131
|
+
- README.rdoc
|
130
132
|
- POSTGRES
|
131
133
|
- LICENSE
|
132
134
|
- ext/pg.c
|
@@ -163,12 +165,20 @@ files:
|
|
163
165
|
- sample/async_api.rb
|
164
166
|
- sample/async_copyto.rb
|
165
167
|
- sample/async_mixed.rb
|
168
|
+
- sample/check_conn.rb
|
166
169
|
- sample/copyfrom.rb
|
167
170
|
- sample/copyto.rb
|
168
171
|
- sample/cursor.rb
|
172
|
+
- sample/disk_usage_report.rb
|
173
|
+
- sample/issue-119.rb
|
169
174
|
- sample/losample.rb
|
175
|
+
- sample/minimal-testcase.rb
|
170
176
|
- sample/notify_wait.rb
|
177
|
+
- sample/pg_statistics.rb
|
178
|
+
- sample/replication_monitor.rb
|
171
179
|
- sample/test_binary_values.rb
|
180
|
+
- sample/wal_shipper.rb
|
181
|
+
- sample/warehouse_partitions.rb
|
172
182
|
- spec/data/expected_trace.out
|
173
183
|
- spec/data/random_binary_data
|
174
184
|
- spec/lib/helpers.rb
|
@@ -184,7 +194,11 @@ licenses:
|
|
184
194
|
- GPL
|
185
195
|
post_install_message:
|
186
196
|
rdoc_options:
|
187
|
-
-
|
197
|
+
- -f
|
198
|
+
- fivefish
|
199
|
+
- -t
|
200
|
+
- "pg: The Ruby Interface to PostgreSQL"
|
201
|
+
- -m
|
188
202
|
- README.rdoc
|
189
203
|
require_paths:
|
190
204
|
- lib
|
@@ -202,12 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
216
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
217
|
none: false
|
204
218
|
requirements:
|
205
|
-
- - "
|
219
|
+
- - ">"
|
206
220
|
- !ruby/object:Gem::Version
|
207
|
-
hash:
|
221
|
+
hash: 25
|
208
222
|
segments:
|
209
|
-
-
|
210
|
-
|
223
|
+
- 1
|
224
|
+
- 3
|
225
|
+
- 1
|
226
|
+
version: 1.3.1
|
211
227
|
requirements: []
|
212
228
|
|
213
229
|
rubyforge_project: pg
|