leopard 0.2.0 → 0.2.2
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 +14 -0
- data/examples/echo_endpoint.rb +2 -0
- data/lib/leopard/nats_api_server.rb +7 -4
- data/lib/leopard/version.rb +1 -1
- data/lib/leopard.rb +0 -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: fd88a26348f29c957f7a0b22f2cae908f406acd8bf157079edb7e47fb4037617
|
4
|
+
data.tar.gz: e882d0bb69de2bd59a57599868f2573047e018c812dac102f2a6b62cfa236efa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40f89ce5b6e8913dc8862b5da35e60661a452de536c9f148ac20b2b9fee3b2d6ab7bd3fa9a2f9256303e0bf11890591d57d651c19b1a583524441171dcde621e
|
7
|
+
data.tar.gz: c4e0d67ffda6f6156845dc2d84401cc33b65d3f38f31662ca050e9743d5986e83844503171c24390992d17d04e1cd13ff9c7e37941f0f6bad57b78736d1cfb67
|
data/.version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.2.2](https://github.com/rubyists/leopard/compare/v0.2.1...v0.2.2) (2025-08-15)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* Ensure we exit after saying Bye Bye ([#33](https://github.com/rubyists/leopard/issues/33)) ([11a7584](https://github.com/rubyists/leopard/commit/11a7584dd88e7c7fb4dbfde613b8186dc4253892))
|
9
|
+
|
10
|
+
## [0.2.1](https://github.com/rubyists/leopard/compare/v0.2.0...v0.2.1) (2025-08-08)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* Do not leak SemanticLogger settings outside of isolation ([#30](https://github.com/rubyists/leopard/issues/30)) ([524595c](https://github.com/rubyists/leopard/commit/524595c37f114ec28f40abc841ecb3c7b6579f5a))
|
16
|
+
|
3
17
|
## [0.2.0](https://github.com/rubyists/leopard/compare/v0.1.7...v0.2.0) (2025-08-07)
|
4
18
|
|
5
19
|
|
data/examples/echo_endpoint.rb
CHANGED
@@ -138,7 +138,7 @@ module Rubyists
|
|
138
138
|
logger.warn 'Pool is shut down, waiting for termination!'
|
139
139
|
pool.wait_for_termination
|
140
140
|
logger.warn 'Bye bye!'
|
141
|
-
|
141
|
+
wake_main_thread_and_exit!
|
142
142
|
end
|
143
143
|
end
|
144
144
|
|
@@ -162,13 +162,16 @@ module Rubyists
|
|
162
162
|
|
163
163
|
# Wakes up the main thread to allow it to continue execution after the server is stopped.
|
164
164
|
# This is useful when the server is running in a blocking mode.
|
165
|
-
# If the main thread is not blocked, this method does
|
165
|
+
# If the main thread is not blocked, this method does just exits.
|
166
166
|
#
|
167
167
|
# @return [void]
|
168
|
-
def
|
168
|
+
def wake_main_thread_and_exit!
|
169
169
|
Thread.main.wakeup
|
170
|
+
exit 0
|
170
171
|
rescue ThreadError
|
171
|
-
|
172
|
+
exit 0
|
173
|
+
rescue StandardError
|
174
|
+
exit 1
|
172
175
|
end
|
173
176
|
end
|
174
177
|
|
data/lib/leopard/version.rb
CHANGED
data/lib/leopard.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.2
|
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-15 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: concurrent-ruby
|