cachecataz 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/cachecataz.rb +2 -2
- metadata +26 -27
- data/Gemfile.lock +0 -30
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/cachecataz.rb
CHANGED
@@ -6,7 +6,7 @@ module Cachecataz
|
|
6
6
|
# config.after_initialize do
|
7
7
|
# Cachecataz.enable = true
|
8
8
|
# Cachecataz.provider = Rails.cache
|
9
|
-
# Cachecataz.random = false
|
9
|
+
# Cachecataz.random = false # default "random" is true, and true is recommended
|
10
10
|
# end
|
11
11
|
Config = {:api => {:get => :read, :set => :write, :exist? => :exist?},
|
12
12
|
:enabled => false,
|
@@ -64,7 +64,7 @@ module Cachecataz
|
|
64
64
|
when Config[:provider].respond_to?(Config[:api][api_method])
|
65
65
|
Config[:provider].send(Config[:api][api_method], *api_args)
|
66
66
|
else
|
67
|
-
raise "Unknown method for provider: #{Config[:provider]}"
|
67
|
+
raise "Unknown method: #{api_method} for provider: #{Config[:provider]}"
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cachecataz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brandon Dewitt
|
@@ -15,11 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-07 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
type: :development
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
24
|
none: false
|
24
25
|
requirements:
|
25
26
|
- - ~>
|
@@ -30,12 +31,12 @@ dependencies:
|
|
30
31
|
- 3
|
31
32
|
- 0
|
32
33
|
version: 2.3.0
|
33
|
-
requirement: *id001
|
34
|
-
prerelease: false
|
35
|
-
type: :development
|
36
34
|
name: rspec
|
35
|
+
version_requirements: *id001
|
36
|
+
prerelease: false
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
38
|
+
type: :development
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
40
|
none: false
|
40
41
|
requirements:
|
41
42
|
- - ~>
|
@@ -46,12 +47,12 @@ dependencies:
|
|
46
47
|
- 0
|
47
48
|
- 0
|
48
49
|
version: 1.0.0
|
49
|
-
requirement: *id002
|
50
|
-
prerelease: false
|
51
|
-
type: :development
|
52
50
|
name: bundler
|
51
|
+
version_requirements: *id002
|
52
|
+
prerelease: false
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
-
|
54
|
+
type: :development
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
56
|
none: false
|
56
57
|
requirements:
|
57
58
|
- - ~>
|
@@ -62,12 +63,12 @@ dependencies:
|
|
62
63
|
- 5
|
63
64
|
- 2
|
64
65
|
version: 1.5.2
|
65
|
-
requirement: *id003
|
66
|
-
prerelease: false
|
67
|
-
type: :development
|
68
66
|
name: jeweler
|
67
|
+
version_requirements: *id003
|
68
|
+
prerelease: false
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
|
70
|
+
type: :development
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
71
72
|
none: false
|
72
73
|
requirements:
|
73
74
|
- - ">="
|
@@ -76,12 +77,12 @@ dependencies:
|
|
76
77
|
segments:
|
77
78
|
- 0
|
78
79
|
version: "0"
|
79
|
-
requirement: *id004
|
80
|
-
prerelease: false
|
81
|
-
type: :development
|
82
80
|
name: rcov
|
81
|
+
version_requirements: *id004
|
82
|
+
prerelease: false
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
|
84
|
+
type: :development
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
85
86
|
none: false
|
86
87
|
requirements:
|
87
88
|
- - ">"
|
@@ -90,10 +91,9 @@ dependencies:
|
|
90
91
|
segments:
|
91
92
|
- 2
|
92
93
|
version: "2"
|
93
|
-
requirement: *id005
|
94
|
-
prerelease: false
|
95
|
-
type: :development
|
96
94
|
name: rspec
|
95
|
+
version_requirements: *id005
|
96
|
+
prerelease: false
|
97
97
|
description: Cachecataz is for namespace expiry in a cache where the cache provider does not enable namespace based expiry (like memcached!)
|
98
98
|
email: brandon+cachecataz@myjibe.com
|
99
99
|
executables: []
|
@@ -107,7 +107,6 @@ files:
|
|
107
107
|
- .document
|
108
108
|
- .rspec
|
109
109
|
- Gemfile
|
110
|
-
- Gemfile.lock
|
111
110
|
- LICENSE.txt
|
112
111
|
- README.rdoc
|
113
112
|
- Rakefile
|
@@ -147,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
146
|
requirements: []
|
148
147
|
|
149
148
|
rubyforge_project:
|
150
|
-
rubygems_version: 1.
|
149
|
+
rubygems_version: 1.6.2
|
151
150
|
signing_key:
|
152
151
|
specification_version: 3
|
153
152
|
summary: cache namespace expiry gem for cache servers that do not have namespace expiry
|
data/Gemfile.lock
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
diff-lcs (1.1.2)
|
5
|
-
git (1.2.5)
|
6
|
-
jeweler (1.5.2)
|
7
|
-
bundler (~> 1.0.0)
|
8
|
-
git (>= 1.2.5)
|
9
|
-
rake
|
10
|
-
rake (0.8.7)
|
11
|
-
rcov (0.9.9)
|
12
|
-
rcov (0.9.9-java)
|
13
|
-
rspec (2.3.0)
|
14
|
-
rspec-core (~> 2.3.0)
|
15
|
-
rspec-expectations (~> 2.3.0)
|
16
|
-
rspec-mocks (~> 2.3.0)
|
17
|
-
rspec-core (2.3.1)
|
18
|
-
rspec-expectations (2.3.0)
|
19
|
-
diff-lcs (~> 1.1.2)
|
20
|
-
rspec-mocks (2.3.0)
|
21
|
-
|
22
|
-
PLATFORMS
|
23
|
-
java
|
24
|
-
ruby
|
25
|
-
|
26
|
-
DEPENDENCIES
|
27
|
-
bundler (~> 1.0.0)
|
28
|
-
jeweler (~> 1.5.2)
|
29
|
-
rcov
|
30
|
-
rspec (~> 2.3.0)
|