mlanett-redis-lock 0.2.2 → 0.2.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.
data/Gemfile-redis2.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mlanett-redis-lock (0.1.1)
4
+ mlanett-redis-lock (0.2.3)
5
5
  redis
6
6
 
7
7
  GEM
data/Gemfile-redis3.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mlanett-redis-lock (0.1.1)
4
+ mlanett-redis-lock (0.2.3)
5
5
  redis
6
6
 
7
7
  GEM
data/lib/redis-lock.rb CHANGED
@@ -8,14 +8,14 @@ class Redis
8
8
  class LockNotAcquired < StandardError
9
9
  end
10
10
 
11
- attr :redis
12
- attr :key
13
- attr :okey # key with redis namespace
14
- attr :oval
15
- attr :xkey # expiration key with redis namespace
16
- attr :xval
17
- attr :life, true # how long we expect to keep this lock locked
18
- attr :logger, true
11
+ attr_reader :redis
12
+ attr_reader :key
13
+ attr_reader :okey # key with redis namespace
14
+ attr_reader :oval
15
+ attr_reader :xkey # expiration key with redis namespace
16
+ attr_reader :xval
17
+ attr_accessor :life # how long we expect to keep this lock locked
18
+ attr_accessor :logger
19
19
 
20
20
  # @param redis is a Redis instance
21
21
  # @param key is a unique string identifying the object to lock, e.g. "user-1"
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  class Lock
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mlanett-redis-lock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-15 00:00:00.000000000 Z
12
+ date: 2013-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis