nats_wave 1.1.19 → 1.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: b52406b98b5156e9768ed65c62a10231ad0ab91a18ff73d61204e4ff5cb6749b
4
- data.tar.gz: 6d4e71c9e9c91ed92644a61f9a2a1ca3ef1a92f7f7de193c86c58a34d3cfb445
3
+ metadata.gz: 7486abc8b128aa4db2a14d1c43fa89a245a075c1bc87ea78dad3f84d6f0670f2
4
+ data.tar.gz: c533782709dff2dd3761435983d36c2997bd2a047e89d17030e0e9a20d901937
5
5
  SHA512:
6
- metadata.gz: 2b72a3a616956bf8175c19f7fea105ef5f7f2684fddcc17027a256c05331af7f02fd858e502079b40da46964bd6d4b665b6c3ffd628320b43d695fbd194135ad
7
- data.tar.gz: d3ea18ccf932f8800a2a061244c4a4012a256f4505b4426f951544d03c4d4b1bd03344a1d6b0190df144e3d912a333dddea72152faf59544e017cf22f71339c9
6
+ metadata.gz: 7883ab600415a87e2f63b52928ff55e61d136f3422b3ddc63f216dbb551a05c588720b5973701ad3220b8dd5e8bc40c6e0c2c63e0ea4acdcf5e89eed24ee5fd0
7
+ data.tar.gz: d75d1a16f3663d397847a5e912189f1faac17c39246efe1a017a3ecb657ecf6ad2ffae8583ab62a697f555fd7d452a9763b2abe222719d40aa94e0a87df2d5ca
data/.idea/nats_wave.iml CHANGED
@@ -129,21 +129,21 @@
129
129
  <option name="myRootTask">
130
130
  <RakeTaskImpl id="rake">
131
131
  <subtasks>
132
- <RakeTaskImpl description="Build nats_wave-1.1.14.gem into the pkg directory" fullCommand="build" id="build" />
132
+ <RakeTaskImpl description="Build nats_wave-1.1.20.gem into the pkg directory" fullCommand="build" id="build" />
133
133
  <RakeTaskImpl id="build">
134
134
  <subtasks>
135
- <RakeTaskImpl description="Generate SHA512 checksum of nats_wave-1.1.14.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
135
+ <RakeTaskImpl description="Generate SHA512 checksum of nats_wave-1.1.20.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
136
136
  </subtasks>
137
137
  </RakeTaskImpl>
138
138
  <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
139
139
  <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
140
- <RakeTaskImpl description="Build and install nats_wave-1.1.14.gem into system gems" fullCommand="install" id="install" />
140
+ <RakeTaskImpl description="Build and install nats_wave-1.1.20.gem into system gems" fullCommand="install" id="install" />
141
141
  <RakeTaskImpl id="install">
142
142
  <subtasks>
143
- <RakeTaskImpl description="Build and install nats_wave-1.1.14.gem into system gems without network access" fullCommand="install:local" id="local" />
143
+ <RakeTaskImpl description="Build and install nats_wave-1.1.20.gem into system gems without network access" fullCommand="install:local" id="local" />
144
144
  </subtasks>
145
145
  </RakeTaskImpl>
146
- <RakeTaskImpl description="Create tag v1.1.14 and build and push nats_wave-1.1.14.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
146
+ <RakeTaskImpl description="Create tag v1.1.20 and build and push nats_wave-1.1.20.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
147
147
  <RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
148
148
  <RakeTaskImpl id="rubocop">
149
149
  <subtasks>
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nats_wave (1.1.19)
4
+ nats_wave (1.2)
5
5
  activerecord (>= 6.1, < 8.0)
6
6
  activesupport (>= 6.1, < 8.0)
7
7
  concurrent-ruby (~> 1.1)
data/README.md CHANGED
@@ -174,7 +174,7 @@ rails console
174
174
  # This automatically publishes via nats_wave_publishes_to
175
175
  ```
176
176
 
177
- ## ⚙️ Configuration
177
+ ## ⚙️ Configuration
178
178
 
179
179
  ### Environment Variables
180
180
 
@@ -403,10 +403,16 @@ module NatsWave
403
403
  end
404
404
 
405
405
  def with_nats_publishing_disabled(&block)
406
+ original_skip = Thread.current[:skip_nats_wave_publishing]
407
+ original_processing = Thread.current[:nats_wave_processing]
408
+
406
409
  Thread.current[:skip_nats_wave_publishing] = true
410
+ Thread.current[:nats_wave_processing] = true
411
+
407
412
  yield
408
413
  ensure
409
- Thread.current[:skip_nats_wave_publishing] = false
414
+ Thread.current[:skip_nats_wave_publishing] = original_skip
415
+ Thread.current[:nats_wave_processing] = original_processing
410
416
  end
411
417
  end
412
418
  end
@@ -77,7 +77,7 @@ module NatsWave
77
77
  {
78
78
  service: @service_name,
79
79
  environment: ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'unknown',
80
- version: ENV['APP_VERSION'] || '1.1.19'
80
+ version: ENV['APP_VERSION'] || '1.2'
81
81
  }
82
82
  end
83
83