do_postgres 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +2 -2
  2. data/lib/do_postgres.rb +1 -1
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
3
3
 
4
4
  PLUGIN = "do_postgres"
5
5
  NAME = "do_postgres"
6
- VERSION = "0.2.2"
6
+ VERSION = "0.2.3"
7
7
  AUTHOR = "Yehuda Katz"
8
8
  EMAIL = "wycats@gmail.com"
9
9
  HOMEPAGE = "http://dataobjects.devjavu.com"
@@ -24,7 +24,7 @@ spec = Gem::Specification.new do |s|
24
24
  s.require_path = 'lib'
25
25
  s.autorequire = PLUGIN
26
26
  s.extensions = ["ext/extconf.rb"]
27
- s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,ext}/**/*")
27
+ s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,ext}/**/*").reject {|x| x =~ /\.(o|bundle)$/ }
28
28
  end
29
29
 
30
30
  Rake::GemPackageTask.new(spec) do |pkg|
data/lib/do_postgres.rb CHANGED
@@ -18,7 +18,7 @@ module DataObject
18
18
  def open
19
19
  @db = Postgres_c.PQconnectdb(@connection_string)
20
20
  if Postgres_c.PQstatus(@db) != Postgres_c::CONNECTION_OK
21
- raise ConnectionFailed, "The connection with connection string #{@connection_string} failed\n#{Postgres_c.PQerrorMessage(@db)}"
21
+ raise ConnectionFailed, "Unable to connect to database with provided connection string. \n#{Postgres_c.PQerrorMessage(@db)}"
22
22
  end
23
23
  @state = STATE_OPEN
24
24
  true
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: do_postgres
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.2
7
- date: 2007-11-18 00:00:00 -08:00
6
+ version: 0.2.3
7
+ date: 2008-01-01 00:00:00 -08:00
8
8
  summary: A DataObject.rb driver for postgres
9
9
  require_paths:
10
10
  - lib