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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 550ad9a639b0f8caf0989990853c1ab49428f4f48c0b28a6fdc30c30d8450a03
4
- data.tar.gz: 0b2fdc7d99a23fe156b446b724407eedb074806d989542f42af4ff63d74744c7
3
+ metadata.gz: fd88a26348f29c957f7a0b22f2cae908f406acd8bf157079edb7e47fb4037617
4
+ data.tar.gz: e882d0bb69de2bd59a57599868f2573047e018c812dac102f2a6b62cfa236efa
5
5
  SHA512:
6
- metadata.gz: 68cc478abf3538e4d567fe170fa72340632ac056608d16aa1dc426842c2c9de3fbb6001ac8c75058a43d41558d625fbe31ad52104d54d5c33f5363b5d84d1f7e
7
- data.tar.gz: 9b9769a6a7c5eeadc28424f530fef164cd6ed558f1fb975afbecbefb01d96c10428bf653fddf3a6840072fe02b89a6b15eee121f55e9bf5cbd01b0e56aee1a69
6
+ metadata.gz: 40f89ce5b6e8913dc8862b5da35e60661a452de536c9f148ac20b2b9fee3b2d6ab7bd3fa9a2f9256303e0bf11890591d57d651c19b1a583524441171dcde621e
7
+ data.tar.gz: c4e0d67ffda6f6156845dc2d84401cc33b65d3f38f31662ca050e9743d5986e83844503171c24390992d17d04e1cd13ff9c7e37941f0f6bad57b78736d1cfb67
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.0"
2
+ ".": "0.2.2"
3
3
  }
data/.version.txt CHANGED
@@ -1 +1 @@
1
- 0.2.0
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
 
@@ -16,6 +16,8 @@ class EchoService
16
16
  end
17
17
 
18
18
  if __FILE__ == $PROGRAM_NAME
19
+ SemanticLogger.default_level = :info
20
+ SemanticLogger.add_appender(io: $stdout, formatter: :color)
19
21
  EchoService.run(
20
22
  nats_url: 'nats://localhost:4222',
21
23
  service_opts: {
@@ -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
- wake_main_thread
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 nothing.
165
+ # If the main thread is not blocked, this method does just exits.
166
166
  #
167
167
  # @return [void]
168
- def wake_main_thread
168
+ def wake_main_thread_and_exit!
169
169
  Thread.main.wakeup
170
+ exit 0
170
171
  rescue ThreadError
171
- nil
172
+ exit 0
173
+ rescue StandardError
174
+ exit 1
172
175
  end
173
176
  end
174
177
 
@@ -3,7 +3,7 @@
3
3
  module Rubyists
4
4
  module Leopard
5
5
  # x-release-please-start-version
6
- VERSION = '0.2.0'
6
+ VERSION = '0.2.2'
7
7
  # x-release-please-end
8
8
  end
9
9
  end
data/lib/leopard.rb CHANGED
@@ -3,7 +3,6 @@
3
3
  require 'dry/configurable'
4
4
  require 'pathname'
5
5
  require 'semantic_logger'
6
- SemanticLogger.add_appender(io: $stdout, formatter: :color)
7
6
 
8
7
  class Pathname
9
8
  def /(other)
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.0
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-07 00:00:00.000000000 Z
10
+ date: 2025-08-15 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: concurrent-ruby