exercism-config 0.125.0 → 0.126.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: cb8d5a2c761b7af3519398e178be8480e60a9a62a2dd2a4960c8b75b30dfc739
4
- data.tar.gz: 47ba6935d2a7bc51bfa794c16ee6a46c8a7ea6afb83e5ef05e52a1559bef0cf4
3
+ metadata.gz: 4063e26b10be6e7ebec2b97b46c6d43444bd95ea84001e5e53eae4cdb0bf5c39
4
+ data.tar.gz: ac63824caf046374e4b629f80c5323c41678abe846413bd8eef318a51e05ff75
5
5
  SHA512:
6
- metadata.gz: 7ac77afbaccabe3835d13e8212f5ee5e8c7b52a83ceeb4fefe4b92d13fd7288e0412acd802a9134d1213e3d9ac07fb111a1a6a478b1b17b54547db83cbb4bcb0
7
- data.tar.gz: b7ef645d0a38c8caee5306d3366fbca533e3cb3ab0921f848d5e93fab225200126f9d18981f41465cb4030e8cdef8103114667a3c4fa373bb816f50e68f2a2b1
6
+ metadata.gz: b5d5ea3afbab8b29c56caeb5f993ce528e648199cd2fde5d5d9ca4c52c38cc1a47500e82573aaa70ead5b395de408b4269f87b83d3dc0a08d06c32a882c1d724
7
+ data.tar.gz: 7c241df5deb95f2abdc3e2fc3cdfbf9a6fab2b05ac6134b98e200bd724751c4b26454ac70fc1d5555ed210902aa5ac898b824f813f67426a4f2a9fa26415969c
@@ -63,19 +63,15 @@ module Exercism
63
63
 
64
64
  def locked!
65
65
  redis = Exercism.redis_tooling_client
66
- redis.multi do |transaction|
67
- transaction.lrem(key_for_queued, 1, id)
68
- transaction.rpush(key_for_locked, id)
69
- end
66
+ redis.lrem(key_for_queued, 1, id)
67
+ redis.rpush(key_for_locked, id)
70
68
  end
71
69
 
72
70
  def executed!(status, output)
73
71
  redis = Exercism.redis_tooling_client
74
- redis.multi do |transaction|
75
- transaction.lrem(key_for_queued, 1, id)
76
- transaction.lrem(key_for_locked, 1, id)
77
- transaction.rpush(key_for_executed, id)
78
- end
72
+ redis.lrem(key_for_queued, 1, id)
73
+ redis.lrem(key_for_locked, 1, id)
74
+ redis.rpush(key_for_executed, id)
79
75
 
80
76
  redis.set(
81
77
  "job:#{id}",
@@ -95,10 +91,8 @@ module Exercism
95
91
 
96
92
  def cancelled!
97
93
  redis = Exercism.redis_tooling_client
98
- redis.multi do |transaction|
99
- transaction.lrem(key_for_queued, 1, id)
100
- transaction.rpush(key_for_cancelled, id)
101
- end
94
+ redis.lrem(key_for_queued, 1, id)
95
+ redis.rpush(key_for_cancelled, id)
102
96
  end
103
97
 
104
98
  def ==(other)
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = '0.125.0'.freeze
2
+ VERSION = '0.126.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exercism-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.125.0
4
+ version: 0.126.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker