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.
@@ -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+:)? unexpected token at 'invalid agent\njson'/)
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
@@ -20,7 +20,7 @@ module ConfigHelpers
20
20
  config_file
21
21
  )
22
22
  end
23
- module_function :project_fixture_config, :project_fixture_path
23
+ module_function :project_fixture_config
24
24
 
25
25
  def start_agent(env = "production")
26
26
  Appsignal._config = project_fixture_config(env)
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.1
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: 2024-08-23 00:00:00.000000000 Z
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: 3.5.14
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: []