pg 0.19.0.pre20170115074000 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +210 -447
- data/History.rdoc +0 -16
- data/Rakefile +3 -3
- data/Rakefile.cross +4 -5
- data/ext/errorcodes.def +0 -9
- data/ext/errorcodes.txt +0 -8
- data/ext/pg.c +1 -1
- data/ext/pg_binary_decoder.c +1 -1
- data/ext/pg_binary_encoder.c +1 -1
- data/ext/pg_coder.c +1 -1
- data/ext/pg_connection.c +22 -22
- data/ext/pg_result.c +8 -8
- data/ext/pg_text_decoder.c +1 -1
- data/ext/pg_text_encoder.c +1 -1
- data/ext/pg_type_map.c +7 -14
- data/ext/pg_type_map_all_strings.c +1 -1
- data/ext/pg_type_map_by_class.c +1 -1
- data/ext/pg_type_map_by_column.c +1 -1
- data/ext/pg_type_map_by_mri_type.c +1 -1
- data/ext/pg_type_map_by_oid.c +1 -1
- data/ext/pg_type_map_in_ruby.c +1 -1
- data/ext/util.c +1 -1
- data/lib/pg.rb +2 -2
- data/lib/pg/result.rb +1 -5
- data/lib/pg/text_decoder.rb +1 -1
- data/lib/pg/text_encoder.rb +1 -1
- data/sample/disk_usage_report.rb +1 -1
- data/sample/pg_statistics.rb +1 -1
- data/sample/replication_monitor.rb +1 -1
- data/spec/pg/result_spec.rb +0 -7
- data/spec/pg/type_map_by_class_spec.rb +1 -1
- metadata +49 -43
- metadata.gz.sig +0 -0
data/ext/pg_type_map_by_class.c
CHANGED
data/ext/pg_type_map_by_column.c
CHANGED
data/ext/pg_type_map_by_oid.c
CHANGED
data/ext/pg_type_map_in_ruby.c
CHANGED
data/ext/util.c
CHANGED
data/lib/pg.rb
CHANGED
data/lib/pg/result.rb
CHANGED
@@ -19,11 +19,7 @@ class PG::Result
|
|
19
19
|
### Return a String representation of the object suitable for debugging.
|
20
20
|
def inspect
|
21
21
|
str = self.to_s
|
22
|
-
str[-1,0] =
|
23
|
-
" cleared"
|
24
|
-
else
|
25
|
-
" status=#{res_status(result_status)} ntuples=#{ntuples} nfields=#{nfields} cmd_tuples=#{cmd_tuples}"
|
26
|
-
end
|
22
|
+
str[-1,0] = " status=#{res_status(result_status)} ntuples=#{ntuples} nfields=#{nfields} cmd_tuples=#{cmd_tuples}"
|
27
23
|
return str
|
28
24
|
end
|
29
25
|
|
data/lib/pg/text_decoder.rb
CHANGED
data/lib/pg/text_encoder.rb
CHANGED
data/sample/disk_usage_report.rb
CHANGED
data/sample/pg_statistics.rb
CHANGED
@@ -36,7 +36,7 @@ end
|
|
36
36
|
###
|
37
37
|
class PGMonitor
|
38
38
|
|
39
|
-
VERSION = %q$Id$
|
39
|
+
VERSION = %q$Id: replication_monitor.rb,v 36ca5b412583 2012/04/17 23:32:25 mahlon $
|
40
40
|
|
41
41
|
# When to consider a slave as 'behind', measured in WAL segments.
|
42
42
|
# The default WAL segment size is 16, so we'll alert after
|
data/spec/pg/result_spec.rb
CHANGED
@@ -403,13 +403,6 @@ describe PG::Result do
|
|
403
403
|
expect( r.cleared? ).to eq(true)
|
404
404
|
end
|
405
405
|
|
406
|
-
it "can be inspected before and after clear" do
|
407
|
-
r = @conn.exec "select 1"
|
408
|
-
expect( r.inspect ).to match(/status=PGRES_TUPLES_OK/)
|
409
|
-
r.clear
|
410
|
-
expect( r.inspect ).to match(/cleared/)
|
411
|
-
end
|
412
|
-
|
413
406
|
context 'result value conversions with TypeMapByColumn' do
|
414
407
|
let!(:textdec_int){ PG::TextDecoder::Integer.new name: 'INT4', oid: 23 }
|
415
408
|
let!(:textdec_float){ PG::TextDecoder::Float.new name: 'FLOAT4', oid: 700 }
|
@@ -59,7 +59,7 @@ describe PG::TypeMapByClass do
|
|
59
59
|
it "should retrieve particular conversions" do
|
60
60
|
expect( tm[Integer] ).to eq(binaryenc_int)
|
61
61
|
expect( tm[Float] ).to eq(textenc_float)
|
62
|
-
expect( tm[
|
62
|
+
expect( tm[Bignum] ).to be_nil
|
63
63
|
expect( derived_tm[raise_class] ).to be_kind_of(Proc)
|
64
64
|
expect( derived_tm[Array] ).to eq(:array_type_map_for)
|
65
65
|
end
|
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.19.0
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -11,26 +11,32 @@ bindir: bin
|
|
11
11
|
cert_chain:
|
12
12
|
- |
|
13
13
|
-----BEGIN CERTIFICATE-----
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
14
|
+
MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANnZWQx
|
15
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
16
|
+
HhcNMTYwODIwMTgxNzQyWhcNMTcwODIwMTgxNzQyWjA+MQwwCgYDVQQDDANnZWQx
|
17
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
18
|
+
ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
|
19
|
+
83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
|
20
|
+
ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+UmbkU75V7Dy1JCaUOyizEt
|
21
|
+
TH5UHsOtUU7k9TYARt/TgYZKuaoAMZZd5qyVqhF1vV+7/Qzmp89NGflXf2xY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jxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
|
37
|
+
p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
|
32
38
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
39
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
34
40
|
dependencies:
|
35
41
|
- !ruby/object:Gem::Dependency
|
36
42
|
name: hoe-mercurial
|
@@ -52,14 +58,14 @@ dependencies:
|
|
52
58
|
requirements:
|
53
59
|
- - "~>"
|
54
60
|
- !ruby/object:Gem::Version
|
55
|
-
version: '0.
|
61
|
+
version: '0.7'
|
56
62
|
type: :development
|
57
63
|
prerelease: false
|
58
64
|
version_requirements: !ruby/object:Gem::Requirement
|
59
65
|
requirements:
|
60
66
|
- - "~>"
|
61
67
|
- !ruby/object:Gem::Version
|
62
|
-
version: '0.
|
68
|
+
version: '0.7'
|
63
69
|
- !ruby/object:Gem::Dependency
|
64
70
|
name: hoe-highline
|
65
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,89 +81,89 @@ dependencies:
|
|
75
81
|
- !ruby/object:Gem::Version
|
76
82
|
version: '0.2'
|
77
83
|
- !ruby/object:Gem::Dependency
|
78
|
-
name:
|
84
|
+
name: rdoc
|
79
85
|
requirement: !ruby/object:Gem::Requirement
|
80
86
|
requirements:
|
81
87
|
- - "~>"
|
82
88
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
89
|
+
version: '4.0'
|
84
90
|
type: :development
|
85
91
|
prerelease: false
|
86
92
|
version_requirements: !ruby/object:Gem::Requirement
|
87
93
|
requirements:
|
88
94
|
- - "~>"
|
89
95
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
96
|
+
version: '4.0'
|
91
97
|
- !ruby/object:Gem::Dependency
|
92
|
-
name: rake-compiler
|
98
|
+
name: rake-compiler
|
93
99
|
requirement: !ruby/object:Gem::Requirement
|
94
100
|
requirements:
|
95
101
|
- - "~>"
|
96
102
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.
|
103
|
+
version: '0.9'
|
98
104
|
type: :development
|
99
105
|
prerelease: false
|
100
106
|
version_requirements: !ruby/object:Gem::Requirement
|
101
107
|
requirements:
|
102
108
|
- - "~>"
|
103
109
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
110
|
+
version: '0.9'
|
105
111
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
112
|
+
name: rake-compiler-dock
|
107
113
|
requirement: !ruby/object:Gem::Requirement
|
108
114
|
requirements:
|
109
115
|
- - "~>"
|
110
116
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
117
|
+
version: '0.5'
|
112
118
|
type: :development
|
113
119
|
prerelease: false
|
114
120
|
version_requirements: !ruby/object:Gem::Requirement
|
115
121
|
requirements:
|
116
122
|
- - "~>"
|
117
123
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
124
|
+
version: '0.5'
|
119
125
|
- !ruby/object:Gem::Dependency
|
120
|
-
name: hoe
|
126
|
+
name: hoe
|
121
127
|
requirement: !ruby/object:Gem::Requirement
|
122
128
|
requirements:
|
123
129
|
- - "~>"
|
124
130
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
131
|
+
version: '3.12'
|
126
132
|
type: :development
|
127
133
|
prerelease: false
|
128
134
|
version_requirements: !ruby/object:Gem::Requirement
|
129
135
|
requirements:
|
130
136
|
- - "~>"
|
131
137
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
138
|
+
version: '3.12'
|
133
139
|
- !ruby/object:Gem::Dependency
|
134
|
-
name:
|
140
|
+
name: hoe-bundler
|
135
141
|
requirement: !ruby/object:Gem::Requirement
|
136
142
|
requirements:
|
137
143
|
- - "~>"
|
138
144
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
145
|
+
version: '1.0'
|
140
146
|
type: :development
|
141
147
|
prerelease: false
|
142
148
|
version_requirements: !ruby/object:Gem::Requirement
|
143
149
|
requirements:
|
144
150
|
- - "~>"
|
145
151
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
152
|
+
version: '1.0'
|
147
153
|
- !ruby/object:Gem::Dependency
|
148
|
-
name:
|
154
|
+
name: rspec
|
149
155
|
requirement: !ruby/object:Gem::Requirement
|
150
156
|
requirements:
|
151
157
|
- - "~>"
|
152
158
|
- !ruby/object:Gem::Version
|
153
|
-
version: '
|
159
|
+
version: '3.0'
|
154
160
|
type: :development
|
155
161
|
prerelease: false
|
156
162
|
version_requirements: !ruby/object:Gem::Requirement
|
157
163
|
requirements:
|
158
164
|
- - "~>"
|
159
165
|
- !ruby/object:Gem::Version
|
160
|
-
version: '
|
166
|
+
version: '3.0'
|
161
167
|
description: |-
|
162
168
|
Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
|
163
169
|
|
@@ -317,12 +323,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
317
323
|
version: 2.0.0
|
318
324
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
319
325
|
requirements:
|
320
|
-
- - "
|
326
|
+
- - ">="
|
321
327
|
- !ruby/object:Gem::Version
|
322
|
-
version:
|
328
|
+
version: '0'
|
323
329
|
requirements: []
|
324
330
|
rubyforge_project:
|
325
|
-
rubygems_version: 2.6.
|
331
|
+
rubygems_version: 2.6.2
|
326
332
|
signing_key:
|
327
333
|
specification_version: 4
|
328
334
|
summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
|
metadata.gz.sig
CHANGED
Binary file
|