pgbouncerhero 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pgbouncerhero.rb +0 -1
- data/lib/pgbouncerhero/connection.rb +14 -12
- data/lib/pgbouncerhero/database.rb +1 -1
- data/lib/pgbouncerhero/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 827a3a4bfea83fcb9b95692c6401847a453a59e2
|
4
|
+
data.tar.gz: 803feac4e01686ff104e1a55cd2c176d5d366907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d47db11b462287b0b5ba8c9f4c42c1b4bf3cd04d46b2c0d28cff8cae6b28d4546667bc10f83d2de9193cd14c11ec976a661da53da8955d3fb620b7e0dfc42ab
|
7
|
+
data.tar.gz: a096b7a22b57c9682af5a4ed4523618a616165409c6cd3416987e8dd94626c504378b7baeed0485f53be97b3fc56c939d95b88fc22679f3fcb74b191bb614f68
|
data/lib/pgbouncerhero.rb
CHANGED
@@ -10,18 +10,20 @@ module PgBouncerHero
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def connection
|
13
|
-
begin
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
13
|
+
@connection ||= begin
|
14
|
+
begin
|
15
|
+
PG.connect(
|
16
|
+
host: @host,
|
17
|
+
port: @port,
|
18
|
+
user: @user,
|
19
|
+
password: @password,
|
20
|
+
dbname: @dbname,
|
21
|
+
connect_timeout: 5
|
22
|
+
)
|
23
|
+
rescue => e
|
24
|
+
Rails.logger.info(e)
|
25
|
+
nil
|
26
|
+
end
|
25
27
|
end
|
26
28
|
end
|
27
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pgbouncerhero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Quentin Rousseau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.5.
|
184
|
+
rubygems_version: 2.5.2
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: A graphical user interface for your PGBouncers
|