appsignal 3.0.8-java → 3.0.9-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: c21f65e52130971841b4dff9733899697b5756b44b6d86da032577a2a8ca335f
4
- data.tar.gz: b07e52344f13961121c3427f14d5c87e503287c7e475a3bdffb08303d477c985
3
+ metadata.gz: 50a45b723434e5b7f988eeb98def917d6b70bca891460d58d372fc5c12805db1
4
+ data.tar.gz: d71d1a3fbfc1f04a67e28f372aefba58151eef1b4ff1faa16a968cb07b9ea4a8
5
5
  SHA512:
6
- metadata.gz: d4f7bc77f7a609740dba857047edf64d9c973bb8a6d5372f81808872e7f5a3219c9f6f351b2e130a4f1db054be9bde938a35d61165541cbe3ddb6baea10025eb
7
- data.tar.gz: 3dbf154339dc4094a73f066440fa84d401aa868474042769529ff249d09721b18b11207ccc18099a9d99e1aae7c50da17b79b7c896dbe42b19419d6b097ce74b
6
+ metadata.gz: a67773caf199732ec8b9f43f44280eebab5266a8d1c39250dd047192e5c3d96de4f7a7d88a918313a7ec8611a5a6e77e372f3080f2f41776017e2a7ff4e95b08
7
+ data.tar.gz: 149b5769caba01d5411ed4933c905eafb3b4e0c84e2797a36b1a82ee6f8cf6f1adfc068726eee5bc435a3005c98b0c6a1e780bd6bdcd3f99d6d2cb199f24097b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # AppSignal for Ruby gem Changelog
2
2
 
3
+ ## 3.0.9
4
+
5
+ - [44dd4bdc](https://github.com/appsignal/appsignal-ruby/commit/44dd4bdc824ec88337b75791c1870358a4aa274f) patch - Check Rails.backtrace_cleaner method before calling the method. This prevents a NoMethodError from being raised in some edge cases.
6
+
3
7
  ## 3.0.8
4
8
 
5
9
  - [5f94712d](https://github.com/appsignal/appsignal-ruby/commit/5f94712d3406898f58bea133b8bf3578d6fbbe22) patch - Add the `APPSIGNAL_BUILD_FOR_LINUX_ARM` flag to allow users to enable the experimental Linux ARM build for 64-bit hosts. Usage: `export APPSIGNAL_BUILD_FOR_LINUX_ARM=1 bundle install`. Please be aware this is an experimental build. Please report any issue you may encounter at our [support email](mailto:support@appsignal.com).
@@ -526,7 +526,7 @@ module Appsignal
526
526
  end
527
527
 
528
528
  def cleaned_backtrace(backtrace)
529
- if defined?(::Rails) && backtrace
529
+ if defined?(::Rails) && Rails.respond_to?(:backtrace_cleaner) && backtrace
530
530
  ::Rails.backtrace_cleaner.clean(backtrace, nil)
531
531
  else
532
532
  backtrace
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "3.0.8".freeze
4
+ VERSION = "3.0.9".freeze
5
5
  end
@@ -1321,6 +1321,13 @@ describe Appsignal::Transaction do
1321
1321
  expect(subject).to eq ["line 1", "line 2"]
1322
1322
  end
1323
1323
 
1324
+ context "with Rails module but without backtrace_cleaner method" do
1325
+ it "returns the backtrace uncleaned" do
1326
+ stub_const("Rails", Module.new)
1327
+ expect(subject).to eq ["line 1", "line 2"]
1328
+ end
1329
+ end
1330
+
1324
1331
  if rails_present?
1325
1332
  context "with rails" do
1326
1333
  it "cleans the backtrace with the Rails backtrace cleaner" 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.0.8
4
+ version: 3.0.9
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: 2021-06-18 00:00:00.000000000 Z
13
+ date: 2021-06-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack