redis_support 0.0.13 → 0.0.14

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/redis_support.rb +5 -0
  2. metadata +24 -10
data/lib/redis_support.rb CHANGED
@@ -23,6 +23,11 @@ module RedisSupport
23
23
  def self.keystructs
24
24
  @keystructs ||= []
25
25
  end
26
+
27
+ #returns a string suitable for randomizing a redis key
28
+ def self.random_key_string
29
+ "#{Time.now.to_i}#{rand(10000)}"
30
+ end
26
31
  end
27
32
 
28
33
  def self.included(model)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_support
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
5
- prerelease: false
4
+ hash: 3
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
9
+ - 14
10
+ version: 0.0.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian P O'Rourke
@@ -16,14 +16,27 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-07 00:00:00 -07:00
19
+ date: 2011-01-26 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
+ name: rake
23
24
  prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 3
31
+ segments:
32
+ - 0
33
+ version: "0"
24
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
25
37
  name: redis
26
- version_requirements: &id001 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
27
40
  none: false
28
41
  requirements:
29
42
  - - ">="
@@ -34,7 +47,8 @@ dependencies:
34
47
  - 0
35
48
  - 4
36
49
  version: 1.0.4
37
- requirement: *id001
50
+ type: :runtime
51
+ version_requirements: *id002
38
52
  description: "Module for adding redis functionality to classes: simple key namespacing and locking and connections"
39
53
  email: dolores@doloreslabs.com
40
54
  executables: []
@@ -55,8 +69,8 @@ homepage: http://github.com/dolores/redis_support
55
69
  licenses: []
56
70
 
57
71
  post_install_message:
58
- rdoc_options:
59
- - --charset=UTF-8
72
+ rdoc_options: []
73
+
60
74
  require_paths:
61
75
  - lib
62
76
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -80,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
94
  requirements: []
81
95
 
82
96
  rubyforge_project:
83
- rubygems_version: 1.3.7
97
+ rubygems_version: 1.5.0
84
98
  signing_key:
85
99
  specification_version: 3
86
100
  summary: A Redis Support module