pg 0.9.0-x86-mswin32 → 0.11.0pre229-x86-mswin32

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.
@@ -9,15 +9,14 @@ BEGIN {
9
9
  libdir = basedir + 'lib'
10
10
  archlib = libdir + Config::CONFIG['sitearch']
11
11
 
12
+ $LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
12
13
  $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
13
14
  $LOAD_PATH.unshift( archlib.to_s ) unless $LOAD_PATH.include?( archlib.to_s )
14
15
  }
15
16
 
16
- require 'pg'
17
-
18
- require 'rubygems'
19
- require 'spec'
17
+ require 'rspec'
20
18
  require 'spec/lib/helpers'
19
+ require 'pg'
21
20
 
22
21
  describe PGresult do
23
22
  include PgTestingHelpers
@@ -122,6 +121,15 @@ describe PGresult do
122
121
  }.to raise_error( IndexError, /-1 is out of range/i )
123
122
  end
124
123
 
124
+ it "should raise allow for conversion to an array of arrays" do
125
+ @conn.exec( 'CREATE TABLE valuestest ( foo varchar(33) )' )
126
+ @conn.exec( 'INSERT INTO valuestest ("foo") values (\'bar\')' )
127
+ @conn.exec( 'INSERT INTO valuestest ("foo") values (\'bar2\')' )
128
+
129
+ res = @conn.exec( 'SELECT * FROM valuestest' )
130
+ res.values.should == [ ["bar"], ["bar2"] ]
131
+ end
132
+
125
133
  # PQfmod
126
134
  it "can return the type modifier for a result column" do
127
135
  @conn.exec( 'CREATE TABLE fmodtest ( foo varchar(33) )' )
@@ -206,8 +214,6 @@ describe PGresult do
206
214
  res.ftablecol(1).should == 0 # and it shouldn't raise an exception, either
207
215
  end
208
216
 
209
-
210
-
211
217
  after( :each ) do
212
218
  @conn.exec( 'ROLLBACK' )
213
219
  end
metadata CHANGED
@@ -1,15 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ hash: 1923832275
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 11
9
+ - 0
10
+ - pre
11
+ - 229
12
+ version: 0.11.0pre229
5
13
  platform: x86-mswin32
6
14
  authors:
15
+ - Jeff Davis
7
16
  - Michael Granger
8
17
  autorequire:
9
18
  bindir: bin
10
- cert_chain: []
19
+ cert_chain:
20
+ - |
21
+ -----BEGIN CERTIFICATE-----
22
+ MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQwwCgYDVQQDDANnZWQx
23
+ FzAVBgoJkiaJk/IsZAEZFgdfYWVyaWVfMRMwEQYKCZImiZPyLGQBGRYDb3JnMB4X
24
+ DTEwMDkxNjE0NDg1MVoXDTExMDkxNjE0NDg1MVowPDEMMAoGA1UEAwwDZ2VkMRcw
25
+ FQYKCZImiZPyLGQBGRYHX2FlcmllXzETMBEGCgmSJomT8ixkARkWA29yZzCCASIw
26
+ DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALy//BFxC1f/cPSnwtJBWoFiFrir
27
+ h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
28
+ vDn7Uvhb2muFVqq6+vobeTkILBEO6pionWDG8jSbo3qKm1RjKJDwg9p4wNKhPuu8
29
+ KGue/BFb67KflqyApPmPeb3Vdd9clspzqeFqp7cUBMEpFS6LWxy4Gk+qvFFJBJLB
30
+ BUHE/LZVJMVzfpC5Uq+QmY7B+FH/QqNndn3tOHgsPadLTNimuB1sCuL1a4z3Pepd
31
+ TeLBEFmEao5Dk3K/Q8o8vlbIB/jBDTUx6Djbgxw77909x6gI9doU4LD5XMcCAwEA
32
+ AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJeoGkOr9l4B
33
+ +saMkW/ZXT4UeSvVMA0GCSqGSIb3DQEBBQUAA4IBAQBG2KObvYI2eHyyBUJSJ3jN
34
+ vEnU3d60znAXbrSd2qb3r1lY1EPDD3bcy0MggCfGdg3Xu54z21oqyIdk8uGtWBPL
35
+ HIa9EgfFGSUEgvcIvaYqiN4jTUtidfEFw+Ltjs8AP9gWgSIYS6Gr38V0WGFFNzIH
36
+ aOD2wmu9oo/RffW4hS/8GuvfMzcw7CQ355wFR4KB/nyze+EsZ1Y5DerCAagMVuDQ
37
+ U0BLmWDFzPGGWlPeQCrYHCr+AcJz+NRnaHCKLZdSKj/RHuTOt+gblRex8FAh8NeA
38
+ cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
39
+ -----END CERTIFICATE-----
11
40
 
12
- date: 2010-02-28 00:00:00 -08:00
41
+ date: 2011-03-31 00:00:00 -07:00
13
42
  default_executable:
14
43
  dependencies: []
15
44
 
@@ -17,6 +46,7 @@ description: |-
17
46
  This is the extension library to access a PostgreSQL database from Ruby.
18
47
  This library works with PostgreSQL 7.4 and later.
19
48
  email:
49
+ - ruby-pg@j-davis.com
20
50
  - ged@FaerieMUD.org
21
51
  executables: []
22
52
 
@@ -25,11 +55,17 @@ extensions: []
25
55
  extra_rdoc_files:
26
56
  - ChangeLog
27
57
  - README
58
+ - README.ja
59
+ - README.OS_X
60
+ - README.windows
28
61
  - LICENSE
29
62
  files:
30
63
  - Rakefile
31
64
  - ChangeLog
32
65
  - README
66
+ - README.ja
67
+ - README.OS_X
68
+ - README.windows
33
69
  - LICENSE
34
70
  - spec/m17n_spec.rb
35
71
  - spec/pgconn_spec.rb
@@ -43,12 +79,12 @@ files:
43
79
  - ext/extconf.rb
44
80
  - rake/191_compat.rb
45
81
  - rake/dependencies.rb
82
+ - rake/documentation.rb
46
83
  - rake/helpers.rb
47
84
  - rake/hg.rb
48
85
  - rake/manual.rb
49
86
  - rake/packaging.rb
50
87
  - rake/publishing.rb
51
- - rake/rdoc.rb
52
88
  - rake/style.rb
53
89
  - rake/svn.rb
54
90
  - rake/testing.rb
@@ -66,40 +102,45 @@ files:
66
102
  - lib/1.9/pg_ext.so
67
103
  has_rdoc: true
68
104
  homepage: http://bitbucket.org/ged/ruby-pg/
69
- licenses: []
70
-
105
+ licenses:
106
+ - Ruby
107
+ - GPL
108
+ - BSD
71
109
  post_install_message:
72
110
  rdoc_options:
73
- - -w
74
- - "4"
75
- - -HN
76
- - -i
111
+ - --tab-width=4
112
+ - --show-hash
113
+ - --include
77
114
  - .
78
- - -m
79
- - README
80
- - -t
81
- - pg
82
- - -W
83
- - http://bitbucket.org/ged/ruby-pg/browser/
115
+ - --main=README
116
+ - --title=pg
84
117
  require_paths:
85
118
  - lib
86
119
  - ext
87
120
  required_ruby_version: !ruby/object:Gem::Requirement
121
+ none: false
88
122
  requirements:
89
123
  - - ">="
90
124
  - !ruby/object:Gem::Version
91
- version: "0"
92
- version:
125
+ hash: 57
126
+ segments:
127
+ - 1
128
+ - 8
129
+ - 7
130
+ version: 1.8.7
93
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
+ none: false
94
133
  requirements:
95
134
  - - ">="
96
135
  - !ruby/object:Gem::Version
136
+ hash: 3
137
+ segments:
138
+ - 0
97
139
  version: "0"
98
- version:
99
140
  requirements:
100
141
  - PostgreSQL >=7.4
101
142
  rubyforge_project:
102
- rubygems_version: 1.3.5
143
+ rubygems_version: 1.6.2
103
144
  signing_key:
104
145
  specification_version: 3
105
146
  summary: A Ruby interface to the PostgreSQL RDBMS
Binary file
@@ -1,30 +0,0 @@
1
- #
2
- # RDoc Rake tasks
3
-
4
- #
5
-
6
- gem 'rdoc', '>= 2.4.3'
7
-
8
- require 'rubygems'
9
- require 'rdoc/rdoc'
10
- require 'rake/clean'
11
- require 'rdoc/task'
12
-
13
- # Append docs/lib to the load path if it exists for a locally-installed Darkfish
14
- DOCSLIB = DOCSDIR + 'lib'
15
- $LOAD_PATH.unshift( DOCSLIB.to_s ) if DOCSLIB.exist?
16
-
17
- # Make relative string paths of all the stuff we need to generate docs for
18
- DOCFILES = Rake::FileList[ LIB_FILES + EXT_FILES + GEMSPEC.extra_rdoc_files ]
19
-
20
-
21
- directory RDOCDIR.to_s
22
- CLOBBER.include( RDOCDIR )
23
-
24
- desc "Build API documentation in #{RDOCDIR}"
25
- RDoc::Task.new do |task|
26
- task.main = "README"
27
- task.rdoc_files.include( DOCFILES )
28
- task.rdoc_dir = RDOCDIR.to_s
29
- task.options = RDOC_OPTIONS
30
- end