cache_fu 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cache_fu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
hash: 29
|
|
5
|
+
prerelease: false
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 1
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.1.3
|
|
6
11
|
platform: ruby
|
|
7
12
|
authors:
|
|
8
|
-
-
|
|
13
|
+
- Surendra Singhi
|
|
9
14
|
autorequire:
|
|
10
15
|
bindir: bin
|
|
11
16
|
cert_chain: []
|
|
12
17
|
|
|
13
|
-
date: 2011-05-
|
|
18
|
+
date: 2011-05-24 00:00:00 +05:30
|
|
19
|
+
default_executable:
|
|
14
20
|
dependencies:
|
|
15
21
|
- !ruby/object:Gem::Dependency
|
|
16
22
|
name: rails
|
|
@@ -20,6 +26,10 @@ dependencies:
|
|
|
20
26
|
requirements:
|
|
21
27
|
- - ~>
|
|
22
28
|
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 7
|
|
30
|
+
segments:
|
|
31
|
+
- 3
|
|
32
|
+
- 0
|
|
23
33
|
version: "3.0"
|
|
24
34
|
type: :runtime
|
|
25
35
|
version_requirements: *id001
|
|
@@ -31,12 +41,16 @@ dependencies:
|
|
|
31
41
|
requirements:
|
|
32
42
|
- - ~>
|
|
33
43
|
- !ruby/object:Gem::Version
|
|
44
|
+
hash: 7
|
|
45
|
+
segments:
|
|
46
|
+
- 3
|
|
47
|
+
- 0
|
|
34
48
|
version: "3.0"
|
|
35
49
|
type: :development
|
|
36
50
|
version_requirements: *id002
|
|
37
51
|
description: This gem is kreetitech's fork (http://github.com/kreetitech/cache_fu).
|
|
38
52
|
email:
|
|
39
|
-
-
|
|
53
|
+
- ssinghi@kreeti.com
|
|
40
54
|
executables: []
|
|
41
55
|
|
|
42
56
|
extensions: []
|
|
@@ -44,7 +58,6 @@ extensions: []
|
|
|
44
58
|
extra_rdoc_files: []
|
|
45
59
|
|
|
46
60
|
files:
|
|
47
|
-
- rails/init.rb
|
|
48
61
|
- lib/acts_as_cached/benchmarking.rb
|
|
49
62
|
- lib/acts_as_cached/cache_methods.rb
|
|
50
63
|
- lib/acts_as_cached/config.rb
|
|
@@ -55,8 +68,6 @@ files:
|
|
|
55
68
|
- lib/acts_as_cached/recipes.rb
|
|
56
69
|
- lib/cache_fu.rb
|
|
57
70
|
- lib/cache_fu.rb~
|
|
58
|
-
- lib/cache_fu.rb~5453d1247ce57bb1ea5ad70936b97707d5dbdab0
|
|
59
|
-
- lib/cache_fu.rb~5453d1247ce57bb1ea5ad70936b97707d5dbdab0_0
|
|
60
71
|
- lib/tasks/memcached.rake
|
|
61
72
|
- test/benchmarking_test.rb
|
|
62
73
|
- test/cache_test.rb
|
|
@@ -72,6 +83,7 @@ files:
|
|
|
72
83
|
- defaults/memcached_ctl.default
|
|
73
84
|
- LICENSE
|
|
74
85
|
- README
|
|
86
|
+
has_rdoc: true
|
|
75
87
|
homepage: http://github.com/kreetitech/cache_fu
|
|
76
88
|
licenses: []
|
|
77
89
|
|
|
@@ -85,17 +97,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
85
97
|
requirements:
|
|
86
98
|
- - ">="
|
|
87
99
|
- !ruby/object:Gem::Version
|
|
100
|
+
hash: 3
|
|
101
|
+
segments:
|
|
102
|
+
- 0
|
|
88
103
|
version: "0"
|
|
89
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
105
|
none: false
|
|
91
106
|
requirements:
|
|
92
107
|
- - ">="
|
|
93
108
|
- !ruby/object:Gem::Version
|
|
109
|
+
hash: 3
|
|
110
|
+
segments:
|
|
111
|
+
- 0
|
|
94
112
|
version: "0"
|
|
95
113
|
requirements: []
|
|
96
114
|
|
|
97
115
|
rubyforge_project:
|
|
98
|
-
rubygems_version: 1.
|
|
116
|
+
rubygems_version: 1.3.7
|
|
99
117
|
signing_key:
|
|
100
118
|
specification_version: 3
|
|
101
119
|
summary: Makes caching easy for ActiveRecord models
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require File.dirname(__FILE__) + '/acts_as_cached'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require File.dirname(__FILE__) + '/acts_as_cached'
|
data/rails/init.rb
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
begin
|
|
2
|
-
require 'memcache'
|
|
3
|
-
rescue LoadError
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
begin
|
|
7
|
-
require 'memcached'
|
|
8
|
-
rescue LoadError
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
begin
|
|
12
|
-
require 'mem_cache_with_consistent_hashing'
|
|
13
|
-
rescue LoadError
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
puts "=> You should be using the `dalli' or `memcache-client' gem. You're using RubyMemcache!" if Object.const_defined?(:RubyMemcache)
|
|
17
|
-
|
|
18
|
-
require 'cache_fu'
|
|
19
|
-
|
|
20
|
-
Object.send :include, ActsAsCached::Mixin
|
|
21
|
-
|
|
22
|
-
unless File.exists?(config_file = Rails.root.join('config', 'memcached.yml'))
|
|
23
|
-
error = "No config file found. Make sure you used `script/plugin install' and have memcached.yml in your config directory."
|
|
24
|
-
puts error
|
|
25
|
-
logger.error error
|
|
26
|
-
exit!
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
ActsAsCached.config = YAML.load(ERB.new(IO.read(config_file)).result)
|
|
30
|
-
|
|
31
|
-
begin
|
|
32
|
-
require 'extensions'
|
|
33
|
-
rescue LoadError
|
|
34
|
-
end
|