appsignal 3.6.4 → 3.6.5

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: 1ecf35cf3a958ac8a64a33ee8de1fb50f78535b08bce7977cb11730832c24ba4
4
- data.tar.gz: f58a33abaf5072aeac746490fad18b6713d6bca5321f82a6f9b2429a6b58c5c4
3
+ metadata.gz: 7e49b3ec10a26021ffd8c443f281cbf4d74618ba2aa9c20b8690c7ab96b1b976
4
+ data.tar.gz: a3ce7b25084fc17e7c17c7fb54ecc9f954a1a3849594bf21b5777a37f559620d
5
5
  SHA512:
6
- metadata.gz: a555d481eb30d4c6354c96bbdefc969d6531e7e29b77c9aa68dce64a2af2bf117351e4065b8d5f6bc584aaa1e240b8a4c92e54fae21ed8b044fa5d436fdd683a
7
- data.tar.gz: acc4007876df0281fb70b4800d7c512199502f155bd4b1c110cfc2b3c0793fc296ebcfba79954b04c08a6695ffdb044c3bba31902cb486182ecaf56febfa31ac
6
+ metadata.gz: 61347869e731de4bc86818535ddb295e977d1774f04cd27cf8255f506c9516b9b8a9ecb68e8e7df0c1b2bc57cd7f6b1cd9a1eab1fa6852b95b11c9c3750c4bfc
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: ruby
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