lapsoss 0.3.0 → 0.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: 2c6f63828ebac1dc0ff437bc6bc2371170c244fe0ff5195ce8ddc0f2cec21731
4
- data.tar.gz: d0678fb7bda03a75851b6ab06590cd9ab7bd6464878367a7d5e48d9631d26be4
3
+ metadata.gz: d64055e7377f1d53c9c8ec93302e04c279a33cbad65686257e34d420ea00600b
4
+ data.tar.gz: e2e80f0d005f741607cc2b163cf51be796e9bfbdf36957f030249cab6a127269
5
5
  SHA512:
6
- metadata.gz: 6e725dfbd5841bfd68af3deaa61d5106f966ada89b7e47515eb2d8e1b04327501fa51ba475ff6e6deb971cf3a2370b87b3da7da0f539f35e109b1d555897e55d
7
- data.tar.gz: 3a2ece11a9adaf5738a05c90da27096e7060be9e7fa93f90a64616f8bb1776040dcf27d1f375bb5c21593e3580f2af63edeed53296582db77088067e2181b474
6
+ metadata.gz: 9af0fd3cbcd82dac58b2d38fa51aa648957e21f5e9b2e24c41237d93d3645ab56c27c7a3137768faad3026b980e8e985348cea906412171602530519ae357504
7
+ data.tar.gz: 8b53db58c0309885de19c514c5af321e772f48b54ebfd1c011d290078eff853efb57228bced817dccb34d66d58e4cc9916b611b00cf99e0941740200dbe34471
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "set"
3
4
  require "active_support/cache"
4
5
  require "active_support/core_ext/numeric/time"
5
6
 
@@ -23,7 +23,7 @@ module Lapsoss
23
23
 
24
24
  def skip_error?(error, source)
25
25
  # Skip cache-related Redis errors if configured to do so
26
- if Lapsoss.configuration.skip_rails_cache_errors && source&.include?("cache") && error.is_a?(Redis::CannotConnectError)
26
+ if Lapsoss.configuration.skip_rails_cache_errors && source&.include?("cache") && defined?(Redis::CannotConnectError) && error.is_a?(Redis::CannotConnectError)
27
27
  return true
28
28
  end
29
29
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lapsoss
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lapsoss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
@@ -16,6 +16,9 @@ dependencies:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
18
  version: '7.2'
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: '9.0'
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -23,6 +26,9 @@ dependencies:
23
26
  - - ">="
24
27
  - !ruby/object:Gem::Version
25
28
  version: '7.2'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '9.0'
26
32
  - !ruby/object:Gem::Dependency
27
33
  name: concurrent-ruby
28
34
  requirement: !ruby/object:Gem::Requirement
@@ -231,7 +237,6 @@ files:
231
237
  - lib/lapsoss/fingerprinter.rb
232
238
  - lib/lapsoss/http_client.rb
233
239
  - lib/lapsoss/merged_scope.rb
234
- - lib/lapsoss/middleware.rb
235
240
  - lib/lapsoss/middleware/base.rb
236
241
  - lib/lapsoss/middleware/conditional_filter.rb
237
242
  - lib/lapsoss/middleware/event_enricher.rb
@@ -252,7 +257,6 @@ files:
252
257
  - lib/lapsoss/release_providers.rb
253
258
  - lib/lapsoss/release_tracker.rb
254
259
  - lib/lapsoss/router.rb
255
- - lib/lapsoss/sampling.rb
256
260
  - lib/lapsoss/sampling/adaptive_sampler.rb
257
261
  - lib/lapsoss/sampling/base.rb
258
262
  - lib/lapsoss/sampling/composite_sampler.rb
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lapsoss
4
- module Middleware
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lapsoss
4
- module Sampling
5
- end
6
- end