redis_getlock 0.3.2 → 0.3.3
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 +5 -5
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/{bin → examples}/try_lock +0 -0
- data/lib/redis_getlock.rb +1 -1
- data/lib/redis_getlock/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5aefd0da1e0af27c93bec620ab11f822e66f4dda6bca14aea217a8c2a5e173f7
|
4
|
+
data.tar.gz: cf2319a707a0073920c955b7b317a91ce7d88020569e4ffb5b4c49480f7900a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40670d09443cfb8a830c5578084c1cc66a2905d7924a5480bd5f931124969406e9ccaae7ccafa508eb7a66161c1f7bdb3fce8c0c1051b566895518567ede2d0d
|
7
|
+
data.tar.gz: 9c7f235d14d1ca617a5fe3ec73d9bdbabdf0edecd6916c6ec1e683f27b0df6d5639af38882c905986ae1dc6325011c0d03396a7fff784cc40a7b4e848ff39d66
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# RedisGetlock
|
2
2
|
|
3
|
-
Distributed locking using redis. Unlike other implementations
|
3
|
+
Distributed locking using redis. Unlike other implementations available, this gem ensures releasing orphaned lock shortly.
|
4
4
|
|
5
5
|
# How It Works
|
6
6
|
|
data/{bin → examples}/try_lock
RENAMED
File without changes
|
data/lib/redis_getlock.rb
CHANGED
@@ -23,7 +23,7 @@ class RedisGetlock
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def lock
|
26
|
-
logger.info { "#{log_head}Wait #{timeout < 0 ? '' : "#{timeout} sec "}to acquire a
|
26
|
+
logger.info { "#{log_head}Wait #{timeout < 0 ? '' : "#{timeout} sec "}to acquire a redis lock '#{key}'" } if logger
|
27
27
|
if set_options_available?
|
28
28
|
locked = lock_with_set_options
|
29
29
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis_getlock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -86,7 +86,7 @@ files:
|
|
86
86
|
- bin/console
|
87
87
|
- bin/lock
|
88
88
|
- bin/setup
|
89
|
-
-
|
89
|
+
- examples/try_lock
|
90
90
|
- lib/redis_getlock.rb
|
91
91
|
- lib/redis_getlock/version.rb
|
92
92
|
- redis_getlock.gemspec
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.7.4
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Distributed locking using redis, which ensures releasing orphaned lock shortly.
|