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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1f96fb381f15d6699a71780455f6328569d67f3
4
- data.tar.gz: 059591adc0ec6438f6d8c9990f16b8bf027aee7b
3
+ metadata.gz: aaf6a87bbe077df7388e35676612bddbfb10907e
4
+ data.tar.gz: 22494745fb5adc1739611c8861ec05d4a2543286
5
5
  SHA512:
6
- metadata.gz: 6c907b7305b4c0470d50559cae339764b9d5d825ea115c251971604b734b27d11e30bdae9b0a79aabc5629bff40d4dadfbcd7f203bf1c4c14aa903515b722031
7
- data.tar.gz: 4b9290554e5061faeb847a6137f891396f1e6e99964e2bffd6376fe61369626f02ca6b722d53eee1090c365f3bdd6b4fc848fee73028ec50c9d0247f30e7a95d
6
+ metadata.gz: 70063470b5db097e7f7cff5ec47a21e1e8235f0a00352617546a9050b8aec6fd2dc16bc9a2d4e471d64e48190a151378f6f16fd3f0cbfe20f076b86a7101be88
7
+ data.tar.gz: 1eddf3584eb930306242cc1c338dbdd584dda3b1bc3054fbe6bef8c9b71dd6d46a188fd6693fce0ae5095d5d51fdd399d530ff21ec9ce1f0f1e2da9f89f02601
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
+ require "redis_lock"
3
4
 
4
5
  Rake::TestTask.new do |t|
5
6
  t.pattern = "spec/**/*_spec.rb"
@@ -71,4 +72,4 @@ end
71
72
  def redis_test_db
72
73
  require 'redis'
73
74
  @redis_test_db ||= Redis.new(db: 15)
74
- end
75
+ end
@@ -1,11 +1,9 @@
1
- require 'redis' # redis gem required
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
@@ -0,0 +1,3 @@
1
+ class RedisLock
2
+ VERSION = "1.2.1"
3
+ end
@@ -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', '~> 3', '>= 3.0.5' # Needed support for SET with EX, PX, NX, XX options: https://github.com/redis/redis-rb/pull/343
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', '~> 1'
25
- spec.add_development_dependency 'rake', '~> 10'
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.0
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: 2016-02-01 00:00:00.000000000 Z
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.4.5
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.