exercism-config 0.81.0 → 0.82.0

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: 1b46079f5d01346899f1ca01df8982501866c5f4844bf967752efe0ade18acba
4
- data.tar.gz: 0e8f97a6111d78de86c423c8d5d2f6515bbd0619bdfe7b8b5395041b95e35d53
3
+ metadata.gz: 88f254f6ea4948dd7505c072ced7fac03df36886fefc0b9fa2f17f7b03caca2d
4
+ data.tar.gz: 83368b9da78d987a4f1dfdf678e4871bc023347747fb264346ec8a26c6183e4f
5
5
  SHA512:
6
- metadata.gz: 03644c1d1feb091c870ebb1f29ef1c7415ff8257ad2cfc5bea2d511e6a60eddbf7bfb7fb7e2def8d5ad08a8e50192b631465eae29899d9fa03e1c561b5a24470
7
- data.tar.gz: 774211dedce7f1a1d4324545d85c598fdffd54e6080ad3a60d20b2ffd131e881e27bcb68048e219328282c3a6590df48a52e160b3ebaf588778c1d5f34eb6814
6
+ metadata.gz: dd43569d09311af253e1c6f8979db1dcd4357b4dc5519f34316c6adf2faa740ae86186a7e01b8a7780480aebc1add8dc6bb6720da3171cc4012ab0492d9b6981
7
+ data.tar.gz: 00025a7185b9371a8f009dbc45fbf2b807599964a7e166eb2b21999d8e7b5524adb801d8fcb6cfc33121259bcc490218861b6f993f0d39c0d5afa8eafa346a90
@@ -20,13 +20,13 @@ module Exercism
20
20
 
21
21
  queue_key = run_in_background ? key_for_queued_for_background_processing : key_for_queued
22
22
  redis = Exercism.redis_tooling_client
23
- redis.multi do
24
- redis.set(
23
+ redis.multi do |transaction|
24
+ transaction.set(
25
25
  "job:#{job_id}",
26
26
  data.to_json
27
27
  )
28
- redis.rpush(queue_key, job_id)
29
- redis.set("submission:#{submission_uuid}:#{type}", job_id)
28
+ transaction.rpush(queue_key, job_id)
29
+ transaction.set("submission:#{submission_uuid}:#{type}", job_id)
30
30
  end
31
31
  new(job_id, data)
32
32
  end
@@ -66,20 +66,20 @@ module Exercism
66
66
 
67
67
  def locked!
68
68
  redis = Exercism.redis_tooling_client
69
- redis.multi do
70
- redis.lrem(key_for_queued, 1, id)
71
- redis.rpush(key_for_locked, id)
69
+ redis.multi do |transaction|
70
+ transaction.lrem(key_for_queued, 1, id)
71
+ transaction.rpush(key_for_locked, id)
72
72
  end
73
73
  end
74
74
 
75
75
  def executed!(status, output)
76
76
  redis = Exercism.redis_tooling_client
77
- redis.multi do
78
- redis.lrem(key_for_queued, 1, id)
79
- redis.lrem(key_for_locked, 1, id)
80
- redis.rpush(key_for_executed, id)
77
+ redis.multi do |transaction|
78
+ transaction.lrem(key_for_queued, 1, id)
79
+ transaction.lrem(key_for_locked, 1, id)
80
+ transaction.rpush(key_for_executed, id)
81
81
 
82
- redis.set(
82
+ transaction.set(
83
83
  "job:#{id}",
84
84
  data.merge(
85
85
  execution_status: status,
@@ -91,18 +91,18 @@ module Exercism
91
91
 
92
92
  def processed!
93
93
  redis = Exercism.redis_tooling_client
94
- redis.multi do
95
- redis.lrem(key_for_executed, 1, id)
96
- redis.del("job:#{id}")
97
- redis.del("submission:#{data[:submission_uuid]}:#{data[:type]}")
94
+ redis.multi do |transaction|
95
+ transaction.lrem(key_for_executed, 1, id)
96
+ transaction.del("job:#{id}")
97
+ transaction.del("submission:#{data[:submission_uuid]}:#{data[:type]}")
98
98
  end
99
99
  end
100
100
 
101
101
  def cancelled!
102
102
  redis = Exercism.redis_tooling_client
103
- redis.multi do
104
- redis.lrem(key_for_queued, 1, id)
105
- redis.rpush(key_for_cancelled, id)
103
+ redis.multi do |transaction|
104
+ transaction.lrem(key_for_queued, 1, id)
105
+ transaction.rpush(key_for_cancelled, id)
106
106
  end
107
107
  end
108
108
 
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = '0.81.0'.freeze
2
+ VERSION = '0.82.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exercism-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.81.0
4
+ version: 0.82.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-07 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb