rspec-goodies 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rspec/goodies/helpers/sidekiq.rb +5 -8
- data/rspec-goodies.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 178b41d6c75e0dea12bb56517244b204936d37df0ec473e78e981ab3765064da
|
4
|
+
data.tar.gz: 700b4d1a1dff6149bb8c6be4515f6ecf045f7f763b012dadb5d3e18205ccc432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31039ee14d63c90175652ae45dd151fb141bb3b9f449c826051768fc55f654f52f95d7abdf42185cf8ef99999ac4dff6e8a9fdc6f1245121394265eeadae5bdc
|
7
|
+
data.tar.gz: 8fc10290d80e4c5d84f752c2b21082374bd28b61cf44835a61c7c106e0902c87c93dd27ec161035a7a5632f0f48b727557ae5e6377e368e1237928076d57ac9b
|
data/Gemfile.lock
CHANGED
@@ -46,7 +46,7 @@ module RSpec
|
|
46
46
|
def process_sidekiq_payloads(payloads)
|
47
47
|
payloads.each do |payload|
|
48
48
|
payload_hash = ::Sidekiq.load_json(payload)
|
49
|
-
worker_class =
|
49
|
+
worker_class = Object.const_get(payload_hash["class"])
|
50
50
|
|
51
51
|
worker_class.process_job(payload_hash)
|
52
52
|
end
|
@@ -141,13 +141,10 @@ module RSpec
|
|
141
141
|
::Sidekiq.redis do |redis|
|
142
142
|
redis.incr("busy")
|
143
143
|
redis.sadd("processes", process_id)
|
144
|
-
redis.
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
@sidekiq_job_in_progress_count += 1,
|
149
|
-
)
|
150
|
-
redis.hmset("#{process_id}:work", @sidekiq_job_in_progress_thread_id += 1, job_data)
|
144
|
+
redis.hset(process_id, "info", process_data)
|
145
|
+
redis.hset(process_id, "at", Time.current.to_f)
|
146
|
+
redis.hset(process_id, "busy", @sidekiq_job_in_progress_count += 1)
|
147
|
+
redis.hset("#{process_id}:work", @sidekiq_job_in_progress_thread_id += 1, job_data)
|
151
148
|
end
|
152
149
|
end
|
153
150
|
end
|
data/rspec-goodies.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-goodies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Hu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|