idempotent-request 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -9
- data/lib/idempotent-request/redis_storage.rb +4 -8
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5791ba0801f04874aca3ba71bde40a860d314409f63608f29c11a0e736c887b8
|
4
|
+
data.tar.gz: ccc7d160e6fb70fa22730f13c1fc6f8aa433953dcb4715499387039bf16a7fe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 147935f35c5b61def21a0a25f7e3ba4e5bc7b4f76e5d9034da1b44506ab4b064444405fd28086061ea71d9e2100b107c178d0fa101731cf9d65a9736906f7994
|
7
|
+
data.tar.gz: d11013511ed396e74388644d4f9cdbc80d35780bf305861920524f96a0ec682329fe58f033f96e98c0d16bc64fb9a111bd4c6fde2d060c3f307ec3331a1d3a41
|
data/.travis.yml
CHANGED
@@ -5,12 +5,17 @@ rvm:
|
|
5
5
|
- 2.5.8
|
6
6
|
- 2.6.6
|
7
7
|
- 2.7.1
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
include:
|
11
|
+
- stage: gem release
|
12
|
+
rvm: 2.7.1
|
13
|
+
deploy:
|
14
|
+
skip_cleanup: true
|
15
|
+
provider: rubygems
|
16
|
+
api_key:
|
17
|
+
secure: JOZUQM6qAYJN/N0k4UmV3jBSKMaW3oMYiZ4boPrGm7MsUY8ETHXSYR+dDhrWOvDR4Wdr6DVbTmMtXkWJHaQaM/LkrjN2FM6mTuDfmhkcvi9VBOMstptwXeHMS9fWeogtQwHyd+pKac9vUlaMhRYyoeYyJ1i6/LHua4NftZZ8oPu/9kMuKDD3Rj8zPJNui+fGcZxq90XdxjafCfRJu7EnzSZXzVi5msaEBKcUVxsHxprBjyjmp/yh/Wn0GLyBkYYXkKEUNx9DhxVtWaNG2FfOzznj3HLXQgBdz1or1tDxG8iIegC5jEj4G+gLtldLhMYWfHDaEr4iqKLF1LkjO9TK0RjcVzGNHNxCTQaDDcjgimcVNozWg707IzT5Ap6jG4Y9JWk5KY4ysOaVFqhemafoDwQcXkPb+39N/tpeBPCByCVNrZ+5lgWaHvs+iDv0X9PyAFs5nTz6/u6bz7GDZ91oJOGs9OW6szzHwkQn5TN4omdGiOFca7lviz6OyjXeSn+a6whU2DsRXxp+omrPT/gELLGl21Wd3GGTpiGAdnu/vwvoKOZqGfkr8HS/Bozc0S/vafFJ5KoPAkNQ9iwxPgL1xcEbSF5uK67T2EYVKg7z4psXDeWGBWzk8657SBCB1VCgujkmhg+lWt0TGgrckupKSyUXL4/nnAECgizSLJSbgRE=
|
18
|
+
gem: idempotent-request
|
19
|
+
on:
|
20
|
+
tags: true
|
21
|
+
repo: qonto/idempotent-request
|
@@ -27,14 +27,10 @@ module IdempotentRequest
|
|
27
27
|
private
|
28
28
|
|
29
29
|
def setnx_with_expiration(key, data)
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
options[:nx] = true
|
35
|
-
options[:ex] = expire_time.to_i if expire_time.to_i > 0
|
36
|
-
end
|
37
|
-
)
|
30
|
+
options = {nx: true}
|
31
|
+
options[:ex] = expire_time.to_i if expire_time.to_i > 0
|
32
|
+
|
33
|
+
redis.set(key, data, **options)
|
38
34
|
end
|
39
35
|
|
40
36
|
def lock_key(key)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idempotent-request
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmytro Zakharov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|