redisk 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/HISTORY +4 -0
  2. data/lib/redisk.rb +1 -1
  3. data/lib/redisk/io.rb +1 -1
  4. data/redisk.gemspec +3 -3
  5. metadata +36 -17
data/HISTORY CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.1 [2009-06-03]
2
+
3
+ * Fixed compatibility with redis.rb >= 2.0
4
+
1
5
  === 0.2.0 [2009-12-22]
2
6
 
3
7
  * Almost complete support for both line and byte operations on Redisk::IO
data/lib/redisk.rb CHANGED
@@ -6,7 +6,7 @@ require 'redisk/io'
6
6
  require 'redisk/logger'
7
7
 
8
8
  module Redisk
9
- VERSION = '0.2.0'
9
+ VERSION = '0.2.1'
10
10
 
11
11
  extend self
12
12
 
data/lib/redisk/io.rb CHANGED
@@ -136,7 +136,7 @@ module Redisk
136
136
  # a = IO.readlines("testfile")
137
137
  # a[0] #=> "This is line one\n"
138
138
  def self.readlines(name)
139
- redis.lrange list_key(name), 0, -1
139
+ redis.lrange(list_key(name), 0, -1) || []
140
140
  end
141
141
 
142
142
  # IO.select(read_array
data/redisk.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{redisk}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
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{2009-12-22}
12
+ s.date = %q{2010-06-06}
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.5}
45
+ s.rubygems_version = %q{1.3.6}
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",
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 1
9
+ version: 0.2.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Aaron Quint
@@ -9,39 +14,51 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-12-22 00:00:00 -05:00
17
+ date: 2010-06-06 00:00:00 -07:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: redis
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 1
30
+ - 1
23
31
  version: 0.1.1
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: redis-namespace
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 1
44
+ - 0
33
45
  version: 0.1.0
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: rspec
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - ">="
42
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 1
57
+ - 2
58
+ - 9
43
59
  version: 1.2.9
44
- version:
60
+ type: :development
61
+ version_requirements: *id003
45
62
  description: Redisk includes Redisk::IO which is ~ Ruby's stdlib IO. It can be used with stdlib's Logger to log directly to redis
46
63
  email: aaron@quirkey.com
47
64
  executables: []
@@ -86,18 +103,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
103
  requirements:
87
104
  - - ">="
88
105
  - !ruby/object:Gem::Version
106
+ segments:
107
+ - 0
89
108
  version: "0"
90
- version:
91
109
  required_rubygems_version: !ruby/object:Gem::Requirement
92
110
  requirements:
93
111
  - - ">="
94
112
  - !ruby/object:Gem::Version
113
+ segments:
114
+ - 0
95
115
  version: "0"
96
- version:
97
116
  requirements: []
98
117
 
99
118
  rubyforge_project:
100
- rubygems_version: 1.3.5
119
+ rubygems_version: 1.3.6
101
120
  signing_key:
102
121
  specification_version: 3
103
122
  summary: An interface to Redis that mimic's Ruby's IO classes