telebugs 0.6.0 → 0.8.0

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: 1b15d4f8c051d0aaf01a989d4222cb934bf3ed7a11b2ac63549824f9353fe98a
4
- data.tar.gz: 8c2c8048c5799735d62a8dcc7ee8a28f7377775ab0d32670c0aef3814119a42b
3
+ metadata.gz: ece3ebc75dc41f4d196b0c6080a970b0fd66c35b8c6ae494542a84f0989e5c4e
4
+ data.tar.gz: 44c0627c1e634d1e3618843d7d2c2df9344b4e9d75cccf9b9e86c345c1e84dd2
5
5
  SHA512:
6
- metadata.gz: adc3cc6b7e25076da64c63479037f3c144536c02ca77bc8c6e0a4279d3ce2b37795f16bd010f37b71378c6c7f0ec40ad188aa179c7a050ea8af05731b53a0b07
7
- data.tar.gz: ff81dc60d57b9a649b81e13ffd61a968c1edcdcd3892a3929b18cec379daafb7bd85dffd2e19a388fa04ff6504b4a82652d3c4c9e5bd46d236a4300dc5fddd4e
6
+ metadata.gz: 2fe739be52b05fa197e49f2cb700dd412d30d8cba7dc1d5d5a28bd7891cd25aba11ae33d05bf5388c5aae48b757bc5064d6c462186116dd546aa14730dde4e8f
7
+ data.tar.gz: 44fe0d4e8acf1adb5738b96bf1f60c7ae2fbd057326256d1ccfc55b057e0deb4e44c78f98cb4336656e549699c16f4324b03a0621f49edcc77357149d0de3923
@@ -14,6 +14,7 @@ module Telebugs
14
14
  next unless (file = frame[:file])
15
15
  next unless file.start_with?(@root_directory)
16
16
 
17
+ frame[:root_dir] = true
17
18
  file.sub!(/#{@root_directory}\/?/, "")
18
19
  end
19
20
  end
@@ -19,6 +19,11 @@ module Telebugs
19
19
  # The maximum size of hashes, arrays and strings in the report.
20
20
  DATA_MAX_SIZE = 10000
21
21
 
22
+ REPORTER = {
23
+ library: {name: "telebugs", version: Telebugs::VERSION}.freeze,
24
+ platform: {name: "Ruby", version: RUBY_VERSION}.freeze
25
+ }.freeze
26
+
22
27
  attr_reader :data
23
28
  attr_accessor :ignored
24
29
 
@@ -27,7 +32,8 @@ module Telebugs
27
32
  @truncator = Truncator.new(DATA_MAX_SIZE)
28
33
 
29
34
  @data = {
30
- errors: errors_as_json(error)
35
+ errors: errors_as_json(error),
36
+ reporters: [REPORTER]
31
37
  }
32
38
  end
33
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telebugs
4
- VERSION = "0.6.0"
4
+ VERSION = "0.8.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telebugs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyrylo Silin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-18 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby