pg-eyeballs 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8318a41826d020850ea248b42562f98495e7b319
4
+ data.tar.gz: cb5b794673a55abde012a232b2d21660c58f2b73
5
+ SHA512:
6
+ metadata.gz: 421cc9c3588a38bfc9c9d0ac05c43e068012f407cb9eca5d03fae6e17e8635f7cfe57daed87509efd632586ef37632bd050cff69be93550faef7c6fd57a67d59
7
+ data.tar.gz: b668d16c03dc16e7d5f7b1b6f3ccb97f9b64c5c4c4c7166785025bbe2858465bb6a398f8195c700353c32f31c0c992a88789643ea5c124cbfcdb792037307af0
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.12.5
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at bradurani@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'pry'
4
+ gem 'pry-byebug'
5
+ gem 'awesome_print'
6
+
7
+ # Specify your gem's dependencies in pg-eyeballs.gemspec
8
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Brad Urani
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,196 @@
1
+ [![CircleCI](https://circleci.com/gh/bradurani/pg-eyeballs.svg?style=svg)](https://circleci.com/gh/bradurani/pg-eyeballs)
2
+ # pg-eyeballs 👀
3
+
4
+ `pg-eyeballs` is a ruby gem that gives you detailed information about how the
5
+ SQL queries created by the active record code you write are executed by the database.
6
+ It gives you an easy, ruby friendly way to see the output of the Postgres
7
+ [`EXPLAIN` command](https://www.postgresql.org/docs/9.4/static/using-explain.html) and integrates with the popular query analysis tool [`gocmdpev`](https://github.com/simon-engledew/gocmdpev).
8
+
9
+ Using it you can see:
10
+ - What queries were run
11
+ - How long they took
12
+ - Which indexes were used
13
+ - Which algorithms were used
14
+ - Much more!
15
+
16
+ ## Installation
17
+
18
+ Add this line to your application's Gemfile:
19
+
20
+ ```ruby
21
+ gem 'pg-eyeballs'
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install pg-eyeballs
31
+
32
+ ## Usage
33
+
34
+ ### explain(options: [:analyze, :verbose, :costs, :buffers], format: :text)
35
+
36
+ ```ruby
37
+ User.all.eyeballs.explain
38
+
39
+ ["Seq Scan on public.users (cost=0.00..22.30 rows=1230 width=36) (actual time=0.002..0.002 rows=1 loops=1)
40
+ Output: id, email
41
+ Buffers: shared hit=1
42
+ Planning time: 0.014 ms
43
+ Execution time: 0.009 ms"
44
+ ]
45
+ ```
46
+ Most eyeballs methods return an array because an `ActiveRecord::Relation` can run
47
+ more than one query, for instance when it has a `preload` or with certain
48
+ subqueries
49
+ ```ruby
50
+ User.all.preload(:profiles).eyeballs.explain(options: [:verbose], format: :yaml)
51
+ ['- Plan:
52
+ Node Type: "Seq Scan"
53
+ Relation Name: "users"
54
+ Schema: "public"
55
+ Alias: "users"
56
+ Startup Cost: 0.00
57
+ Total Cost: 22.30
58
+ Plan Rows: 1230
59
+ Plan Width: 36
60
+ Output:
61
+ - "id"
62
+ - "email"',
63
+ '- Plan:
64
+ Node Type: "Seq Scan"
65
+ Relation Name: "profiles"
66
+ Schema: "public"
67
+ Alias: "profiles"
68
+ Startup Cost: 0.00\
69
+ Total Cost: 36.75
70
+ Plan Rows: 11
71
+ Plan Width: 8
72
+ Output:
73
+ - "id"
74
+ - "user_id"
75
+ Filter: "(profiles.user_id = 1)"'
76
+ ]
77
+ ```
78
+ **formats:** :text, :xml, :json, :yaml
79
+
80
+ ### explain_queries(options: [:analyze, :verbose, :costs, :buffers], format: :text)
81
+ ```ruby
82
+ User.all.preload(:profiles).eyeballs.explain_queries
83
+ ["EXPLAIN (ANALYZE,VERBOSE,COSTS,BUFFERS,FORMAT TEXT) SELECT \"users\".* FROM \"users\"",
84
+ "EXPLAIN (ANALYZE,VERBOSE,COSTS,BUFFERS,FORMAT TEXT) SELECT \"profiles\".* FROM \"profiles\" WHERE \"profiles\".\"user_id\" IN (1)"]
85
+ ```
86
+ **formats:** :text, :xml, :json, :yaml
87
+
88
+ ### log_json(options: [:analyze, :verbose, :costs, :buffers])
89
+ Prints each JSON plan on a separate line. This is useful for command line
90
+ processing with [`xargs`](https://linux.die.net/man/1/xargs) and [`jq`](https://stedolan.github.io/jq/) or
91
+ [`gocmdpev`](https://github.com/simon-engledew/gocmdpev)
92
+ ```ruby
93
+ User.all.preload(:profiles).eyeballs.log_json
94
+ ```
95
+
96
+ ### queries
97
+ ```ruby
98
+ User.all.preload(:profiles).eyeballs.queries
99
+ ["SELECT \"users\".* FROM \"users\"",
100
+ "SELECT \"profiles\".* FROM \"profiles\" WHERE \"profiles\".\"user_id\" IN (1)"]
101
+ ```
102
+
103
+ ### to_hash_array(options: [:analyze, :verbose, :costs, :buffers])
104
+ ```ruby
105
+ User.all.eyeballs.to_hash_array
106
+ [[{"Plan"=>{
107
+ "Node Type"=>"Seq Scan",
108
+ "Relation Name"=>"users",
109
+ "Schema"=>"public",
110
+ "Alias"=>"users",
111
+ "Startup Cost"=>0.0,
112
+ "Total Cost"=>22.3,
113
+ "Plan Rows"=>1230,
114
+ "Plan Width"=>36,
115
+ "Actual Startup Time"=>0.001,
116
+ "Actual Total Time"=>0.001,
117
+ "Actual Rows"=>1,
118
+ "Actual Loops"=>1,
119
+ "Output"=>["id", "email"],
120
+ "Shared Hit Blocks"=>1,
121
+ "Shared Read Blocks"=>0,
122
+ "Shared Dirtied Blocks"=>0,
123
+ "Shared Written Blocks"=>0,
124
+ "Local Hit Blocks"=>0,
125
+ "Local Read Blocks"=>0,
126
+ "Local Dirtied Blocks"=>0,
127
+ "Local Written Blocks"=>0,
128
+ "Temp Read Blocks"=>0,
129
+ "Temp Written Blocks"=>0,
130
+ "I/O Read Time"=>0.0,
131
+ "I/O Write Time"=>0.0},
132
+ "Planning Time"=>0.014,
133
+ "Triggers"=>[],
134
+ "Execution Time"=>0.007}]
135
+ ]
136
+ ```
137
+
138
+ ### to_json(options: [:analyze, :verbose, :costs, :buffers])
139
+ **alias for** `explain(format: :json)`
140
+
141
+ ### to_s(options: [:analyze, :verbose, :costs, :buffers])
142
+
143
+ ```ruby
144
+ User.all.preload(:profiles).eyeballs.to_s
145
+ "Seq Scan on public.users (cost=0.00..22.30 rows=1230 width=36) (actual time=0.001..0.002 rows=1 loops=1)
146
+ Output: id, email
147
+ Buffers: shared hit=1
148
+ Planning time: 0.010 ms
149
+ Execution time: 0.005 ms
150
+
151
+ Seq Scan on public.profiles (cost=0.00..36.75 rows=11 width=8) (actual time=0.002..0.002 rows=1 loops=1)
152
+ Output: id, user_id
153
+ Filter: (profiles.user_id = 1)
154
+ Buffers: shared hit=1
155
+ Planning time: 0.013 ms
156
+ Execution time: 0.006 ms"
157
+ ```
158
+
159
+ ## Integration with `gocmdpev`
160
+
161
+ `pg-eyeballs` integrates with
162
+ [`gocmdpev`](https://github.com/simon-engledew/gocmdpev). If you have `gocmdpev`
163
+ installed, you can use it in your Rails console:
164
+ ```ruby
165
+ User.all.preload(:profiles).eyeballs.gocmdpev
166
+ ```
167
+
168
+ ![gocmdpev](https://raw.githubusercontent.com/bradurani/pg-eyeballs/master/gocmdpev.png "Using
169
+ gocmdpev in the Rails console")
170
+
171
+ You can also use `pg-eyeballs` and `gocmdpev` together from the command line.
172
+ First, alias the included command. From inside the directory of you Rails
173
+ project run
174
+ ```bash
175
+ alias eyeballs=$(bundle show pg-eyeballs)/bin/gocmdpev
176
+ ```
177
+ To use, also from inside your Rails project directory, run
178
+ ```bash
179
+ eyeballs User.preload(:profiles)
180
+ ```
181
+
182
+ ## Development
183
+
184
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
185
+
186
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
187
+
188
+ ## Contributing
189
+
190
+ Bug reports and pull requests are welcome on GitHub at https://github.com/bradurani/pg-eyeballs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
191
+
192
+
193
+ ## License
194
+
195
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
196
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "pg-eyeballs"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "pry"
14
+ Pry.start
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bash
2
+ bundle exec rails runner "$1.eyeballs.log_json" | while read x; do echo "$x" | gocmdpev; echo; done
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,8 @@
1
+ machine:
2
+ environment:
3
+ POSTGRES_DB_DATABASE: circle_test
4
+ POSTGRES_DB_USERNAME: ubuntu
5
+ POSTGRES_DB_PASSWORD: ''
6
+ database:
7
+ override:
8
+ - echo 'using circle_test'
Binary file
@@ -0,0 +1,5 @@
1
+ class Eyeballs::UnknownFormatError < StandardError
2
+ end
3
+
4
+ class Eyeballs::UnknownOptionError < StandardError
5
+ end
@@ -0,0 +1,5 @@
1
+ module Eyeballs::RelationMixin
2
+ def eyeballs
3
+ Eyeballs::Inspector.new(self)
4
+ end
5
+ end
@@ -0,0 +1,105 @@
1
+ module Eyeballs
2
+ class Inspector
3
+
4
+ OPTIONS = [:analyze, :verbose, :costs, :buffers]
5
+ FORMATS = [:text, :xml, :json, :yaml]
6
+
7
+ def initialize(relation)
8
+ @relation = relation
9
+ end
10
+
11
+ def explain(format: :text, options: OPTIONS)
12
+ @explain ||= explain_queries(format: format, options: options).map do |query|
13
+ run_query(query)
14
+ end
15
+ end
16
+
17
+ def explain_queries(format: :text, options: OPTIONS)
18
+ validate_format!(format)
19
+ validate_options!(options)
20
+ @explain_queries ||= queries.map do |query|
21
+ explain_query(query, format, options)
22
+ end
23
+ end
24
+
25
+ def queries
26
+ @queries ||= query_array.map do |query_binding|
27
+ build_sql(query_binding)
28
+ end
29
+ end
30
+
31
+ def to_s(options: OPTIONS)
32
+ explain.join("\n\n")
33
+ end
34
+
35
+ def to_json(options: OPTIONS)
36
+ explain(options: options, format: :json)
37
+ end
38
+
39
+ def to_hash_array(options: OPTIONS)
40
+ to_json(options: options).map { |json| JSON.parse(json) }
41
+ end
42
+
43
+ def inspect
44
+ "Eyeballs::Inspector: #{@relation.to_s}"
45
+ end
46
+
47
+ def log_json(options: OPTIONS)
48
+ to_hash_array.each { |h| puts "#{h.to_json }" }
49
+ nil
50
+ end
51
+
52
+ def gocmdpev
53
+ to_hash_array.each do |h|
54
+ system("echo '#{h.to_json}' | gocmdpev")
55
+ end
56
+ nil
57
+ end
58
+
59
+ private
60
+
61
+ def query_array
62
+ @relation.send(:collecting_queries_for_explain) do
63
+ @relation.send(:exec_queries)
64
+ end
65
+ end
66
+
67
+ def validate_format!(format)
68
+ unless FORMATS.include?(format)
69
+ raise Eyeballs::UnknownFormatError, "Unknown Format #{format}"
70
+ end
71
+ end
72
+
73
+ def validate_options!(options)
74
+ options.each do |option|
75
+ unless OPTIONS.include?(option)
76
+ raise Eyeballs::UnknownOptionError, "Unknown Option #{option}"
77
+ end
78
+ end
79
+ end
80
+
81
+ def explain_query(query, format, options)
82
+ "EXPLAIN (#{explain_options(format, options)}) #{query}"
83
+ end
84
+
85
+ def explain_options(format, options)
86
+ options.map(&:upcase).tap { |a| a << "FORMAT #{format.upcase}" }.join(',')
87
+ end
88
+
89
+ def run_query(sql)
90
+ @relation.connection.raw_connection.exec(sql).values.join("\n")
91
+ end
92
+
93
+ def build_sql(query_binding)
94
+ sql = query_binding[0]
95
+ values = query_binding[1].map do |b|
96
+ cast_type = b[0].cast_type
97
+ cast_value = cast_type.type_cast_for_database(b[1])
98
+ quoted_value = @relation.connection.quote(cast_value)
99
+ end
100
+ values.each.with_index.reduce(sql) do |sql,(value, index)|
101
+ sql.sub("$#{index + 1}", value.to_s)
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,3 @@
1
+ module Eyeballs
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,9 @@
1
+ require 'active_record'
2
+ require 'pg'
3
+
4
+ module Eyeballs
5
+ end
6
+
7
+ Dir[File.join(File.dirname(__FILE__), 'eyeballs', '*.rb')].each {|file| require file }
8
+
9
+ ActiveRecord::Relation.include Eyeballs::RelationMixin
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'eyeballs/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pg-eyeballs"
8
+ spec.version = Eyeballs::VERSION
9
+ spec.authors = ["Brad Urani"]
10
+ spec.email = ["bradurani@gmail.com"]
11
+
12
+ spec.summary = 'A Ruby gem for using the postgres explain command with Active Record'
13
+ spec.description = 'pg-eyeballs is a ruby gem that gives you detailed information about how the SQL queries created by the active record code you write are executed by the database. It gives you an easy, ruby friendly way to see the output of the Postgres EXPLAIN command and integrates with the popular query analysis tool gocmdpev'
14
+ spec.homepage = "http://github.com/bradurani/pg-eyeballs"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.12"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "rspec", "~> 3.0"
33
+ spec.add_development_dependency "database_cleaner"
34
+
35
+ spec.add_dependency "activerecord", ">=4.0", "<5.0"
36
+ spec.add_dependency "pg"
37
+
38
+ end
metadata ADDED
@@ -0,0 +1,157 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pg-eyeballs
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Brad Urani
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.12'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: database_cleaner
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activerecord
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '4.0'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '5.0'
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '4.0'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '5.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: pg
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ description: pg-eyeballs is a ruby gem that gives you detailed information about how
104
+ the SQL queries created by the active record code you write are executed by the
105
+ database. It gives you an easy, ruby friendly way to see the output of the Postgres
106
+ EXPLAIN command and integrates with the popular query analysis tool gocmdpev
107
+ email:
108
+ - bradurani@gmail.com
109
+ executables: []
110
+ extensions: []
111
+ extra_rdoc_files: []
112
+ files:
113
+ - ".gitignore"
114
+ - ".rspec"
115
+ - ".travis.yml"
116
+ - CODE_OF_CONDUCT.md
117
+ - Gemfile
118
+ - LICENSE
119
+ - README.md
120
+ - Rakefile
121
+ - bin/console
122
+ - bin/gocmdpev
123
+ - bin/setup
124
+ - circle.yml
125
+ - gocmdpev.png
126
+ - lib/eyeballs/errors.rb
127
+ - lib/eyeballs/includes.rb
128
+ - lib/eyeballs/inspector.rb
129
+ - lib/eyeballs/version.rb
130
+ - lib/pg-eyeballs.rb
131
+ - pg-eyeballs.gemspec
132
+ homepage: http://github.com/bradurani/pg-eyeballs
133
+ licenses:
134
+ - MIT
135
+ metadata:
136
+ allowed_push_host: https://rubygems.org
137
+ post_install_message:
138
+ rdoc_options: []
139
+ require_paths:
140
+ - lib
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ requirements: []
152
+ rubyforge_project:
153
+ rubygems_version: 2.5.1
154
+ signing_key:
155
+ specification_version: 4
156
+ summary: A Ruby gem for using the postgres explain command with Active Record
157
+ test_files: []