namespaced_redis 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in namespaced_redis.gemspec
4
4
  gemspec
5
+ gem 'redis'
@@ -1,12 +1,12 @@
1
- require "namespaced_redis/version"
2
- require 'redis'
3
-
4
1
  class NamespacedRedis
2
+
3
+ VERSION = "0.0.2"
4
+
5
5
  def initialize(redis_options={}, namespace="")
6
6
  @redis = Redis.new(redis_options)
7
7
  @namespace = namespace
8
8
  end
9
-
9
+
10
10
  def sismember(key, member)
11
11
  @redis.sismember namespaced(key), member
12
12
  end
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "namespaced_redis/version"
3
+ require "namespaced_redis"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "namespaced_redis"
@@ -20,5 +20,5 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # specify any dependencies here; for example:
22
22
  # s.add_development_dependency "rspec"
23
- # s.add_runtime_dependency "rest-client"
23
+ s.add_runtime_dependency "redis"
24
24
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stewart McKee
@@ -14,10 +14,21 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-04-18 00:00:00 +01:00
17
+ date: 2012-04-19 00:00:00 +01:00
18
18
  default_executable:
19
- dependencies: []
20
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ 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"
30
+ type: :runtime
31
+ version_requirements: *id001
21
32
  description: Returns a namespaced version of redis
22
33
  email:
23
34
  - stewart@theizone.co.uk
@@ -32,7 +43,6 @@ files:
32
43
  - Gemfile
33
44
  - Rakefile
34
45
  - lib/namespaced_redis.rb
35
- - lib/namespaced_redis/version.rb
36
46
  - namespaced_redis.gemspec
37
47
  has_rdoc: true
38
48
  homepage: ""
@@ -1,3 +0,0 @@
1
- module NamespacedRedis
2
- VERSION = "0.0.1"
3
- end