rails_filters_tracer 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +13 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +12 -0
- data/LICENSE.txt +21 -0
- data/README.md +105 -0
- data/Rakefile +12 -0
- data/codecov.yml +6 -0
- data/lib/filters_tracer/version.rb +5 -0
- data/lib/filters_tracer.rb +83 -0
- data/lib/rails_filters_tracer.rb +1 -0
- data/rails_filters_tracer.gemspec +41 -0
- data/sig/rails_filters_tracer.rbs +4 -0
- metadata +131 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a4e6dcfc556d593e7e99afc1f9a3678d3031c4faad81ee244e5eab088a611a20
|
4
|
+
data.tar.gz: af78a8567359d34a9bb3bf5de501c207a1b30c8a74bcfda4d8f91d0cab92b3f3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3ab3273a26f9b7e0b96bdd88a3c4dc15ee0461c79ee22eb226d0c0b55a53c4ebc4d46869fcba74b5247da9176eb0e9e848184194fa75d97a8228b8f26fd5657b
|
7
|
+
data.tar.gz: 59fb84ff505fc3d73f3486cf126fd323ea5b356daf90978c0495218fd1acf1e2970bd7ff0aed2dc0ed728453597b48adddd2a5f42e55c893e1ee96d603d3f93f
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at heyjudejudejude1968@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 kudojp
|
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,105 @@
|
|
1
|
+
# RailsFiltersTracer
|
2
|
+
|
3
|
+
[![CI](https://github.com/kudojp/rails_filters_tracer/workflows/CI/badge.svg?branch=main)](https://github.com/kudojp/rails_filters_tracer/actions?query=workflow%3ACI+branch%3Amain)
|
4
|
+
[![codecov](https://codecov.io/gh/kudojp/rails_filters_tracer/branch/main/graph/badge.svg?token=KSQO6HIAUH)](https://codecov.io/gh/kudojp/rails_filters_tracer)<!-- TODO: add a badge of [![Gem Version] -->
|
5
|
+
[![License](https://img.shields.io/github/license/kudojp/rails_filters_tracer)](./LICENSE)
|
6
|
+
|
7
|
+
RailsFiltersTracer helps you find performance bottlenecks in [filters](https://guides.rubyonrails.org/action_controller_overview.html#filters) of Rails Controllers. This gem works harmoniously with [newrelic_rpm](https://rubygems.org/gems/newrelic_rpm) gem.
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
Imagine you are working on performance tuning of Rails application, and find that the response from an endpoint associated with `UsersControllers#update_avatar` is quite slow.
|
12
|
+
|
13
|
+
Your next step would probably be breaking down the execution time by an action itself and filters registered to the action.
|
14
|
+
|
15
|
+
With `newrelic_rpm` gem, you could trace each of them by calling `add_method_tracer` iteratively as below. This is bothersome (especially when the controller inherits another controller, in which case you also have to take care of inherited filters). 😢😢😢
|
16
|
+
|
17
|
+
```rb
|
18
|
+
class UsersController < ApplicationController
|
19
|
+
include ::NewRelic::Agent::MethodTracer
|
20
|
+
|
21
|
+
before_action :authenticate_user!, only: [:update_avatar]
|
22
|
+
after_action :update_access_log, only: [:update_avatar]
|
23
|
+
def update_avatar; end
|
24
|
+
|
25
|
+
# call add_method_tracer class method again and again
|
26
|
+
add_method_tracer :update_avatar
|
27
|
+
add_method_tracer :authenticate_user!
|
28
|
+
add_method_tracer :update_access_log
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
This gem eliminates this hassle. Just register `UsersController` to `FiltersTracer`'s configuration, and that's it. All the performance of all the filters are reported to New Relic server. 🎉🎉🎉
|
33
|
+
|
34
|
+
```rb
|
35
|
+
FiltersTracer.configure do |config|
|
36
|
+
config.register_controller UsersController
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
⚠️ Currently, filters which are defined not as function but as block are not be traced. This feature would be added in the future version.
|
41
|
+
|
42
|
+
## How to install and configure
|
43
|
+
|
44
|
+
Add this line to your application's Gemfile:
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
gem 'rails_filters_tracer'
|
48
|
+
```
|
49
|
+
|
50
|
+
And then execute:
|
51
|
+
|
52
|
+
```
|
53
|
+
$ bundle install
|
54
|
+
```
|
55
|
+
|
56
|
+
Add `config/initializers/filters_tracer.rb` file in your Rails applications, and configure as below:
|
57
|
+
|
58
|
+
```rb
|
59
|
+
Rails.application.config.after_initialize do
|
60
|
+
FiltersTracer.configure do |config|
|
61
|
+
# Specify a logger with which registration status of the controller is logged.
|
62
|
+
# Default is `Rails.logger || Logger.new(STDOUT)`
|
63
|
+
config.logger = YourCustomLogger.new
|
64
|
+
|
65
|
+
# Specify a controller class which includes an action of your concern.
|
66
|
+
# You can register multiple controllers.
|
67
|
+
config.register_controller UsersController
|
68
|
+
config.register_controller PostsController
|
69
|
+
|
70
|
+
# Specify a controller whose self and subclasses should be monitored.
|
71
|
+
# Registering duplicated controllers with the previous step are allowed.
|
72
|
+
# [Tip] Specifying ApplicationController would typically monitor all the filters in your app.
|
73
|
+
config.register_all_subcontrollers ApplicationController
|
74
|
+
end
|
75
|
+
end
|
76
|
+
```
|
77
|
+
|
78
|
+
⚠️ Please do not forget to set up New Relic agent in your application.
|
79
|
+
|
80
|
+
## Dependencies
|
81
|
+
|
82
|
+
This gem depends on `rails (>= 6.0.3, <7)` and `newrelic_rpm (>= 6.12, < 9)`.
|
83
|
+
(This does not mean previous or later versions does not work with. Compatibilities have not been investigated.)
|
84
|
+
|
85
|
+
For `rails`, the compatibility has to be investigated in a strict manner. This is because FilterTracer monkey patches ActionController objects internally, thus even the difference of minor version of rails may result in the crush.
|
86
|
+
|
87
|
+
For `newrelic_rpm` gem, it is required that `add_method_tracer` is included in `NewRelic::Agent::MethodTracer` module.
|
88
|
+
|
89
|
+
## Development
|
90
|
+
|
91
|
+
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.
|
92
|
+
|
93
|
+
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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
94
|
+
|
95
|
+
## Contributing
|
96
|
+
|
97
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kudojp/rails_filters_tracer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/kudojp/rails_filters_tracer/blob/master/CODE_OF_CONDUCT.md).
|
98
|
+
|
99
|
+
## License
|
100
|
+
|
101
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
102
|
+
|
103
|
+
## Code of Conduct
|
104
|
+
|
105
|
+
Everyone interacting in the RailsFiltersTracer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rails_filters_tracer/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/codecov.yml
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'newrelic_rpm'
|
4
|
+
require 'active_support/all'
|
5
|
+
require_relative "filters_tracer/version"
|
6
|
+
|
7
|
+
module FiltersTracer
|
8
|
+
class Configuration
|
9
|
+
# @!attribute logger
|
10
|
+
# @return [Logger]
|
11
|
+
attr_accessor :logger
|
12
|
+
|
13
|
+
def initialize
|
14
|
+
self.logger = defined?(::Rails) ? Rails.logger : Logger.new(STDOUT)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
class << self
|
19
|
+
# @example
|
20
|
+
# FiltersTracer.configure do |config|
|
21
|
+
# config.logger = MyCustomLogger.new
|
22
|
+
# end
|
23
|
+
# @yield [config]
|
24
|
+
# @yieldparam [FiltersTracer::Configuration] config
|
25
|
+
# @return [void]
|
26
|
+
def configure
|
27
|
+
yield configuration
|
28
|
+
end
|
29
|
+
|
30
|
+
# @return [FiltersTracer::Configuration]
|
31
|
+
def configuration
|
32
|
+
@configuration ||= Configuration.new
|
33
|
+
end
|
34
|
+
|
35
|
+
# @return [Logger]
|
36
|
+
def logger
|
37
|
+
configuration.logger
|
38
|
+
end
|
39
|
+
|
40
|
+
def register_controller(controller)
|
41
|
+
if controller.class != Class
|
42
|
+
logger.error "===== [Failure] Could not register #{controller}(#{controller.class}) ====="
|
43
|
+
return
|
44
|
+
end
|
45
|
+
|
46
|
+
unless controller.method_defined?(:_process_action_callbacks)
|
47
|
+
logger.error "===== [Failure] #{controller} is not a traceable controller ====="
|
48
|
+
logger.error "===== This is probably because either #{controller} is not a Rails controller or because the current version of Rails is not compatible with 'rails_filters_tracer' gem."
|
49
|
+
return
|
50
|
+
end
|
51
|
+
|
52
|
+
begin
|
53
|
+
controller.class_eval do
|
54
|
+
self.include ::NewRelic::Agent::MethodTracer
|
55
|
+
self._process_action_callbacks().send(:chain).each do |callback|
|
56
|
+
case callback.raw_filter
|
57
|
+
when Symbol
|
58
|
+
self.add_method_tracer callback.raw_filter
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
rescue
|
63
|
+
logger.error "===== [Failure] Filters of actions in #{controller_str} would not be traced properly. ====="
|
64
|
+
logger.error "===== This is probably because either the current version of Rails or NewRelic::Agent is not compatible with 'rails_filters_tracer' gem."
|
65
|
+
return
|
66
|
+
end
|
67
|
+
|
68
|
+
logger.info "===== [Success] Filters of all actions in #{controller} will be reported to the New Relic server ====="
|
69
|
+
end
|
70
|
+
|
71
|
+
def register_all_subcontrollers(controller)
|
72
|
+
if controller.class != Class
|
73
|
+
logger.error "===== [Failure] Could not register #{controller}(#{controller.class}) ====="
|
74
|
+
return
|
75
|
+
end
|
76
|
+
|
77
|
+
self.register_controller(controller)
|
78
|
+
controller.descendants.each do |sub_controller|
|
79
|
+
self.register_controller(sub_controller)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "filters_tracer"
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/filters_tracer/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
|
7
|
+
spec.name = "rails_filters_tracer"
|
8
|
+
spec.version = FiltersTracer::VERSION
|
9
|
+
spec.authors = ["kudojp"]
|
10
|
+
spec.email = ["heyjudejudejude1968@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "A performance monitoring tool to find the bottleneck in filters of a Rails controller action"
|
13
|
+
spec.description = "With this gem, you can measure the execution times of each of filters registered to a Rails controller action. This is a supplementary tool of newrelic-ruby-agent gem."
|
14
|
+
spec.homepage = "https://github.com/kudojp/rails_filters_tracer"
|
15
|
+
spec.license = "MIT"
|
16
|
+
spec.required_ruby_version = ">= 2.6.0"
|
17
|
+
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
20
|
+
spec.metadata["changelog_uri"] = spec.homepage
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
25
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
27
|
+
end
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_dependency "rails", "6.0.3", "<7"
|
34
|
+
spec.add_dependency "newrelic_rpm", ">= 6.12", "<9"
|
35
|
+
|
36
|
+
spec.add_development_dependency "pry-byebug"
|
37
|
+
spec.add_development_dependency "simplecov-cobertura"
|
38
|
+
|
39
|
+
# For more information and examples about making a new gem, check out our
|
40
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_filters_tracer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kudojp
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-02-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 6.0.3
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - '='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 6.0.3
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: newrelic_rpm
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '6.12'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '9'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '6.12'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '9'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: pry-byebug
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
type: :development
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: simplecov-cobertura
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
description: With this gem, you can measure the execution times of each of filters
|
82
|
+
registered to a Rails controller action. This is a supplementary tool of newrelic-ruby-agent
|
83
|
+
gem.
|
84
|
+
email:
|
85
|
+
- heyjudejudejude1968@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".rspec"
|
91
|
+
- ".rubocop.yml"
|
92
|
+
- CHANGELOG.md
|
93
|
+
- CODE_OF_CONDUCT.md
|
94
|
+
- Gemfile
|
95
|
+
- LICENSE.txt
|
96
|
+
- README.md
|
97
|
+
- Rakefile
|
98
|
+
- codecov.yml
|
99
|
+
- lib/filters_tracer.rb
|
100
|
+
- lib/filters_tracer/version.rb
|
101
|
+
- lib/rails_filters_tracer.rb
|
102
|
+
- rails_filters_tracer.gemspec
|
103
|
+
- sig/rails_filters_tracer.rbs
|
104
|
+
homepage: https://github.com/kudojp/rails_filters_tracer
|
105
|
+
licenses:
|
106
|
+
- MIT
|
107
|
+
metadata:
|
108
|
+
homepage_uri: https://github.com/kudojp/rails_filters_tracer
|
109
|
+
source_code_uri: https://github.com/kudojp/rails_filters_tracer
|
110
|
+
changelog_uri: https://github.com/kudojp/rails_filters_tracer
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 2.6.0
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubygems_version: 3.3.8
|
127
|
+
signing_key:
|
128
|
+
specification_version: 4
|
129
|
+
summary: A performance monitoring tool to find the bottleneck in filters of a Rails
|
130
|
+
controller action
|
131
|
+
test_files: []
|