aqueduct-postgresql 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/aqueduct-postgresql.gemspec +1 -1
- data/lib/aqueduct-postgresql/version.rb +1 -1
- data/lib/aqueduct/wrappers/postgresql.rb +4 -4
- data/test/dummy/log/test.log +5 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d351d7154678a8add75f74d91a98164526d3361
|
4
|
+
data.tar.gz: 5a3967d6f72f99b391d04642caaed03c44528e95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6d843e2f8519d110a19280bf23d3b7359ad08d8d57e774d2a094b949b2238d6eb00563e2ab458a6e38e55ef489ae902344637a8fc65c68a79eb3bd061200d72
|
7
|
+
data.tar.gz: b885387c8bd7f90be4b47229869d0246b69bafc0ee4f430b109c87fa128ac0c4cf465a03615533d80a1b8cfc3b47b4c0ef8e30880c1a14fd8aa901fbee837409
|
data/CHANGELOG.md
CHANGED
data/aqueduct-postgresql.gemspec
CHANGED
@@ -35,7 +35,7 @@ module Aqueduct
|
|
35
35
|
db_connection = PG.connect( host: @source.host, user: @source.username, password: @source.password, dbname: @source.database, port: @source.port )
|
36
36
|
status = db_connection.status
|
37
37
|
rescue PG::Error => e
|
38
|
-
error = "#{e.
|
38
|
+
error = "#{e.error}"
|
39
39
|
ensure
|
40
40
|
result = true if status == 0
|
41
41
|
db_connection.finish if db_connection
|
@@ -60,7 +60,7 @@ module Aqueduct
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
rescue PG::Error => e
|
63
|
-
error = "#{e.
|
63
|
+
error = "#{e.error}"
|
64
64
|
ensure
|
65
65
|
db_connection.finish if db_connection
|
66
66
|
end
|
@@ -77,7 +77,7 @@ module Aqueduct
|
|
77
77
|
tables = results.collect{|r| r["table_name"]}
|
78
78
|
end
|
79
79
|
rescue PG::Error => e
|
80
|
-
error = "#{e.
|
80
|
+
error = "#{e.error}"
|
81
81
|
ensure
|
82
82
|
db_connection.finish if db_connection
|
83
83
|
end
|
@@ -119,7 +119,7 @@ module Aqueduct
|
|
119
119
|
end
|
120
120
|
end
|
121
121
|
rescue PG::Error => e
|
122
|
-
error = "#{e.
|
122
|
+
error = "#{e.error}"
|
123
123
|
ensure
|
124
124
|
if db_connection
|
125
125
|
db_connection.finish
|
data/test/dummy/log/test.log
CHANGED
@@ -24,5 +24,10 @@ AqueductPostgresqlTest: test_truth
|
|
24
24
|
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
25
25
|
----------------------------------
|
26
26
|
AqueductPostgresqlTest: test_truth
|
27
|
+
----------------------------------
|
28
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
29
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
30
|
+
----------------------------------
|
31
|
+
AqueductPostgresqlTest: test_truth
|
27
32
|
----------------------------------
|
28
33
|
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aqueduct-postgresql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Remo Mueller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.16.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.16.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|