leopard 0.2.2 → 0.2.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.
- checksums.yaml +4 -4
- data/.release-please-manifest.json +1 -1
- data/.version.txt +1 -1
- data/CHANGELOG.md +7 -0
- data/lib/leopard/errors.rb +18 -1
- data/lib/leopard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b11c29c5faebe2abbe4a266477d181a87e8d357d558766be381d64505727465a
|
4
|
+
data.tar.gz: 151af09da3ca8570f5e7f40c522548b244c563ff4b6120eecd99e2ca992a91d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b4a5ac5c82e1db6b45f5a41045dbb529ffd32bb718a7f8c55c52fc0f6219c079dbf811576aa8ed8ef61919f30de72be25a5cd1fc61607173e2ebe7ce590910b
|
7
|
+
data.tar.gz: 87365e6f0865c71d581a4756ffae5cae1d3dda78038287699ca31de201663c7b4b2e0b0c85e0fc1537e6f1c2833a1e69dfdb05959f28811cb5a45414dfdb729a
|
data/.version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.2.3](https://github.com/rubyists/leopard/compare/v0.2.2...v0.2.3) (2025-08-16)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* [#35](https://github.com/rubyists/leopard/issues/35) - Limits the backtrace to 4 lines in our exceptions ([#36](https://github.com/rubyists/leopard/issues/36)) ([df0fee8](https://github.com/rubyists/leopard/commit/df0fee8373fc0088cd61abcc3e6d963e957730b6))
|
9
|
+
|
3
10
|
## [0.2.2](https://github.com/rubyists/leopard/compare/v0.2.1...v0.2.2) (2025-08-15)
|
4
11
|
|
5
12
|
|
data/lib/leopard/errors.rb
CHANGED
@@ -2,7 +2,24 @@
|
|
2
2
|
|
3
3
|
module Rubyists
|
4
4
|
module Leopard
|
5
|
-
class
|
5
|
+
class LeopardError < StandardError
|
6
|
+
def initialize(...)
|
7
|
+
super
|
8
|
+
set_backtrace(caller)
|
9
|
+
end
|
10
|
+
|
11
|
+
def backtrace
|
12
|
+
# If the backtrace is nil, return an empty array
|
13
|
+
orig = (super || [])[0..3]
|
14
|
+
# If the backtrace is less than 4 lines, return it as is
|
15
|
+
return orig if orig.size < 4
|
16
|
+
|
17
|
+
# Otherwise, add a note indicating truncation
|
18
|
+
orig + ['... (truncated by Leopard)']
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
class Error < LeopardError; end
|
6
23
|
class ConfigurationError < Error; end
|
7
24
|
class ResultError < Error; end
|
8
25
|
end
|
data/lib/leopard/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leopard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bougyman
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-08-
|
10
|
+
date: 2025-08-16 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: concurrent-ruby
|