prosopite 1.3.0 → 1.3.1
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/.github/workflows/ci.yml +2 -2
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/prosopite/version.rb +1 -1
- data/lib/prosopite.rb +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3620722495a4f378b76f94846d24104ec2b8bda051243246070fe9a8ab0e9e35
|
|
4
|
+
data.tar.gz: 455827914e23b7714efe0c1851050699cabb2210d494e2cdba9102afb8ab329b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f31607760d147b9df2323d9b6032d3290a7467918a5ae2b8abfe60657b2befa322c91cd7a3d9ab62b1b7dee113c4db5bee3066a4afeb2e0691b5f24d96fd956
|
|
7
|
+
data.tar.gz: 5c49dd603ea2720cd3c60846d0d63a9a1e818be3be287f050fc33ccf5654e619f7ee6fb9378e3f36ae07b6c3b5d5f2791e7f72078b6f6606346700587667449c
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -4,10 +4,10 @@ jobs:
|
|
|
4
4
|
test:
|
|
5
5
|
strategy:
|
|
6
6
|
matrix:
|
|
7
|
-
ruby: [2.7, '3.0', 3.1,
|
|
7
|
+
ruby: [2.7, '3.0', 3.1, 3.2]
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
10
|
+
- uses: actions/checkout@v3
|
|
11
11
|
- uses: ruby/setup-ruby@v1
|
|
12
12
|
with:
|
|
13
13
|
bundler-cache: true
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -120,8 +120,8 @@ The preferred type of notifications can be configured with:
|
|
|
120
120
|
* `Prosopite.rails_logger = true`: Send warnings to the Rails log
|
|
121
121
|
* `Prosopite.prosopite_logger = true`: Send warnings to `log/prosopite.log`
|
|
122
122
|
* `Prosopite.stderr_logger = true`: Send warnings to STDERR
|
|
123
|
+
* `Prosopite.backtrace_cleaner = my_custom_backtrace_cleaner`: use a different [ActiveSupport::BacktraceCleaner](https://api.rubyonrails.org/classes/ActiveSupport/BacktraceCleaner.html). Defaults to `Rails.backtrace_cleaner`.
|
|
123
124
|
* `Prosopite.custom_logger = my_custom_logger`:
|
|
124
|
-
* `Prosopite.backtrace_cleaner = my_custom_backtrace_cleaner`: use a different [ActiveSupport::BacktraceCleaner](https://api.rubyonrails.org/classes/ActiveSupport/BacktraceCleaner.html). Default to `Rails.backtrace_cleaner` if present.
|
|
125
125
|
|
|
126
126
|
### Custom Logging Configuration
|
|
127
127
|
|
data/lib/prosopite/version.rb
CHANGED
data/lib/prosopite.rb
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
module Prosopite
|
|
3
|
-
DEFAULT_ALLOW_LIST =
|
|
3
|
+
DEFAULT_ALLOW_LIST = [
|
|
4
|
+
/active_record\/relation.rb.*preload_associations/,
|
|
5
|
+
'active_record/validations/uniqueness'
|
|
6
|
+
].freeze
|
|
4
7
|
|
|
5
8
|
class NPlusOneQueriesError < StandardError; end
|
|
6
9
|
class << self
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prosopite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mpampis Kostas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
146
|
- !ruby/object:Gem::Version
|
|
147
147
|
version: '0'
|
|
148
148
|
requirements: []
|
|
149
|
-
rubygems_version: 3.
|
|
149
|
+
rubygems_version: 3.4.6
|
|
150
150
|
signing_key:
|
|
151
151
|
specification_version: 4
|
|
152
152
|
summary: N+1 auto-detection for Rails with zero false positives / false negatives
|