faktory_worker_ruby 1.0.1 → 1.0.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: 7739220174ff556abdf6a357cbcd260b6290c732628b27c8dc01ad00be727dd9
4
- data.tar.gz: 3c87db6e71078419a761c6b34dbdcdd3914d5551f4b42f04140a1621c6568b50
3
+ metadata.gz: 804ff26f314376744d731cc7bae95efdfda57c9d835ebc32fed9efbfcd5c813d
4
+ data.tar.gz: 70758dc5254f96908ff969342a30e8ccdef261e1a813b1aeb30993b7df9c4e4e
5
5
  SHA512:
6
- metadata.gz: b2fc14441abfab58c7cde5401e42adcfe3bb558cd5d5dbf8f6a5db6b176cf2b1d9057370dd0b1daf3d3ca629bb829495bc53167e56e02f0543ec4f89556792ba
7
- data.tar.gz: 12b5d2fc13701e3c221b9ef8301bdb5b43806b1058336298393b66fc3f8020eb01d9569a43884a9f789a5df754bd24e987a340a74f12f055ae71a244d0d0763d
6
+ metadata.gz: 10024bc0283cd638063ba48d54887d9f8b65aaf059a726edf40a9fe0e40dd870eced9713746e2a60db397e4057881132a939e7296277c93916b4b40de8b7ab44
7
+ data.tar.gz: da7660a768934e05240f5b6e228bc6a7f6dff31557127f0391f29a9c8d8c3a1bfc307235dda97f233a2d051832f9f9ff166bf9511283cfc45bd23f432e2cfc55
data/Changes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 1.0.2
4
+
5
+ - Fix "batch not open" errors
6
+
3
7
  ## 1.0.1
4
8
 
5
9
  - Run client middleware before pushing a job to Faktory [#48]
@@ -80,9 +80,9 @@ module Faktory
80
80
  end
81
81
  batch.instance_variable_set(:@bid, bid)
82
82
 
83
- old = Thread.current["faktory_batch"]
84
- Thread.current["faktory_batch"] = batch
83
+ old = Thread.current[:faktory_batch]
85
84
  begin
85
+ Thread.current[:faktory_batch] = batch
86
86
  # any jobs pushed in this block will implicitly have
87
87
  # their `bid` attribute set so they are associated
88
88
  # with the current batch.
@@ -110,8 +110,8 @@ module Faktory
110
110
  ok
111
111
  end
112
112
  old = Thread.current[:faktory_batch]
113
- Thread.current[:faktory_batch] = b
114
113
  begin
114
+ Thread.current[:faktory_batch] = b
115
115
  # any jobs pushed in this block will implicitly have
116
116
  # their `bid` attribute set so they are associated
117
117
  # with the current batch.
@@ -5,7 +5,7 @@
5
5
  module Faktory::Middleware::Batch
6
6
  class Client
7
7
  def call(payload, pool)
8
- b = Thread.current["faktory_batch"]
8
+ b = Thread.current[:faktory_batch]
9
9
  if b
10
10
  payload["custom"] ||= {}
11
11
  payload["custom"]["bid"] = b.bid
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Faktory
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faktory_worker_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2021-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  - !ruby/object:Gem::Version
149
149
  version: '0'
150
150
  requirements: []
151
- rubygems_version: 3.2.6
151
+ rubygems_version: 3.2.8
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Ruby worker for Faktory