appsignal 3.13.1 → 3.13.3
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 +4 -4
- data/.github/workflows/ci.yml +1 -0
- data/CHANGELOG.md +47 -0
- data/build_matrix.yml +1 -1
- data/ext/agent.rb +30 -30
- data/gemfiles/grape.gemfile +5 -1
- data/gemfiles/rails-6.0.gemfile +4 -0
- data/gemfiles/rails-6.1.gemfile +4 -0
- data/gemfiles/rails-7.1.gemfile +6 -1
- data/lib/appsignal/version.rb +1 -1
- data/resources/cacert.pem +528 -1046
- data/spec/lib/appsignal/cli/diagnose_spec.rb +11 -3
- data/spec/support/helpers/config_helpers.rb +1 -1
- metadata +3 -6
|
@@ -466,6 +466,15 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
|
466
466
|
end
|
|
467
467
|
|
|
468
468
|
context "when the extension returns invalid JSON" do
|
|
469
|
+
# The JSON gem reworded this error in version 2.10. Accept the wording
|
|
470
|
+
# from before that release and the wording from after it.
|
|
471
|
+
let(:parse_error) do
|
|
472
|
+
Regexp.union(
|
|
473
|
+
"unexpected token at 'invalid agent\njson'",
|
|
474
|
+
"unexpected character: 'invalid' at line 1 column 1"
|
|
475
|
+
)
|
|
476
|
+
end
|
|
477
|
+
|
|
469
478
|
before do
|
|
470
479
|
expect(Appsignal::Extension).to receive(:diagnose).and_return("invalid agent\njson")
|
|
471
480
|
run
|
|
@@ -476,12 +485,11 @@ describe Appsignal::CLI::Diagnose, :api_stub => true, :send_report => :yes_cli_i
|
|
|
476
485
|
"Agent diagnostics",
|
|
477
486
|
" Error while parsing agent diagnostics report:",
|
|
478
487
|
" Output: invalid agent\njson"
|
|
479
|
-
expect(output).to match(/Error:( \d+:)?
|
|
488
|
+
expect(output).to match(/Error:( \d+:)? #{parse_error}/)
|
|
480
489
|
end
|
|
481
490
|
|
|
482
491
|
it "adds the output to the report" do
|
|
483
|
-
expect(received_report["agent"]["error"])
|
|
484
|
-
.to match(/unexpected token at 'invalid agent\njson'/)
|
|
492
|
+
expect(received_report["agent"]["error"]).to match(parse_error)
|
|
485
493
|
expect(received_report["agent"]["output"]).to eq(["invalid agent", "json"])
|
|
486
494
|
end
|
|
487
495
|
end
|
metadata
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appsignal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.13.
|
|
4
|
+
version: 3.13.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Beekman
|
|
8
8
|
- Thijs Cadier
|
|
9
9
|
- Tom de Bruijn
|
|
10
|
-
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
date:
|
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: rack
|
|
@@ -473,7 +472,6 @@ metadata:
|
|
|
473
472
|
documentation_uri: https://docs.appsignal.com/ruby/
|
|
474
473
|
homepage_uri: https://docs.appsignal.com/ruby/
|
|
475
474
|
source_code_uri: https://github.com/appsignal/appsignal-ruby
|
|
476
|
-
post_install_message:
|
|
477
475
|
rdoc_options: []
|
|
478
476
|
require_paths:
|
|
479
477
|
- lib
|
|
@@ -489,8 +487,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
489
487
|
- !ruby/object:Gem::Version
|
|
490
488
|
version: '0'
|
|
491
489
|
requirements: []
|
|
492
|
-
rubygems_version:
|
|
493
|
-
signing_key:
|
|
490
|
+
rubygems_version: 4.0.20
|
|
494
491
|
specification_version: 4
|
|
495
492
|
summary: Logs performance and exception data from your app to appsignal.com
|
|
496
493
|
test_files: []
|