plain_apm 0.9.5 → 0.9.6

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: 8700716a8232dd006ee1f152ff706b110e183180f31b174dad707073d56191cd
4
- data.tar.gz: cab9abf563da3173c75448eaf1ab4a30d385d12190b64adb6c2a13bf9c154c3f
3
+ metadata.gz: c04ad1d3800e79ca5956ab34d933a7d22a978c339c38a101dbc372cdea8cb34b
4
+ data.tar.gz: c69b2e6c160f7143ccbc8c4bc6e85f80af2e1fcb327e446bc68d92ce1ab03a23
5
5
  SHA512:
6
- metadata.gz: 25ab862df530c784896f3b0de84fb53fc9838a6551fdbb774cef2927566abe920458f6669425a1204407d849d4be5bf7c2055523f6cade5fffceffc8bdfe68b6
7
- data.tar.gz: 948fe60ffebd3fee6897145343c2c89dce907639bd7b4b584569b43108301b2be789908838cc97142f7a01f54d51d7f9f6fbb231873e83940b82a06050299f2d
6
+ metadata.gz: 1294d748d9cedc00e5433dd8a520f5a69a6458ab749a314115565bdac63bebaaeaf4c533432d04db8c55a3a1eee07612ae633e205a5c79fed488b3baba1105a3
7
+ data.tar.gz: 95a27cb67aeb768088ceb852ad6be44adce0c81ba40f1e54f9dac65f874dc6d01e70ce14b9d2b09e8af6a9bee865d377e512253cabe604c2d2d495cb1235d55a
@@ -45,11 +45,8 @@ module PlainApm
45
45
 
46
46
  # strip rails root
47
47
  def identifier(id)
48
- return id unless defined?(Rails) && Rails.respond_to?(:root)
49
-
50
- root = Rails.root.to_s
51
-
52
- id.start_with?(root) ? id[root.size + 1..-1] : id # standard:disable Style/SlicingWithRange
48
+ return id if self.class.rails_root.nil? || id.nil?
49
+ id.start_with?(self.class.rails_root) ? id[self.class.rails_root.length + 1..-1] : id # standard:disable Style/SlicingWithRange
53
50
  end
54
51
  end
55
52
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlainApm
4
- VERSION = "0.9.5"
4
+ VERSION = "0.9.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plain_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - PlainAPM Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-06 00:00:00.000000000 Z
11
+ date: 2024-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest