pg-eyeballs 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/eyeballs/inspector.rb +11 -1
- data/lib/eyeballs/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 396f2dfb3cca12adbd1f60f4dff2f95fbe2f1260e50db42c0368d09bf4e8a197
|
4
|
+
data.tar.gz: 8a9ecefc3a9c8e5852864ad6339cd83b902c1c1d9ae6e0cbed0fd1d1d9aaa322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ed13682a1498e128d75914facd348a3e231b713105ce46278a47ac27536a39a48d5728af3b4b7d19c01c5ec74025c353e3a4f657ff6df7b69528e33b6334f91
|
7
|
+
data.tar.gz: 44fd44d54302a3c3fcbbcc79ac76a5b2a0fe8c593f0c167216c55f8ef830a17549197e746ef7530d2b72f1416e355c7cd8cfaa46505e3d6c7d3759ac1a84c265
|
data/lib/eyeballs/inspector.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'tempfile'
|
2
|
+
|
1
3
|
module Eyeballs
|
2
4
|
class Inspector
|
3
5
|
|
@@ -51,7 +53,15 @@ module Eyeballs
|
|
51
53
|
|
52
54
|
def gocmdpev
|
53
55
|
to_hash_array.each do |h|
|
54
|
-
|
56
|
+
begin
|
57
|
+
tmp = Tempfile.new('pg-eyeballs')
|
58
|
+
tmp.write(h.to_json)
|
59
|
+
tmp.close
|
60
|
+
system("cat #{tmp.path} | gocmdpev")
|
61
|
+
ensure
|
62
|
+
tmp.close
|
63
|
+
tmp.unlink
|
64
|
+
end
|
55
65
|
end
|
56
66
|
nil
|
57
67
|
end
|
data/lib/eyeballs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg-eyeballs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brad Urani
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.7.3
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: A Ruby gem for using the postgres explain command with Active Record
|