redis-mutex 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/redis-mutex.rb +4 -1
- data/redis-mutex.gemspec +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
data/lib/redis-mutex.rb
CHANGED
data/redis-mutex.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
13
|
gem.name = "redis-mutex"
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = '1.3.
|
15
|
+
gem.version = '1.3.5' # retrieve this value by: Gem.loaded_specs['redis-mutex'].version.to_s
|
16
16
|
|
17
17
|
gem.add_runtime_dependency "redis-classy", "~> 1.0"
|
18
18
|
gem.add_development_dependency "rspec"
|
data/spec/spec_helper.rb
CHANGED
@@ -6,7 +6,7 @@ require 'redis-mutex'
|
|
6
6
|
|
7
7
|
RSpec.configure do |config|
|
8
8
|
# Use database 15 for testing so we don't accidentally step on you real data.
|
9
|
-
Redis::Classy.db = Redis
|
9
|
+
Redis::Classy.db = Redis.new(:db => 15)
|
10
10
|
unless Redis::Classy.keys.empty?
|
11
11
|
puts '[ERROR]: Redis database 15 not empty! If you are sure, run "rake flushdb" beforehand.'
|
12
12
|
exit!
|