ears 0.10.0 → 0.10.1

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: 5ff51eb26ddd79aebd5f99d8699b8351cdc96fc68485e9b0c99a8fe85502a96e
4
- data.tar.gz: 91667d959259121b6e973897fb617cb0b92e60b720c6aee451c8ff5b472f6c58
3
+ metadata.gz: 81347f5a381b3d01848fb56bddbfe36eb6c999d3fa17898acb8e7743b1cb3554
4
+ data.tar.gz: dd0a093e40f7cff1da3bf27548c68507e989c29b060102863dbef4f246d0ad8c
5
5
  SHA512:
6
- metadata.gz: fc487ab5e78bb55e43c6ccb89fb1d49543f1c3994b1bf3b01b1f4f6349ede74570ff6c6c67be5c1b1d979a4328124cf333db1594f3fde7cc2cdb54397ed3461c
7
- data.tar.gz: 6f5e2efd6c25c8ff2801d3402064b20ec808b56530a7f65ad55323da549f0583ec5e4f06a66baec83b7b6ebf532bdab644095ac7880a544143ffcd2c73d5ee64
6
+ metadata.gz: 76f4f396bc99aa46e849d2754a97e2328fb455255b9e65c19d78a236dd842f0a97aab100854de2654009e62110071a4de63222f141e83759668a276181720d08
7
+ data.tar.gz: 1cd01c4341bfcd2dbdeafa0c1756837b74a5fe8bdc08ef9f1371a42f088ec1824c477faedfe3c896d7075ada7a6f9d0d93810f5ac1e032f5f3cda8dd788f7d15
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1 (2023-05-22)
4
+
5
+ - Reset channel on Ears.stop!
6
+
3
7
  ## 0.10.0 (2023-05-16)
4
8
 
5
9
  - Add Ears.stop! method to be able to close the connection and remove consumers.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ears (0.10.0)
4
+ ears (0.10.1)
5
5
  bunny
6
6
  multi_json
7
7
 
data/README.md CHANGED
@@ -212,7 +212,7 @@ For this use case, there is a stop! method:
212
212
  Ears.stop!
213
213
  ```
214
214
 
215
- It will close and reset the current Bunny connection, leading to all consumers being shut down.
215
+ It will close and reset the current Bunny connection, leading to all consumers being shut down. Also, it will reset the channel.
216
216
 
217
217
  ## Documentation
218
218
 
data/lib/ears/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ears
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
data/lib/ears.rb CHANGED
@@ -62,6 +62,7 @@ module Ears
62
62
  def stop!
63
63
  connection.close
64
64
  @connection = nil
65
+ Thread.current[:ears_channel] = nil
65
66
  end
66
67
 
67
68
  # Signals that an uncaught error has occurred and the process should be stopped.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ears
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - InVision AG
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-16 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny