queue-bus 0.8.0 → 0.8.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: 86f211839cfb0c4e6e037abcfd1d73a91bbbe38ae8a08138f2bbad0723e092c7
4
- data.tar.gz: d0474b7d0763983dd5bd54759023e0fe017ced93aa8ecee0b3b599b34ab4e5fd
3
+ metadata.gz: ca713b5c64f5029742e53350ccf0d36364611dc4a8341cd00e00b23f7f91b368
4
+ data.tar.gz: 3134efc9c4480b1b911bdbf2c49a0d7ec0c3acb4eb07ebfd2d8aedd417268c79
5
5
  SHA512:
6
- metadata.gz: 4c467c372844f04cdb4fd6d8d827fcbc56427936181f4bd08571da0f82c12014e0c9d6db282df17625e1102b7c0cf604af606478affeee51d1b769583a824fe2
7
- data.tar.gz: 8d16570fa8441b83288790a052d0e09511039b72d6f44a0f9c9c4578d5668a8af04e49836c580f1a9e750602a11a1b607d8db5844e879249a41378a4c2a512f7
6
+ metadata.gz: 34bc0fd00bd756d1f605b7b88c1af70d9876eee5ebf0e9beb8ec40131c5646d14f34dd556b775f926b14b615cf36ecbf00368c9250110aa7d02170bd9ad59927
7
+ data.tar.gz: de674185db457535650503d9d05a34fcbfb0c71ea491036e6de2f40d77347fc9d8eeb8c27b330940fe6ffd8a3644a86091d573f44ba6e43784aae4ba1c3eef36
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.8.1]
10
+
11
+ ### Fixed
12
+ - `with_local_mode` breaks subsequent calls to `local_mode` on versions less than 2.6.
13
+
9
14
  ## [0.8.0]
10
15
 
11
16
  ### Added
@@ -27,7 +27,7 @@ module QueueBus
27
27
 
28
28
  # Returns the current local mode of QueueBus
29
29
  def local_mode
30
- if Thread.current.thread_variable?(LOCAL_MODE_VAR)
30
+ if Thread.current.thread_variable_get(LOCAL_MODE_VAR).is_a?(Wrap)
31
31
  Thread.current.thread_variable_get(LOCAL_MODE_VAR).value
32
32
  else
33
33
  @local_mode
@@ -1,3 +1,3 @@
1
1
  module QueueBus
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -53,6 +53,7 @@ describe 'QueueBus config' do
53
53
  end
54
54
 
55
55
  it 'resets to the original local mode after the block' do
56
+ expect(QueueBus.local_mode).to eq nil
56
57
  QueueBus.with_local_mode(:suppress) do
57
58
  expect(QueueBus.local_mode).to eq :suppress
58
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue-bus
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
  - Brian Leonard