appsignal 3.5.0 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/appsignal/cli/diagnose/paths.rb +8 -4
- data/lib/appsignal/cli/diagnose.rb +5 -0
- data/lib/appsignal/logger.rb +2 -0
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/cli/diagnose/utils_spec.rb +11 -0
- data/spec/lib/appsignal/cli/diagnose_spec.rb +20 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b47730be2c60175630bd45d3605b48ef70c5b9f6caaf1b304e8d073b72f8f495
|
4
|
+
data.tar.gz: '039bc2bf8ce611fe2778dfa2aa20c5259bc8e3bdb4e86689861957a42eaa53a2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bebb4c065d529b36897c9c561c24e52b41e9a3b9ac3314ef8ede5bdb99830f293a45fd40513433dd8e66c3a1a50c9604404fad2a0b7a0f9065dbc0ddf713506e
|
7
|
+
data.tar.gz: e5659b4b13ba75d680e106b16d7ff30dba55c15728f5dbb3191180abf3aec38ebab16fbe2b3889cf0829a97abe00ca4b0cea45b1f0e2db1827ba140fde8fb809
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# AppSignal for Ruby gem Changelog
|
2
2
|
|
3
|
+
## 3.5.2
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
|
7
|
+
- [a5963f65](https://github.com/appsignal/appsignal-ruby/commit/a5963f65cd06cdc0f6482be34917c365affc87dd) patch - Fix Ruby Logger 1.6.0 compatibility
|
8
|
+
|
9
|
+
## 3.5.1
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- [2e93182b](https://github.com/appsignal/appsignal-ruby/commit/2e93182b6ae83b16fe9885558cd8f0bfce6a9a5f) patch - Fix an error in the diagnose report when reading a file's contents results in an "Invalid seek" error. This could happen when the log path is configured to `/dev/stdout`, which is not supported.
|
14
|
+
- [ae0b779b](https://github.com/appsignal/appsignal-ruby/commit/ae0b779b3ec00cc46291bc0373d748d720231e74) patch - Fix logger compatibility with Ruby 3.3
|
15
|
+
|
3
16
|
## 3.5.0
|
4
17
|
|
5
18
|
### Added
|
@@ -71,10 +71,14 @@ module Appsignal
|
|
71
71
|
:group => Utils.group_for_gid(path_gid)
|
72
72
|
}
|
73
73
|
if info[:type] == "file"
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
74
|
+
begin
|
75
|
+
info[:content] = Utils.read_file_content(
|
76
|
+
path,
|
77
|
+
BYTES_TO_READ_FOR_FILES
|
78
|
+
).split("\n")
|
79
|
+
rescue => error
|
80
|
+
info[:read_error] = "#{error.class}: #{error.message}"
|
81
|
+
end
|
78
82
|
end
|
79
83
|
end
|
80
84
|
end
|
data/lib/appsignal/logger.rb
CHANGED
data/lib/appsignal/version.rb
CHANGED
@@ -71,5 +71,16 @@ describe Appsignal::CLI::Diagnose::Utils do
|
|
71
71
|
is_expected.to eq(file_contents)
|
72
72
|
end
|
73
73
|
end
|
74
|
+
|
75
|
+
context "when reading the file raises an illegal seek error" do
|
76
|
+
let(:file_contents) { "line 1\n" }
|
77
|
+
before do
|
78
|
+
expect(File).to receive(:binread).and_raise(Errno::ESPIPE)
|
79
|
+
end
|
80
|
+
|
81
|
+
it "returns the error as the content" do
|
82
|
+
expect { subject }.to raise_error(Errno::ESPIPE)
|
83
|
+
end
|
84
|
+
end
|
74
85
|
end
|
75
86
|
end
|
@@ -1424,6 +1424,26 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
1424
1424
|
)
|
1425
1425
|
end
|
1426
1426
|
end
|
1427
|
+
|
1428
|
+
context "when reading the file returns a illegal seek error" do
|
1429
|
+
before do
|
1430
|
+
File.write(file_path, "Some content")
|
1431
|
+
allow(File).to receive(:binread).and_call_original
|
1432
|
+
expect(File).to receive(:binread).with(file_path, anything,
|
1433
|
+
anything).and_raise(Errno::ESPIPE)
|
1434
|
+
run
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
it "outputs file does not exists" do
|
1438
|
+
expect(output).to include %(Read error: Errno::ESPIPE: Illegal seek)
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
it "transmits file data in report" do
|
1442
|
+
expect(received_report["paths"][filename]).to include(
|
1443
|
+
"read_error" => "Errno::ESPIPE: Illegal seek"
|
1444
|
+
)
|
1445
|
+
end
|
1446
|
+
end
|
1427
1447
|
end
|
1428
1448
|
|
1429
1449
|
describe "mkmf.log" do
|
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.5.
|
4
|
+
version: 3.5.2
|
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: 2023-12-
|
13
|
+
date: 2023-12-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
@@ -446,7 +446,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
446
446
|
- !ruby/object:Gem::Version
|
447
447
|
version: '0'
|
448
448
|
requirements: []
|
449
|
-
rubygems_version: 3.
|
449
|
+
rubygems_version: 3.4.11
|
450
450
|
signing_key:
|
451
451
|
specification_version: 4
|
452
452
|
summary: Logs performance and exception data from your app to appsignal.com
|