redisk 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/HISTORY +4 -0
  2. data/lib/redisk.rb +3 -1
  3. data/redisk.gemspec +4 -4
  4. metadata +15 -4
data/HISTORY CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.2 [2009-08-15]
2
+
3
+ * Fixed issue with accepting Redis::Namespaces as redis= [Ivan Samsonov]
4
+
1
5
  === 0.2.1 [2009-06-03]
2
6
 
3
7
  * Fixed compatibility with redis.rb >= 2.0
@@ -6,7 +6,7 @@ require 'redisk/io'
6
6
  require 'redisk/logger'
7
7
 
8
8
  module Redisk
9
- VERSION = '0.2.1'
9
+ VERSION = '0.2.2'
10
10
 
11
11
  extend self
12
12
 
@@ -18,6 +18,8 @@ module Redisk
18
18
  host, port = server.split(':')
19
19
  redis = Redis.new(:host => host, :port => port, :thread_safe => true)
20
20
  @redis = Redis::Namespace.new(:redisk, :redis => redis)
21
+ when Redis::Namespace
22
+ @redis = server
21
23
  when Redis
22
24
  @redis = Redis::Namespace.new(:redisk, :redis => server)
23
25
  else
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{redisk}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aaron Quint"]
12
- s.date = %q{2010-06-06}
12
+ s.date = %q{2010-08-15}
13
13
  s.description = %q{Redisk includes Redisk::IO which is ~ Ruby's stdlib IO. It can be used with stdlib's Logger to log directly to redis}
14
14
  s.email = %q{aaron@quirkey.com}
15
15
  s.extra_rdoc_files = [
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  s.homepage = %q{http://github.com/quirkey/redis_log}
43
43
  s.rdoc_options = ["--charset=UTF-8"]
44
44
  s.require_paths = ["lib"]
45
- s.rubygems_version = %q{1.3.6}
45
+ s.rubygems_version = %q{1.3.7}
46
46
  s.summary = %q{An interface to Redis that mimic's Ruby's IO classes}
47
47
  s.test_files = [
48
48
  "spec/redisk_io_spec.rb",
@@ -57,7 +57,7 @@ Gem::Specification.new do |s|
57
57
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
58
58
  s.specification_version = 3
59
59
 
60
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
60
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
61
61
  s.add_runtime_dependency(%q<redis>, [">= 0.1.1"])
62
62
  s.add_runtime_dependency(%q<redis-namespace>, [">= 0.1.0"])
63
63
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redisk
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 1
9
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Aaron Quint
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-06-06 00:00:00 -07:00
18
+ date: 2010-08-15 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: redis
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 25
27
30
  segments:
28
31
  - 0
29
32
  - 1
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: redis-namespace
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 27
41
46
  segments:
42
47
  - 0
43
48
  - 1
@@ -49,9 +54,11 @@ dependencies:
49
54
  name: rspec
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 13
55
62
  segments:
56
63
  - 1
57
64
  - 2
@@ -100,23 +107,27 @@ rdoc_options:
100
107
  require_paths:
101
108
  - lib
102
109
  required_ruby_version: !ruby/object:Gem::Requirement
110
+ none: false
103
111
  requirements:
104
112
  - - ">="
105
113
  - !ruby/object:Gem::Version
114
+ hash: 3
106
115
  segments:
107
116
  - 0
108
117
  version: "0"
109
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
+ none: false
110
120
  requirements:
111
121
  - - ">="
112
122
  - !ruby/object:Gem::Version
123
+ hash: 3
113
124
  segments:
114
125
  - 0
115
126
  version: "0"
116
127
  requirements: []
117
128
 
118
129
  rubyforge_project:
119
- rubygems_version: 1.3.6
130
+ rubygems_version: 1.3.7
120
131
  signing_key:
121
132
  specification_version: 3
122
133
  summary: An interface to Redis that mimic's Ruby's IO classes