mario-redis-lock 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -1
- data/lib/redis_lock.rb +2 -4
- data/lib/redis_lock/version.rb +3 -0
- data/mario-redis-lock.gemspec +4 -4
- metadata +8 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaf6a87bbe077df7388e35676612bddbfb10907e
|
4
|
+
data.tar.gz: 22494745fb5adc1739611c8861ec05d4a2543286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70063470b5db097e7f7cff5ec47a21e1e8235f0a00352617546a9050b8aec6fd2dc16bc9a2d4e471d64e48190a151378f6f16fd3f0cbfe20f076b86a7101be88
|
7
|
+
data.tar.gz: 1eddf3584eb930306242cc1c338dbdd584dda3b1bc3054fbe6bef8c9b71dd6d46a188fd6693fce0ae5095d5d51fdd399d530ff21ec9ce1f0f1e2da9f89f02601
|
data/Rakefile
CHANGED
data/lib/redis_lock.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
require 'redis'
|
1
|
+
require 'redis'
|
2
2
|
require 'securerandom' # SecureRandom (from stdlib)
|
3
|
+
require 'redis_lock/version'
|
3
4
|
|
4
5
|
class RedisLock
|
5
6
|
|
6
|
-
# Gem version
|
7
|
-
VERSION = "1.2.0"
|
8
|
-
|
9
7
|
# Original defaults
|
10
8
|
DEFAULT_ATTRS = {
|
11
9
|
redis: nil, # Redis instance with defaults
|
data/mario-redis-lock.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
|
5
|
-
require 'redis_lock'
|
5
|
+
require 'redis_lock/version'
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = "mario-redis-lock"
|
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_runtime_dependency 'redis', '
|
22
|
+
spec.add_runtime_dependency 'redis', '>= 3.0.5' # Needed support for SET with EX, PX, NX, XX options: https://github.com/redis/redis-rb/pull/343
|
23
23
|
|
24
|
-
spec.add_development_dependency 'bundler', '
|
25
|
-
spec.add_development_dependency 'rake', '
|
24
|
+
spec.add_development_dependency 'bundler', '>= 1'
|
25
|
+
spec.add_development_dependency 'rake', '>= 10'
|
26
26
|
end
|
metadata
CHANGED
@@ -1,22 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mario-redis-lock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Izquierdo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: 3.0.5
|
@@ -24,9 +21,6 @@ dependencies:
|
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '3'
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
26
|
version: 3.0.5
|
@@ -34,28 +28,28 @@ dependencies:
|
|
34
28
|
name: bundler
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - "
|
31
|
+
- - ">="
|
38
32
|
- !ruby/object:Gem::Version
|
39
33
|
version: '1'
|
40
34
|
type: :development
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
|
-
- - "
|
38
|
+
- - ">="
|
45
39
|
- !ruby/object:Gem::Version
|
46
40
|
version: '1'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: rake
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
|
-
- - "
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '10'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
|
-
- - "
|
52
|
+
- - ">="
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: '10'
|
61
55
|
description: Yet another Ruby distributed lock using Redis, with emphasis in transparency.
|
@@ -75,6 +69,7 @@ files:
|
|
75
69
|
- README.md
|
76
70
|
- Rakefile
|
77
71
|
- lib/redis_lock.rb
|
72
|
+
- lib/redis_lock/version.rb
|
78
73
|
- mario-redis-lock.gemspec
|
79
74
|
- spec/redis_lock_spec.rb
|
80
75
|
homepage: https://github.com/marioizquierdo/mario-redis-lock
|
@@ -97,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
92
|
version: '0'
|
98
93
|
requirements: []
|
99
94
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.6.8
|
101
96
|
signing_key:
|
102
97
|
specification_version: 4
|
103
98
|
summary: Yet another Ruby distributed lock using Redis, with emphasis in transparency.
|