redness 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,7 +16,7 @@ to Redis than the client library while remaining more composable and minimal tha
16
16
  ```ruby
17
17
  require 'redness'
18
18
 
19
- $redis = Redis.new
19
+ Red.redis = Redis.new
20
20
 
21
21
  # RedJSON represents a collection of data as JSON
22
22
  RedJSON.set("foo", {:foo => ["bar", "baz", "buzz"]})
@@ -3,8 +3,8 @@ require 'timeout'
3
3
  class Red
4
4
  class RedisUnavailable < StandardError; end
5
5
 
6
- def self.redis
7
- $redis
6
+ class << self
7
+ attr_accessor :redis
8
8
  end
9
9
 
10
10
  def self.client_version
@@ -1,4 +1,4 @@
1
1
  module Redness
2
- VERSION="0.1.6"
2
+ VERSION="0.2.0"
3
3
  MAJOR, MINOR, TINY = VERSION.split(".")
4
4
  end
@@ -28,7 +28,7 @@ RSpec.configure do |config|
28
28
  puts " FAIL"
29
29
  end
30
30
 
31
- $redis = Redis.new(
31
+ Red.redis = Redis.new(
32
32
  host: RedisRunner.host,
33
33
  port: RedisRunner.port,
34
34
  thread_safe: true
@@ -41,6 +41,6 @@ RSpec.configure do |config|
41
41
 
42
42
  config.after(:each) do
43
43
  Timecop.return
44
- $redis.flushall
44
+ Red.redis.flushall
45
45
  end
46
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2013-01-15 00:00:00.000000000 Z
17
+ date: 2013-03-04 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: json