leopard 0.2.6 → 0.2.7

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: 42beb75a4668c0874385a6d0cc8deead97def34d08a45e4c7a314ffb75697bcf
4
- data.tar.gz: 3d69bfcf8942d34695514c9b70d25ccc68024ca4027ce3cd4cc3f22bee3b6986
3
+ metadata.gz: b477f10d51aef7a541a2a08d615c4ab03c12393edee90ef4d46265df76727c3a
4
+ data.tar.gz: 5ad3323e0fd8a1f3f09fc9dd648bc21c05b7b0d21a51bc46cef8fc27c379a745
5
5
  SHA512:
6
- metadata.gz: 6f0b1e3f0d13fbfdee1614f5a3af3f8ba0758d5afec9cee415c7d36fc448a11e5d8c4df4895119c87ce909ff3b0b7ab61aa0956f774565930521f946f6b27053
7
- data.tar.gz: 9cbf821b916e89d469d05abfb29ba92a337c1a08394d1a66cef39e6613426d8a2f893fbe27d55e4ebaa329f8d4ae7b50c8fa1a657df8af7fec11d9c8bec8b871
6
+ metadata.gz: 44c692417837a8d9e1c6e6ed1fa84e1c7eb096367b7617e729e8068d5e93c7a01d1ac5414a5d01945c37180e2c918c3aba08122af73b9ad2010773656d6a535f
7
+ data.tar.gz: caff9b0df3beb7a16bd8d8c4830257f24ad1dec98fb57d3b5dba6847892f84cda089a7fe85d1368fb64834996ab69cc1831383b6d0c1d7ca3e7b44cb536a99b2
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.6"
2
+ ".": "0.2.7"
3
3
  }
data/.version.txt CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.7](https://github.com/rubyists/leopard/compare/v0.2.6...v0.2.7) (2026-04-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * surface handler results to middleware chain ([#47](https://github.com/rubyists/leopard/issues/47)) ([eb046f2](https://github.com/rubyists/leopard/commit/eb046f245cfd3c773167e24b5690308ebb67ff87))
9
+
3
10
  ## [0.2.6](https://github.com/rubyists/leopard/compare/v0.2.5...v0.2.6) (2026-04-21)
4
11
 
5
12
 
@@ -56,9 +56,13 @@ module Rubyists
56
56
  lambda do |wrapper|
57
57
  result = execute_handler.call(wrapper, handler)
58
58
  process_result(wrapper, result, callbacks)
59
+ # TODO: document that middleware functions are expected to propagate result
60
+ # https://github.com/rubyists/leopard/issues/48
61
+ result
59
62
  rescue StandardError => e
60
63
  logger.error 'Error processing message: ', e
61
64
  callbacks[:on_error].call(wrapper, e)
65
+ Dry::Monads::Result::Failure.new(e)
62
66
  end
63
67
  end
64
68
 
@@ -3,7 +3,7 @@
3
3
  module Rubyists
4
4
  module Leopard
5
5
  # x-release-please-start-version
6
- VERSION = '0.2.6'
6
+ VERSION = '0.2.7'
7
7
  # x-release-please-end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leopard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bougyman