namespaced_redis 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/namespaced_redis.rb +2 -2
  2. metadata +33 -50
@@ -1,6 +1,6 @@
1
1
  class NamespacedRedis
2
2
 
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
 
5
5
  def initialize(redis_options={}, namespace="")
6
6
  @redis = Redis.new(redis_options)
@@ -8,7 +8,7 @@ class NamespacedRedis
8
8
  end
9
9
 
10
10
  def hmset(key, *attrs)
11
- @redis.hmset(key, *attrs)
11
+ @redis.hmset(namespaced(key), *attrs)
12
12
  end
13
13
 
14
14
  def sismember(key, member)
metadata CHANGED
@@ -1,78 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: namespaced_redis
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 1
9
- version: 1.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Stewart McKee
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-05-03 00:00:00 +01:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-05-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: redis
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
16
+ requirement: &70145481498560 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
30
22
  type: :runtime
31
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *70145481498560
32
25
  description: Returns a namespaced version of redis
33
- email:
26
+ email:
34
27
  - stewart@theizone.co.uk
35
28
  executables: []
36
-
37
29
  extensions: []
38
-
39
30
  extra_rdoc_files: []
40
-
41
- files:
31
+ files:
42
32
  - .gitignore
43
33
  - Gemfile
44
34
  - Rakefile
45
35
  - lib/namespaced_redis.rb
46
36
  - namespaced_redis.gemspec
47
- has_rdoc: true
48
- homepage: ""
37
+ homepage: ''
49
38
  licenses: []
50
-
51
39
  post_install_message:
52
40
  rdoc_options: []
53
-
54
- require_paths:
41
+ require_paths:
55
42
  - lib
56
- required_ruby_version: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- segments:
61
- - 0
62
- version: "0"
63
- required_rubygems_version: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
- version: "0"
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
70
55
  requirements: []
71
-
72
56
  rubyforge_project: namespaced_redis
73
- rubygems_version: 1.3.6
57
+ rubygems_version: 1.8.10
74
58
  signing_key:
75
59
  specification_version: 3
76
60
  summary: Adds a namespace to redis
77
61
  test_files: []
78
-