rspec-goodies 0.0.1 → 0.1.1

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: 688595f20fe784a45182edf3ebdcb7f19a411ad3dd975259b0022631d925f788
4
- data.tar.gz: f9a6bd4961893ceab3d91de8592d6ce8ca883d2c68a1706212144e0d74972dcd
3
+ metadata.gz: b84bb1a1e7947039692f5fe8aa0aafa794ca92d0a926ecfd48b508a909b0fb14
4
+ data.tar.gz: c937c9f6aa8b86fbefaa7be56b778bd1892cf08c0b5185ecba3e68833d62b90c
5
5
  SHA512:
6
- metadata.gz: 430633d6935b63b479bc46e9fc1e02dcf65f73ddd5ab8aa38db6efe3adc4c0c85681c2ad0eccc00fd720eefaf958c0566b19e7ae7dc9f2132c223d940a33e5bc
7
- data.tar.gz: 14841a867c03923ec9af50fa0eda9d02b5d88f9c64ba7dc9783ec4be283ab3fc4e865bdaf3c04d52dc11ee1202b23c6c8bf36277355944978915bceac8131191
6
+ metadata.gz: 2522ba744dede8da8c355c80f08b0bb42982103ea9258c159b4a5efac350aabc4844697e9788f84c93eb6fb7e1374a5b42573cf836b998ce6d7caec2f9f1ec21
7
+ data.tar.gz: 96166c7f3e661350217f917fa00d7d30eeb7f8f83298ad97fb01110c33495f3e26ff39e5a70c544e7229c6c15ce182b10f11d0e88c2d1b75a8f8efba45559cb3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-goodies (0.0.1)
4
+ rspec-goodies (0.1.1)
5
5
  activesupport
6
6
  byebug
7
7
  rails
@@ -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
@@ -28,7 +28,7 @@ module RSpec
28
28
  end
29
29
 
30
30
  # Stubs existing constant with resulting hash deep merged with existing hash and hash passed in
31
- def stub_class_const_and_merge(klass, const_string, hash)
31
+ def stub_merged_hash_class_const(klass, const_string, hash)
32
32
  raise ArgumentError, "must pass in hash" unless hash.is_a?(Hash)
33
33
 
34
34
  existing_hash = klass.const_get(const_string)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rspec-goodies"
5
- spec.version = "0.0.1"
5
+ spec.version = "0.1.1"
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.0.1
4
+ version: 0.1.1
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-01-03 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