pg 0.10.1pre209 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data.tar.gz.sig +0 -0
  2. data/ChangeLog +249 -234
  3. data/ext/compat.h +4 -0
  4. data/ext/pg.h +4 -0
  5. data/lib/pg.rb +10 -12
  6. metadata +2 -5
  7. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,4 +1,19 @@
1
- 209[tip] 89348c8bb6d1 2010-12-06 12:00 -0800 ged
1
+ 214[master,tip] 8ab3dd3c757b 2011-01-19 08:00 -0800 ged
2
+ Added tag v0.10.1 for changeset de10b5d8e442
3
+
4
+ 213[v0.10.1] de10b5d8e442 2011-01-19 08:00 -0800 ged
5
+ Added signature for changeset 230ea3e68db2
6
+
7
+ 212[github/master] 230ea3e68db2 2011-01-19 07:54 -0800 ged
8
+ Add an include guard for pg.h
9
+
10
+ 211 f877d2d399cc 2011-01-19 07:53 -0800 ged
11
+ Simplify the common case require of the ext
12
+
13
+ 210 8e1707a90330 2011-01-19 07:52 -0800 ged
14
+ Include the extconf header
15
+
16
+ 209 89348c8bb6d1 2010-12-06 12:00 -0800 ged
2
17
  Experimenting with a greatly-simplified extconf, since the complex one isn't solving any problems
3
18
 
4
19
  208 aea173eec98a 2010-12-06 08:45 -0800 ged
@@ -31,7 +46,7 @@
31
46
  199 de86dca00ad2 2010-12-01 18:24 -0800 ged
32
47
  Finished the merge of default; fixed specs under 1.9.2.
33
48
 
34
- 198:197,188 60664b2495cf 2010-12-01 16:39 -0800 ged
49
+ 198:197,190 60664b2495cf 2010-12-01 16:39 -0800 ged
35
50
  merge of default
36
51
 
37
52
  197 148d0cc3db4a 2010-12-01 14:19 -0800 ged
@@ -52,579 +67,579 @@
52
67
  192 413f9e81e3ea 2010-11-01 09:01 -0700 ged
53
68
  More work trying to get the Windows-native gem to compile. No luck, but it's closer.
54
69
 
55
- 191 3402babf2cdf 2010-10-31 16:29 -0700 ged
70
+ 191:171 3402babf2cdf 2010-10-31 16:29 -0700 ged
56
71
  Fixed issue with PGconn#wait_for_notify that caused it to miss notifications that happened after the LISTEN but before the wait_for_notify.
57
72
 
58
- 190 9d8f82721f69 2010-10-29 08:09 -0700 ged
59
- Updated to RSpec 2.0
60
-
61
- 189:186 b2df89600d95 2010-10-11 09:24 -0700 ged
62
- Fixes for windows static build.
63
-
64
- 188 193043bf2244 2010-10-08 09:40 -0700 ged
73
+ 190 193043bf2244 2010-10-08 09:40 -0700 ged
65
74
  Added support for the payload of NOTIFY events (w/Mahlon E. Smith)
66
75
 
67
- 187 ce9b893ff824 2010-10-08 07:25 -0700 ged
76
+ 189:169 ce9b893ff824 2010-10-08 07:25 -0700 ged
68
77
  start new patch on default
69
78
 
70
- 186 49ff3442c2ee 2010-10-08 07:23 -0700 ged
79
+ 188:120 d5fa3e079a55 2009-12-31 09:58 -0800 ged
80
+ Closing branch
81
+
82
+ 187 4c2ea65f2eb9 2008-10-14 05:27 +0000 davis
83
+ Merged revisions 175 via svnmerge from
84
+
85
+ 186 7e7c22be0302 2008-10-05 19:43 +0000 davis
86
+ Merged revisions 169-173 via svnmerge from
87
+
88
+ 185 3e9dda291ef3 2008-08-17 20:42 +0000 davis
89
+ Merged revisions 166 via svnmerge from
90
+
91
+ 184 3686c9944fe1 2008-08-17 20:27 +0000 davis
92
+ Add ext_helper.rb
93
+
94
+ 183 ed3294b76bf7 2008-08-17 20:23 +0000 davis
95
+ Merged revisions 149-160 via svnmerge from
96
+
97
+ 182 ff6af5fc4dc3 2008-08-17 20:05 +0000 davis
98
+ Initialized merge tracking via "svnmerge" with revisions "1-146" from
99
+
100
+ 181 1a7b63bacfee 2008-08-17 19:55 +0000 davis
101
+ Initialized merge tracking via "svnmerge" with revisions "1-146" from
102
+
103
+ 180 f9cd915ea427 2008-03-18 02:32 +0000 davis
104
+ merged ruby-pg/trunk rev 123:146 with ruby-pg/branches/stable
105
+
106
+ 179 bae01401c92b 2008-03-17 21:29 +0000 davis
107
+ merged ruby-pg/trunk rev 123:125 with ruby-pg/branches/stable
108
+
109
+ 178 83e5013eccc8 2008-02-05 19:23 +0000 davis
110
+ merged ruby-pg/trunk rev 109:121 with ruby-pg/branches/stable
111
+
112
+ 177 abfe9a457946 2008-01-28 18:50 +0000 davis
113
+ merged ruby-pg/trunk rev 104 with ruby-pg/branches/stable
114
+
115
+ 176 c7ddb58579d3 2008-01-24 23:07 +0000 davis
116
+ moved a few minor changes over before release
117
+
118
+ 175 8df9da92380e 2008-01-24 18:45 +0000 davis
119
+ merged revision 77:HEAD of ruby-pg/trunk to ruby-pg/branches/stable
120
+
121
+ 174 8eb1346cb9aa 2008-01-09 02:08 +0000 davis
122
+ removed extra directory that was left in the merge
123
+
124
+ 173 d6d19e5371d4 2008-01-09 01:59 +0000 davis
125
+ merged ruby-pg/trunk rev 69 to ruby-pg/branches/stable
126
+
127
+ 172:-1 7716d24a143b 2008-01-07 22:16 +0000 davis
128
+ Split 'ruby-pg' module and 'postgres' module
129
+
130
+ 171 9d8f82721f69 2010-10-29 08:09 -0700 ged
131
+ Updated to RSpec 2.0
132
+
133
+ 170 b2df89600d95 2010-10-11 09:24 -0700 ged
134
+ Fixes for windows static build.
135
+
136
+ 169 49ff3442c2ee 2010-10-08 07:23 -0700 ged
71
137
  Fixes to get the static windows build to work with PostgreSQL 9.0 and OpenSSL 1.0.0a
72
138
 
73
- 185 1fa5cd6851e3 2010-09-28 09:10 -0700 ged
139
+ 168 1fa5cd6851e3 2010-09-28 09:10 -0700 ged
74
140
  More work trying to get the native windows gem to compile under PostgreSQL 9.0
75
141
 
76
- 184 c9fb855a7d50 2010-09-28 09:09 -0700 ged
142
+ 167 c9fb855a7d50 2010-09-28 09:09 -0700 ged
77
143
  Adding a sample of how to use COPY FROM
78
144
 
79
- 183 d85ff87e5949 2010-09-24 10:34 -0700 ged
145
+ 166 d85ff87e5949 2010-09-24 10:34 -0700 ged
80
146
  Fixes for Ruby 1.9.2.
81
147
 
82
- 182 5dbc24f596c8 2010-09-24 10:18 -0700 ged
148
+ 165 5dbc24f596c8 2010-09-24 10:18 -0700 ged
83
149
  Version bump, updates for PostgreSQL 9.
84
150
 
85
- 181 1f8dd92ca16c 2010-08-03 10:31 -0700 ged
151
+ 164 1f8dd92ca16c 2010-08-03 10:31 -0700 ged
86
152
  Merged JRuby fix into the build system, pulled down other build-system updates. Thanks to timfel for the fix.
87
153
 
88
- 180 4f705f605e51 2010-08-03 17:56 +0200 timfelgentreff
154
+ 163 4f705f605e51 2010-08-03 17:56 +0200 timfelgentreff
89
155
  Fix to allow Rakefile to work on JRuby
90
156
 
91
- 179 92cc211ef553 2010-08-02 09:28 -0700 ged
157
+ 162 92cc211ef553 2010-08-02 09:28 -0700 ged
92
158
  Honor Ruby's default_internal encoding when connecting via the synchronous interface; fixes #33
93
159
 
94
- 178 a2237e39d399 2010-08-02 09:23 -0700 ged
160
+ 161 a2237e39d399 2010-08-02 09:23 -0700 ged
95
161
  Don't treat the installed pg_config not having archflags as an error; fixes #39
96
162
 
97
- 177 14b882b7b88c 2010-08-02 09:21 -0700 ged
163
+ 160 14b882b7b88c 2010-08-02 09:21 -0700 ged
98
164
  Install extension under arch-specific directory (RPS fix)
99
165
 
100
- 176 b0a5ae858569 2010-07-26 19:46 -0700 ged
166
+ 159 b0a5ae858569 2010-07-26 19:46 -0700 ged
101
167
  Adding rake tasklibs as a sub-repo
102
168
 
103
- 175 37835e3b8701 2010-07-21 18:39 -0700 ged
169
+ 158 37835e3b8701 2010-07-21 18:39 -0700 ged
104
170
  Removed spec for issue #22, as the library is behaving the same as the underlying library; closes #22
105
171
 
106
- 174:168,173 86f238c12fa3 2010-07-21 18:36 -0700 ged
172
+ 157:156,155 86f238c12fa3 2010-07-21 18:36 -0700 ged
107
173
  Merged with 168:dfaa59767b2e
108
174
 
109
- 173:172,169 e756f8fb15d8 2010-06-22 16:23 -0700 ged
175
+ 156:150 dfaa59767b2e 2010-07-21 18:35 -0700 ged
176
+ Reworded an example's description and added a specific transaction-abort spec
177
+
178
+ 155:154,151 e756f8fb15d8 2010-06-22 16:23 -0700 ged
110
179
  Merged with 170:5418a1d86d91
111
180
 
112
- 172 8922f0a8ee44 2010-06-22 16:22 -0700 ged
181
+ 154 8922f0a8ee44 2010-06-22 16:22 -0700 ged
113
182
  Adding example of invalid binary data issue (refs #22), fixing EXT_SO path
114
183
 
115
- 171 cb92aa4b6599 2010-02-25 10:39 -0800 ged
184
+ 153 cb92aa4b6599 2010-02-25 10:39 -0800 ged
116
185
  Adding a spec to test bug #12
117
186
 
118
- 170:158 86026f5ecf70 2010-02-25 10:39 -0800 ged
187
+ 152:141 86026f5ecf70 2010-02-25 10:39 -0800 ged
119
188
  Adding rake-compiler to the dev dependencies
120
189
 
121
- 169:167 5418a1d86d91 2010-06-22 15:54 -0700 ged
190
+ 151 5418a1d86d91 2010-06-22 15:54 -0700 ged
122
191
  Cross-compile tasks cleanup, extconf diagnostic improvement.
123
192
 
124
- 168 dfaa59767b2e 2010-07-21 18:35 -0700 ged
125
- Reworded an example's description and added a specific transaction-abort spec
126
-
127
- 167 07502a793f3a 2010-06-22 10:44 -0700 ged
193
+ 150 07502a793f3a 2010-06-22 10:44 -0700 ged
128
194
  Adding some more stuff to the ignorefile
129
195
 
130
- 166 873867122e80 2010-06-22 10:43 -0700 ged
196
+ 149 873867122e80 2010-06-22 10:43 -0700 ged
131
197
  Modified the large-object sample script to reflect the pg library's API (refs #35)
132
198
 
133
- 165 ea6eae59e917 2010-06-21 11:08 -0700 ged
199
+ 148 ea6eae59e917 2010-06-21 11:08 -0700 ged
134
200
  Updating build system, adding .orig files to ignore list.
135
201
 
136
- 164 bb8a3baad96e 2010-06-14 13:57 -0700 ged
202
+ 147 bb8a3baad96e 2010-06-14 13:57 -0700 ged
137
203
  Whitespace fix
138
204
 
139
- 163 45e6518b780d 2010-05-26 09:33 -0700 ged
205
+ 146 45e6518b780d 2010-05-26 09:33 -0700 ged
140
206
  Actually, just use the cflags from pg_config, which should resolve both the -Wall and the -lsocket issue (refs #30)
141
207
 
142
- 162 730fb885ce08 2010-05-26 09:27 -0700 ged
208
+ 145 730fb885ce08 2010-05-26 09:27 -0700 ged
143
209
  Fixing compilation for non-GCC platforms (fixes #30)
144
210
 
145
- 161 a47ffe890970 2010-03-16 07:36 -0700 ged
211
+ 144 a47ffe890970 2010-03-16 07:36 -0700 ged
146
212
  Fixed typo in ext/extconf.rb -- thanks to Keith Cascio for spotting this. Closes #27.
147
213
 
148
- 160 9a296096f7e9 2010-02-28 08:56 -0800 ged
214
+ 143 9a296096f7e9 2010-02-28 08:56 -0800 ged
149
215
  Added tag 0.9.0 for changeset da726282493c
150
216
 
151
- 159[0.9.0] da726282493c 2010-02-28 08:56 -0800 ged
217
+ 142[0.9.0] da726282493c 2010-02-28 08:56 -0800 ged
152
218
  Added signature for changeset 872063e42b12
153
219
 
154
- 158 872063e42b12 2010-02-19 08:02 -0800 ged
220
+ 141 872063e42b12 2010-02-19 08:02 -0800 ged
155
221
  Adding "fat gem" compatible loader, set the default RUBY_CC_VERSION.
156
222
 
157
- 157 ab525ca90531 2010-02-19 06:27 -0800 ged
223
+ 140 ab525ca90531 2010-02-19 06:27 -0800 ged
158
224
  Updated the Rakefile so it includes itself in gems. (closes #15) Thanks to flameeyes@bitbucket for
159
225
 
160
- 156 9c65eb905416 2010-02-18 06:52 -0800 ged
226
+ 139 9c65eb905416 2010-02-18 06:52 -0800 ged
161
227
  Applied patch for PGconn#async_exec to make it have the same semantics as PGconn#exec (closes #19). Thanks again to Lars Kanis for the patch.
162
228
 
163
- 155 b0017ac0ecb5 2010-02-17 15:30 -0800 ged
229
+ 138 b0017ac0ecb5 2010-02-17 15:30 -0800 ged
164
230
  Updated the Rakefile to always default the package version even if a version can't be read from the VERSION_FILE.
165
231
 
166
- 154 c7d5458af696 2010-02-17 06:23 -0800 ged
232
+ 137 c7d5458af696 2010-02-17 06:23 -0800 ged
167
233
  Improving spec database setup function (closes #18). Thanks to Lars Kanis for another fine patch.
168
234
 
169
- 153 39b11474d035 2010-02-17 06:14 -0800 ged
235
+ 136 39b11474d035 2010-02-17 06:14 -0800 ged
170
236
  Ack! Removing typo
171
237
 
172
- 152 9d54bbc98488 2010-02-17 06:10 -0800 ged
238
+ 135 9d54bbc98488 2010-02-17 06:10 -0800 ged
173
239
  Adding a test to ensure the result encoding remains the same even when client_encoding in the connection changes.
174
240
 
175
- 151 31afece7c203 2010-01-18 09:15 -0800 ged
241
+ 134 31afece7c203 2010-01-18 09:15 -0800 ged
176
242
  Made the 'make_header' in the extconf more clear.
177
243
 
178
- 150:149,148 d9c920068712 2010-01-13 20:56 -0800 pgsql
244
+ 133:132,131 d9c920068712 2010-01-13 20:56 -0800 pgsql
179
245
  Merged
180
246
 
181
- 149:141 294eb6d5530b 2010-01-13 20:51 -0800 pgsql
247
+ 132:124 294eb6d5530b 2010-01-13 20:51 -0800 pgsql
182
248
  In rspec tests, replace the pattern:
183
249
 
184
- 148 74fab32c2687 2010-01-11 08:15 -0800 ged
250
+ 131 74fab32c2687 2010-01-11 08:15 -0800 ged
185
251
  A better fix for the PGconn#block weirdness on Win32 (closes #16).
186
252
 
187
- 147 f8dfc1b6c51c 2010-01-06 06:17 -0800 ged
253
+ 130 f8dfc1b6c51c 2010-01-06 06:17 -0800 ged
188
254
  Rearranged the sections of the README.
189
255
 
190
- 146 0df792de2a19 2010-01-05 08:48 -0800 ged
256
+ 129 0df792de2a19 2010-01-05 08:48 -0800 ged
191
257
  Updating MacOS X README.
192
258
 
193
- 145 2894973bc63f 2010-01-04 18:28 -0800 ged
259
+ 128 2894973bc63f 2010-01-04 18:28 -0800 ged
194
260
  Work around broken rb_thread_select() on win32; thanks to Lars Kanis for the patch!
195
261
 
196
- 144 88dacdb9c97d 2010-01-04 18:16 -0800 ged
262
+ 127 88dacdb9c97d 2010-01-04 18:16 -0800 ged
197
263
  Reverted removal of PGresult::InvalidOid, fixed broken spec.
198
264
 
199
- 143 739cec560448 2010-01-04 17:55 -0800 ged
265
+ 126 739cec560448 2010-01-04 17:55 -0800 ged
200
266
  Ignore some generated files, documentation work, removed type OID constants.
201
267
 
202
- 142 38a0d2a90664 2010-01-04 17:39 -0800 ged
268
+ 125 38a0d2a90664 2010-01-04 17:39 -0800 ged
203
269
  Applied patch for static cross-compilation of win32 gem from Lars Kanis with a few changes to
204
270
 
205
- 141 f31202539234 2010-01-03 11:40 -0800 ged
271
+ 124 f31202539234 2010-01-03 11:40 -0800 ged
206
272
  Updated build system
207
273
 
208
- 140:138 cc09390cb0a8 2010-01-02 09:22 -0800 ged
274
+ 123 cc09390cb0a8 2010-01-02 09:22 -0800 ged
209
275
  Added tag 0.8.0 for changeset 7fbe4187e9e5
210
276
 
211
- 139:136 d5fa3e079a55 2009-12-31 09:58 -0800 ged
212
- Closing branch
213
-
214
- 138 05834d47aac3 2009-12-31 09:57 -0800 ged
277
+ 122 05834d47aac3 2009-12-31 09:57 -0800 ged
215
278
  Bumped version to 0.9.0
216
279
 
217
- 137:126,136 0997a0aa7624 2009-12-31 09:22 -0800 ged
280
+ 121:110,120 0997a0aa7624 2009-12-31 09:22 -0800 ged
218
281
  Merged i17n-19-patches branch
219
282
 
220
- 136 f5af71167dea 2009-12-28 14:50 -0800 ged
283
+ 120 f5af71167dea 2009-12-28 14:50 -0800 ged
221
284
  Make PGconn.connect_start use PQconnectStart instead of PQconnectdb so asynchronous connection
222
285
 
223
- 135 42919e2a4ef8 2009-12-28 08:42 -0800 ged
286
+ 119 42919e2a4ef8 2009-12-28 08:42 -0800 ged
224
287
  Added column-selection methods to PGresult (#field_values and #column_values). Closes #12. Thanks to
225
288
 
226
- 134 39fdb2552163 2009-12-23 08:28 -0800 ged
289
+ 118 39fdb2552163 2009-12-23 08:28 -0800 ged
227
290
  Fixed #11: encrypt_arguments doesn't receive password, thanks to Yuki Miyauchi for the patch.
228
291
 
229
- 133 df770b6ad237 2009-12-23 07:49 -0800 ged
292
+ 117 df770b6ad237 2009-12-23 07:49 -0800 ged
230
293
  Fixed infinite loop in async_exec("COPY"), thanks to Mike Pomraning for the patch. Closes #9.
231
294
 
232
- 132 4cbcf197cb82 2009-12-16 09:03 -0800 ged
295
+ 116 4cbcf197cb82 2009-12-16 09:03 -0800 ged
233
296
  New build system, build with rake-compiler, added PGconn::VERSION.
234
297
 
235
- 131 6ba661bbdb28 2009-12-15 08:45 -0800 ged
298
+ 115 6ba661bbdb28 2009-12-15 08:45 -0800 ged
236
299
  Applied Rubyforge patch 26282; fixes #1. Thanks to Nikolai Lugovoi for the patch.
237
300
 
238
- 130 3e42badc15de 2009-12-11 17:28 -0800 ged
301
+ 114 3e42badc15de 2009-12-11 17:28 -0800 ged
239
302
  Notify spec fixes, cleanup, Rakefile clean task adjustments.
240
303
 
241
- 129 659d80221a45 2009-12-11 13:47 -0800 ged
304
+ 113 659d80221a45 2009-12-11 13:47 -0800 ged
242
305
  Simplified the spec for PGconn#notify, still segfaulting.
243
306
 
244
- 128:127,126 26b614a7ece8 2009-12-11 09:01 -0800 ged
307
+ 112:111,110 26b614a7ece8 2009-12-11 09:01 -0800 ged
245
308
  Merged Mahlon's examples-directory patch from default.
246
309
 
247
- 127:124,125 66234afab283 2009-12-11 09:01 -0800 ged
310
+ 111:108,109 66234afab283 2009-12-11 09:01 -0800 ged
248
311
  Merged Mahlon's notify patch from default.
249
312
 
250
- 126 1e6349a799c3 2009-12-10 10:30 -0800 mahlon
313
+ 110 1e6349a799c3 2009-12-10 10:30 -0800 mahlon
251
314
  Add a sample (usage example) for wait_for_notify().
252
315
 
253
- 125:114 a3434e641f6a 2009-12-10 10:22 -0800 mahlon
316
+ 109:98 a3434e641f6a 2009-12-10 10:22 -0800 mahlon
254
317
  * Small documentation fix for conn.notifies()
255
318
 
256
- 124 59549227d7c3 2009-10-29 06:10 -0700 ged
319
+ 108 59549227d7c3 2009-10-29 06:10 -0700 ged
257
320
  Remove old mkrf config file to avoid confusion
258
321
 
259
- 123 f30139fb0587 2009-10-28 18:14 -0700 ged
322
+ 107 f30139fb0587 2009-10-28 18:14 -0700 ged
260
323
  Write specs for and applied patch #26283; thanks to Nikolai Lugovoi.
261
324
 
262
- 122 a41d4291ffbb 2009-10-28 16:26 -0700 ged
325
+ 106 a41d4291ffbb 2009-10-28 16:26 -0700 ged
263
326
  Fixups after conversion to Mercurial, fixing tests broken by the changes in the previous commit.
264
327
 
265
- 121 91ee1ac36a54 2009-10-28 14:51 +0000 ged
328
+ 105 91ee1ac36a54 2009-10-28 14:51 +0000 ged
266
329
  * Made spec output elide output from the command line by default, and log everything for
267
330
 
268
- 120 0b28f9bd8935 2009-10-17 21:42 +0000 ged
331
+ 104 0b28f9bd8935 2009-10-17 21:42 +0000 ged
269
332
  Applied patch #26277; thanks to Nikolai Lugovoi.
270
333
 
271
- 119 cb5335861c5d 2009-10-16 20:50 +0000 ged
334
+ 103 cb5335861c5d 2009-10-16 20:50 +0000 ged
272
335
  Build and warnings cleanup.
273
336
 
274
- 118 1d001b550715 2009-08-28 10:50 +0000 ged
337
+ 102 1d001b550715 2009-08-28 10:50 +0000 ged
275
338
  Applied patch #26116; thanks to Nikolai Lugovoi.
276
339
 
277
- 117 d67c62945540 2009-08-28 06:22 +0000 ged
340
+ 101 d67c62945540 2009-08-28 06:22 +0000 ged
278
341
  * Use pg_ctl -w instead of sleep for specs
279
342
 
280
- 116 0524dd20fb0f 2009-08-25 00:35 +0000 ged
343
+ 100 0524dd20fb0f 2009-08-25 00:35 +0000 ged
281
344
  * Applied patch from (rubyforge:25931), fixes (rubyforge:22925).
282
345
 
283
- 115 d0267176eb61 2009-07-30 15:52 +0000 ged
346
+ 99 d0267176eb61 2009-07-30 15:52 +0000 ged
284
347
  Making a branch for merging the patches and new specs to test them.
285
348
 
286
- 114[0.8.0] 7fbe4187e9e5 2009-03-28 22:53 +0000 davis
349
+ 98[0.8.0] 7fbe4187e9e5 2009-03-28 22:53 +0000 davis
287
350
  Bump version to 0.8.0
288
351
 
289
- 113 39a19c65b0a0 2009-03-28 19:39 +0000 cfis
352
+ 97 39a19c65b0a0 2009-03-28 19:39 +0000 cfis
290
353
  Don't call file trace on windows.
291
354
 
292
- 112 c4598eee6d1b 2009-03-28 19:33 +0000 cfis
355
+ 96 c4598eee6d1b 2009-03-28 19:33 +0000 cfis
293
356
  Updated VC2008 project
294
357
 
295
- 111 c75883fb5979 2009-03-28 19:32 +0000 cfis
358
+ 95 c75883fb5979 2009-03-28 19:32 +0000 cfis
296
359
  Updated VC2008 project
297
360
 
298
- 110 4192e6d1ccc0 2009-03-28 16:49 +0000 davis
361
+ 94 4192e6d1ccc0 2009-03-28 16:49 +0000 davis
299
362
  Fix socket leak when connection error occurs.
300
363
 
301
- 109 03d6ef0de9ef 2009-03-28 15:42 +0000 davis
364
+ 93 03d6ef0de9ef 2009-03-28 15:42 +0000 davis
302
365
  PGconn#lo_close was calling lo_unlink.
303
366
 
304
- 108 b27b4b4a54eb 2009-03-28 15:37 +0000 davis
367
+ 92 b27b4b4a54eb 2009-03-28 15:37 +0000 davis
305
368
  Change header so it builds correctly on 1.8 and 1.9.
306
369
 
307
- 107 f7b97416c101 2009-03-14 09:22 +0000 cfis
370
+ 91 f7b97416c101 2009-03-14 09:22 +0000 cfis
308
371
  Oops - use ALLOC_N not ALLOC, fixes compile error with VC2008.
309
372
 
310
- 106 c0fd7531850f 2009-03-14 09:14 +0000 cfis
373
+ 90 c0fd7531850f 2009-03-14 09:14 +0000 cfis
311
374
  Ignore rdoc directory, pkg directory, nbproject directory.
312
375
 
313
- 105 c675c7534c4d 2009-03-14 09:13 +0000 cfis
376
+ 89 c675c7534c4d 2009-03-14 09:13 +0000 cfis
314
377
  This rakefile is just used for installing the windows gem.
315
378
 
316
- 104 c3329724ef5b 2009-03-14 09:13 +0000 cfis
379
+ 88 c3329724ef5b 2009-03-14 09:13 +0000 cfis
317
380
  Split out building on mingw to a separate rake file.
318
381
 
319
- 103 01e1dbb950c8 2009-03-14 09:12 +0000 cfis
382
+ 87 01e1dbb950c8 2009-03-14 09:12 +0000 cfis
320
383
  Updated VC2008 projects for Ruby 1.8 and Ruby 1.9 (1.9 not quite setup yet).
321
384
 
322
- 102 677d3eae5b16 2009-03-14 09:11 +0000 cfis
385
+ 86 677d3eae5b16 2009-03-14 09:11 +0000 cfis
323
386
  Added rdoc task so you can type rake rdoc. Makes it easier to debug rdoc documentation.
324
387
 
325
- 101 c33a73c14126 2009-03-14 08:54 +0000 cfis
388
+ 85 c33a73c14126 2009-03-14 08:54 +0000 cfis
326
389
  Windows compatibility - use tcp/ip sockets, use full path names, read files in binary mode.
327
390
 
328
- 100 241d3410b875 2009-03-14 08:48 +0000 cfis
391
+ 84 241d3410b875 2009-03-14 08:48 +0000 cfis
329
392
  Ripple port change through text. Always full path to open spec file.
330
393
 
331
- 99 1bf29d30c16c 2009-03-14 08:29 +0000 cfis
394
+ 83 1bf29d30c16c 2009-03-14 08:29 +0000 cfis
332
395
  First stab at getting test to work on Windows. Windows does not support unix-sockets, so have to use tcp/ip sockets. Also windows requires that command line parameters are quoted with " and not '.
333
396
 
334
- 98 4dae2cabb5ae 2009-03-14 07:47 +0000 cfis
397
+ 82 4dae2cabb5ae 2009-03-14 07:47 +0000 cfis
335
398
  Export Init_pg in windows shared library.
336
399
 
337
- 97 4e9b028c55cd 2009-03-14 07:46 +0000 cfis
400
+ 81 4e9b028c55cd 2009-03-14 07:46 +0000 cfis
338
401
  Fix up memory handling for Windows (match ALLOC with xfree).
339
402
 
340
- 96 4a9ffd0aa913 2009-03-06 18:18 +0000 davis
403
+ 80 4a9ffd0aa913 2009-03-06 18:18 +0000 davis
341
404
  1.9 compatibility fixes.
342
405
 
343
- 95:93 7178d13749b7 2008-12-03 06:52 +0000 davis
406
+ 79 7178d13749b7 2008-12-03 06:52 +0000 davis
344
407
  Add better support for windows build.
345
408
 
346
- 94:92 4c2ea65f2eb9 2008-10-14 05:27 +0000 davis
347
- Merged revisions 175 via svnmerge from
348
-
349
- 93:91 3bf9ef75bae5 2008-10-14 05:25 +0000 davis
409
+ 78 3bf9ef75bae5 2008-10-14 05:25 +0000 davis
350
410
  Revert r172.
351
411
 
352
- 92:86 7e7c22be0302 2008-10-05 19:43 +0000 davis
353
- Merged revisions 169-173 via svnmerge from
354
-
355
- 91 cdf306d84adf 2008-10-05 19:18 +0000 davis
412
+ 77 cdf306d84adf 2008-10-05 19:18 +0000 davis
356
413
  Update spec tests.
357
414
 
358
- 90 0386537bd139 2008-10-05 19:04 +0000 davis
415
+ 76 0386537bd139 2008-10-05 19:04 +0000 davis
359
416
  Include all libraries listed in "pg_config --libs" in the build.
360
417
 
361
- 89 68473ee45e28 2008-10-05 18:47 +0000 davis
418
+ 75 68473ee45e28 2008-10-05 18:47 +0000 davis
362
419
  Fix PGconn#async_exec and PGconn#get_last_result to properly clear all
363
420
 
364
- 88 622eec9c6b0b 2008-10-05 18:01 +0000 davis
421
+ 74 622eec9c6b0b 2008-10-05 18:01 +0000 davis
365
422
  Throw correct exception when result is NULL.
366
423
 
367
- 87:85 8e8045947a9c 2008-08-21 02:48 +0000 davis
424
+ 73 8e8045947a9c 2008-08-21 02:48 +0000 davis
368
425
  Fixed option connection argument in the case of using 7 arguments.
369
426
 
370
- 86:84 3e9dda291ef3 2008-08-17 20:42 +0000 davis
371
- Merged revisions 166 via svnmerge from
372
-
373
- 85:80 c5c44a6267f7 2008-08-17 20:35 +0000 davis
427
+ 72 c5c44a6267f7 2008-08-17 20:35 +0000 davis
374
428
  Typo fix.
375
429
 
376
- 84 3686c9944fe1 2008-08-17 20:27 +0000 davis
377
- Add ext_helper.rb
378
-
379
- 83 ed3294b76bf7 2008-08-17 20:23 +0000 davis
380
- Merged revisions 149-160 via svnmerge from
381
-
382
- 82 ff6af5fc4dc3 2008-08-17 20:05 +0000 davis
383
- Initialized merge tracking via "svnmerge" with revisions "1-146" from
384
-
385
- 81:68 1a7b63bacfee 2008-08-17 19:55 +0000 davis
386
- Initialized merge tracking via "svnmerge" with revisions "1-146" from
387
-
388
- 80 ed8927d7f45d 2008-08-17 19:26 +0000 davis
430
+ 71 ed8927d7f45d 2008-08-17 19:26 +0000 davis
389
431
  Properly protect variables from garbage collection, preventing possible memory
390
432
 
391
- 79 c7c5d25c851c 2008-08-17 18:19 +0000 davis
433
+ 70 c7c5d25c851c 2008-08-17 18:19 +0000 davis
392
434
  Applied build patch from Brett Neumeier. Thanks!
393
435
 
394
- 78 48d2bdfcc630 2008-07-24 05:46 +0000 davis
436
+ 69 48d2bdfcc630 2008-07-24 05:46 +0000 davis
395
437
  Fixed PGconn#setnonblocking
396
438
 
397
- 77 b2e1bc03aca5 2008-07-24 05:33 +0000 davis
439
+ 68 b2e1bc03aca5 2008-07-24 05:33 +0000 davis
398
440
  Changed all temporary allocations to use ALLOC_N (heap
399
441
 
400
- 76 c775c24a75f9 2008-07-08 06:21 +0000 davis
442
+ 67 c775c24a75f9 2008-07-08 06:21 +0000 davis
401
443
  Fix oversight in connect arguments for options and connect_timeout
402
444
 
403
- 75 b86f0f75181e 2008-04-21 17:41 +0000 davis
445
+ 66 b86f0f75181e 2008-04-21 17:41 +0000 davis
404
446
  * backtracked a small piece of the patch, to catch
405
447
 
406
- 74 b3a05d09fb27 2008-04-21 17:24 +0000 davis
448
+ 65 b3a05d09fb27 2008-04-21 17:24 +0000 davis
407
449
  * applied patch from Louis Lavena to improve
408
450
 
409
- 73 7579885aff18 2008-04-21 17:13 +0000 davis
451
+ 64 7579885aff18 2008-04-21 17:13 +0000 davis
410
452
  * added some tests for binary data
411
453
 
412
- 72 de58e242dd99 2008-03-20 19:16 +0000 davis
454
+ 63 de58e242dd99 2008-03-20 19:16 +0000 davis
413
455
  * added PGconn#cancel() -> String
414
456
 
415
- 71 778892302876 2008-03-20 18:20 +0000 davis
457
+ 62 778892302876 2008-03-20 18:20 +0000 davis
416
458
  * added PGconn.connect_start(...) -> PGconn
417
459
 
418
- 70 630cca5e74c1 2008-03-19 21:19 +0000 davis
460
+ 61 630cca5e74c1 2008-03-19 21:19 +0000 davis
419
461
  * forgot to add the expected output to the repository,
420
462
 
421
- 69:67 661ed2fea9e2 2008-03-19 21:17 +0000 davis
463
+ 60 661ed2fea9e2 2008-03-19 21:17 +0000 davis
422
464
  This commmit just cleans up indenting and coding
423
465
 
424
- 68:65 f9cd915ea427 2008-03-18 02:32 +0000 davis
425
- merged ruby-pg/trunk rev 123:146 with ruby-pg/branches/stable
426
-
427
- 67 d821d50b7d95 2008-03-17 21:34 +0000 davis
466
+ 59 d821d50b7d95 2008-03-17 21:34 +0000 davis
428
467
  re-adding mkrf_config.rb
429
468
 
430
- 66:64 a66f44648857 2008-03-17 21:33 +0000 davis
469
+ 58 a66f44648857 2008-03-17 21:33 +0000 davis
431
470
  temporarily removing mkrf_config.rb and will re-add it in the
432
471
 
433
- 65:43 bae01401c92b 2008-03-17 21:29 +0000 davis
434
- merged ruby-pg/trunk rev 123:125 with ruby-pg/branches/stable
435
-
436
- 64 c8752b1a33cd 2008-03-17 17:29 +0000 davis
472
+ 57 c8752b1a33cd 2008-03-17 17:29 +0000 davis
437
473
  * 7.3 compatibility fixes
438
474
 
439
- 63 4aa1190e1873 2008-03-17 16:19 +0000 davis
475
+ 56 4aa1190e1873 2008-03-17 16:19 +0000 davis
440
476
  * Added PGconn#reset_start
441
477
 
442
- 62 1224350cdcb6 2008-03-12 17:39 +0000 davis
478
+ 55 1224350cdcb6 2008-03-12 17:39 +0000 davis
443
479
  * added SQLSTATE test
444
480
 
445
- 61 639f8bf03621 2008-03-12 16:40 +0000 davis
481
+ 54 639f8bf03621 2008-03-12 16:40 +0000 davis
446
482
  * updated the README to reflect the fact that the pg
447
483
 
448
- 60 1fd6244025c5 2008-03-11 21:35 +0000 davis
484
+ 53 1fd6244025c5 2008-03-11 21:35 +0000 davis
449
485
  * tried to make it easier to find the license information
450
486
 
451
- 59 1c4f58ec2264 2008-03-10 23:55 +0000 davis
487
+ 52 1c4f58ec2264 2008-03-10 23:55 +0000 davis
452
488
  * add better checking to make sure that PGconn#trace is passed
453
489
 
454
- 58 e94ce7f92a06 2008-03-10 18:14 +0000 davis
490
+ 51 e94ce7f92a06 2008-03-10 18:14 +0000 davis
455
491
  * corrected handling of bytea when passed in binary format
456
492
 
457
- 57 221e68f16f2d 2008-03-10 17:54 +0000 davis
493
+ 50 221e68f16f2d 2008-03-10 17:54 +0000 davis
458
494
  * make PGconn#trace accept any object that provides
459
495
 
460
- 56 2e722b22b4bc 2008-03-10 17:34 +0000 davis
496
+ 49 2e722b22b4bc 2008-03-10 17:34 +0000 davis
461
497
  * Added PGconn#trace(filename)
462
498
 
463
- 55 9b1308e85390 2008-03-07 18:11 +0000 davis
499
+ 48 9b1308e85390 2008-03-07 18:11 +0000 davis
464
500
  * Added check to find pg_config. If not found, throw an error.
465
501
 
466
- 54 480eae4733ff 2008-02-22 01:26 +0000 davis
502
+ 47 480eae4733ff 2008-02-22 01:26 +0000 davis
467
503
  * fixed PGconn#trace
468
504
 
469
- 53 a6a1c8613b31 2008-02-21 01:05 +0000 davis
505
+ 46 a6a1c8613b31 2008-02-21 01:05 +0000 davis
470
506
  * added PGconn#set_notice_receiver{ |result| ... }
471
507
 
472
- 52 8a6e663a70f7 2008-02-19 19:25 +0000 davis
508
+ 45 8a6e663a70f7 2008-02-19 19:25 +0000 davis
473
509
  quick change
474
510
 
475
- 51 5fc41a8f71f0 2008-02-19 19:06 +0000 davis
511
+ 44 5fc41a8f71f0 2008-02-19 19:06 +0000 davis
476
512
  fix escaping of paths on windows (another try)
477
513
 
478
- 50 a465fe9f95a3 2008-02-18 19:32 +0000 davis
514
+ 43 a465fe9f95a3 2008-02-18 19:32 +0000 davis
479
515
  * attempted some compatibility fixes for windows
480
516
 
481
- 49 5a91f5660c17 2008-02-13 01:24 +0000 davis
517
+ 42 5a91f5660c17 2008-02-13 01:24 +0000 davis
482
518
  * better quoting and error handling when invoking other programs,
483
519
 
484
- 48 5289d5034472 2008-02-13 01:10 +0000 davis
520
+ 41 5289d5034472 2008-02-13 01:10 +0000 davis
485
521
  quote include and library paths
486
522
 
487
- 47 ed53517514b1 2008-02-13 00:22 +0000 davis
523
+ 40 ed53517514b1 2008-02-13 00:22 +0000 davis
488
524
  * created a mkrf_config.rb. I am attempting to transition away from
489
525
 
490
- 46 21bf96d0f702 2008-02-11 18:35 +0000 davis
526
+ 39 21bf96d0f702 2008-02-11 18:35 +0000 davis
491
527
  * windows fixes (thanks Daniel Berger!)
492
528
 
493
- 45 9d0a23cf2113 2008-02-11 17:43 +0000 davis
529
+ 38 9d0a23cf2113 2008-02-11 17:43 +0000 davis
494
530
  * fix temporary postgresql test installation in
495
531
 
496
- 44:42 7fcd53437c79 2008-02-08 18:27 +0000 davis
532
+ 37 7fcd53437c79 2008-02-08 18:27 +0000 davis
497
533
  * properly retrieve binary data from result sets
498
534
 
499
- 43:31 83e5013eccc8 2008-02-05 19:23 +0000 davis
500
- merged ruby-pg/trunk rev 109:121 with ruby-pg/branches/stable
501
-
502
- 42 295c477ed74f 2008-02-05 17:56 +0000 davis
535
+ 36 295c477ed74f 2008-02-05 17:56 +0000 davis
503
536
  fixed bug caused by a typo. HAVE_LOCREATE should have been HAVE_LO_CREATE
504
537
 
505
- 41 ef2214d7f448 2008-02-01 19:33 +0000 davis
538
+ 35 ef2214d7f448 2008-02-01 19:33 +0000 davis
506
539
  * made exec, exec_prepared, send_query, and send_prepared with parameters
507
540
 
508
- 40 7303b8165a37 2008-02-01 18:29 +0000 davis
541
+ 34 7303b8165a37 2008-02-01 18:29 +0000 davis
509
542
  * Corrected a comment.
510
543
 
511
- 39 b3ad2112a91e 2008-01-31 22:11 +0000 davis
544
+ 33 b3ad2112a91e 2008-01-31 22:11 +0000 davis
512
545
  * removed duplicate definition of PGconn.open
513
546
 
514
- 38 ce9c0e52eec6 2008-01-31 21:41 +0000 davis
547
+ 32 ce9c0e52eec6 2008-01-31 21:41 +0000 davis
515
548
  more test improvements
516
549
 
517
- 37 97cbdebaeb11 2008-01-31 21:19 +0000 davis
550
+ 31 97cbdebaeb11 2008-01-31 21:19 +0000 davis
518
551
  renamed pg_spec to pgconn_spec
519
552
 
520
- 36 1cb0537730bf 2008-01-31 21:00 +0000 davis
553
+ 30 1cb0537730bf 2008-01-31 21:00 +0000 davis
521
554
  * Added some tests
522
555
 
523
- 35 29b827c7dbd0 2008-01-30 18:27 +0000 davis
556
+ 29 29b827c7dbd0 2008-01-30 18:27 +0000 davis
524
557
  * added PGconn.conndefaults
525
558
 
526
- 34 c18f38225bc7 2008-01-29 19:44 +0000 davis
559
+ 28 c18f38225bc7 2008-01-29 19:44 +0000 davis
527
560
  corrected the tainting of some strings returned by the database
528
561
 
529
- 33 56cd8c6ee046 2008-01-29 17:50 +0000 davis
562
+ 27 56cd8c6ee046 2008-01-29 17:50 +0000 davis
530
563
  changed gem name from 'ruby-pg' to just 'pg'
531
564
 
532
- 32:30 a9097dead780 2008-01-28 21:19 +0000 davis
565
+ 26 a9097dead780 2008-01-28 21:19 +0000 davis
533
566
  made a pg.gemspec so that people can build 'pg' gem
534
567
 
535
- 31:26 abfe9a457946 2008-01-28 18:50 +0000 davis
536
- merged ruby-pg/trunk rev 104 with ruby-pg/branches/stable
537
-
538
- 30 cfdcfcd445ab 2008-01-26 00:20 +0000 davis
568
+ 25 cfdcfcd445ab 2008-01-26 00:20 +0000 davis
539
569
  changed exception type for empty data structures
540
570
 
541
- 29 81cd03f8a2c3 2008-01-25 23:42 +0000 davis
571
+ 24 81cd03f8a2c3 2008-01-25 23:42 +0000 davis
542
572
  * added PGconn#async_exec and alias PGconn#async_query
543
573
 
544
- 28 29d775393e88 2008-01-25 00:59 +0000 davis
574
+ 23 29d775393e88 2008-01-25 00:59 +0000 davis
545
575
  added PGresult#cmdtuples as alias for PGresult#cmd_tuples
546
576
 
547
- 27:25 eac7df0aa291 2008-01-25 00:46 +0000 davis
577
+ 22 eac7df0aa291 2008-01-25 00:46 +0000 davis
548
578
  Added:
549
579
 
550
- 26:24 c7ddb58579d3 2008-01-24 23:07 +0000 davis
551
- moved a few minor changes over before release
552
-
553
- 25:23 7908e778e7c3 2008-01-24 23:00 +0000 davis
580
+ 21 7908e778e7c3 2008-01-24 23:00 +0000 davis
554
581
  Added README.windows and README.OS_X
555
582
 
556
- 24:8 8df9da92380e 2008-01-24 18:45 +0000 davis
557
- merged revision 77:HEAD of ruby-pg/trunk to ruby-pg/branches/stable
558
-
559
- 23 7cc13a1f3010 2008-01-24 17:48 +0000 davis
583
+ 20 7cc13a1f3010 2008-01-24 17:48 +0000 davis
560
584
  Another change to improve windows compatibility.
561
585
 
562
- 22 ee0577472b67 2008-01-24 02:07 +0000 davis
586
+ 19 ee0577472b67 2008-01-24 02:07 +0000 davis
563
587
  fixed typo
564
588
 
565
- 21 eaf3b1825d56 2008-01-24 02:05 +0000 davis
589
+ 18 eaf3b1825d56 2008-01-24 02:05 +0000 davis
566
590
  My previous fix for OS X compatibility didn't work well enough.
567
591
 
568
- 20 12b2568a0ada 2008-01-23 23:18 +0000 davis
592
+ 17 12b2568a0ada 2008-01-23 23:18 +0000 davis
569
593
  * had to include that file conditionally
570
594
 
571
- 19 34dd04d21a78 2008-01-23 23:04 +0000 davis
595
+ 16 34dd04d21a78 2008-01-23 23:04 +0000 davis
572
596
  * included an additional file so that it works with
573
597
 
574
- 18 4cf66b7302bf 2008-01-23 21:42 +0000 davis
598
+ 15 4cf66b7302bf 2008-01-23 21:42 +0000 davis
575
599
  * added PGconn.quote_ident to quote identifiers
576
600
 
577
- 17 081e4d8ee394 2008-01-22 18:48 +0000 davis
601
+ 14 081e4d8ee394 2008-01-22 18:48 +0000 davis
578
602
  * made PGconn#query alias for PGconn#exec
579
603
 
580
- 16 4774578059e1 2008-01-22 17:52 +0000 davis
604
+ 13 4774578059e1 2008-01-22 17:52 +0000 davis
581
605
  * Detect if compiling on OS X, and if so set $ARCHFLAGS correctly.
582
606
 
583
- 15 204f4b591614 2008-01-21 18:53 +0000 davis
607
+ 12 204f4b591614 2008-01-21 18:53 +0000 davis
584
608
  made conn.block cleaner and it should be more portable.
585
609
 
586
- 14 449d54289f07 2008-01-18 18:10 +0000 davis
610
+ 11 449d54289f07 2008-01-18 18:10 +0000 davis
587
611
  Miscellaneous changes:
588
612
 
589
- 13 aadd4008d2e3 2008-01-17 23:18 +0000 davis
613
+ 10 aadd4008d2e3 2008-01-17 23:18 +0000 davis
590
614
  started creating a rspec test, more tests to come later
591
615
 
592
- 12 4f276bb9c4b1 2008-01-17 23:11 +0000 davis
616
+ 9 4f276bb9c4b1 2008-01-17 23:11 +0000 davis
593
617
  properly free memory in conn.get_copy_data
594
618
 
595
- 11 95d9ff13c269 2008-01-15 21:24 +0000 davis
619
+ 8 95d9ff13c269 2008-01-15 21:24 +0000 davis
596
620
  Added conn.block( [ timeout ] ) -> Boolean
597
621
 
598
- 10 4cefa3b1ecbb 2008-01-14 23:23 +0000 davis
622
+ 7 4cefa3b1ecbb 2008-01-14 23:23 +0000 davis
599
623
  Added conn.transaction{ |conn| ... }
600
624
 
601
- 9:6 ae8c3b66c48d 2008-01-14 19:22 +0000 davis
625
+ 6 ae8c3b66c48d 2008-01-14 19:22 +0000 davis
602
626
  Support for PostgreSQL 7.3.
603
627
 
604
- 8 8eb1346cb9aa 2008-01-09 02:08 +0000 davis
605
- removed extra directory that was left in the merge
606
-
607
- 7:0 d6d19e5371d4 2008-01-09 01:59 +0000 davis
608
- merged ruby-pg/trunk rev 69 to ruby-pg/branches/stable
609
-
610
- 6 1fd8b2aaac4c 2008-01-08 23:19 +0000 davis
628
+ 5 1fd8b2aaac4c 2008-01-08 23:19 +0000 davis
611
629
  Added:
612
630
 
613
- 5 5c0a63028583 2008-01-08 22:26 +0000 davis
631
+ 4 5c0a63028583 2008-01-08 22:26 +0000 davis
614
632
  Added:
615
633
 
616
- 4 40270de77f48 2008-01-07 23:30 +0000 davis
634
+ 3 40270de77f48 2008-01-07 23:30 +0000 davis
617
635
  fixed a few method defines for async query processing
618
636
 
619
- 3 d05d9f2042d7 2008-01-07 22:52 +0000 davis
637
+ 2 d05d9f2042d7 2008-01-07 22:52 +0000 davis
620
638
  Change conn.exec to use PQexec if no parameters are passed,
621
639
 
622
- 2 a531a7bc9241 2008-01-07 22:31 +0000 davis
640
+ 1 a531a7bc9241 2008-01-07 22:31 +0000 davis
623
641
  Cleanup after the repository reorganization.
624
642
 
625
- 1:-1 aafc8cf17567 2008-01-07 22:16 +0000 davis
626
- Split 'ruby-pg' module and 'postgres' module
627
-
628
- 0 7716d24a143b 2008-01-07 22:16 +0000 davis
643
+ 0 aafc8cf17567 2008-01-07 22:16 +0000 davis
629
644
  Split 'ruby-pg' module and 'postgres' module
630
645
 
@@ -4,6 +4,10 @@
4
4
 
5
5
  #include <stdlib.h>
6
6
 
7
+ #ifdef RUBY_EXTCONF_H
8
+ #include RUBY_EXTCONF_H
9
+ #endif
10
+
7
11
  #include "libpq-fe.h"
8
12
  #include "libpq/libpq-fs.h" /* large-object interface */
9
13
 
data/ext/pg.h CHANGED
@@ -1,3 +1,6 @@
1
+ #ifndef PG_H_C98VS4AD
2
+ #define PG_H_C98VS4AD
3
+
1
4
  #include <stdio.h>
2
5
  #include <stdlib.h>
3
6
  #include <sys/types.h>
@@ -47,3 +50,4 @@ __declspec(dllexport)
47
50
  #endif
48
51
  void Init_pg_ext(void);
49
52
 
53
+ #endif /* end of include guard: PG_H_C98VS4AD */
data/lib/pg.rb CHANGED
@@ -1,18 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rbconfig'
4
-
5
- # Load the correct version if it's a Windows binary gem
6
- if RUBY_PLATFORM =~/(mswin|mingw)/i
7
- major_minor = RUBY_VERSION[ /^(\d+\.\d+)/ ] or
8
- raise "Oops, can't extract the major/minor version from #{RUBY_VERSION.dump}"
9
-
10
- begin
3
+ begin
4
+ require 'pg_ext'
5
+ rescue LoadError => err
6
+ # If it's a Windows binary gem, try the <major>.<minor> subdirectory
7
+ if RUBY_PLATFORM =~/(mswin|mingw)/i
8
+ major_minor = RUBY_VERSION[ /^(\d+\.\d+)/ ] or
9
+ raise "Oops, can't extract the major/minor version from #{RUBY_VERSION.dump}"
11
10
  require "#{major_minor}/pg_ext"
12
- rescue LoadError
13
- require 'pg_ext'
11
+ else
12
+ raise
14
13
  end
15
- else
16
- require 'pg_ext'
14
+
17
15
  end
18
16
 
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 10
9
8
  - 1
10
- version: 0.10.1pre209
9
+ version: 0.10.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Jeff Davis
@@ -36,7 +35,7 @@ cert_chain:
36
35
  cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
37
36
  -----END CERTIFICATE-----
38
37
 
39
- date: 2010-12-22 00:00:00 -08:00
38
+ date: 2011-01-19 00:00:00 -08:00
40
39
  default_executable:
41
40
  dependencies: []
42
41
 
@@ -118,7 +117,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
117
  requirements:
119
118
  - - ">="
120
119
  - !ruby/object:Gem::Version
121
- hash: 57
122
120
  segments:
123
121
  - 1
124
122
  - 8
@@ -129,7 +127,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
127
  requirements:
130
128
  - - ">="
131
129
  - !ruby/object:Gem::Version
132
- hash: 3
133
130
  segments:
134
131
  - 0
135
132
  version: "0"
metadata.gz.sig CHANGED
Binary file