esse-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +23 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +183 -0
- data/LICENSE +21 -0
- data/README.md +26 -0
- data/lib/esse/rails/cli/autoloader.rb +27 -0
- data/lib/esse/rails/instrumentation/controller_runtime.rb +57 -0
- data/lib/esse/rails/instrumentation/runtime_registry.rb +32 -0
- data/lib/esse/rails/instrumentation.rb +8 -0
- data/lib/esse/rails/lograge.rb +23 -0
- data/lib/esse/rails/version.rb +7 -0
- data/lib/esse/rails.rb +15 -0
- data/lib/esse-rails.rb +3 -0
- metadata +268 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f617e7597afa910dbfde6b428b6c3cab87bb03c75a192718dad856d692163fe2
|
4
|
+
data.tar.gz: 7f161a6e35bf664bfd20ec28cd681c066675f23b179d82463fac83177d28a7e1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9bb4b60191ad204c857279422077d8f74b642891f8d54de5c83d64732320362e16c8b0c22e700ad422af125ca7bee34a8c97bce9dfa0c85a9f36140361af1228
|
7
|
+
data.tar.gz: 3fbb84943825c3a87263b11edd4132f3e528b466062c2bcceb63644eef1badeeaf0b583bc7f4e63378cb154b91d559cdaff1641b884f19e6bfb3c3d81ace6e71
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
inherit_mode:
|
2
|
+
merge:
|
3
|
+
- Exclude
|
4
|
+
|
5
|
+
require:
|
6
|
+
- rubocop-performance
|
7
|
+
- rubocop-rspec
|
8
|
+
- standard/cop/block_single_line_braces
|
9
|
+
|
10
|
+
inherit_gem:
|
11
|
+
standard: config/base.yml
|
12
|
+
|
13
|
+
AllCops:
|
14
|
+
TargetRubyVersion: 2.5
|
15
|
+
SuggestExtensions: false
|
16
|
+
Exclude:
|
17
|
+
- "db/**/*"
|
18
|
+
- "tmp/**/*"
|
19
|
+
- "vendor/**/*"
|
20
|
+
NewCops: enable
|
21
|
+
|
22
|
+
RSpec/MultipleExpectations:
|
23
|
+
Enabled: false
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## 0.0.1 - 2023-11-10
|
8
|
+
The first release of the Esse::Rails. This release includes the following features:
|
9
|
+
* Instrumentation for Esse search operations
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,183 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/marcosgz/esse.git
|
3
|
+
revision: 7b9bf919265464e20dd42fc58d7908a1b90d73fa
|
4
|
+
branch: master
|
5
|
+
specs:
|
6
|
+
esse (0.2.2)
|
7
|
+
multi_json
|
8
|
+
thor (>= 0.19)
|
9
|
+
|
10
|
+
PATH
|
11
|
+
remote: .
|
12
|
+
specs:
|
13
|
+
esse-rails (0.0.1)
|
14
|
+
activesupport (>= 4.2, < 8)
|
15
|
+
esse
|
16
|
+
|
17
|
+
GEM
|
18
|
+
remote: https://rubygems.org/
|
19
|
+
specs:
|
20
|
+
actionpack (5.2.8.1)
|
21
|
+
actionview (= 5.2.8.1)
|
22
|
+
activesupport (= 5.2.8.1)
|
23
|
+
rack (~> 2.0, >= 2.0.8)
|
24
|
+
rack-test (>= 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.2.8.1)
|
28
|
+
activesupport (= 5.2.8.1)
|
29
|
+
builder (~> 3.1)
|
30
|
+
erubi (~> 1.4)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activesupport (5.2.8.1)
|
34
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
35
|
+
i18n (>= 0.7, < 2)
|
36
|
+
minitest (~> 5.1)
|
37
|
+
tzinfo (~> 1.1)
|
38
|
+
addressable (2.8.5)
|
39
|
+
public_suffix (>= 2.0.2, < 6.0)
|
40
|
+
ast (2.4.2)
|
41
|
+
awesome_print (1.9.2)
|
42
|
+
builder (3.2.4)
|
43
|
+
coderay (1.1.3)
|
44
|
+
concurrent-ruby (1.2.2)
|
45
|
+
crack (0.4.5)
|
46
|
+
rexml
|
47
|
+
crass (1.0.6)
|
48
|
+
diff-lcs (1.5.0)
|
49
|
+
dotenv (2.8.1)
|
50
|
+
erubi (1.12.0)
|
51
|
+
hashdiff (1.0.1)
|
52
|
+
i18n (1.14.1)
|
53
|
+
concurrent-ruby (~> 1.0)
|
54
|
+
json (2.6.3)
|
55
|
+
language_server-protocol (3.17.0.3)
|
56
|
+
lint_roller (1.1.0)
|
57
|
+
lograge (0.11.1)
|
58
|
+
actionpack (>= 4)
|
59
|
+
activesupport (>= 4)
|
60
|
+
railties (>= 4)
|
61
|
+
request_store (~> 1.0)
|
62
|
+
loofah (2.21.3)
|
63
|
+
crass (~> 1.0.2)
|
64
|
+
nokogiri (>= 1.12.0)
|
65
|
+
method_source (1.0.0)
|
66
|
+
minitest (5.20.0)
|
67
|
+
multi_json (1.15.0)
|
68
|
+
nokogiri (1.15.4-x86_64-linux)
|
69
|
+
racc (~> 1.4)
|
70
|
+
parallel (1.23.0)
|
71
|
+
parser (3.2.2.4)
|
72
|
+
ast (~> 2.4.1)
|
73
|
+
racc
|
74
|
+
pry (0.14.2)
|
75
|
+
coderay (~> 1.1)
|
76
|
+
method_source (~> 1.0)
|
77
|
+
public_suffix (5.0.3)
|
78
|
+
racc (1.7.3)
|
79
|
+
rack (2.2.8)
|
80
|
+
rack-test (2.1.0)
|
81
|
+
rack (>= 1.3)
|
82
|
+
rails-dom-testing (2.2.0)
|
83
|
+
activesupport (>= 5.0.0)
|
84
|
+
minitest
|
85
|
+
nokogiri (>= 1.6)
|
86
|
+
rails-html-sanitizer (1.6.0)
|
87
|
+
loofah (~> 2.21)
|
88
|
+
nokogiri (~> 1.14)
|
89
|
+
railties (5.2.8.1)
|
90
|
+
actionpack (= 5.2.8.1)
|
91
|
+
activesupport (= 5.2.8.1)
|
92
|
+
method_source
|
93
|
+
rake (>= 0.8.7)
|
94
|
+
thor (>= 0.19.0, < 2.0)
|
95
|
+
rainbow (3.1.1)
|
96
|
+
rake (12.3.3)
|
97
|
+
regexp_parser (2.8.2)
|
98
|
+
request_store (1.5.1)
|
99
|
+
rack (>= 1.4)
|
100
|
+
rexml (3.2.6)
|
101
|
+
rspec (3.12.0)
|
102
|
+
rspec-core (~> 3.12.0)
|
103
|
+
rspec-expectations (~> 3.12.0)
|
104
|
+
rspec-mocks (~> 3.12.0)
|
105
|
+
rspec-core (3.12.2)
|
106
|
+
rspec-support (~> 3.12.0)
|
107
|
+
rspec-expectations (3.12.3)
|
108
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
109
|
+
rspec-support (~> 3.12.0)
|
110
|
+
rspec-mocks (3.12.6)
|
111
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
112
|
+
rspec-support (~> 3.12.0)
|
113
|
+
rspec-support (3.12.1)
|
114
|
+
rubocop (1.57.2)
|
115
|
+
json (~> 2.3)
|
116
|
+
language_server-protocol (>= 3.17.0)
|
117
|
+
parallel (~> 1.10)
|
118
|
+
parser (>= 3.2.2.4)
|
119
|
+
rainbow (>= 2.2.2, < 4.0)
|
120
|
+
regexp_parser (>= 1.8, < 3.0)
|
121
|
+
rexml (>= 3.2.5, < 4.0)
|
122
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
123
|
+
ruby-progressbar (~> 1.7)
|
124
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
125
|
+
rubocop-ast (1.30.0)
|
126
|
+
parser (>= 3.2.1.0)
|
127
|
+
rubocop-capybara (2.19.0)
|
128
|
+
rubocop (~> 1.41)
|
129
|
+
rubocop-factory_bot (2.24.0)
|
130
|
+
rubocop (~> 1.33)
|
131
|
+
rubocop-performance (1.19.1)
|
132
|
+
rubocop (>= 1.7.0, < 2.0)
|
133
|
+
rubocop-ast (>= 0.4.0)
|
134
|
+
rubocop-rspec (2.25.0)
|
135
|
+
rubocop (~> 1.40)
|
136
|
+
rubocop-capybara (~> 2.17)
|
137
|
+
rubocop-factory_bot (~> 2.22)
|
138
|
+
ruby-progressbar (1.13.0)
|
139
|
+
standard (1.32.0)
|
140
|
+
language_server-protocol (~> 3.17.0.2)
|
141
|
+
lint_roller (~> 1.0)
|
142
|
+
rubocop (~> 1.57.2)
|
143
|
+
standard-custom (~> 1.0.0)
|
144
|
+
standard-performance (~> 1.2)
|
145
|
+
standard-custom (1.0.2)
|
146
|
+
lint_roller (~> 1.0)
|
147
|
+
rubocop (~> 1.50)
|
148
|
+
standard-performance (1.2.1)
|
149
|
+
lint_roller (~> 1.1)
|
150
|
+
rubocop-performance (~> 1.19.1)
|
151
|
+
thor (1.3.0)
|
152
|
+
thread_safe (0.3.6)
|
153
|
+
tzinfo (1.2.11)
|
154
|
+
thread_safe (~> 0.1)
|
155
|
+
unicode-display_width (2.5.0)
|
156
|
+
webmock (3.19.1)
|
157
|
+
addressable (>= 2.8.0)
|
158
|
+
crack (>= 0.3.2)
|
159
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
160
|
+
yard (0.9.34)
|
161
|
+
|
162
|
+
PLATFORMS
|
163
|
+
x86_64-linux
|
164
|
+
|
165
|
+
DEPENDENCIES
|
166
|
+
activesupport (~> 5.2)
|
167
|
+
awesome_print
|
168
|
+
dotenv
|
169
|
+
esse!
|
170
|
+
esse-rails!
|
171
|
+
lograge
|
172
|
+
pry
|
173
|
+
rake (~> 12.3)
|
174
|
+
rspec (~> 3.0)
|
175
|
+
rubocop (~> 1.20)
|
176
|
+
rubocop-performance (~> 1.11, >= 1.11.5)
|
177
|
+
rubocop-rspec (~> 2.4)
|
178
|
+
standard (~> 1.3)
|
179
|
+
webmock (~> 3.14)
|
180
|
+
yard (~> 0.9.20)
|
181
|
+
|
182
|
+
BUNDLED WITH
|
183
|
+
2.4.13
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 Marcos G. Zimmermann
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# esse-rails
|
2
|
+
Ruby on Rails extensions for "esse" elasticsearch/opensearch client
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
Add this line to your application's Gemfile:
|
7
|
+
|
8
|
+
```ruby
|
9
|
+
gem 'esse-rails'
|
10
|
+
```
|
11
|
+
|
12
|
+
And then execute:
|
13
|
+
|
14
|
+
```bash
|
15
|
+
$ bundle
|
16
|
+
```
|
17
|
+
|
18
|
+
## Instrumentation
|
19
|
+
|
20
|
+
Esse::Rails provides instrumentation for Esse search operations. It uses Esse::Events to instrument when a search is performed.
|
21
|
+
|
22
|
+
If you are using [lograge](https://github.com/roidrage/lograge), you can optionally require `esse/rails/lograge` to log search operations:
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'esse/rails/lograge'
|
26
|
+
```
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# require "rails/app_loader"
|
2
|
+
|
3
|
+
# # If we are inside a Rails application this method performs an exec and thus
|
4
|
+
# # the rest of this script is not run.
|
5
|
+
# Rails::AppLoader.exec_app
|
6
|
+
|
7
|
+
require "esse/cli"
|
8
|
+
|
9
|
+
module Esse
|
10
|
+
module Rails
|
11
|
+
module CLI
|
12
|
+
module Autoloader
|
13
|
+
def after_initialize
|
14
|
+
begin
|
15
|
+
env_file = File.expand_path("config/environment.rb", Dir.pwd)
|
16
|
+
require env_file if File.exist?(env_file)
|
17
|
+
rescue LoadError
|
18
|
+
# keep going
|
19
|
+
end
|
20
|
+
super
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
Esse::CLI::Root.prepend(Esse::Rails::CLI::Autoloader)
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_support/core_ext/module/attr_internal"
|
4
|
+
|
5
|
+
module Esse
|
6
|
+
module Rails
|
7
|
+
module Instrumentation
|
8
|
+
# Hooks into ActionController to display search runtime
|
9
|
+
#
|
10
|
+
# @see https://github.com/rails/rails/blob/master/activerecord/lib/active_record/railties/controller_runtime.rb
|
11
|
+
#
|
12
|
+
module ControllerRuntime
|
13
|
+
extend ActiveSupport::Concern
|
14
|
+
|
15
|
+
module ClassMethods
|
16
|
+
def log_process_action(payload)
|
17
|
+
messages, esse_runtime = super, payload[:esse_runtime]
|
18
|
+
messages << ("Search: %.1fms" % esse_runtime.to_f) if esse_runtime
|
19
|
+
messages
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def initialize(*args)
|
24
|
+
super(*args)
|
25
|
+
self.esse_runtime = nil
|
26
|
+
end
|
27
|
+
|
28
|
+
protected
|
29
|
+
|
30
|
+
attr_internal :esse_runtime
|
31
|
+
|
32
|
+
def process_action(action, *args)
|
33
|
+
Esse::Rails::Instrumentation::RuntimeRegistry.reset
|
34
|
+
super
|
35
|
+
end
|
36
|
+
|
37
|
+
def cleanup_view_runtime
|
38
|
+
if logger&.info?
|
39
|
+
search_rt_before_render = Esse::Rails::Instrumentation::RuntimeRegistry.reset
|
40
|
+
self.esse_runtime = (db_runtime || 0) + search_rt_before_render
|
41
|
+
runtime = super
|
42
|
+
search_rt_after_render = Esse::Rails::Instrumentation::RuntimeRegistry.reset
|
43
|
+
self.esse_runtime += search_rt_after_render
|
44
|
+
runtime - search_rt_after_render
|
45
|
+
else
|
46
|
+
super
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def append_info_to_payload(payload)
|
51
|
+
super
|
52
|
+
payload[:esse_runtime] = (esse_runtime || 0) + Esse::Rails::Instrumentation::RuntimeRegistry.reset
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Esse
|
4
|
+
module Rails
|
5
|
+
module Instrumentation
|
6
|
+
# A log subscriber to attach to Elastic/Open Search related events
|
7
|
+
#
|
8
|
+
# @see https://github.com/rails/rails/blob/master/activerecord/lib/active_record/log_subscriber.rb
|
9
|
+
#
|
10
|
+
class RuntimeRegistry
|
11
|
+
def self.runtime=(value)
|
12
|
+
Thread.current["esse_runtime"] = value
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.runtime
|
16
|
+
Thread.current["esse_runtime"] ||= 0
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.reset
|
20
|
+
rt, self.runtime = runtime, 0
|
21
|
+
rt
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
Esse::Events.__bus__.events.keys.grep(/^elasticsearch/).each do |event_name|
|
29
|
+
Esse::Events.subscribe(event_name) do |event|
|
30
|
+
Esse::Rails::Instrumentation::RuntimeRegistry.runtime += event[:runtime].to_f
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Esse
|
2
|
+
module Rails
|
3
|
+
module Lograge
|
4
|
+
# Require the component in your `application.rb` file and enable Lograge:
|
5
|
+
#
|
6
|
+
# require 'esse/rails/lograge'
|
7
|
+
#
|
8
|
+
# You should see the full duration of the request to Elasticsearch as part of each log event:
|
9
|
+
#
|
10
|
+
# method=GET path=/search ... status=200 duration=380.89 view=99.64 db=0.00 search=279.37
|
11
|
+
#
|
12
|
+
# @see https://github.com/roidrage/lograge
|
13
|
+
#
|
14
|
+
class Railtie < ::Rails::Railtie
|
15
|
+
initializer "esse.lograge" do |app|
|
16
|
+
config.lograge.custom_options = lambda do |event|
|
17
|
+
{search: event.payload[:esse_runtime].to_f.round(2)}
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/esse/rails.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "esse"
|
4
|
+
require "rails"
|
5
|
+
require "active_support"
|
6
|
+
require "rails/railtie"
|
7
|
+
|
8
|
+
require_relative "rails/instrumentation"
|
9
|
+
require_relative "rails/version"
|
10
|
+
require_relative "rails/cli/autoloader"
|
11
|
+
|
12
|
+
module Esse
|
13
|
+
module Rails
|
14
|
+
end
|
15
|
+
end
|
data/lib/esse-rails.rb
ADDED
metadata
ADDED
@@ -0,0 +1,268 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: esse-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marcos G. Zimmermann
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-11-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: esse
|
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: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.2'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '8'
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '4.2'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '8'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: lograge
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: awesome_print
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: dotenv
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: pry
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rake
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '12.3'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '12.3'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rspec
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '3.0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '3.0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: webmock
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '3.14'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '3.14'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: yard
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 0.9.20
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 0.9.20
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: standard
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '1.3'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '1.3'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: rubocop
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '1.20'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '1.20'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: rubocop-performance
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '1.11'
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: 1.11.5
|
197
|
+
type: :development
|
198
|
+
prerelease: false
|
199
|
+
version_requirements: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - "~>"
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '1.11'
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: 1.11.5
|
207
|
+
- !ruby/object:Gem::Dependency
|
208
|
+
name: rubocop-rspec
|
209
|
+
requirement: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - "~>"
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '2.4'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - "~>"
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '2.4'
|
221
|
+
description: A Ruby on Rails integration for Esse gem
|
222
|
+
email:
|
223
|
+
- mgzmaster@gmail.com
|
224
|
+
executables: []
|
225
|
+
extensions: []
|
226
|
+
extra_rdoc_files: []
|
227
|
+
files:
|
228
|
+
- ".rubocop.yml"
|
229
|
+
- CHANGELOG.md
|
230
|
+
- Gemfile
|
231
|
+
- Gemfile.lock
|
232
|
+
- LICENSE
|
233
|
+
- README.md
|
234
|
+
- lib/esse-rails.rb
|
235
|
+
- lib/esse/rails.rb
|
236
|
+
- lib/esse/rails/cli/autoloader.rb
|
237
|
+
- lib/esse/rails/instrumentation.rb
|
238
|
+
- lib/esse/rails/instrumentation/controller_runtime.rb
|
239
|
+
- lib/esse/rails/instrumentation/runtime_registry.rb
|
240
|
+
- lib/esse/rails/lograge.rb
|
241
|
+
- lib/esse/rails/version.rb
|
242
|
+
homepage: https://github.com/marcosgz/esse-rails
|
243
|
+
licenses:
|
244
|
+
- MIT
|
245
|
+
metadata:
|
246
|
+
homepage_uri: https://github.com/marcosgz/esse-rails
|
247
|
+
source_code_uri: https://github.com/marcosgz/esse-rails
|
248
|
+
changelog_uri: https://github.com/marcosgz/esse-rails/blob/main/CHANGELOG.md
|
249
|
+
post_install_message:
|
250
|
+
rdoc_options: []
|
251
|
+
require_paths:
|
252
|
+
- lib
|
253
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 2.5.0
|
258
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
|
+
requirements:
|
260
|
+
- - ">="
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '0'
|
263
|
+
requirements: []
|
264
|
+
rubygems_version: 3.3.7
|
265
|
+
signing_key:
|
266
|
+
specification_version: 4
|
267
|
+
summary: Esse on Rails
|
268
|
+
test_files: []
|