revo-cache_fu 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cache_fu.gemspec +2 -3
- data/{init.rb → lib/init.rb} +0 -0
- metadata +2 -3
- data/install.rb +0 -58
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/cache_fu.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cache_fu}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Chris Wanstrath"]
|
@@ -26,8 +26,6 @@ Gem::Specification.new do |s|
|
|
26
26
|
"defaults/extensions.rb.default",
|
27
27
|
"defaults/memcached.yml.default",
|
28
28
|
"defaults/memcached_ctl.default",
|
29
|
-
"init.rb",
|
30
|
-
"install.rb",
|
31
29
|
"lib/acts_as_cached.rb",
|
32
30
|
"lib/acts_as_cached/benchmarking.rb",
|
33
31
|
"lib/acts_as_cached/cache_methods.rb",
|
@@ -37,6 +35,7 @@ Gem::Specification.new do |s|
|
|
37
35
|
"lib/acts_as_cached/local_cache.rb",
|
38
36
|
"lib/acts_as_cached/memcached_rails.rb",
|
39
37
|
"lib/acts_as_cached/recipes.rb",
|
38
|
+
"lib/init.rb",
|
40
39
|
"tasks/memcached.rake",
|
41
40
|
"test/benchmarking_test.rb",
|
42
41
|
"test/cache_test.rb",
|
data/{init.rb → lib/init.rb}
RENAMED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: revo-cache_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
@@ -32,8 +32,6 @@ files:
|
|
32
32
|
- defaults/extensions.rb.default
|
33
33
|
- defaults/memcached.yml.default
|
34
34
|
- defaults/memcached_ctl.default
|
35
|
-
- init.rb
|
36
|
-
- install.rb
|
37
35
|
- lib/acts_as_cached.rb
|
38
36
|
- lib/acts_as_cached/benchmarking.rb
|
39
37
|
- lib/acts_as_cached/cache_methods.rb
|
@@ -43,6 +41,7 @@ files:
|
|
43
41
|
- lib/acts_as_cached/local_cache.rb
|
44
42
|
- lib/acts_as_cached/memcached_rails.rb
|
45
43
|
- lib/acts_as_cached/recipes.rb
|
44
|
+
- lib/init.rb
|
46
45
|
- tasks/memcached.rake
|
47
46
|
- test/benchmarking_test.rb
|
48
47
|
- test/cache_test.rb
|
data/install.rb
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# Do some checks.
|
3
|
-
puts
|
4
|
-
|
5
|
-
$errors = 0
|
6
|
-
|
7
|
-
puts "** Checking for memcached in path..."
|
8
|
-
if `which memcached`.strip.empty?
|
9
|
-
$errors += 1
|
10
|
-
puts "!! Couldn't find memcached in your path. Are you sure you installed it? !!"
|
11
|
-
puts "!! Check the README for help. You can't use acts_as_cached without it. !!"
|
12
|
-
end
|
13
|
-
|
14
|
-
puts "** Checking for memcache-client gem..."
|
15
|
-
begin
|
16
|
-
require 'rubygems'
|
17
|
-
require 'memcache'
|
18
|
-
rescue LoadError
|
19
|
-
$errors += 1
|
20
|
-
puts "!! Couldn't find memcache-client gem. You can't use acts_as_cached without it. !!"
|
21
|
-
puts "!! $ sudo gem install memcache-client !!"
|
22
|
-
end
|
23
|
-
|
24
|
-
require 'fileutils'
|
25
|
-
def copy_file(in_file, out_file)
|
26
|
-
puts "** Trying to copy #{File.basename(in_file)} to #{out_file}..."
|
27
|
-
begin
|
28
|
-
if File.exists? out_file
|
29
|
-
puts "!! You already have a #{out_file}. " +
|
30
|
-
"Please check the default for new settings or format changes. !!"
|
31
|
-
puts "!! You can find the default at #{in_file}. !!"
|
32
|
-
$errors += 1
|
33
|
-
else
|
34
|
-
FileUtils.cp(in_file, out_file)
|
35
|
-
end
|
36
|
-
rescue
|
37
|
-
$errors += 1
|
38
|
-
puts "!! Error copying #{File.basename(in_file)} to #{out_file}. Please try by hand. !!"
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
defaults_dir = File.join(File.dirname(__FILE__), 'defaults')
|
43
|
-
|
44
|
-
config_yaml = File.join('.', 'config', 'memcached.yml')
|
45
|
-
default_yaml = File.join(defaults_dir, 'memcached.yml.default')
|
46
|
-
copy_file(default_yaml, config_yaml)
|
47
|
-
|
48
|
-
memcached_ctl = File.join('.', 'script', 'memcached_ctl')
|
49
|
-
default_ctl = File.join(defaults_dir, 'memcached_ctl.default')
|
50
|
-
copy_file(default_ctl, memcached_ctl)
|
51
|
-
|
52
|
-
puts
|
53
|
-
print $errors.zero? ? "**" : "!!"
|
54
|
-
print " acts_as_cached installed with #{$errors.zero? ? 'no' : $errors} errors."
|
55
|
-
print " Please edit the memcached.yml file to your liking."
|
56
|
-
puts $errors.zero? ? "" : " !!"
|
57
|
-
puts "** Now would be a good time to check out the README. Enjoy your day."
|
58
|
-
puts
|