pg 1.1.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/ChangeLog +0 -6595
  5. data/History.rdoc +63 -0
  6. data/Manifest.txt +3 -2
  7. data/README-Windows.rdoc +4 -4
  8. data/README.ja.rdoc +1 -2
  9. data/README.rdoc +43 -8
  10. data/Rakefile +3 -3
  11. data/Rakefile.cross +6 -3
  12. data/ext/errorcodes.def +64 -0
  13. data/ext/errorcodes.txt +18 -2
  14. data/ext/extconf.rb +6 -6
  15. data/ext/pg.c +132 -95
  16. data/ext/pg.h +20 -18
  17. data/ext/pg_binary_decoder.c +9 -9
  18. data/ext/pg_binary_encoder.c +13 -12
  19. data/ext/pg_coder.c +5 -5
  20. data/ext/pg_connection.c +388 -298
  21. data/ext/pg_copy_coder.c +5 -3
  22. data/ext/pg_record_coder.c +490 -0
  23. data/ext/pg_result.c +269 -123
  24. data/ext/pg_text_decoder.c +14 -8
  25. data/ext/pg_text_encoder.c +180 -48
  26. data/ext/pg_tuple.c +14 -6
  27. data/ext/pg_type_map.c +1 -1
  28. data/ext/pg_type_map_all_strings.c +4 -4
  29. data/ext/pg_type_map_by_class.c +4 -3
  30. data/ext/pg_type_map_by_column.c +7 -6
  31. data/ext/pg_type_map_by_mri_type.c +1 -1
  32. data/ext/pg_type_map_by_oid.c +3 -2
  33. data/ext/pg_type_map_in_ruby.c +1 -1
  34. data/ext/{util.c → pg_util.c} +5 -5
  35. data/ext/{util.h → pg_util.h} +0 -0
  36. data/lib/pg.rb +2 -3
  37. data/lib/pg/basic_type_mapping.rb +79 -16
  38. data/lib/pg/binary_decoder.rb +1 -0
  39. data/lib/pg/coder.rb +22 -1
  40. data/lib/pg/connection.rb +2 -2
  41. data/lib/pg/constants.rb +1 -0
  42. data/lib/pg/exceptions.rb +1 -0
  43. data/lib/pg/result.rb +13 -1
  44. data/lib/pg/text_decoder.rb +2 -3
  45. data/lib/pg/text_encoder.rb +8 -18
  46. data/lib/pg/type_map_by_column.rb +2 -1
  47. data/spec/helpers.rb +10 -8
  48. data/spec/pg/basic_type_mapping_spec.rb +150 -13
  49. data/spec/pg/connection_spec.rb +89 -50
  50. data/spec/pg/result_spec.rb +193 -3
  51. data/spec/pg/tuple_spec.rb +55 -2
  52. data/spec/pg/type_map_by_column_spec.rb +5 -1
  53. data/spec/pg/type_spec.rb +180 -6
  54. metadata +17 -15
  55. metadata.gz.sig +0 -0
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: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -35,7 +35,7 @@ cert_chain:
35
35
  v4qqqa27Bs468d6SoPxjSm8a2mM9HZ4OdWhq4tFsbTeXDVquCfi64OTEaTt2xQdR
36
36
  JnC4lpJfCP6aCXa5h2XAQfPSH636cQap
37
37
  -----END CERTIFICATE-----
38
- date: 2019-01-09 00:00:00.000000000 Z
38
+ date: 2019-12-24 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: hoe-mercurial
@@ -57,14 +57,14 @@ dependencies:
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.10'
60
+ version: '0.9'
61
61
  type: :development
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.10'
67
+ version: '0.9'
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: hoe-highline
70
70
  requirement: !ruby/object:Gem::Requirement
@@ -155,14 +155,14 @@ dependencies:
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '3.16'
158
+ version: '3.20'
159
159
  type: :development
160
160
  prerelease: false
161
161
  version_requirements: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: '3.16'
165
+ version: '3.20'
166
166
  description: |-
167
167
  Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
168
168
 
@@ -208,6 +208,7 @@ extra_rdoc_files:
208
208
  - ext/pg_connection.c
209
209
  - ext/pg_copy_coder.c
210
210
  - ext/pg_errors.c
211
+ - ext/pg_record_coder.c
211
212
  - ext/pg_result.c
212
213
  - ext/pg_text_decoder.c
213
214
  - ext/pg_text_encoder.c
@@ -219,7 +220,7 @@ extra_rdoc_files:
219
220
  - ext/pg_type_map_by_mri_type.c
220
221
  - ext/pg_type_map_by_oid.c
221
222
  - ext/pg_type_map_in_ruby.c
222
- - ext/util.c
223
+ - ext/pg_util.c
223
224
  files:
224
225
  - ".gemtest"
225
226
  - BSDL
@@ -249,6 +250,7 @@ files:
249
250
  - ext/pg_connection.c
250
251
  - ext/pg_copy_coder.c
251
252
  - ext/pg_errors.c
253
+ - ext/pg_record_coder.c
252
254
  - ext/pg_result.c
253
255
  - ext/pg_text_decoder.c
254
256
  - ext/pg_text_encoder.c
@@ -260,8 +262,8 @@ files:
260
262
  - ext/pg_type_map_by_mri_type.c
261
263
  - ext/pg_type_map_by_oid.c
262
264
  - ext/pg_type_map_in_ruby.c
263
- - ext/util.c
264
- - ext/util.h
265
+ - ext/pg_util.c
266
+ - ext/pg_util.h
265
267
  - ext/vc/pg.sln
266
268
  - ext/vc/pg_18/pg.vcproj
267
269
  - ext/vc/pg_19/pg_19.vcproj
@@ -293,10 +295,11 @@ files:
293
295
  - spec/pg/type_map_spec.rb
294
296
  - spec/pg/type_spec.rb
295
297
  - spec/pg_spec.rb
296
- homepage: https://bitbucket.org/ged/ruby-pg
298
+ homepage: https://github.com/ged/ruby-pg
297
299
  licenses:
298
- - BSD-3-Clause
299
- metadata: {}
300
+ - BSD-2-Clause
301
+ metadata:
302
+ homepage_uri: https://github.com/ged/ruby-pg
300
303
  post_install_message:
301
304
  rdoc_options:
302
305
  - "--main"
@@ -307,15 +310,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
307
310
  requirements:
308
311
  - - ">="
309
312
  - !ruby/object:Gem::Version
310
- version: 2.0.0
313
+ version: '2.2'
311
314
  required_rubygems_version: !ruby/object:Gem::Requirement
312
315
  requirements:
313
316
  - - ">="
314
317
  - !ruby/object:Gem::Version
315
318
  version: '0'
316
319
  requirements: []
317
- rubyforge_project:
318
- rubygems_version: 2.7.8
320
+ rubygems_version: 3.0.6
319
321
  signing_key:
320
322
  specification_version: 4
321
323
  summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
metadata.gz.sig CHANGED
Binary file