upsert 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.3.2 / 2012-06-22
2
+
3
+ * Enhancements
4
+
5
+ * Make sure ::PGconn is recognized as ::PG::Connection (thanks @joevandyk https://github.com/seamusabshere/upsert/issues/2)
6
+
1
7
  0.3.1 / 2012-06-21
2
8
 
3
9
  * Bug fixes
@@ -85,4 +85,8 @@ LANGUAGE plpgsql;
85
85
  EOS
86
86
  end
87
87
  end
88
+
89
+ # @private
90
+ # backwards compatibility - https://github.com/seamusabshere/upsert/issues/2
91
+ PGconn = PG_Connection
88
92
  end
@@ -1,3 +1,3 @@
1
1
  class Upsert
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -16,7 +16,8 @@ describe Upsert::PG_Connection do
16
16
  @opened_connections.each { |c| c.finish }
17
17
  end
18
18
  def new_connection
19
- c = PG.connect(:dbname => 'test_upsert')
19
+ # c = PG::Connection.new(:dbname => 'test_upsert')
20
+ c = PGconn.new(:dbname => 'test_upsert')
20
21
  @opened_connections << c
21
22
  c
22
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upsert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-22 00:00:00.000000000 Z
12
+ date: 2012-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3