pg 0.13.2 → 0.14.0.pre.351
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/ChangeLog +178 -2
- data/History.rdoc +28 -0
- data/Manifest.txt +8 -0
- data/Rakefile +7 -1
- data/ext/extconf.rb +6 -0
- data/ext/pg.c +77 -3
- data/ext/pg.h +2 -2
- data/ext/pg_connection.c +197 -82
- data/ext/pg_result.c +78 -59
- data/lib/pg.rb +2 -2
- 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 +68 -26
- metadata.gz.sig +0 -0
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,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.14.0.pre.351
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -36,74 +36,104 @@ cert_chain:
|
|
36
36
|
YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
|
37
37
|
Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
|
38
38
|
cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
39
|
-
date: 2012-
|
39
|
+
date: 2012-06-17 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hoe-mercurial
|
43
|
-
requirement:
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
44
|
none: false
|
45
45
|
requirements:
|
46
46
|
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.
|
48
|
+
version: 1.4.0
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
|
-
version_requirements:
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.4.0
|
52
57
|
- !ruby/object:Gem::Dependency
|
53
58
|
name: hoe-highline
|
54
|
-
requirement:
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
55
60
|
none: false
|
56
61
|
requirements:
|
57
62
|
- - ~>
|
58
63
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.0
|
64
|
+
version: 0.1.0
|
60
65
|
type: :development
|
61
66
|
prerelease: false
|
62
|
-
version_requirements:
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ~>
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.1.0
|
63
73
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
65
|
-
requirement:
|
74
|
+
name: rdoc
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
66
76
|
none: false
|
67
77
|
requirements:
|
68
78
|
- - ~>
|
69
79
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
80
|
+
version: '3.10'
|
71
81
|
type: :development
|
72
82
|
prerelease: false
|
73
|
-
version_requirements:
|
83
|
+
version_requirements: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ~>
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3.10'
|
74
89
|
- !ruby/object:Gem::Dependency
|
75
|
-
name:
|
76
|
-
requirement:
|
90
|
+
name: rake-compiler
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
77
92
|
none: false
|
78
93
|
requirements:
|
79
94
|
- - ~>
|
80
95
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
96
|
+
version: '0.7'
|
82
97
|
type: :development
|
83
98
|
prerelease: false
|
84
|
-
version_requirements:
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ~>
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0.7'
|
85
105
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
87
|
-
requirement:
|
106
|
+
name: hoe-deveiate
|
107
|
+
requirement: !ruby/object:Gem::Requirement
|
88
108
|
none: false
|
89
109
|
requirements:
|
90
110
|
- - ~>
|
91
111
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
112
|
+
version: '0.1'
|
93
113
|
type: :development
|
94
114
|
prerelease: false
|
95
|
-
version_requirements:
|
115
|
+
version_requirements: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ~>
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0.1'
|
96
121
|
- !ruby/object:Gem::Dependency
|
97
122
|
name: hoe
|
98
|
-
requirement:
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
99
124
|
none: false
|
100
125
|
requirements:
|
101
126
|
- - ~>
|
102
127
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
128
|
+
version: '3.0'
|
104
129
|
type: :development
|
105
130
|
prerelease: false
|
106
|
-
version_requirements:
|
131
|
+
version_requirements: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
133
|
+
requirements:
|
134
|
+
- - ~>
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '3.0'
|
107
137
|
description: ! "Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].\n\nIt
|
108
138
|
works with {PostgreSQL 8.3 and later}[http://bit.ly/6AfPhm].\n\nA small example
|
109
139
|
usage:\n\n #!/usr/bin/env ruby\n \n require 'pg'\n \n # Output a table of current
|
@@ -117,9 +147,9 @@ executables: []
|
|
117
147
|
extensions:
|
118
148
|
- ext/extconf.rb
|
119
149
|
extra_rdoc_files:
|
120
|
-
- Manifest.txt
|
121
150
|
- Contributors.rdoc
|
122
151
|
- History.rdoc
|
152
|
+
- Manifest.txt
|
123
153
|
- README-OS_X.rdoc
|
124
154
|
- README-Windows.rdoc
|
125
155
|
- README.ja.rdoc
|
@@ -160,12 +190,20 @@ files:
|
|
160
190
|
- sample/async_api.rb
|
161
191
|
- sample/async_copyto.rb
|
162
192
|
- sample/async_mixed.rb
|
193
|
+
- sample/check_conn.rb
|
163
194
|
- sample/copyfrom.rb
|
164
195
|
- sample/copyto.rb
|
165
196
|
- sample/cursor.rb
|
197
|
+
- sample/disk_usage_report.rb
|
198
|
+
- sample/issue-119.rb
|
166
199
|
- sample/losample.rb
|
200
|
+
- sample/minimal-testcase.rb
|
167
201
|
- sample/notify_wait.rb
|
202
|
+
- sample/pg_statistics.rb
|
203
|
+
- sample/replication_monitor.rb
|
168
204
|
- sample/test_binary_values.rb
|
205
|
+
- sample/wal_shipper.rb
|
206
|
+
- sample/warehouse_partitions.rb
|
169
207
|
- spec/data/expected_trace.out
|
170
208
|
- spec/data/random_binary_data
|
171
209
|
- spec/lib/helpers.rb
|
@@ -179,7 +217,11 @@ licenses:
|
|
179
217
|
- GPL
|
180
218
|
post_install_message:
|
181
219
|
rdoc_options:
|
182
|
-
-
|
220
|
+
- -f
|
221
|
+
- fivefish
|
222
|
+
- -t
|
223
|
+
- ! 'pg: The Ruby Interface to PostgreSQL'
|
224
|
+
- -m
|
183
225
|
- README.rdoc
|
184
226
|
require_paths:
|
185
227
|
- lib
|
@@ -197,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
239
|
version: '0'
|
198
240
|
requirements: []
|
199
241
|
rubyforge_project: pg
|
200
|
-
rubygems_version: 1.8.
|
242
|
+
rubygems_version: 1.8.24
|
201
243
|
signing_key:
|
202
244
|
specification_version: 3
|
203
245
|
summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
|
metadata.gz.sig
CHANGED
Binary file
|