prosopite 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9353ec80e12bf0261cfb9c02f9845c2bedfd4285770e6691a18490542c551e24
4
- data.tar.gz: 29ad5098ea8739119a54fdbc58d241debf166b6c0453388247b9d02b007d021a
3
+ metadata.gz: '0509715095d0797998d5bd88ad33bf6390bbc68d5da7f34a10ada120bbcbe96d'
4
+ data.tar.gz: 3e05d4ae63f68955c002853d5820bac19ab239b7d4987576bf1d7b9dd85f7d06
5
5
  SHA512:
6
- metadata.gz: 40e9fe96155a0837e355c5a4292a592ecef3e71defaea97a62dc700164ea64c0647fce33975bc0ab3b79b6d09c4115c10d4c18e2bec0852f52b8a5df287ace0b
7
- data.tar.gz: 8176697cd034b20ca5aacbae33377424a56694cd9fc3faa90cb3dce61b6815fa5bf532939d87edb919448dee098e9abe55c52fc1422b20e76545d3d1fdb56079
6
+ metadata.gz: 63408215134ec404aba9cd4728ae2bdbb57b0924c08449a1cccc1f72d46cfdedec33685643b452eac0a23ff05abbb0fc74f96954b0ec874b94aef974f46d2ed0
7
+ data.tar.gz: d1b9a6d908bf2b17bbe9710b446a0c7b3f66a1a5b0468aaabb37b085d152d609a973faec5ae529d859ecea8c297d93ff3128917344ae6ff0159fb4fc5041a10b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prosopite (1.4.1)
4
+ prosopite (1.4.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -221,12 +221,12 @@ end
221
221
  ```
222
222
 
223
223
  ### Sidekiq
224
- We also provide a middleware for sidekiq so that you can auto detect n+1 queries that may occur in a sidekiq job.
224
+ We also provide a middleware for sidekiq `6.5.0+` so that you can auto detect n+1 queries that may occur in a sidekiq job.
225
225
  You just need to add the following to your sidekiq initializer.
226
226
 
227
227
  ```ruby
228
228
  Sidekiq.configure_server do |config|
229
- unless Rails.production?
229
+ unless Rails.env.production?
230
230
  config.server_middleware do |chain|
231
231
  require 'prosopite/middleware/sidekiq'
232
232
  chain.add(Prosopite::Middleware::Sidekiq)
@@ -235,6 +235,13 @@ Sidekiq.configure_server do |config|
235
235
  end
236
236
  ```
237
237
 
238
+ For applications running sidekiq < `6.5.0` but want to add the snippet, you can guard the snippet with something like this and remove it once you upgrade sidekiq:
239
+ ```ruby
240
+ if Sidekiq::VERSION >= '6.5.0' && (Rails.env.development? || Rails.env.test?)
241
+ .....
242
+ end
243
+ ```
244
+
238
245
  ## Allow list
239
246
 
240
247
  Ignore notifications for call stacks containing one or more substrings / regex:
@@ -6,7 +6,10 @@ module Prosopite
6
6
  end
7
7
 
8
8
  def call(env)
9
- Prosopite.scan { @app.call(env) }
9
+ Prosopite.scan
10
+ @app.call(env)
11
+ ensure
12
+ Prosopite.finish
10
13
  end
11
14
  end
12
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prosopite
4
- VERSION = "1.4.1"
4
+ VERSION = "1.4.2"
5
5
  end
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.4.1
4
+ version: 1.4.2
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-09-28 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry