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 CHANGED
@@ -1,2 +1,5 @@
1
1
  require 'redis-classy'
2
- require 'redis/mutex'
2
+
3
+ class Redis
4
+ autoload :Mutex, 'redis/mutex'
5
+ end
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.4' # retrieve this value by: Gem.loaded_specs['redis-mutex'].version.to_s
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::Mutex.db = Redis.new(:db => 15)
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!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-mutex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: