pg 0.15.1 → 1.2.3

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 (86) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/BSDL +2 -2
  5. data/ChangeLog +0 -3022
  6. data/History.rdoc +370 -4
  7. data/Manifest.txt +39 -19
  8. data/README-Windows.rdoc +17 -28
  9. data/README.ja.rdoc +1 -2
  10. data/README.rdoc +113 -14
  11. data/Rakefile +97 -36
  12. data/Rakefile.cross +109 -83
  13. data/ext/errorcodes.def +1032 -0
  14. data/ext/errorcodes.rb +45 -0
  15. data/ext/errorcodes.txt +494 -0
  16. data/ext/extconf.rb +55 -52
  17. data/ext/gvl_wrappers.c +4 -0
  18. data/ext/gvl_wrappers.h +94 -38
  19. data/ext/pg.c +273 -121
  20. data/ext/pg.h +292 -50
  21. data/ext/pg_binary_decoder.c +229 -0
  22. data/ext/pg_binary_encoder.c +163 -0
  23. data/ext/pg_coder.c +561 -0
  24. data/ext/pg_connection.c +1811 -1051
  25. data/ext/pg_copy_coder.c +599 -0
  26. data/ext/pg_errors.c +95 -0
  27. data/ext/pg_record_coder.c +491 -0
  28. data/ext/pg_result.c +917 -203
  29. data/ext/pg_text_decoder.c +987 -0
  30. data/ext/pg_text_encoder.c +814 -0
  31. data/ext/pg_tuple.c +549 -0
  32. data/ext/pg_type_map.c +166 -0
  33. data/ext/pg_type_map_all_strings.c +116 -0
  34. data/ext/pg_type_map_by_class.c +244 -0
  35. data/ext/pg_type_map_by_column.c +313 -0
  36. data/ext/pg_type_map_by_mri_type.c +284 -0
  37. data/ext/pg_type_map_by_oid.c +356 -0
  38. data/ext/pg_type_map_in_ruby.c +299 -0
  39. data/ext/pg_util.c +149 -0
  40. data/ext/pg_util.h +65 -0
  41. data/lib/pg.rb +31 -9
  42. data/lib/pg/basic_type_mapping.rb +522 -0
  43. data/lib/pg/binary_decoder.rb +23 -0
  44. data/lib/pg/coder.rb +104 -0
  45. data/lib/pg/connection.rb +235 -30
  46. data/lib/pg/constants.rb +2 -1
  47. data/lib/pg/exceptions.rb +2 -1
  48. data/lib/pg/result.rb +33 -6
  49. data/lib/pg/text_decoder.rb +46 -0
  50. data/lib/pg/text_encoder.rb +59 -0
  51. data/lib/pg/tuple.rb +30 -0
  52. data/lib/pg/type_map_by_column.rb +16 -0
  53. data/spec/{lib/helpers.rb → helpers.rb} +154 -52
  54. data/spec/pg/basic_type_mapping_spec.rb +630 -0
  55. data/spec/pg/connection_spec.rb +1352 -426
  56. data/spec/pg/connection_sync_spec.rb +41 -0
  57. data/spec/pg/result_spec.rb +508 -105
  58. data/spec/pg/tuple_spec.rb +333 -0
  59. data/spec/pg/type_map_by_class_spec.rb +138 -0
  60. data/spec/pg/type_map_by_column_spec.rb +226 -0
  61. data/spec/pg/type_map_by_mri_type_spec.rb +136 -0
  62. data/spec/pg/type_map_by_oid_spec.rb +149 -0
  63. data/spec/pg/type_map_in_ruby_spec.rb +164 -0
  64. data/spec/pg/type_map_spec.rb +22 -0
  65. data/spec/pg/type_spec.rb +1123 -0
  66. data/spec/pg_spec.rb +35 -16
  67. metadata +163 -84
  68. metadata.gz.sig +0 -0
  69. data/sample/array_insert.rb +0 -20
  70. data/sample/async_api.rb +0 -106
  71. data/sample/async_copyto.rb +0 -39
  72. data/sample/async_mixed.rb +0 -56
  73. data/sample/check_conn.rb +0 -21
  74. data/sample/copyfrom.rb +0 -81
  75. data/sample/copyto.rb +0 -19
  76. data/sample/cursor.rb +0 -21
  77. data/sample/disk_usage_report.rb +0 -186
  78. data/sample/issue-119.rb +0 -94
  79. data/sample/losample.rb +0 -69
  80. data/sample/minimal-testcase.rb +0 -17
  81. data/sample/notify_wait.rb +0 -72
  82. data/sample/pg_statistics.rb +0 -294
  83. data/sample/replication_monitor.rb +0 -231
  84. data/sample/test_binary_values.rb +0 -33
  85. data/sample/wal_shipper.rb +0 -434
  86. data/sample/warehouse_partitions.rb +0 -320
data/spec/pg_spec.rb CHANGED
@@ -1,30 +1,49 @@
1
- #!/usr/bin/env rspec
1
+ # -*- rspec -*-
2
2
  # encoding: utf-8
3
3
 
4
- BEGIN {
5
- require 'pathname'
4
+ require_relative 'helpers'
6
5
 
7
- basedir = Pathname( __FILE__ ).dirname.parent
8
- libdir = basedir + 'lib'
9
-
10
- $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
11
- $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
12
- }
13
-
14
- require 'rspec'
15
- require 'spec/lib/helpers'
16
6
  require 'pg'
17
7
 
18
8
  describe PG do
19
9
 
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
10
+ it "knows what version of the libpq library is loaded" do
11
+ expect( PG.library_version ).to be_an( Integer )
12
+ expect( PG.library_version ).to be >= 90100
13
+ end
14
+
15
+ it "can select which of both security libraries to initialize" do
16
+ # This setting does nothing here, because there is already a connection
17
+ # to the server, at this point in time.
18
+ PG.init_openssl(false, true)
19
+ PG.init_openssl(1, 0)
20
+ end
21
+
22
+ it "can select whether security libraries to initialize" do
23
+ # This setting does nothing here, because there is already a connection
24
+ # to the server, at this point in time.
25
+ PG.init_ssl(false)
26
+ PG.init_ssl(1)
23
27
  end
24
28
 
25
29
 
26
30
  it "knows whether or not the library is threadsafe" do
27
- PG.should be_threadsafe()
31
+ expect( PG ).to be_threadsafe()
32
+ end
33
+
34
+ it "does have hierarchical error classes" do
35
+ expect( PG::UndefinedTable.ancestors[0,4] ).to eq([
36
+ PG::UndefinedTable,
37
+ PG::SyntaxErrorOrAccessRuleViolation,
38
+ PG::ServerError,
39
+ PG::Error
40
+ ])
41
+
42
+ expect( PG::InvalidSchemaName.ancestors[0,3] ).to eq([
43
+ PG::InvalidSchemaName,
44
+ PG::ServerError,
45
+ PG::Error
46
+ ])
28
47
  end
29
48
 
30
49
  end
metadata CHANGED
@@ -1,125 +1,171 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
8
+ - Lars Kanis
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain:
11
12
  - |
12
13
  -----BEGIN CERTIFICATE-----
13
- MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
14
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
15
- HhcNMTMwMjI3MTY0ODU4WhcNMTQwMjI3MTY0ODU4WjA+MQwwCgYDVQQDDANnZWQx
16
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
17
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDb92mkyYwuGBg1oRxt2tkH
18
- +Uo3LAsaL/APBfSLzy8o3+B3AUHKCjMUaVeBoZdWtMHB75X3VQlvXfZMyBxj59Vo
19
- cDthr3zdao4HnyrzAIQf7BO5Y8KBwVD+yyXCD/N65TTwqsQnO3ie7U5/9ut1rnNr
20
- OkOzAscMwkfQxBkXDzjvAWa6UF4c5c9kR/T79iA21kDx9+bUMentU59aCJtUcbxa
21
- 7kcKJhPEYsk4OdxR9q2dphNMFDQsIdRO8rywX5FRHvcb+qnXC17RvxLHtOjysPtp
22
- EWsYoZMxyCDJpUqbwoeiM+tAHoz2ABMv3Ahie3Qeb6+MZNAtMmaWfBx3dg2u+/WN
23
- AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSZ0hCV
24
- qoHr122fGKelqffzEQBhszAcBgNVHREEFTATgRFnZWRARmFlcmllTVVELm9yZzAc
25
- BgNVHRIEFTATgRFnZWRARmFlcmllTVVELm9yZzANBgkqhkiG9w0BAQUFAAOCAQEA
26
- Vlcfyq6GwyE8i0QuFPCeVOwJaneSvcwx316DApjy9/tt2YD2HomLbtpXtji5QXor
27
- ON6oln4tWBIB3Klbr3szq5oR3Rc1D02SaBTalxSndp4M6UkW9hRFu5jn98pDB4fq
28
- 5l8wMMU0Xdmqx1VYvysVAjVFVC/W4NNvlmg+2mEgSVZP5K6Tc9qDh3eMQInoYw6h
29
- t1YA6RsUJHp5vGQyhP1x34YpLAaly8icbns/8PqOf7Osn9ztmg8bOMJCeb32eQLj
30
- 6mKCwjpegytE0oifXfF8k75A9105cBnNiMZOe1tXiqYc/exCgWvbggurzDOcRkZu
31
- /YSusaiDXHKU2O3Akc3htA==
14
+ MIID+DCCAmCgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdnZWQv
15
+ REM9RmFlcmllTVVEL0RDPW9yZzAeFw0xOTEyMjQyMDE5NTFaFw0yMDEyMjMyMDE5
16
+ NTFaMCIxIDAeBgNVBAMMF2dlZC9EQz1GYWVyaWVNVUQvREM9b3JnMIIBojANBgkq
17
+ hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAvyVhkRzvlEs0fe7145BYLfN6njX9ih5H
18
+ L60U0p0euIurpv84op9CNKF9tx+1WKwyQvQP7qFGuZxkSUuWcP/sFhDXL1lWUuIl
19
+ M4uHbGCRmOshDrF4dgnBeOvkHr1fIhPlJm5FO+Vew8tSQmlDsosxLUx+VB7DrVFO
20
+ 5PU2AEbf04GGSrmqADGWXeaslaoRdb1fu/0M5qfPTRn5V39sWD9umuDAF9qqil/x
21
+ Sl6phTvgBrG8GExHbNZpLARd3xrBYLEFsX7RvBn2UPfgsrtvpdXjsHGfpT3IPN+B
22
+ vQ66lts4alKC69TE5cuKasWBm+16A4aEe3XdZBRNmtOu/g81gvwA7fkJHKllJuaI
23
+ dXzdHqq+zbGZVSQ7pRYHYomD0IiDe1DbIouFnPWmagaBnGHwXkDT2bKKP+s2v21m
24
+ ozilJg4aar2okb/RA6VS87o+d7g6LpDDMMQjH4G9OPnJENLdhu8KnPw/ivSVvQw7
25
+ N2I4L/ZOIe2DIVuYH7aLHfjZDQv/mNgpAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYD
26
+ VR0PBAQDAgSwMB0GA1UdDgQWBBRyjf55EbrHagiRLqt5YAd3yb8k4DANBgkqhkiG
27
+ 9w0BAQsFAAOCAYEAifxlz7x0EfT3fjhM520ZEIrWa+tLMuLKNefkY18u8tZnx4EX
28
+ Xxwh3tna3fvNfrOrdY5leIj1dbv4FTRg+gIBnIxAySqvpGvI/Axg5EdYbwninCLL
29
+ LAKCmRo+5QwaPMYN2zdHIjGrp8jg1neCo5zy6tVvyTv0DMI6FLrydVJYduMMDFSy
30
+ gQKR1rVOcCJtnBnLCF9+kKEUKohAHOmGsE7OBZFnjMIpH5yUDUVJKByv0gIipFt0
31
+ 1T6zff6oVU0w8WBiNKR381+6sF3wIZVnVY0XeJg6hNL+YecE8ILxLhHTmtT/BO0S
32
+ 3xPze9uXDR+iD6HYl8KU5QEg/dXFPhfQb512vVkTJDZvMcwu6PxDUjHFChLjAji/
33
+ AZXjg1C5E9znTkeUR8ieU9F1MOKoiH57a5lYSTI8Ga8PpsNXTxNeXc16Ob26CqrJ
34
+ 83uuAYSy65yXDGXXPVBeKPVnYrqp91pqpS5Nh7wfuiCrE8lgU8PATh7K4BV1UhAT
35
+ 0MHbAT42wTYkfUj3
32
36
  -----END CERTIFICATE-----
33
- date: 2013-04-08 00:00:00.000000000 Z
37
+ date: 2020-03-18 00:00:00.000000000 Z
34
38
  dependencies:
35
39
  - !ruby/object:Gem::Dependency
36
40
  name: hoe-mercurial
37
41
  requirement: !ruby/object:Gem::Requirement
38
42
  requirements:
39
- - - ~>
43
+ - - "~>"
40
44
  - !ruby/object:Gem::Version
41
- version: 1.4.0
45
+ version: '1.4'
42
46
  type: :development
43
47
  prerelease: false
44
48
  version_requirements: !ruby/object:Gem::Requirement
45
49
  requirements:
46
- - - ~>
50
+ - - "~>"
47
51
  - !ruby/object:Gem::Version
48
- version: 1.4.0
52
+ version: '1.4'
49
53
  - !ruby/object:Gem::Dependency
50
- name: hoe-highline
54
+ name: hoe-deveiate
51
55
  requirement: !ruby/object:Gem::Requirement
52
56
  requirements:
53
- - - ~>
57
+ - - "~>"
54
58
  - !ruby/object:Gem::Version
55
- version: 0.1.0
59
+ version: '0.10'
56
60
  type: :development
57
61
  prerelease: false
58
62
  version_requirements: !ruby/object:Gem::Requirement
59
63
  requirements:
60
- - - ~>
64
+ - - "~>"
61
65
  - !ruby/object:Gem::Version
62
- version: 0.1.0
66
+ version: '0.10'
63
67
  - !ruby/object:Gem::Dependency
64
- name: rdoc
68
+ name: hoe-highline
65
69
  requirement: !ruby/object:Gem::Requirement
66
70
  requirements:
67
- - - ~>
71
+ - - "~>"
68
72
  - !ruby/object:Gem::Version
69
- version: '3.10'
73
+ version: '0.2'
70
74
  type: :development
71
75
  prerelease: false
72
76
  version_requirements: !ruby/object:Gem::Requirement
73
77
  requirements:
74
- - - ~>
78
+ - - "~>"
75
79
  - !ruby/object:Gem::Version
76
- version: '3.10'
80
+ version: '0.2'
77
81
  - !ruby/object:Gem::Dependency
78
82
  name: rake-compiler
79
83
  requirement: !ruby/object:Gem::Requirement
80
84
  requirements:
81
- - - ~>
85
+ - - "~>"
82
86
  - !ruby/object:Gem::Version
83
- version: '0.8'
87
+ version: '1.0'
84
88
  type: :development
85
89
  prerelease: false
86
90
  version_requirements: !ruby/object:Gem::Requirement
87
91
  requirements:
88
- - - ~>
92
+ - - "~>"
89
93
  - !ruby/object:Gem::Version
90
- version: '0.8'
94
+ version: '1.0'
91
95
  - !ruby/object:Gem::Dependency
92
- name: hoe-deveiate
96
+ name: rake-compiler-dock
93
97
  requirement: !ruby/object:Gem::Requirement
94
98
  requirements:
95
- - - ~>
99
+ - - "~>"
96
100
  - !ruby/object:Gem::Version
97
- version: '0.2'
101
+ version: '1.0'
98
102
  type: :development
99
103
  prerelease: false
100
104
  version_requirements: !ruby/object:Gem::Requirement
101
105
  requirements:
102
- - - ~>
106
+ - - "~>"
103
107
  - !ruby/object:Gem::Version
104
- version: '0.2'
108
+ version: '1.0'
105
109
  - !ruby/object:Gem::Dependency
106
- name: hoe
110
+ name: hoe-bundler
107
111
  requirement: !ruby/object:Gem::Requirement
108
112
  requirements:
109
- - - ~>
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.0'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '1.0'
123
+ - !ruby/object:Gem::Dependency
124
+ name: rspec
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
110
128
  - !ruby/object:Gem::Version
111
129
  version: '3.5'
112
130
  type: :development
113
131
  prerelease: false
114
132
  version_requirements: !ruby/object:Gem::Requirement
115
133
  requirements:
116
- - - ~>
134
+ - - "~>"
117
135
  - !ruby/object:Gem::Version
118
136
  version: '3.5'
137
+ - !ruby/object:Gem::Dependency
138
+ name: rdoc
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: '5.1'
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: '5.1'
151
+ - !ruby/object:Gem::Dependency
152
+ name: hoe
153
+ requirement: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: '3.20'
158
+ type: :development
159
+ prerelease: false
160
+ version_requirements: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - "~>"
163
+ - !ruby/object:Gem::Version
164
+ version: '3.20'
119
165
  description: |-
120
166
  Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
121
167
 
122
- It works with {PostgreSQL 8.4 and later}[http://www.postgresql.org/support/versioning/].
168
+ It works with {PostgreSQL 9.2 and later}[http://www.postgresql.org/support/versioning/].
123
169
 
124
170
  A small example usage:
125
171
 
@@ -131,13 +177,14 @@ description: |-
131
177
  conn = PG.connect( dbname: 'sales' )
132
178
  conn.exec( "SELECT * FROM pg_stat_activity" ) do |result|
133
179
  puts " PID | User | Query"
134
- result.each do |row|
180
+ result.each do |row|
135
181
  puts " %7d | %-16s | %s " %
136
182
  row.values_at('procpid', 'usename', 'current_query')
137
183
  end
138
184
  end
139
185
  email:
140
186
  - ged@FaerieMUD.org
187
+ - lars@greiz-reinsdorf.de
141
188
  executables: []
142
189
  extensions:
143
190
  - ext/extconf.rb
@@ -149,14 +196,32 @@ extra_rdoc_files:
149
196
  - README-Windows.rdoc
150
197
  - README.ja.rdoc
151
198
  - README.rdoc
199
+ - ext/errorcodes.txt
152
200
  - POSTGRES
153
201
  - LICENSE
154
202
  - ext/gvl_wrappers.c
155
203
  - ext/pg.c
204
+ - ext/pg_binary_decoder.c
205
+ - ext/pg_binary_encoder.c
206
+ - ext/pg_coder.c
156
207
  - ext/pg_connection.c
208
+ - ext/pg_copy_coder.c
209
+ - ext/pg_errors.c
210
+ - ext/pg_record_coder.c
157
211
  - ext/pg_result.c
212
+ - ext/pg_text_decoder.c
213
+ - ext/pg_text_encoder.c
214
+ - ext/pg_tuple.c
215
+ - ext/pg_type_map.c
216
+ - ext/pg_type_map_all_strings.c
217
+ - ext/pg_type_map_by_class.c
218
+ - ext/pg_type_map_by_column.c
219
+ - ext/pg_type_map_by_mri_type.c
220
+ - ext/pg_type_map_by_oid.c
221
+ - ext/pg_type_map_in_ruby.c
222
+ - ext/pg_util.c
158
223
  files:
159
- - .gemtest
224
+ - ".gemtest"
160
225
  - BSDL
161
226
  - ChangeLog
162
227
  - Contributors.rdoc
@@ -170,74 +235,88 @@ files:
170
235
  - README.rdoc
171
236
  - Rakefile
172
237
  - Rakefile.cross
238
+ - ext/errorcodes.def
239
+ - ext/errorcodes.rb
240
+ - ext/errorcodes.txt
173
241
  - ext/extconf.rb
174
242
  - ext/gvl_wrappers.c
175
243
  - ext/gvl_wrappers.h
176
244
  - ext/pg.c
177
245
  - ext/pg.h
246
+ - ext/pg_binary_decoder.c
247
+ - ext/pg_binary_encoder.c
248
+ - ext/pg_coder.c
178
249
  - ext/pg_connection.c
250
+ - ext/pg_copy_coder.c
251
+ - ext/pg_errors.c
252
+ - ext/pg_record_coder.c
179
253
  - ext/pg_result.c
254
+ - ext/pg_text_decoder.c
255
+ - ext/pg_text_encoder.c
256
+ - ext/pg_tuple.c
257
+ - ext/pg_type_map.c
258
+ - ext/pg_type_map_all_strings.c
259
+ - ext/pg_type_map_by_class.c
260
+ - ext/pg_type_map_by_column.c
261
+ - ext/pg_type_map_by_mri_type.c
262
+ - ext/pg_type_map_by_oid.c
263
+ - ext/pg_type_map_in_ruby.c
264
+ - ext/pg_util.c
265
+ - ext/pg_util.h
180
266
  - ext/vc/pg.sln
181
267
  - ext/vc/pg_18/pg.vcproj
182
268
  - ext/vc/pg_19/pg_19.vcproj
183
269
  - lib/pg.rb
270
+ - lib/pg/basic_type_mapping.rb
271
+ - lib/pg/binary_decoder.rb
272
+ - lib/pg/coder.rb
184
273
  - lib/pg/connection.rb
185
274
  - lib/pg/constants.rb
186
275
  - lib/pg/exceptions.rb
187
276
  - lib/pg/result.rb
188
- - sample/array_insert.rb
189
- - sample/async_api.rb
190
- - sample/async_copyto.rb
191
- - sample/async_mixed.rb
192
- - sample/check_conn.rb
193
- - sample/copyfrom.rb
194
- - sample/copyto.rb
195
- - sample/cursor.rb
196
- - sample/disk_usage_report.rb
197
- - sample/issue-119.rb
198
- - sample/losample.rb
199
- - sample/minimal-testcase.rb
200
- - sample/notify_wait.rb
201
- - sample/pg_statistics.rb
202
- - sample/replication_monitor.rb
203
- - sample/test_binary_values.rb
204
- - sample/wal_shipper.rb
205
- - sample/warehouse_partitions.rb
277
+ - lib/pg/text_decoder.rb
278
+ - lib/pg/text_encoder.rb
279
+ - lib/pg/tuple.rb
280
+ - lib/pg/type_map_by_column.rb
206
281
  - spec/data/expected_trace.out
207
282
  - spec/data/random_binary_data
208
- - spec/lib/helpers.rb
283
+ - spec/helpers.rb
284
+ - spec/pg/basic_type_mapping_spec.rb
209
285
  - spec/pg/connection_spec.rb
286
+ - spec/pg/connection_sync_spec.rb
210
287
  - spec/pg/result_spec.rb
288
+ - spec/pg/tuple_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
211
296
  - spec/pg_spec.rb
212
- homepage: https://bitbucket.org/ged/ruby-pg
297
+ homepage: https://github.com/ged/ruby-pg
213
298
  licenses:
214
- - BSD
215
- - Ruby
216
- - GPL
217
- metadata: {}
299
+ - BSD-2-Clause
300
+ metadata:
301
+ homepage_uri: https://github.com/ged/ruby-pg
218
302
  post_install_message:
219
303
  rdoc_options:
220
- - -f
221
- - fivefish
222
- - -t
223
- - 'pg: The Ruby Interface to PostgreSQL'
224
- - -m
304
+ - "--main"
225
305
  - README.rdoc
226
306
  require_paths:
227
307
  - lib
228
308
  required_ruby_version: !ruby/object:Gem::Requirement
229
309
  requirements:
230
- - - '>='
310
+ - - ">="
231
311
  - !ruby/object:Gem::Version
232
- version: 1.8.7
312
+ version: '2.2'
233
313
  required_rubygems_version: !ruby/object:Gem::Requirement
234
314
  requirements:
235
- - - '>='
315
+ - - ">="
236
316
  - !ruby/object:Gem::Version
237
317
  version: '0'
238
318
  requirements: []
239
- rubyforge_project: pg
240
- rubygems_version: 2.0.3
319
+ rubygems_version: 3.0.6
241
320
  signing_key:
242
321
  specification_version: 4
243
322
  summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]