pg 0.19.0 → 0.19.1.pre20170115074000
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +442 -205
- data/History.rdoc +16 -0
- data/Rakefile +3 -3
- data/Rakefile.cross +5 -4
- data/ext/errorcodes.def +9 -0
- data/ext/errorcodes.txt +8 -0
- 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 +14 -7
- 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 +5 -1
- 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 +7 -0
- data/spec/pg/type_map_by_class_spec.rb +1 -1
- metadata +43 -49
- 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,7 +19,11 @@ 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] =
|
22
|
+
str[-1,0] = if cleared?
|
23
|
+
" cleared"
|
24
|
+
else
|
25
|
+
" status=#{res_status(result_status)} ntuples=#{ntuples} nfields=#{nfields} cmd_tuples=#{cmd_tuples}"
|
26
|
+
end
|
23
27
|
return str
|
24
28
|
end
|
25
29
|
|
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$
|
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,6 +403,13 @@ 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
|
+
|
406
413
|
context 'result value conversions with TypeMapByColumn' do
|
407
414
|
let!(:textdec_int){ PG::TextDecoder::Integer.new name: 'INT4', oid: 23 }
|
408
415
|
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[Range] ).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.
|
4
|
+
version: 0.19.1.pre20170115074000
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -11,32 +11,26 @@ 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
|
-
|
32
|
-
inYLQagqAF6goWTXgAJCdPd6SNeeSNqA6vlY7CV1Jh5kfNJJ6xu/CVij1GzCLu/5
|
33
|
-
DMOr26DBv+qLJRRC/2h34uX71q5QgeOyxvMg+7V3u/Q06DXyQ2VgeeqiwDFFpEH0
|
34
|
-
PFkdPO6ZqbTRcLfNH7mFgCBJjsfSjJrn0sPBlYyOXgCoByfZnZyrIMH/UY+lgQqS
|
35
|
-
6Von1VDsfQm0eJh5zYZD64ZF86phSR7mUX3mXItwH04HrZwkWpvgd871DZVR3i1n
|
36
|
-
w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
|
37
|
-
p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
|
14
|
+
MIIDPDCCAiSgAwIBAgIBAzANBgkqhkiG9w0BAQUFADBEMQ0wCwYDVQQDDARsYXJz
|
15
|
+
MR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZImiZPyLGQB
|
16
|
+
GRYCZGUwHhcNMTYwNjI1MTUyOTE0WhcNMTcwNjI1MTUy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
|
+
WfgqWGyHn5K4wejsMic/uA==
|
38
32
|
-----END CERTIFICATE-----
|
39
|
-
date:
|
33
|
+
date: 2017-01-15 00:00:00.000000000 Z
|
40
34
|
dependencies:
|
41
35
|
- !ruby/object:Gem::Dependency
|
42
36
|
name: hoe-mercurial
|
@@ -58,14 +52,14 @@ dependencies:
|
|
58
52
|
requirements:
|
59
53
|
- - "~>"
|
60
54
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
55
|
+
version: '0.8'
|
62
56
|
type: :development
|
63
57
|
prerelease: false
|
64
58
|
version_requirements: !ruby/object:Gem::Requirement
|
65
59
|
requirements:
|
66
60
|
- - "~>"
|
67
61
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
62
|
+
version: '0.8'
|
69
63
|
- !ruby/object:Gem::Dependency
|
70
64
|
name: hoe-highline
|
71
65
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,48 +74,34 @@ dependencies:
|
|
80
74
|
- - "~>"
|
81
75
|
- !ruby/object:Gem::Version
|
82
76
|
version: '0.2'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rdoc
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '4.0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '4.0'
|
97
77
|
- !ruby/object:Gem::Dependency
|
98
78
|
name: rake-compiler
|
99
79
|
requirement: !ruby/object:Gem::Requirement
|
100
80
|
requirements:
|
101
81
|
- - "~>"
|
102
82
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
83
|
+
version: 1.0.3
|
104
84
|
type: :development
|
105
85
|
prerelease: false
|
106
86
|
version_requirements: !ruby/object:Gem::Requirement
|
107
87
|
requirements:
|
108
88
|
- - "~>"
|
109
89
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
90
|
+
version: 1.0.3
|
111
91
|
- !ruby/object:Gem::Dependency
|
112
92
|
name: rake-compiler-dock
|
113
93
|
requirement: !ruby/object:Gem::Requirement
|
114
94
|
requirements:
|
115
95
|
- - "~>"
|
116
96
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
97
|
+
version: 0.6.0
|
118
98
|
type: :development
|
119
99
|
prerelease: false
|
120
100
|
version_requirements: !ruby/object:Gem::Requirement
|
121
101
|
requirements:
|
122
102
|
- - "~>"
|
123
103
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
104
|
+
version: 0.6.0
|
125
105
|
- !ruby/object:Gem::Dependency
|
126
106
|
name: hoe
|
127
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,6 +144,20 @@ dependencies:
|
|
164
144
|
- - "~>"
|
165
145
|
- !ruby/object:Gem::Version
|
166
146
|
version: '3.0'
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: rdoc
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '4.0'
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - "~>"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '4.0'
|
167
161
|
description: |-
|
168
162
|
Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
|
169
163
|
|
@@ -323,12 +317,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
323
317
|
version: 2.0.0
|
324
318
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
325
319
|
requirements:
|
326
|
-
- - "
|
320
|
+
- - ">"
|
327
321
|
- !ruby/object:Gem::Version
|
328
|
-
version:
|
322
|
+
version: 1.3.1
|
329
323
|
requirements: []
|
330
324
|
rubyforge_project:
|
331
|
-
rubygems_version: 2.6.
|
325
|
+
rubygems_version: 2.6.8
|
332
326
|
signing_key:
|
333
327
|
specification_version: 4
|
334
328
|
summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
|
metadata.gz.sig
CHANGED
Binary file
|