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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed3b231b9bd0d43d8e442d372ad652c2394c1a62d06f098750a1905ce14a8374
4
- data.tar.gz: f2e0cacc13fa676907b671a2957450e2d1c03923fbe94ada72c943c2bd442450
3
+ metadata.gz: 178b41d6c75e0dea12bb56517244b204936d37df0ec473e78e981ab3765064da
4
+ data.tar.gz: 700b4d1a1dff6149bb8c6be4515f6ecf045f7f763b012dadb5d3e18205ccc432
5
5
  SHA512:
6
- metadata.gz: 4da154384a5a0dcd67139d8a440628075842806506df247063b126663ac73f5ff216060aa4d44f012360d8effed133aaf9e398d45129f05e3558521aacf7e419
7
- data.tar.gz: a12700ce7917986780249055ba1094996633daa53cf81e3ad4236f9cf61b32bfc3b7a94ae6b19ec3e609170b706275c57ea2b7e8efc42900183f0b14f4bd5378
6
+ metadata.gz: 31039ee14d63c90175652ae45dd151fb141bb3b9f449c826051768fc55f654f52f95d7abdf42185cf8ef99999ac4dff6e8a9fdc6f1245121394265eeadae5bdc
7
+ data.tar.gz: 8fc10290d80e4c5d84f752c2b21082374bd28b61cf44835a61c7c106e0902c87c93dd27ec161035a7a5632f0f48b727557ae5e6377e368e1237928076d57ac9b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-goodies (0.1.0)
4
+ rspec-goodies (0.1.2)
5
5
  activesupport
6
6
  byebug
7
7
  rails
@@ -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 = ::Sidekiq::Testing.constantize(payload_hash["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.hmset(
145
- process_id, "info",
146
- process_data, "at",
147
- Time.current.to_f, "busy",
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rspec-goodies"
5
- spec.version = "0.1.0"
5
+ spec.version = "0.1.2"
6
6
  spec.authors = ["James Hu"]
7
7
 
8
8
  spec.summary = "RSpec goodies full of helpers, matchers, and more"
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.0
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-07-23 00:00:00.000000000 Z
11
+ date: 2024-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport