telebugs 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/telebugs/{middleware.rb → base_middleware.rb} +1 -1
- data/lib/telebugs/middleware/gem_root_filter.rb +1 -1
- data/lib/telebugs/middleware/ignore_environments.rb +1 -1
- data/lib/telebugs/middleware/root_directory_filter.rb +1 -1
- data/lib/telebugs/version.rb +1 -1
- data/lib/telebugs.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ac26c242c70bb68865a22619ab11bf4a6ea87a8916419d7c23b61a8e177c6f4
|
4
|
+
data.tar.gz: '082d97785ef062ccea94556aeaa80a0611e89bf0c185064177f470e4ad9dd2f7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1d605be920edfa515e901a9fbcdd30291722e789b88db3c9feff628ad221cff0954ab8b945dba3a3c678127678ee1e15193c2c1ca138e6c6bcc4a6beebd39a9
|
7
|
+
data.tar.gz: 3e36a26d7e450f141ad1f8926e1e6bf934cccce0eb8620df4c37c791a070fdb5491b56bb45d22da9e975bc665812b24cc208023abd9c5e5f3714be4b911693ec
|
@@ -4,7 +4,7 @@ module Telebugs
|
|
4
4
|
class Middleware
|
5
5
|
# GemRootFilter is a middleware that filters out the root path of the gems.
|
6
6
|
# It replaces the root path with the gem name and version.
|
7
|
-
class GemRootFilter < Telebugs::
|
7
|
+
class GemRootFilter < Telebugs::BaseMiddleware
|
8
8
|
def initialize
|
9
9
|
@gem_paths = Gem.path.map { |path| /\A#{Regexp.escape(path)}\/gems\// }
|
10
10
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Telebugs
|
4
4
|
class Middleware
|
5
5
|
# Filters out the root directory from the backtrace paths.
|
6
|
-
class RootDirectoryFilter < Telebugs::
|
6
|
+
class RootDirectoryFilter < Telebugs::BaseMiddleware
|
7
7
|
def initialize(root_directory)
|
8
8
|
@root_directory = root_directory
|
9
9
|
end
|
data/lib/telebugs/version.rb
CHANGED
data/lib/telebugs.rb
CHANGED
@@ -15,7 +15,7 @@ require_relative "telebugs/error_message"
|
|
15
15
|
require_relative "telebugs/backtrace"
|
16
16
|
require_relative "telebugs/file_cache"
|
17
17
|
require_relative "telebugs/code_hunk"
|
18
|
-
require_relative "telebugs/
|
18
|
+
require_relative "telebugs/base_middleware"
|
19
19
|
require_relative "telebugs/middleware_stack"
|
20
20
|
require_relative "telebugs/truncator"
|
21
21
|
|
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.
|
4
|
+
version: 0.10.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-07-
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -53,11 +53,11 @@ files:
|
|
53
53
|
- Rakefile
|
54
54
|
- lib/telebugs.rb
|
55
55
|
- lib/telebugs/backtrace.rb
|
56
|
+
- lib/telebugs/base_middleware.rb
|
56
57
|
- lib/telebugs/code_hunk.rb
|
57
58
|
- lib/telebugs/config.rb
|
58
59
|
- lib/telebugs/error_message.rb
|
59
60
|
- lib/telebugs/file_cache.rb
|
60
|
-
- lib/telebugs/middleware.rb
|
61
61
|
- lib/telebugs/middleware/gem_root_filter.rb
|
62
62
|
- lib/telebugs/middleware/ignore_environments.rb
|
63
63
|
- lib/telebugs/middleware/root_directory_filter.rb
|