pg 0.13.0.pre298 → 0.13.0.pre300

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,9 +1,24 @@
1
+ 2012-01-26 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * .hgsigs:
4
+ Added signature for changeset b67309d3ccf2
5
+ [8f5629b33d76] [tip]
6
+
7
+ * .rvmrc, ext/pg_connection.c, spec/pg/connection_spec.rb:
8
+ Fix for Ruby 1.8, removed accidentally-committed encoding-testing
9
+ method.
10
+ [b67309d3ccf2] [github/master]
11
+
1
12
  2012-01-24 Michael Granger <ged@FaerieMUD.org>
2
13
 
14
+ * History.rdoc, Manifest.txt, README.rdoc, Rakefile, lib/pg.rb:
15
+ Updated the History file, Manifest, README, added missing require.
16
+ [b2cd37832d02]
17
+
3
18
  * .rvm.gems:
4
19
  Removed rspec 2.8.1 -- not yet released, and 2.8.0 is now pulled in
5
20
  via hoe-deveiate
6
- [a4494f18a0d3] [tip]
21
+ [a4494f18a0d3]
7
22
 
8
23
  * lib/pg/constants.rb:
9
24
  Whitespace cleanup
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * pg_connection.c - PG::Connection class extension
3
- * $Id: pg_connection.c,v 1cdad2ce8993 2012/01/25 01:21:30 ged $
3
+ * $Id: pg_connection.c,v b67309d3ccf2 2012/01/27 04:14:07 ged $
4
4
  *
5
5
  */
6
6
 
@@ -2348,18 +2348,6 @@ pgconn_get_client_encoding(VALUE self)
2348
2348
  return rb_tainted_str_new2(encoding);
2349
2349
  }
2350
2350
 
2351
- /*
2352
- * call-seq:
2353
- * conn.client_encoding() -> Encoding
2354
- *
2355
- * Returns the client encoding as an Encoding object.
2356
- */
2357
- static VALUE
2358
- pgconn_client_encoding(VALUE self)
2359
- {
2360
- rb_encoding *enc = pg_conn_enc_get( pg_get_pgconn(self) );
2361
- return rb_enc_from_encoding( enc );
2362
- }
2363
2351
 
2364
2352
  /*
2365
2353
  * call-seq:
@@ -2375,7 +2363,7 @@ pgconn_set_client_encoding(VALUE self, VALUE str)
2375
2363
  Check_Type(str, T_STRING);
2376
2364
 
2377
2365
  if ( (PQsetClientEncoding(conn, StringValuePtr(str))) == -1 ) {
2378
- rb_raise(rb_ePGerror, "invalid f'ing encoding name: %s",StringValuePtr(str));
2366
+ rb_raise(rb_ePGerror, "invalid encoding name: %s",StringValuePtr(str));
2379
2367
  }
2380
2368
 
2381
2369
  return Qnil;
@@ -3249,7 +3237,6 @@ init_pg_connection()
3249
3237
  rb_define_method(rb_cPGconn, "set_notice_processor", pgconn_set_notice_processor, 0);
3250
3238
 
3251
3239
  /****** PG::Connection INSTANCE METHODS: Other ******/
3252
- rb_define_method(rb_cPGconn, "client_encoding", pgconn_client_encoding, 0);
3253
3240
  rb_define_method(rb_cPGconn, "get_client_encoding", pgconn_get_client_encoding, 0);
3254
3241
  rb_define_method(rb_cPGconn, "set_client_encoding", pgconn_set_client_encoding, 1);
3255
3242
  rb_define_alias(rb_cPGconn, "client_encoding=", "set_client_encoding");
@@ -3290,7 +3277,7 @@ init_pg_connection()
3290
3277
  rb_define_method(rb_cPGconn, "lo_unlink", pgconn_lounlink, 1);
3291
3278
  rb_define_alias(rb_cPGconn, "lounlink", "lo_unlink");
3292
3279
 
3293
- #ifdef M17N_SUPPORTED
3280
+ #ifdef M17N_SUPPORTED
3294
3281
  rb_define_method(rb_cPGconn, "internal_encoding", pgconn_internal_encoding, 0);
3295
3282
  rb_define_method(rb_cPGconn, "internal_encoding=", pgconn_internal_encoding_set, 1);
3296
3283
  rb_define_method(rb_cPGconn, "external_encoding", pgconn_external_encoding, 0);
@@ -741,7 +741,7 @@ describe PG::Connection do
741
741
 
742
742
  it "the connection should return ASCII-8BIT when it's set to SQL_ASCII" do
743
743
  @conn.exec "SET client_encoding TO SQL_ASCII"
744
- @conn.client_encoding.should == Encoding::ASCII_8BIT
744
+ @conn.internal_encoding.should == Encoding::ASCII_8BIT
745
745
  end
746
746
 
747
747
  it "works around the unsupported JOHAB encoding by returning stuff in 'ASCII_8BIT'" do
@@ -811,6 +811,7 @@ describe PG::Connection do
811
811
  end
812
812
  end
813
813
 
814
+ conn.finish if conn
814
815
  end
815
816
 
816
817
  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.13.0.pre298
4
+ version: 0.13.0.pre300
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -48,11 +48,11 @@ cert_chain:
48
48
  -----END CERTIFICATE-----
49
49
 
50
50
  '
51
- date: 2012-01-25 00:00:00.000000000 Z
51
+ date: 2012-01-27 00:00:00.000000000 Z
52
52
  dependencies:
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: hoe-mercurial
55
- requirement: &70349919015120 !ruby/object:Gem::Requirement
55
+ requirement: &70181867220660 !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements:
58
58
  - - ~>
@@ -60,10 +60,10 @@ dependencies:
60
60
  version: 1.3.1
61
61
  type: :development
62
62
  prerelease: false
63
- version_requirements: *70349919015120
63
+ version_requirements: *70181867220660
64
64
  - !ruby/object:Gem::Dependency
65
65
  name: hoe-highline
66
- requirement: &70349919014520 !ruby/object:Gem::Requirement
66
+ requirement: &70181867220200 !ruby/object:Gem::Requirement
67
67
  none: false
68
68
  requirements:
69
69
  - - ~>
@@ -71,10 +71,10 @@ dependencies:
71
71
  version: 0.0.1
72
72
  type: :development
73
73
  prerelease: false
74
- version_requirements: *70349919014520
74
+ version_requirements: *70181867220200
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rake-compiler
77
- requirement: &70349919014000 !ruby/object:Gem::Requirement
77
+ requirement: &70181867236100 !ruby/object:Gem::Requirement
78
78
  none: false
79
79
  requirements:
80
80
  - - ~>
@@ -82,10 +82,10 @@ dependencies:
82
82
  version: '0.7'
83
83
  type: :development
84
84
  prerelease: false
85
- version_requirements: *70349919014000
85
+ version_requirements: *70181867236100
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: rspec
88
- requirement: &70349919013480 !ruby/object:Gem::Requirement
88
+ requirement: &70181867235680 !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
91
  - - ~>
@@ -93,10 +93,10 @@ dependencies:
93
93
  version: '2.6'
94
94
  type: :development
95
95
  prerelease: false
96
- version_requirements: *70349919013480
96
+ version_requirements: *70181867235680
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rdoc
99
- requirement: &70349919012900 !ruby/object:Gem::Requirement
99
+ requirement: &70181867235260 !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements:
102
102
  - - ~>
@@ -104,10 +104,10 @@ dependencies:
104
104
  version: '3.10'
105
105
  type: :development
106
106
  prerelease: false
107
- version_requirements: *70349919012900
107
+ version_requirements: *70181867235260
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: hoe
110
- requirement: &70349919012420 !ruby/object:Gem::Requirement
110
+ requirement: &70181867234820 !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
113
113
  - - ~>
@@ -115,7 +115,7 @@ dependencies:
115
115
  version: '2.13'
116
116
  type: :development
117
117
  prerelease: false
118
- version_requirements: *70349919012420
118
+ version_requirements: *70181867234820
119
119
  description: ! "Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].\n\nIt
120
120
  works with {PostgreSQL 8.3 and later}[http://bit.ly/6AfPhm].\n\nA small example
121
121
  usage:\n\n #!/usr/bin/env ruby\n \n require 'pg'\n \n # Output a table of current
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  requirements: []
213
213
  rubyforge_project: pg
214
- rubygems_version: 1.8.10
214
+ rubygems_version: 1.8.14
215
215
  signing_key:
216
216
  specification_version: 3
217
217
  summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/]
metadata.gz.sig CHANGED
Binary file