disk_cache 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/disk_cache/version.rb +1 -1
- data/lib/disk_cache.rb +5 -1
- metadata +2 -8
data/lib/disk_cache/version.rb
CHANGED
data/lib/disk_cache.rb
CHANGED
@@ -89,7 +89,11 @@ module DiskCache
|
|
89
89
|
|
90
90
|
# Public: this removes all contents of the cache.
|
91
91
|
def clear!
|
92
|
-
|
92
|
+
if File.exists? cache_dir
|
93
|
+
Dir.glob(cache_dir + '*').each do |f|
|
94
|
+
FileUtils.rm_r f
|
95
|
+
end
|
96
|
+
end
|
93
97
|
end
|
94
98
|
|
95
99
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disk_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -90,18 +90,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
- - ! '>='
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
|
-
segments:
|
94
|
-
- 0
|
95
|
-
hash: -3781426537467041070
|
96
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
94
|
none: false
|
98
95
|
requirements:
|
99
96
|
- - ! '>='
|
100
97
|
- !ruby/object:Gem::Version
|
101
98
|
version: '0'
|
102
|
-
segments:
|
103
|
-
- 0
|
104
|
-
hash: -3781426537467041070
|
105
99
|
requirements: []
|
106
100
|
rubyforge_project:
|
107
101
|
rubygems_version: 1.8.24
|