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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71358661958f67bb09075fa89db0f0c09868c0a53780afa3780a8cc7d4ded49a
4
- data.tar.gz: 1de6a0ab099524457cf49c60d1f5ae0041dffc1b9e281202ccea77cb2cd89ba9
3
+ metadata.gz: 3620722495a4f378b76f94846d24104ec2b8bda051243246070fe9a8ab0e9e35
4
+ data.tar.gz: 455827914e23b7714efe0c1851050699cabb2210d494e2cdba9102afb8ab329b
5
5
  SHA512:
6
- metadata.gz: 8478248b48b55a59eedfde1c472382eccc543a0f2ce03a891174c326d03a17db19cd3c9a393a2f1a89568a2c275e04ae8ca71d13f30cf67fef64870ed5531494
7
- data.tar.gz: de26d196d0a767511b7a9e1f6cf5c87b00c838e17dc2e630f3689a0d43b7a47542c5c0e28f70f3b49a9dca7b577349c6dc66c97b14535cd9e010f83be9f2c58c
6
+ metadata.gz: 4f31607760d147b9df2323d9b6032d3290a7467918a5ae2b8abfe60657b2befa322c91cd7a3d9ab62b1b7dee113c4db5bee3066a4afeb2e0691b5f24d96fd956
7
+ data.tar.gz: 5c49dd603ea2720cd3c60846d0d63a9a1e818be3be287f050fc33ccf5654e619f7ee6fb9378e3f36ae07b6c3b5d5f2791e7f72078b6f6606346700587667449c
@@ -4,10 +4,10 @@ jobs:
4
4
  test:
5
5
  strategy:
6
6
  matrix:
7
- ruby: [2.7, '3.0', 3.1, head]
7
+ ruby: [2.7, '3.0', 3.1, 3.2]
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- - uses: actions/checkout@v2
10
+ - uses: actions/checkout@v3
11
11
  - uses: ruby/setup-ruby@v1
12
12
  with:
13
13
  bundler-cache: true
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prosopite (1.3.0)
4
+ prosopite (1.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prosopite
4
- VERSION = "1.3.0"
4
+ VERSION = "1.3.1"
5
5
  end
data/lib/prosopite.rb CHANGED
@@ -1,6 +1,9 @@
1
1
 
2
2
  module Prosopite
3
- DEFAULT_ALLOW_LIST = %w(active_record/associations/preloader active_record/validations/uniqueness)
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.0
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-02-07 00:00:00.000000000 Z
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.1.6
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