harmoniser 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70ec58eff8c88413ab7fa010d6910f9d528a8de1e16fda2a3d2310b09962bd3b
4
- data.tar.gz: ff15c7cbd71753b0810318a7368618ceec12fe7316a01402bd15dd29cf6259ed
3
+ metadata.gz: 22ff604975432b081956834ca20441d85c8ae98ce690a6185daea4e0d7a1eb11
4
+ data.tar.gz: 1b5c12440738254845b8f7d717013f5306ea760df126cc702dbce178af9e7f32
5
5
  SHA512:
6
- metadata.gz: 1e78c657e2b557d4118f25944c57c706d9af3f2968ecee40d71d5745bee1a6e9a32be4e1d705c67f9a475607cc6a1987383208b571f1f1c22facfacc5428e1e5
7
- data.tar.gz: b35014311fa351fe77c8743feac5f9b6e68acc2ef0ee4ffb6b203de5f2ebcebdec43d97c9955036f018e8050792e6bbb4ca0459100eddeffbb0ac98a800f476f
6
+ metadata.gz: '0568d8afd4545a550a645f016936cc27866973216a20a3aa7cb9b083b8e62ce0fab3e6dca8e1b5dadf8104edc7a7f08a165d1b252dc94fcb0ee631fe489f19d8'
7
+ data.tar.gz: cf2e9b2f429f0bf8a4abf7741f893d732fa8cde55935aa3f518222e1aaf1857313019c6b9f049b4fdf0be8882b5c392a1dc6dbfd70e0048a9826a4af89edcc5e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.8.1] - 2024-04-08
4
+
5
+ ### Fixed
6
+ - Exit ruby process when harmoniser is not the main process. More details at [issue](https://github.com/jollopre/harmoniser/issues/41).
7
+
3
8
  ## [0.8.0] - 2024-03-31
4
9
 
5
10
  ### Added
@@ -83,7 +83,7 @@ module Harmoniser
83
83
  yield if block_given?
84
84
  rescue SignalException => e
85
85
  Harmoniser.logger.info("Signal received: signal = `#{Signal.signame(e.signo)}`")
86
- exit(0)
86
+ Harmoniser.server? ? exit(0) : raise
87
87
  end
88
88
  end
89
89
  end
@@ -1,3 +1,3 @@
1
1
  module Harmoniser
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
data/lib/harmoniser.rb CHANGED
@@ -7,4 +7,10 @@ require "harmoniser/subscriber"
7
7
  module Harmoniser
8
8
  extend Configurable
9
9
  extend Loggable
10
+
11
+ class << self
12
+ def server?
13
+ !!defined?(CLI)
14
+ end
15
+ end
10
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harmoniser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Lloret
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-31 00:00:00.000000000 Z
11
+ date: 2024-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny