prosopite 2.1.2 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +169 -0
- data/README.md +406 -183
- data/lib/generators/prosopite/install_generator.rb +53 -0
- data/lib/generators/prosopite/templates/prosopite.rb.tt +18 -0
- data/lib/prosopite/fixes.rb +181 -0
- data/lib/prosopite/middleware/rack.rb +212 -2
- data/lib/prosopite/middleware/sidekiq.rb +2 -2
- data/lib/prosopite/minitest.rb +23 -0
- data/lib/prosopite/rspec.rb +20 -0
- data/lib/prosopite/version.rb +1 -1
- data/lib/prosopite.rb +478 -95
- metadata +22 -24
- data/.github/workflows/ci.yml +0 -15
- data/.gitignore +0 -8
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -152
- data/Rakefile +0 -9
- data/prosopite.gemspec +0 -34
metadata
CHANGED
|
@@ -1,45 +1,44 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prosopite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mpampis Kostas
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-10-26 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
13
|
+
name: activerecord
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
16
|
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
20
|
-
type: :
|
|
18
|
+
version: '6.1'
|
|
19
|
+
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
25
|
+
version: '6.1'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: railties
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
34
|
-
type: :
|
|
32
|
+
version: '6.1'
|
|
33
|
+
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
39
|
+
version: '6.1'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
41
|
+
name: pry
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - ">="
|
|
@@ -53,7 +52,7 @@ dependencies:
|
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
53
|
version: '0'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
55
|
+
name: minitest
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - ">="
|
|
@@ -67,7 +66,7 @@ dependencies:
|
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
67
|
version: '0'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
69
|
+
name: factory_bot
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
72
|
- - ">="
|
|
@@ -115,25 +114,25 @@ executables: []
|
|
|
115
114
|
extensions: []
|
|
116
115
|
extra_rdoc_files: []
|
|
117
116
|
files:
|
|
118
|
-
-
|
|
119
|
-
- ".gitignore"
|
|
120
|
-
- Gemfile
|
|
121
|
-
- Gemfile.lock
|
|
117
|
+
- CHANGELOG.md
|
|
122
118
|
- LICENSE.txt
|
|
123
119
|
- README.md
|
|
124
|
-
-
|
|
120
|
+
- lib/generators/prosopite/install_generator.rb
|
|
121
|
+
- lib/generators/prosopite/templates/prosopite.rb.tt
|
|
125
122
|
- lib/prosopite.rb
|
|
123
|
+
- lib/prosopite/fixes.rb
|
|
126
124
|
- lib/prosopite/middleware/rack.rb
|
|
127
125
|
- lib/prosopite/middleware/sidekiq.rb
|
|
126
|
+
- lib/prosopite/minitest.rb
|
|
127
|
+
- lib/prosopite/rspec.rb
|
|
128
128
|
- lib/prosopite/version.rb
|
|
129
|
-
- prosopite.gemspec
|
|
130
129
|
homepage: https://github.com/charkost/prosopite
|
|
131
130
|
licenses:
|
|
132
131
|
- Apache-2.0
|
|
133
132
|
metadata:
|
|
134
133
|
homepage_uri: https://github.com/charkost/prosopite
|
|
135
134
|
source_code_uri: https://github.com/charkost/prosopite
|
|
136
|
-
|
|
135
|
+
changelog_uri: https://github.com/charkost/prosopite/blob/main/CHANGELOG.md
|
|
137
136
|
rdoc_options: []
|
|
138
137
|
require_paths:
|
|
139
138
|
- lib
|
|
@@ -141,15 +140,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
141
140
|
requirements:
|
|
142
141
|
- - ">="
|
|
143
142
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: 2.
|
|
143
|
+
version: 2.7.0
|
|
145
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
145
|
requirements:
|
|
147
146
|
- - ">="
|
|
148
147
|
- !ruby/object:Gem::Version
|
|
149
148
|
version: '0'
|
|
150
149
|
requirements: []
|
|
151
|
-
rubygems_version: 3.
|
|
152
|
-
signing_key:
|
|
150
|
+
rubygems_version: 3.6.2
|
|
153
151
|
specification_version: 4
|
|
154
152
|
summary: N+1 auto-detection for Rails with zero false positives / false negatives
|
|
155
153
|
test_files: []
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on: [push, pull_request]
|
|
3
|
-
jobs:
|
|
4
|
-
test:
|
|
5
|
-
strategy:
|
|
6
|
-
matrix:
|
|
7
|
-
ruby: [3.2, 3.3, 3.4]
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v3
|
|
11
|
-
- uses: ruby/setup-ruby@v1
|
|
12
|
-
with:
|
|
13
|
-
bundler-cache: true
|
|
14
|
-
ruby-version: ${{ matrix.ruby }}
|
|
15
|
-
- run: bundle exec rake test
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
prosopite (2.1.2)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
actionpack (8.0.1)
|
|
10
|
-
actionview (= 8.0.1)
|
|
11
|
-
activesupport (= 8.0.1)
|
|
12
|
-
nokogiri (>= 1.8.5)
|
|
13
|
-
rack (>= 2.2.4)
|
|
14
|
-
rack-session (>= 1.0.1)
|
|
15
|
-
rack-test (>= 0.6.3)
|
|
16
|
-
rails-dom-testing (~> 2.2)
|
|
17
|
-
rails-html-sanitizer (~> 1.6)
|
|
18
|
-
useragent (~> 0.16)
|
|
19
|
-
actionview (8.0.1)
|
|
20
|
-
activesupport (= 8.0.1)
|
|
21
|
-
builder (~> 3.1)
|
|
22
|
-
erubi (~> 1.11)
|
|
23
|
-
rails-dom-testing (~> 2.2)
|
|
24
|
-
rails-html-sanitizer (~> 1.6)
|
|
25
|
-
activemodel (8.0.1)
|
|
26
|
-
activesupport (= 8.0.1)
|
|
27
|
-
activerecord (8.0.1)
|
|
28
|
-
activemodel (= 8.0.1)
|
|
29
|
-
activesupport (= 8.0.1)
|
|
30
|
-
timeout (>= 0.4.0)
|
|
31
|
-
activesupport (8.0.1)
|
|
32
|
-
base64
|
|
33
|
-
benchmark (>= 0.3)
|
|
34
|
-
bigdecimal
|
|
35
|
-
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
36
|
-
connection_pool (>= 2.2.5)
|
|
37
|
-
drb
|
|
38
|
-
i18n (>= 1.6, < 2)
|
|
39
|
-
logger (>= 1.4.2)
|
|
40
|
-
minitest (>= 5.1)
|
|
41
|
-
securerandom (>= 0.3)
|
|
42
|
-
tzinfo (~> 2.0, >= 2.0.5)
|
|
43
|
-
uri (>= 0.13.1)
|
|
44
|
-
ansi (1.5.0)
|
|
45
|
-
base64 (0.2.0)
|
|
46
|
-
benchmark (0.4.0)
|
|
47
|
-
bigdecimal (3.1.9)
|
|
48
|
-
builder (3.2.4)
|
|
49
|
-
coderay (1.1.3)
|
|
50
|
-
concurrent-ruby (1.3.5)
|
|
51
|
-
connection_pool (2.5.0)
|
|
52
|
-
crass (1.0.6)
|
|
53
|
-
date (3.4.1)
|
|
54
|
-
drb (2.2.1)
|
|
55
|
-
erubi (1.12.0)
|
|
56
|
-
factory_bot (6.5.1)
|
|
57
|
-
activesupport (>= 6.1.0)
|
|
58
|
-
i18n (1.8.9)
|
|
59
|
-
concurrent-ruby (~> 1.0)
|
|
60
|
-
io-console (0.8.0)
|
|
61
|
-
irb (1.15.1)
|
|
62
|
-
pp (>= 0.6.0)
|
|
63
|
-
rdoc (>= 4.0.0)
|
|
64
|
-
reline (>= 0.4.2)
|
|
65
|
-
logger (1.6.6)
|
|
66
|
-
loofah (2.24.0)
|
|
67
|
-
crass (~> 1.0.2)
|
|
68
|
-
nokogiri (>= 1.12.0)
|
|
69
|
-
method_source (1.0.0)
|
|
70
|
-
mini_portile2 (2.8.8)
|
|
71
|
-
minitest (5.25.4)
|
|
72
|
-
minitest-reporters (1.5.0)
|
|
73
|
-
ansi
|
|
74
|
-
builder
|
|
75
|
-
minitest (>= 5.0)
|
|
76
|
-
ruby-progressbar
|
|
77
|
-
nokogiri (1.18.3)
|
|
78
|
-
mini_portile2 (~> 2.8.2)
|
|
79
|
-
racc (~> 1.4)
|
|
80
|
-
nokogiri (1.18.3-x86_64-linux-gnu)
|
|
81
|
-
racc (~> 1.4)
|
|
82
|
-
pg_query (1.3.0)
|
|
83
|
-
pp (0.6.2)
|
|
84
|
-
prettyprint
|
|
85
|
-
prettyprint (0.2.0)
|
|
86
|
-
pry (0.14.0)
|
|
87
|
-
coderay (~> 1.1)
|
|
88
|
-
method_source (~> 1.0)
|
|
89
|
-
psych (5.2.3)
|
|
90
|
-
date
|
|
91
|
-
stringio
|
|
92
|
-
racc (1.8.1)
|
|
93
|
-
rack (3.1.10)
|
|
94
|
-
rack-session (2.1.0)
|
|
95
|
-
base64 (>= 0.1.0)
|
|
96
|
-
rack (>= 3.0.0)
|
|
97
|
-
rack-test (2.0.2)
|
|
98
|
-
rack (>= 1.3)
|
|
99
|
-
rackup (2.2.1)
|
|
100
|
-
rack (>= 3)
|
|
101
|
-
rails-dom-testing (2.2.0)
|
|
102
|
-
activesupport (>= 5.0.0)
|
|
103
|
-
minitest
|
|
104
|
-
nokogiri (>= 1.6)
|
|
105
|
-
rails-html-sanitizer (1.6.2)
|
|
106
|
-
loofah (~> 2.21)
|
|
107
|
-
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
108
|
-
railties (8.0.1)
|
|
109
|
-
actionpack (= 8.0.1)
|
|
110
|
-
activesupport (= 8.0.1)
|
|
111
|
-
irb (~> 1.13)
|
|
112
|
-
rackup (>= 1.0.0)
|
|
113
|
-
rake (>= 12.2)
|
|
114
|
-
thor (~> 1.0, >= 1.2.2)
|
|
115
|
-
zeitwerk (~> 2.6)
|
|
116
|
-
rake (13.0.6)
|
|
117
|
-
rdoc (6.12.0)
|
|
118
|
-
psych (>= 4.0.0)
|
|
119
|
-
reline (0.6.0)
|
|
120
|
-
io-console (~> 0.5)
|
|
121
|
-
ruby-progressbar (1.11.0)
|
|
122
|
-
securerandom (0.4.1)
|
|
123
|
-
sqlite3 (2.5.0)
|
|
124
|
-
mini_portile2 (~> 2.8.0)
|
|
125
|
-
sqlite3 (2.5.0-x86_64-linux-gnu)
|
|
126
|
-
stringio (3.1.4)
|
|
127
|
-
thor (1.3.2)
|
|
128
|
-
timeout (0.4.3)
|
|
129
|
-
tzinfo (2.0.6)
|
|
130
|
-
concurrent-ruby (~> 1.0)
|
|
131
|
-
uri (1.0.2)
|
|
132
|
-
useragent (0.16.11)
|
|
133
|
-
zeitwerk (2.7.2)
|
|
134
|
-
|
|
135
|
-
PLATFORMS
|
|
136
|
-
ruby
|
|
137
|
-
x86_64-linux
|
|
138
|
-
|
|
139
|
-
DEPENDENCIES
|
|
140
|
-
activerecord
|
|
141
|
-
factory_bot
|
|
142
|
-
minitest
|
|
143
|
-
minitest-reporters
|
|
144
|
-
pg_query
|
|
145
|
-
prosopite!
|
|
146
|
-
pry
|
|
147
|
-
railties
|
|
148
|
-
rake (~> 13.0)
|
|
149
|
-
sqlite3
|
|
150
|
-
|
|
151
|
-
BUNDLED WITH
|
|
152
|
-
2.6.5
|
data/Rakefile
DELETED
data/prosopite.gemspec
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "lib/prosopite/version"
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = "prosopite"
|
|
7
|
-
spec.version = Prosopite::VERSION
|
|
8
|
-
spec.authors = ["Mpampis Kostas"]
|
|
9
|
-
spec.email = ["charkost.rb@gmail.com"]
|
|
10
|
-
|
|
11
|
-
spec.summary = "N+1 auto-detection for Rails with zero false positives / false negatives"
|
|
12
|
-
spec.description = "N+1 auto-detection for Rails with zero false positives / false negatives"
|
|
13
|
-
spec.homepage = "https://github.com/charkost/prosopite"
|
|
14
|
-
spec.license = "Apache-2.0"
|
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
|
16
|
-
|
|
17
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
-
spec.metadata["source_code_uri"] = "https://github.com/charkost/prosopite"
|
|
19
|
-
|
|
20
|
-
# Specify which files should be added to the gem when it is released.
|
|
21
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
22
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
23
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
|
24
|
-
end
|
|
25
|
-
spec.require_paths = ["lib"]
|
|
26
|
-
|
|
27
|
-
spec.add_development_dependency "pry"
|
|
28
|
-
spec.add_development_dependency "minitest"
|
|
29
|
-
spec.add_development_dependency "factory_bot"
|
|
30
|
-
spec.add_development_dependency "activerecord"
|
|
31
|
-
spec.add_development_dependency "railties"
|
|
32
|
-
spec.add_development_dependency "sqlite3"
|
|
33
|
-
spec.add_development_dependency "minitest-reporters"
|
|
34
|
-
end
|