peek-activerecord 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e48abc9c66c1fd7f15a72ff4a563dde041dea5f1
4
+ data.tar.gz: 7275d15031cefde6987261d922159e9c7543e299
5
+ SHA512:
6
+ metadata.gz: 10b39ba2a7439d76f9053e7771267b010f95ef0bc37acb1e369766009b33e41c3394e4eacfcf7a1a1baf998e48aa2ee73ce74fd92eb55e620f682fc1ac5f57b5
7
+ data.tar.gz: 604b5e7d52f777e211b27c869ca22d6846e984daa2f1f5445b234c0963222c18237f899485c97ea68b00f618315469fd61d3665cd16bdd4bb10a7bae0ae56e04
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.15.0
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at bhuga@github.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in peek-activerecord.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Ben Lavender
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # Peek::Activerecord
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/peek/activerecord`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'peek-activerecord'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install peek-activerecord
22
+
23
+ In `/app/assets/stlyesheets/application.scss`:
24
+
25
+ ```
26
+ = require peek/views/activerecord
27
+ = require peek/views/activerecord/pygments
28
+ ```
29
+
30
+ In `/app/assets/javascripts/application.coffee`:
31
+
32
+ ```
33
+ #= require peek/views/activerecord
34
+ ```
35
+
36
+ This works the same way in `application.js` if you have that instead, just put
37
+ the require in a comment.
38
+
39
+ ## Usage
40
+
41
+ Any page with `peek_enbled?` will have a new `ActiveRecord Queries` link. Click
42
+ on it to see your queries:
43
+
44
+ ![](https://github-slack.s3.amazonaws.com/monosnap/Your_Builds_2017-06-27_14-00-43.png)
45
+
46
+ Controllers have a new method, `peek_activerecord_enabled?`, that you can
47
+ overwrite to separate AR enabled-ness from peek enabled-ness if you like.
48
+
49
+ ## Development
50
+
51
+ There's no good development harness yet, sorry. Contributions are welcome if
52
+ you're up to it.
53
+
54
+ ## Contributing
55
+
56
+ Bug reports and pull requests are welcome on GitHub at https://github.com/bhuga/peek-activerecord. 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.
57
+
58
+ ## License
59
+
60
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
61
+
62
+ ## Code of Conduct
63
+
64
+ Everyone interacting in the Peek::Activerecord project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/bhuga/peek-activerecord/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,8 @@
1
+ $(document).on('click', '#js-peek-activerecord-toggle', function(e) {
2
+ table = document.getElementById('peek-activerecord-modal');
3
+ peek = document.getElementById('peek')
4
+ peek.appendChild(table);
5
+ peek.classList.toggle('display-activerecord-modal')
6
+ e.preventDefault();
7
+ return false;
8
+ });
@@ -0,0 +1,57 @@
1
+ #peek.display-activerecord-modal {
2
+ height: auto;
3
+
4
+ #peek-activerecord-modal {
5
+ display: block;
6
+ }
7
+ }
8
+
9
+ #peek-activerecord-modal {
10
+ display: none;
11
+ clear: both;
12
+ background: #000;
13
+
14
+ .duration-header {
15
+ max-width: 100px;
16
+ }
17
+
18
+ .cached-header {
19
+ width: 50px;
20
+ }
21
+
22
+ .duration-data, .cache-data {
23
+ text-align: center;
24
+ }
25
+
26
+ .duration-data {
27
+ max-width: 100px;
28
+ }
29
+
30
+ .cache-data {
31
+ width: 50px;
32
+ }
33
+
34
+ .sql-data {
35
+ text-align: left;
36
+ pre {
37
+ white-space: normal;
38
+ .highlight {
39
+ font-family: monospace;
40
+ }
41
+ }
42
+ }
43
+
44
+ ul {
45
+ display: block;
46
+ li {
47
+ display: block;
48
+ ul.row {
49
+ display: flex;
50
+ flex-direction: row;
51
+ li {
52
+ padding: 5px;
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,60 @@
1
+ .highlight { background: #000; }
2
+ .highlight .c { color: #999988; font-style: italic } /* Comment */
3
+ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
4
+ .highlight .k { font-weight: bold } /* Keyword */
5
+ .highlight .o { font-weight: bold } /* Operator */
6
+ .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
7
+ .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
8
+ .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
9
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
10
+ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
11
+ .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
12
+ .highlight .ge { font-style: italic } /* Generic.Emph */
13
+ .highlight .gr { color: #aa0000 } /* Generic.Error */
14
+ .highlight .gh { color: #999999 } /* Generic.Heading */
15
+ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
16
+ .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
17
+ .highlight .go { color: #888888 } /* Generic.Output */
18
+ .highlight .gp { color: #555555 } /* Generic.Prompt */
19
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
20
+ .highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
21
+ .highlight .gt { color: #aa0000 } /* Generic.Traceback */
22
+ .highlight .kc { font-weight: bold } /* Keyword.Constant */
23
+ .highlight .kd { font-weight: bold } /* Keyword.Declaration */
24
+ .highlight .kp { font-weight: bold } /* Keyword.Pseudo */
25
+ .highlight .kr { font-weight: bold } /* Keyword.Reserved */
26
+ .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
27
+ .highlight .m { color: #009999 } /* Literal.Number */
28
+ .highlight .s { color: #d14 } /* Literal.String */
29
+ .highlight .na { color: #008080 } /* Name.Attribute */
30
+ .highlight .nb { color: #0086B3 } /* Name.Builtin */
31
+ .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
32
+ .highlight .no { color: #008080 } /* Name.Constant */
33
+ .highlight .ni { color: #800080 } /* Name.Entity */
34
+ .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
35
+ .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
36
+ .highlight .nn { color: #555555 } /* Name.Namespace */
37
+ .highlight .nt { color: #000080 } /* Name.Tag */
38
+ .highlight .nv { color: #008080 } /* Name.Variable */
39
+ .highlight .ow { font-weight: bold } /* Operator.Word */
40
+ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
41
+ .highlight .mf { color: #009999 } /* Literal.Number.Float */
42
+ .highlight .mh { color: #009999 } /* Literal.Number.Hex */
43
+ .highlight .mi { color: #009999 } /* Literal.Number.Integer */
44
+ .highlight .mo { color: #009999 } /* Literal.Number.Oct */
45
+ .highlight .sb { color: #d14 } /* Literal.String.Backtick */
46
+ .highlight .sc { color: #d14 } /* Literal.String.Char */
47
+ .highlight .sd { color: #d14 } /* Literal.String.Doc */
48
+ .highlight .s2 { color: #d14 } /* Literal.String.Double */
49
+ .highlight .se { color: #d14 } /* Literal.String.Escape */
50
+ .highlight .sh { color: #d14 } /* Literal.String.Heredoc */
51
+ .highlight .si { color: #d14 } /* Literal.String.Interpol */
52
+ .highlight .sx { color: #d14 } /* Literal.String.Other */
53
+ .highlight .sr { color: #009926 } /* Literal.String.Regex */
54
+ .highlight .s1 { color: #d14 } /* Literal.String.Single */
55
+ .highlight .ss { color: #990073 } /* Literal.String.Symbol */
56
+ .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
57
+ .highlight .vc { color: #008080 } /* Name.Variable.Class */
58
+ .highlight .vg { color: #008080 } /* Name.Variable.Global */
59
+ .highlight .vi { color: #008080 } /* Name.Variable.Instance */
60
+ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
@@ -0,0 +1 @@
1
+ <%= link_to 'ActiveRecord Queries', {}, id: "js-peek-activerecord-toggle" %>
@@ -0,0 +1 @@
1
+ <%= link_to 'ActiveRecord Queries', :activerecord => true %>
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "peek/activerecord"
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 "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -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,4 @@
1
+ require 'peek'
2
+ require "peek-activerecord/version"
3
+ require 'peek-activerecord/railtie'
4
+ require 'peek/views/activerecord'
@@ -0,0 +1,13 @@
1
+ require 'peek/activerecord/controller_helpers'
2
+
3
+ module Peek
4
+ module ActiveRecord
5
+ class Railtie < ::Rails::Engine
6
+ initializer 'peek.activerecord.include_controller_helpers' do
7
+ ActiveSupport.on_load(:action_controller) do
8
+ include Peek::ActiveRecord::ControllerHelpers
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module Peek
2
+ module Activerecord
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ require 'peek'
2
+ require "peek-activerecord/version"
3
+ require 'peek-activerecord/railtie'
4
+ require 'peek/views/activerecord'
@@ -0,0 +1,96 @@
1
+ begin
2
+ require 'pygments.rb'
3
+ rescue LoadError
4
+ # Doesn't have pygments.rb installed
5
+ end
6
+
7
+ require "rack/utils"
8
+
9
+ module Peek
10
+ module ActiveRecord
11
+ module ControllerHelpers
12
+ extend ActiveSupport::Concern
13
+
14
+ included do
15
+ around_action :inject_peek_activerecord, :if => [:peek_enabled?, :peek_activerecord_enabled?]
16
+ end
17
+
18
+ protected
19
+
20
+ def pygments_enabled?
21
+ defined?(Pygments)
22
+ end
23
+
24
+ def pygmentized_sql(sql)
25
+ if pygments_enabled?
26
+ Pygments.highlight(sql, :lexer => 'sql')
27
+ else
28
+ "#{Rack::Utils.escape_html(code)}"
29
+ end
30
+ end
31
+
32
+ # This can be overwritten in ApplicationController to disable query
33
+ # tracking separately from peek
34
+ def peek_activerecord_enabled?
35
+ peek_enabled?
36
+ end
37
+
38
+ def inject_peek_activerecord(&block)
39
+ puts "injecting"
40
+ return block.call unless peek_activerecord_enabled?
41
+ ret = nil
42
+ queries = []
43
+ subscriber = ActiveSupport::Notifications.subscribe "sql.active_record" do |*args|
44
+ event = ActiveSupport::Notifications::Event.new *args
45
+ queries << event
46
+ end
47
+ ret = block.call
48
+ peek_activerecord_append_queries_to_response(queries)
49
+ ret
50
+ ensure
51
+ ActiveSupport::Notifications.unsubscribe(subscriber) if subscriber
52
+ end
53
+
54
+ def peek_activerecord_append_queries_to_response(queries)
55
+ if response.content_type =~ %r|text/html|
56
+ output = <<-EOS
57
+ <div class=ar_instrumentation id=peek_activerecord_table>
58
+ <ul>
59
+ <li>
60
+ <ul class=row>
61
+ <li class=duration-header>
62
+ Duration
63
+ </li>
64
+ <li class=cached-header>
65
+ Cached
66
+ </li>
67
+ <li class=sql-header>
68
+ SQL
69
+ </li>
70
+ </ul>
71
+ </li>
72
+ EOS
73
+ queries.each do |query|
74
+ output << <<-EOS
75
+ <li>
76
+ <ul class=row>
77
+ <li class=duration-data>
78
+ #{"%.3f" % query.duration}ms
79
+ </li>
80
+ <li class=cache-data>
81
+ #{query.payload[:name] == "CACHE"}
82
+ </li>
83
+ <li class=sql-data>
84
+ #{pygmentized_sql(query.payload[:sql])}
85
+ </li>
86
+ </ul>
87
+ </li>
88
+ EOS
89
+ end
90
+ output << "</table>"
91
+ response.body += "<div id='peek-activerecord-modal'>#{output}</div>".html_safe
92
+ end
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,8 @@
1
+ require 'peek/views/view'
2
+
3
+ module Peek
4
+ module Views
5
+ class ActiveRecord < View
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "peek-activerecord/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "peek-activerecord"
8
+ spec.version = Peek::Activerecord::VERSION
9
+ spec.authors = ["Ben Lavender"]
10
+ spec.email = ["blavender@gmail.com"]
11
+
12
+ spec.summary = %q{Peek plugin for activerecord queries and timings}
13
+ spec.homepage = "https://github.com/bhuga/peek-activerecord"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+ spec.add_dependency 'peek'
23
+ spec.add_dependency 'pygments.rb'
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.15"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "minitest", "~> 5.0"
28
+ spec.add_development_dependency "pry", '~> 0'
29
+ end
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: peek-activerecord
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ben Lavender
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: peek
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pygments.rb
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.15'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.15'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description:
98
+ email:
99
+ - blavender@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".travis.yml"
106
+ - CODE_OF_CONDUCT.md
107
+ - Gemfile
108
+ - LICENSE.txt
109
+ - README.md
110
+ - Rakefile
111
+ - app/assets/javascripts/peek/views/activerecord.js
112
+ - app/assets/stylesheets/peek/views/activerecord.scss
113
+ - app/assets/stylesheets/peek/views/activerecord/pygments.scss
114
+ - app/views/peek/views/_active_record.html.erb
115
+ - app/views/peek/views/_activerecord.html.erb
116
+ - bin/console
117
+ - bin/setup
118
+ - lib/peek-activerecord.rb
119
+ - lib/peek-activerecord/railtie.rb
120
+ - lib/peek-activerecord/version.rb
121
+ - lib/peek/activerecord.rb
122
+ - lib/peek/activerecord/controller_helpers.rb
123
+ - lib/peek/views/activerecord.rb
124
+ - peek-activerecord.gemspec
125
+ homepage: https://github.com/bhuga/peek-activerecord
126
+ licenses:
127
+ - MIT
128
+ metadata: {}
129
+ post_install_message:
130
+ rdoc_options: []
131
+ require_paths:
132
+ - lib
133
+ required_ruby_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ requirements: []
144
+ rubyforge_project:
145
+ rubygems_version: 2.6.11
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: Peek plugin for activerecord queries and timings
149
+ test_files: []