pgtk 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -9
- data/lib/pgtk/pool.rb +2 -2
- data/lib/pgtk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c04374b388a6c39cd472eaeb7f6d6b6c9f7792db1137c63b42bc2c90b42e294
|
4
|
+
data.tar.gz: 15f7583738ef3edbefb70daf873bbbca0153100fe9e71ecf4748e9d0b778be34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27dd1a20cf6b6c57751ccc64f663c24fccd8a018706c0d61eb4f607f6461237aeee75ae5992b140b67fa0dbf6c4ec5d1ef29a7c498ea17b79f2f22007e0a5c6d
|
7
|
+
data.tar.gz: 532936b37210fd0559d85d01014ece69e7a72fe8e7d47224fd1558414d0c9907d463e4b381a374eb6063e08ea2a5848af5e8a47e50f6074e69fccef0874ec8cf
|
data/README.md
CHANGED
@@ -116,16 +116,12 @@ module Minitest
|
|
116
116
|
end
|
117
117
|
```
|
118
118
|
|
119
|
-
Should work.
|
120
|
-
and [yegor256/mailanes](https://github.com/yegor256/mailanes). They both are
|
121
|
-
open source, you can see how they use `pgtk`.
|
122
|
-
|
123
|
-
These open source web apps of mine are using pgtk (check their source code
|
124
|
-
to see how it all works):
|
119
|
+
Should work.
|
125
120
|
|
126
|
-
|
127
|
-
|
128
|
-
|
121
|
+
Well, it works in [wts.zold.io](https://github.com/zold-io/wts.zold.io),
|
122
|
+
[mailanes.com](https://github.com/yegor256/mailanes), and
|
123
|
+
[0rsk.com](https://github.com/yegor256/0rsk). They are all
|
124
|
+
open source, you can see how they use `pgtk`.
|
129
125
|
|
130
126
|
## How to contribute
|
131
127
|
|
data/lib/pgtk/pool.rb
CHANGED
@@ -148,9 +148,9 @@ class Pgtk::Pool
|
|
148
148
|
rows
|
149
149
|
end
|
150
150
|
end
|
151
|
-
lag =
|
151
|
+
lag = Time.now - start
|
152
152
|
if lag < 1
|
153
|
-
@log.debug("#{sql}: #{lag.round}ms / #{@conn.object_id}")
|
153
|
+
@log.debug("#{sql}: #{(lag * 1000).round}ms / #{@conn.object_id}")
|
154
154
|
else
|
155
155
|
@log.info("#{sql}: #{format('%.02f', lag)}s")
|
156
156
|
end
|
data/lib/pgtk/version.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.3
|
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-07-
|
11
|
+
date: 2019-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|