pgtk 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7293e42c36671150eaed8552af95773be01e5cd4e4b14b8676ea344ef2605b7b
4
- data.tar.gz: 64b75a87d6a4da5f1d08838b6cf78b33d04b803c045d94bb1e8417b604159a90
3
+ metadata.gz: 8d8b3aca8304353b242bfa04dabda36b5eac51c8a0df056deb7dcc83c6099c7a
4
+ data.tar.gz: abe2c93fe043da0c9592cca3d170314781885d3df5e63bc2abe1274260c3ec10
5
5
  SHA512:
6
- metadata.gz: 6a0f3303e20d5db61f551c92f9bab742ba7054a6dc1eb8b0d6f509ab7107fdbd34e25328e08e49d099e361bede1772524b31bc46bb4c228104929b6646a9bf2f
7
- data.tar.gz: a38b061fea757147e8b482702ef22953c00a71697f1d24a9b43166be22052fec451440d504fef45798056dae2c71ec70d9fcd661fc9b9a5e5b3b0dc5adcce0fc
6
+ metadata.gz: 8345d511ad4e08b53799dc9bcb5ebe25a898f6c446909b7a760f82218caabf28bc24ff9adf5d59263527ed67076550f1c786faa52a1a86956dac70cde66c8f31
7
+ data.tar.gz: c7582af976ff73b9690f7892a634aea6f4ca9f8a0eea2d8955e7dda0e210a95bd18b9ae4f8405da560ec7bb16d2ef0b3e88f9454da395967339f686f96eec1aa
data/lib/pgtk/pool.rb CHANGED
@@ -59,7 +59,7 @@ class Pgtk::Pool
59
59
 
60
60
  # Get the version of PostgreSQL server.
61
61
  def version
62
- @version ||= exec('SHOW server_version')[0]['server_version']
62
+ @version ||= exec('SHOW server_version')[0]['server_version'].split(' ')[0]
63
63
  end
64
64
 
65
65
  # Start it with a fixed number of connections. The amount of connections
data/lib/pgtk/version.rb CHANGED
@@ -28,5 +28,5 @@ require_relative '../pgtk'
28
28
  # License:: MIT
29
29
  module Pgtk
30
30
  # Current version of the library.
31
- VERSION = '0.6.0'
31
+ VERSION = '0.6.1'
32
32
  end
data/test/test_pool.rb CHANGED
@@ -37,6 +37,7 @@ class TestPool < Minitest::Test
37
37
  bootstrap do |pool|
38
38
  ver = pool.version
39
39
  assert(ver.start_with?('1'))
40
+ assert(!ver.include?(' '))
40
41
  end
41
42
  end
42
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-06 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace