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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd88a26348f29c957f7a0b22f2cae908f406acd8bf157079edb7e47fb4037617
4
- data.tar.gz: e882d0bb69de2bd59a57599868f2573047e018c812dac102f2a6b62cfa236efa
3
+ metadata.gz: b11c29c5faebe2abbe4a266477d181a87e8d357d558766be381d64505727465a
4
+ data.tar.gz: 151af09da3ca8570f5e7f40c522548b244c563ff4b6120eecd99e2ca992a91d5
5
5
  SHA512:
6
- metadata.gz: 40f89ce5b6e8913dc8862b5da35e60661a452de536c9f148ac20b2b9fee3b2d6ab7bd3fa9a2f9256303e0bf11890591d57d651c19b1a583524441171dcde621e
7
- data.tar.gz: c4e0d67ffda6f6156845dc2d84401cc33b65d3f38f31662ca050e9743d5986e83844503171c24390992d17d04e1cd13ff9c7e37941f0f6bad57b78736d1cfb67
6
+ metadata.gz: 9b4a5ac5c82e1db6b45f5a41045dbb529ffd32bb718a7f8c55c52fc0f6219c079dbf811576aa8ed8ef61919f30de72be25a5cd1fc61607173e2ebe7ce590910b
7
+ data.tar.gz: 87365e6f0865c71d581a4756ffae5cae1d3dda78038287699ca31de201663c7b4b2e0b0c85e0fc1537e6f1c2833a1e69dfdb05959f28811cb5a45414dfdb729a
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.2"
2
+ ".": "0.2.3"
3
3
  }
data/.version.txt CHANGED
@@ -1 +1 @@
1
- 0.2.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
 
@@ -2,7 +2,24 @@
2
2
 
3
3
  module Rubyists
4
4
  module Leopard
5
- class Error < StandardError; end
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
@@ -3,7 +3,7 @@
3
3
  module Rubyists
4
4
  module Leopard
5
5
  # x-release-please-start-version
6
- VERSION = '0.2.2'
6
+ VERSION = '0.2.3'
7
7
  # x-release-please-end
8
8
  end
9
9
  end
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.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-15 00:00:00.000000000 Z
10
+ date: 2025-08-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: concurrent-ruby