race_block 0.2.1 → 0.2.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: 52edbe756c5a72dc0472f3f33cae2e600dae3479679d2eb8d131e645b528e78b
4
- data.tar.gz: 8f69fa02d2d338ba14766524507948c3aef3cf864ebbd2dbd8b2272a37ef889b
3
+ metadata.gz: fabe01c4bff14ed3b474f4ebdefed580c6e99882ff1109f6039cb3455de624a9
4
+ data.tar.gz: bb1476d977667ab35fba7614b3ba4f5fce3d7d7c3cfd4ceeebf15d4301a09a86
5
5
  SHA512:
6
- metadata.gz: db1919466ba70e396903fe7067c41bccc45b6ede94af7950947106a74e91203ec793c7b73d054b3c8a5c33c3009b09bbc0f142f78c7c3f7c8db1a707378956b7
7
- data.tar.gz: c0e06035cd7fd6745c0e344192a55bbf1c22d6aad6bb3a0ed0d8341b87b82b971060b3a9ae05e706a6af8a37f71c2f4d8c04c4d56dd80ad7177f30058bfca559
6
+ metadata.gz: 6f05edc168a9e77c0200b898592f2bc1d1c44830deb23de29bd0c7d386d95f4426a7851590351c12b0e8b00a449f16bba1bd2313e65f249a72b8ce1e41a9fde8
7
+ data.tar.gz: 62e7a5934630e63e267f01116ef649072450e2d3938e80215b17298b3569c456bd26f2508a5f0e19925b05c28af7d569b96e8ce3541ec580811debaad2d9fb5c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RaceBlock
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
data/lib/race_block.rb CHANGED
@@ -63,8 +63,11 @@ module RaceBlock
63
63
  RaceBlock.client.expire(@key, 10) if RaceBlock.client.ttl(@key) == -1
64
64
 
65
65
  # Token already exists
66
- logger.debug("Token already exists") if RaceBlock.client.get(@key)
67
- return
66
+ # todo: Revoke version 0.2.1 because it always return nil no matter what (never committed but released because I'm not a smart man)
67
+ if RaceBlock.client.get(@key)
68
+ logger.debug("Token already exists")
69
+ return
70
+ end
68
71
 
69
72
  return unless set_token_and_wait(@key, **args)
70
73
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: race_block
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Paris