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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3ecb0ed349340e392cd51a2d08f8a3fb406718ee
4
- data.tar.gz: d88af55b891ed2700cadaac3e952f1fcbb9db2c4
2
+ SHA256:
3
+ metadata.gz: 396f2dfb3cca12adbd1f60f4dff2f95fbe2f1260e50db42c0368d09bf4e8a197
4
+ data.tar.gz: 8a9ecefc3a9c8e5852864ad6339cd83b902c1c1d9ae6e0cbed0fd1d1d9aaa322
5
5
  SHA512:
6
- metadata.gz: fe3eb5223f725effb48c363429741ae5c4e9722067c8871b2eefb0acaa338f133b1d8d15ef2e81395ed3541e827f0d4305cd82a9b0d5d70a5cb15b4473f936b3
7
- data.tar.gz: 49d459f9e8b2de48050bb791a03223ba619172dde4484c04b934272f10081caae16347aa1ad1fc88487b6488efdcb871f12e2485f975b323ae546f4c42033727
6
+ metadata.gz: 1ed13682a1498e128d75914facd348a3e231b713105ce46278a47ac27536a39a48d5728af3b4b7d19c01c5ec74025c353e3a4f657ff6df7b69528e33b6334f91
7
+ data.tar.gz: 44fd44d54302a3c3fcbbcc79ac76a5b2a0fe8c593f0c167216c55f8ef830a17549197e746ef7530d2b72f1416e355c7cd8cfaa46505e3d6c7d3759ac1a84c265
@@ -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
- system("echo '#{h.to_json}' | gocmdpev")
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
@@ -1,3 +1,3 @@
1
1
  module Eyeballs
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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: 2016-10-04 00:00:00.000000000 Z
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.5.1
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