redis-semaphore 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +9 -0
  2. data/lib/redis/semaphore.rb +2 -2
  3. metadata +2 -2
data/README.md CHANGED
@@ -98,3 +98,12 @@ Author
98
98
  ------
99
99
 
100
100
  [David Verhasselt](http://davidverhasselt.com) - david@crowdway.com
101
+
102
+ Contributors
103
+ ------------
104
+
105
+ Thanks to these awesome fellas for their contributions:
106
+
107
+ - (Rimas Silkaitis)[https://github.com/neovintage]
108
+ - (Tim Galeckas)[https://github.com/timgaleckas]
109
+ - (Ruurd Pels)[https://github.com/ruurd]
@@ -68,11 +68,11 @@ class Redis
68
68
 
69
69
  private
70
70
  def list_name
71
- "SEMAPHORE::#{@name}::LIST"
71
+ @redis.is_a?(Redis::Namespace) ? "#{@name}:LIST" : "SEMAPHORE:#{@name}:LIST"
72
72
  end
73
73
 
74
74
  def exists_name
75
- "SEMAPHORE::#{@name}::EXISTS"
75
+ @redis.is_a?(Redis::Namespace) ? "#{@name}:EXISTS" : "SEMAPHORE:#{@name}:EXISTS"
76
76
  end
77
77
 
78
78
  def exists_or_create!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-semaphore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
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: 2012-07-09 00:00:00.000000000 Z
12
+ date: 2012-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis