appsignal 3.6.4-java → 3.6.5-java

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: 811340ea2cbab7abfe3618b172dd04d523e889503ec105caec25fa8cc1d4484e
4
- data.tar.gz: f58a33abaf5072aeac746490fad18b6713d6bca5321f82a6f9b2429a6b58c5c4
3
+ metadata.gz: 7f2e80f755b49c967d0a62e318f1f9f13b876c5cfe5304c2bce935f32ecbb77c
4
+ data.tar.gz: a3ce7b25084fc17e7c17c7fb54ecc9f954a1a3849594bf21b5777a37f559620d
5
5
  SHA512:
6
- metadata.gz: 9e64b1d68752c0ad947d8a4e2ad54d69e22a2b1cbac49c27b8e87d6237970596166c5e65f7e0c663a5a6bd7a0bb1a3d25a58e731c9b98f5fed9ac68ed5c26a6a
7
- data.tar.gz: acc4007876df0281fb70b4800d7c512199502f155bd4b1c110cfc2b3c0793fc296ebcfba79954b04c08a6695ffdb044c3bba31902cb486182ecaf56febfa31ac
6
+ metadata.gz: 7d7e02293f950009a596ad6fcb365b481f7d10171193d0204ffa28b7cbd923ebb9b2387d47f186e295e2537cf72e1e4988d56525b3b59592bdc228ec26e5b3ce
7
+ data.tar.gz: c88ddfc0c2127f750ceaa82961a287893668462265326a52bf81a66e012c3ec89f3fd82a9b61ed0b3c9000170d04e907a9e0a42079eac48b2dda9f3c7f91d85b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # AppSignal for Ruby gem Changelog
2
2
 
3
+ ## 3.6.5
4
+
5
+ _Published on 2024-04-17._
6
+
7
+ ### Fixed
8
+
9
+ - [83004ae5](https://github.com/appsignal/appsignal-ruby/commit/83004ae597e55a70673d6589c8b4457960d7b1ba) patch - Check the redis-client gem version before installing instrumentation. This prevents errors from being raised on redis-client gem versions older than 0.14.0.
10
+
3
11
  ## 3.6.4
4
12
 
5
13
  _Published on 2024-03-25._
@@ -8,6 +8,7 @@ module Appsignal
8
8
 
9
9
  def dependencies_present?
10
10
  defined?(::RedisClient) &&
11
+ Gem::Version.new(::RedisClient::VERSION) >= Gem::Version.new("0.14.0") &&
11
12
  Appsignal.config &&
12
13
  Appsignal.config[:instrument_redis]
13
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "3.6.4"
4
+ VERSION = "3.6.5"
5
5
  end
@@ -4,12 +4,28 @@ describe Appsignal::Hooks::RedisClientHook do
4
4
  end
5
5
 
6
6
  if DependencyHelper.redis_client_present?
7
- context "with redis_client" do
7
+ context "with redis-client" do
8
8
  context "with instrumentation enabled" do
9
9
  describe "#dependencies_present?" do
10
10
  subject { described_class.new.dependencies_present? }
11
11
 
12
- it { is_expected.to be_truthy }
12
+ context "with gem version new than 0.14.0" do
13
+ before { stub_const("RedisClient::VERSION", "1.2.3") }
14
+
15
+ it { is_expected.to be_truthy }
16
+ end
17
+
18
+ context "with gem version 0.14.0" do
19
+ before { stub_const("RedisClient::VERSION", "0.14.0") }
20
+
21
+ it { is_expected.to be_truthy }
22
+ end
23
+
24
+ context "with gem version older than 0.14.0" do
25
+ before { stub_const("RedisClient::VERSION", "0.13.9") }
26
+
27
+ it { is_expected.to be_falsy }
28
+ end
13
29
  end
14
30
 
15
31
  context "with rest-client gem" do
@@ -211,7 +227,7 @@ describe Appsignal::Hooks::RedisClientHook do
211
227
  end
212
228
  end
213
229
  else
214
- context "without redis" do
230
+ context "without redis-client" do
215
231
  describe "#dependencies_present?" do
216
232
  subject { described_class.new.dependencies_present? }
217
233
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.4
4
+ version: 3.6.5
5
5
  platform: java
6
6
  authors:
7
7
  - Robert Beekman
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-03-25 00:00:00.000000000 Z
13
+ date: 2024-04-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack