pg 1.0.0 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/Gemfile +20 -0
  4. data/History.md +932 -0
  5. data/Manifest.txt +8 -3
  6. data/README-Windows.rdoc +4 -4
  7. data/README.ja.md +300 -0
  8. data/README.md +286 -0
  9. data/Rakefile +41 -138
  10. data/Rakefile.cross +71 -66
  11. data/certs/ged.pem +24 -0
  12. data/certs/kanis@comcard.de.pem +20 -0
  13. data/certs/larskanis-2022.pem +26 -0
  14. data/certs/larskanis-2023.pem +24 -0
  15. data/certs/larskanis-2024.pem +24 -0
  16. data/ext/errorcodes.def +84 -5
  17. data/ext/errorcodes.rb +1 -1
  18. data/ext/errorcodes.txt +23 -6
  19. data/ext/extconf.rb +109 -25
  20. data/ext/gvl_wrappers.c +4 -0
  21. data/ext/gvl_wrappers.h +23 -0
  22. data/ext/pg.c +213 -155
  23. data/ext/pg.h +89 -23
  24. data/ext/pg_binary_decoder.c +164 -16
  25. data/ext/pg_binary_encoder.c +238 -13
  26. data/ext/pg_coder.c +159 -35
  27. data/ext/pg_connection.c +1584 -967
  28. data/ext/pg_copy_coder.c +373 -43
  29. data/ext/pg_errors.c +1 -1
  30. data/ext/pg_record_coder.c +522 -0
  31. data/ext/pg_result.c +710 -217
  32. data/ext/pg_text_decoder.c +630 -43
  33. data/ext/pg_text_encoder.c +222 -72
  34. data/ext/pg_tuple.c +572 -0
  35. data/ext/pg_type_map.c +45 -11
  36. data/ext/pg_type_map_all_strings.c +21 -7
  37. data/ext/pg_type_map_by_class.c +59 -27
  38. data/ext/pg_type_map_by_column.c +80 -37
  39. data/ext/pg_type_map_by_mri_type.c +49 -20
  40. data/ext/pg_type_map_by_oid.c +62 -29
  41. data/ext/pg_type_map_in_ruby.c +56 -22
  42. data/ext/{util.c → pg_util.c} +12 -12
  43. data/ext/{util.h → pg_util.h} +2 -2
  44. data/lib/pg/basic_type_map_based_on_result.rb +67 -0
  45. data/lib/pg/basic_type_map_for_queries.rb +202 -0
  46. data/lib/pg/basic_type_map_for_results.rb +104 -0
  47. data/lib/pg/basic_type_registry.rb +311 -0
  48. data/lib/pg/binary_decoder/date.rb +9 -0
  49. data/lib/pg/binary_decoder/timestamp.rb +26 -0
  50. data/lib/pg/binary_encoder/timestamp.rb +20 -0
  51. data/lib/pg/coder.rb +36 -13
  52. data/lib/pg/connection.rb +769 -70
  53. data/lib/pg/exceptions.rb +22 -2
  54. data/lib/pg/result.rb +14 -2
  55. data/lib/pg/text_decoder/date.rb +21 -0
  56. data/lib/pg/text_decoder/inet.rb +9 -0
  57. data/lib/pg/text_decoder/json.rb +17 -0
  58. data/lib/pg/text_decoder/numeric.rb +9 -0
  59. data/lib/pg/text_decoder/timestamp.rb +30 -0
  60. data/lib/pg/text_encoder/date.rb +13 -0
  61. data/lib/pg/text_encoder/inet.rb +31 -0
  62. data/lib/pg/text_encoder/json.rb +17 -0
  63. data/lib/pg/text_encoder/numeric.rb +9 -0
  64. data/lib/pg/text_encoder/timestamp.rb +24 -0
  65. data/lib/pg/tuple.rb +30 -0
  66. data/lib/pg/type_map_by_column.rb +3 -2
  67. data/lib/pg/version.rb +4 -0
  68. data/lib/pg.rb +106 -39
  69. data/misc/openssl-pg-segfault.rb +31 -0
  70. data/misc/postgres/History.txt +9 -0
  71. data/misc/postgres/Manifest.txt +5 -0
  72. data/misc/postgres/README.txt +21 -0
  73. data/misc/postgres/Rakefile +21 -0
  74. data/misc/postgres/lib/postgres.rb +16 -0
  75. data/misc/ruby-pg/History.txt +9 -0
  76. data/misc/ruby-pg/Manifest.txt +5 -0
  77. data/misc/ruby-pg/README.txt +21 -0
  78. data/misc/ruby-pg/Rakefile +21 -0
  79. data/misc/ruby-pg/lib/ruby/pg.rb +16 -0
  80. data/pg.gemspec +36 -0
  81. data/rakelib/task_extension.rb +46 -0
  82. data/sample/array_insert.rb +20 -0
  83. data/sample/async_api.rb +102 -0
  84. data/sample/async_copyto.rb +39 -0
  85. data/sample/async_mixed.rb +56 -0
  86. data/sample/check_conn.rb +21 -0
  87. data/sample/copydata.rb +71 -0
  88. data/sample/copyfrom.rb +81 -0
  89. data/sample/copyto.rb +19 -0
  90. data/sample/cursor.rb +21 -0
  91. data/sample/disk_usage_report.rb +177 -0
  92. data/sample/issue-119.rb +94 -0
  93. data/sample/losample.rb +69 -0
  94. data/sample/minimal-testcase.rb +17 -0
  95. data/sample/notify_wait.rb +72 -0
  96. data/sample/pg_statistics.rb +285 -0
  97. data/sample/replication_monitor.rb +222 -0
  98. data/sample/test_binary_values.rb +33 -0
  99. data/sample/wal_shipper.rb +434 -0
  100. data/sample/warehouse_partitions.rb +311 -0
  101. data.tar.gz.sig +0 -0
  102. metadata +138 -223
  103. metadata.gz.sig +0 -0
  104. data/.gemtest +0 -0
  105. data/ChangeLog +0 -6595
  106. data/History.rdoc +0 -422
  107. data/README.ja.rdoc +0 -14
  108. data/README.rdoc +0 -167
  109. data/lib/pg/basic_type_mapping.rb +0 -426
  110. data/lib/pg/constants.rb +0 -11
  111. data/lib/pg/text_decoder.rb +0 -51
  112. data/lib/pg/text_encoder.rb +0 -35
  113. data/spec/data/expected_trace.out +0 -26
  114. data/spec/data/random_binary_data +0 -0
  115. data/spec/helpers.rb +0 -348
  116. data/spec/pg/basic_type_mapping_spec.rb +0 -305
  117. data/spec/pg/connection_spec.rb +0 -1719
  118. data/spec/pg/result_spec.rb +0 -456
  119. data/spec/pg/type_map_by_class_spec.rb +0 -138
  120. data/spec/pg/type_map_by_column_spec.rb +0 -222
  121. data/spec/pg/type_map_by_mri_type_spec.rb +0 -136
  122. data/spec/pg/type_map_by_oid_spec.rb +0 -149
  123. data/spec/pg/type_map_in_ruby_spec.rb +0 -164
  124. data/spec/pg/type_map_spec.rb +0 -22
  125. data/spec/pg/type_spec.rb +0 -777
  126. data/spec/pg_spec.rb +0 -50
metadata CHANGED
@@ -1,195 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
8
8
  - Lars Kanis
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain:
12
11
  - |
13
12
  -----BEGIN CERTIFICATE-----
14
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
15
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
16
- HhcNMTcwOTI3MDAzMDQ0WhcNMTgwOTI3MDAzMDQ0WjA+MQwwCgYDVQQDDANnZWQx
17
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
18
- ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
19
- 83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
20
- ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+UmbkU75V7Dy1JCaUOyizEt
21
- TH5UHsOtUU7k9TYARt/TgYZKuaoAMZZd5qyVqhF1vV+7/Qzmp89NGflXf2xYP26a
22
- 4MAX2qqKX/FKXqmFO+AGsbwYTEds1mksBF3fGsFgsQWxftG8GfZQ9+Cyu2+l1eOw
23
- cZ+lPcg834G9DrqW2zhqUoLr1MTly4pqxYGb7XoDhoR7dd1kFE2a067+DzWC/ADt
24
- +QkcqWUm5oh1fN0eqr7NsZlVJDulFgdiiYPQiIN7UNsii4Wc9aZqBoGcYfBeQNPZ
25
- soo/6za/bWajOKUmDhpqvaiRv9EDpVLzuj53uDoukMMwxCMfgb04+ckQ0t2G7wqc
26
- /D+K9JW9DDs3Yjgv9k4h7YMh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x0i3G4TNNIYziVos
33
+ 5wFER6XhvvLDFAMh/jMg+s7Wd5SbSHgHNSUaUGVtdWkVPOer6oF0aLdZUR3CETkn
34
+ 5nWXZma/BUd3YgYA/Xumc6QQqIS4p7mr
38
35
  -----END CERTIFICATE-----
39
- date: 2018-01-10 00:00:00.000000000 Z
40
- dependencies:
41
- - !ruby/object:Gem::Dependency
42
- name: hoe-mercurial
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.4'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.4'
55
- - !ruby/object:Gem::Dependency
56
- name: hoe-deveiate
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '0.9'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '0.9'
69
- - !ruby/object:Gem::Dependency
70
- name: hoe-highline
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.2'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.2'
83
- - !ruby/object:Gem::Dependency
84
- name: rake-compiler
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.0'
97
- - !ruby/object:Gem::Dependency
98
- name: rake-compiler-dock
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '0.6'
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- version: 0.6.2
107
- type: :development
108
- prerelease: false
109
- version_requirements: !ruby/object:Gem::Requirement
110
- requirements:
111
- - - "~>"
112
- - !ruby/object:Gem::Version
113
- version: '0.6'
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: 0.6.2
117
- - !ruby/object:Gem::Dependency
118
- name: hoe-bundler
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '1.0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '1.0'
131
- - !ruby/object:Gem::Dependency
132
- name: rspec
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '3.5'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '3.5'
145
- - !ruby/object:Gem::Dependency
146
- name: rdoc
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '5.1'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '5.1'
159
- - !ruby/object:Gem::Dependency
160
- name: hoe
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: '3.16'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - "~>"
171
- - !ruby/object:Gem::Version
172
- version: '3.16'
173
- description: |-
174
- Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
175
-
176
- It works with {PostgreSQL 9.2 and later}[http://www.postgresql.org/support/versioning/].
177
-
178
- A small example usage:
179
-
180
- #!/usr/bin/env ruby
181
-
182
- require 'pg'
183
-
184
- # Output a table of current connections to the DB
185
- conn = PG.connect( dbname: 'sales' )
186
- conn.exec( "SELECT * FROM pg_stat_activity" ) do |result|
187
- puts " PID | User | Query"
188
- result.each do |row|
189
- puts " %7d | %-16s | %s " %
190
- row.values_at('procpid', 'usename', 'current_query')
191
- end
192
- end
36
+ date: 2024-10-24 00:00:00.000000000 Z
37
+ dependencies: []
38
+ description: Pg is the Ruby interface to the PostgreSQL RDBMS. It works with PostgreSQL
39
+ 9.3 and later.
193
40
  email:
194
41
  - ged@FaerieMUD.org
195
42
  - lars@greiz-reinsdorf.de
@@ -198,26 +45,26 @@ extensions:
198
45
  - ext/extconf.rb
199
46
  extra_rdoc_files:
200
47
  - Contributors.rdoc
201
- - History.rdoc
202
- - Manifest.txt
48
+ - History.md
203
49
  - README-OS_X.rdoc
204
50
  - README-Windows.rdoc
205
- - README.ja.rdoc
206
- - README.rdoc
207
- - ext/errorcodes.txt
208
- - POSTGRES
209
- - LICENSE
51
+ - README.ja.md
52
+ - README.md
210
53
  - ext/gvl_wrappers.c
54
+ - ext/gvl_wrappers.h
211
55
  - ext/pg.c
56
+ - ext/pg.h
212
57
  - ext/pg_binary_decoder.c
213
58
  - ext/pg_binary_encoder.c
214
59
  - ext/pg_coder.c
215
60
  - ext/pg_connection.c
216
61
  - ext/pg_copy_coder.c
217
62
  - ext/pg_errors.c
63
+ - ext/pg_record_coder.c
218
64
  - ext/pg_result.c
219
65
  - ext/pg_text_decoder.c
220
66
  - ext/pg_text_encoder.c
67
+ - ext/pg_tuple.c
221
68
  - ext/pg_type_map.c
222
69
  - ext/pg_type_map_all_strings.c
223
70
  - ext/pg_type_map_by_class.c
@@ -225,22 +72,52 @@ extra_rdoc_files:
225
72
  - ext/pg_type_map_by_mri_type.c
226
73
  - ext/pg_type_map_by_oid.c
227
74
  - ext/pg_type_map_in_ruby.c
228
- - ext/util.c
75
+ - ext/pg_util.c
76
+ - ext/pg_util.h
77
+ - lib/pg.rb
78
+ - lib/pg/basic_type_map_based_on_result.rb
79
+ - lib/pg/basic_type_map_for_queries.rb
80
+ - lib/pg/basic_type_map_for_results.rb
81
+ - lib/pg/basic_type_registry.rb
82
+ - lib/pg/binary_decoder/date.rb
83
+ - lib/pg/binary_decoder/timestamp.rb
84
+ - lib/pg/binary_encoder/timestamp.rb
85
+ - lib/pg/coder.rb
86
+ - lib/pg/connection.rb
87
+ - lib/pg/exceptions.rb
88
+ - lib/pg/result.rb
89
+ - lib/pg/text_decoder/date.rb
90
+ - lib/pg/text_decoder/inet.rb
91
+ - lib/pg/text_decoder/json.rb
92
+ - lib/pg/text_decoder/numeric.rb
93
+ - lib/pg/text_decoder/timestamp.rb
94
+ - lib/pg/text_encoder/date.rb
95
+ - lib/pg/text_encoder/inet.rb
96
+ - lib/pg/text_encoder/json.rb
97
+ - lib/pg/text_encoder/numeric.rb
98
+ - lib/pg/text_encoder/timestamp.rb
99
+ - lib/pg/tuple.rb
100
+ - lib/pg/type_map_by_column.rb
101
+ - lib/pg/version.rb
229
102
  files:
230
- - ".gemtest"
231
103
  - BSDL
232
- - ChangeLog
233
104
  - Contributors.rdoc
234
- - History.rdoc
105
+ - Gemfile
106
+ - History.md
235
107
  - LICENSE
236
108
  - Manifest.txt
237
109
  - POSTGRES
238
110
  - README-OS_X.rdoc
239
111
  - README-Windows.rdoc
240
- - README.ja.rdoc
241
- - README.rdoc
112
+ - README.ja.md
113
+ - README.md
242
114
  - Rakefile
243
115
  - Rakefile.cross
116
+ - certs/ged.pem
117
+ - certs/kanis@comcard.de.pem
118
+ - certs/larskanis-2022.pem
119
+ - certs/larskanis-2023.pem
120
+ - certs/larskanis-2024.pem
244
121
  - ext/errorcodes.def
245
122
  - ext/errorcodes.rb
246
123
  - ext/errorcodes.txt
@@ -255,9 +132,11 @@ files:
255
132
  - ext/pg_connection.c
256
133
  - ext/pg_copy_coder.c
257
134
  - ext/pg_errors.c
135
+ - ext/pg_record_coder.c
258
136
  - ext/pg_result.c
259
137
  - ext/pg_text_decoder.c
260
138
  - ext/pg_text_encoder.c
139
+ - ext/pg_tuple.c
261
140
  - ext/pg_type_map.c
262
141
  - ext/pg_type_map_all_strings.c
263
142
  - ext/pg_type_map_by_class.c
@@ -265,59 +144,95 @@ files:
265
144
  - ext/pg_type_map_by_mri_type.c
266
145
  - ext/pg_type_map_by_oid.c
267
146
  - ext/pg_type_map_in_ruby.c
268
- - ext/util.c
269
- - ext/util.h
147
+ - ext/pg_util.c
148
+ - ext/pg_util.h
270
149
  - ext/vc/pg.sln
271
150
  - ext/vc/pg_18/pg.vcproj
272
151
  - ext/vc/pg_19/pg_19.vcproj
273
152
  - lib/pg.rb
274
- - lib/pg/basic_type_mapping.rb
153
+ - lib/pg/basic_type_map_based_on_result.rb
154
+ - lib/pg/basic_type_map_for_queries.rb
155
+ - lib/pg/basic_type_map_for_results.rb
156
+ - lib/pg/basic_type_registry.rb
157
+ - lib/pg/binary_decoder/date.rb
158
+ - lib/pg/binary_decoder/timestamp.rb
159
+ - lib/pg/binary_encoder/timestamp.rb
275
160
  - lib/pg/coder.rb
276
161
  - lib/pg/connection.rb
277
- - lib/pg/constants.rb
278
162
  - lib/pg/exceptions.rb
279
163
  - lib/pg/result.rb
280
- - lib/pg/text_decoder.rb
281
- - lib/pg/text_encoder.rb
164
+ - lib/pg/text_decoder/date.rb
165
+ - lib/pg/text_decoder/inet.rb
166
+ - lib/pg/text_decoder/json.rb
167
+ - lib/pg/text_decoder/numeric.rb
168
+ - lib/pg/text_decoder/timestamp.rb
169
+ - lib/pg/text_encoder/date.rb
170
+ - lib/pg/text_encoder/inet.rb
171
+ - lib/pg/text_encoder/json.rb
172
+ - lib/pg/text_encoder/numeric.rb
173
+ - lib/pg/text_encoder/timestamp.rb
174
+ - lib/pg/tuple.rb
282
175
  - lib/pg/type_map_by_column.rb
283
- - spec/data/expected_trace.out
284
- - spec/data/random_binary_data
285
- - spec/helpers.rb
286
- - spec/pg/basic_type_mapping_spec.rb
287
- - spec/pg/connection_spec.rb
288
- - spec/pg/result_spec.rb
289
- - spec/pg/type_map_by_class_spec.rb
290
- - spec/pg/type_map_by_column_spec.rb
291
- - spec/pg/type_map_by_mri_type_spec.rb
292
- - spec/pg/type_map_by_oid_spec.rb
293
- - spec/pg/type_map_in_ruby_spec.rb
294
- - spec/pg/type_map_spec.rb
295
- - spec/pg/type_spec.rb
296
- - spec/pg_spec.rb
297
- homepage: https://bitbucket.org/ged/ruby-pg
176
+ - lib/pg/version.rb
177
+ - misc/openssl-pg-segfault.rb
178
+ - misc/postgres/History.txt
179
+ - misc/postgres/Manifest.txt
180
+ - misc/postgres/README.txt
181
+ - misc/postgres/Rakefile
182
+ - misc/postgres/lib/postgres.rb
183
+ - misc/ruby-pg/History.txt
184
+ - misc/ruby-pg/Manifest.txt
185
+ - misc/ruby-pg/README.txt
186
+ - misc/ruby-pg/Rakefile
187
+ - misc/ruby-pg/lib/ruby/pg.rb
188
+ - pg.gemspec
189
+ - rakelib/task_extension.rb
190
+ - sample/array_insert.rb
191
+ - sample/async_api.rb
192
+ - sample/async_copyto.rb
193
+ - sample/async_mixed.rb
194
+ - sample/check_conn.rb
195
+ - sample/copydata.rb
196
+ - sample/copyfrom.rb
197
+ - sample/copyto.rb
198
+ - sample/cursor.rb
199
+ - sample/disk_usage_report.rb
200
+ - sample/issue-119.rb
201
+ - sample/losample.rb
202
+ - sample/minimal-testcase.rb
203
+ - sample/notify_wait.rb
204
+ - sample/pg_statistics.rb
205
+ - sample/replication_monitor.rb
206
+ - sample/test_binary_values.rb
207
+ - sample/wal_shipper.rb
208
+ - sample/warehouse_partitions.rb
209
+ homepage: https://github.com/ged/ruby-pg
298
210
  licenses:
299
- - BSD-3-Clause
300
- metadata: {}
301
- post_install_message:
211
+ - BSD-2-Clause
212
+ metadata:
213
+ homepage_uri: https://github.com/ged/ruby-pg
214
+ source_code_uri: https://github.com/ged/ruby-pg
215
+ changelog_uri: https://github.com/ged/ruby-pg/blob/master/History.md
216
+ documentation_uri: http://deveiate.org/code/pg
302
217
  rdoc_options:
303
218
  - "--main"
304
- - README.rdoc
219
+ - README.md
220
+ - "--title"
221
+ - 'PG: The Ruby PostgreSQL Driver'
305
222
  require_paths:
306
223
  - lib
307
224
  required_ruby_version: !ruby/object:Gem::Requirement
308
225
  requirements:
309
226
  - - ">="
310
227
  - !ruby/object:Gem::Version
311
- version: 2.0.0
228
+ version: '2.5'
312
229
  required_rubygems_version: !ruby/object:Gem::Requirement
313
230
  requirements:
314
231
  - - ">="
315
232
  - !ruby/object:Gem::Version
316
233
  version: '0'
317
234
  requirements: []
318
- rubyforge_project:
319
- rubygems_version: 2.7.3
320
- signing_key:
235
+ rubygems_version: 3.6.0.dev
321
236
  specification_version: 4
322
- summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
237
+ summary: Pg is the Ruby interface to the PostgreSQL RDBMS
323
238
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/.gemtest DELETED
File without changes