padrino-cache 0.11.4
standard caching library
“Caching support for memcached, page and fragment”
Ruby recursively deletes a directory treeRuby subshell command execution
SHA-256dc693a169a123622a34a033e515993e746cc60e684e2dab65a427d8e9864fbf9
MaleculeH₄(Cm₂DbF₂Po₂)Md(Pa)
Evidence
39:37… pond_to?(:binread) ? :binread : :read
40 contents = ::File.send(read_method, path_for_key(key))
41 expiry, body = contents.split("\n", 2)
42 if now_before? expiry
43 …
84:8… def delete(key)
85 init
86 Array(key).each { |k| FileUtils.rm_rf(path_for_key(k)) }
87 end
88
⋯5 lines
103:36… Utils.escape(key.to_s))
104 end
105
106 def init
107 FileUtils.mkdir_p(@root) unless ::File.exist?(@root)
108 end
109 end
110 end
111 end
112end
1#!/usr/bin/env gem build
2# encoding: utf-8
3
4require File.expand_path("../../padrino-core/lib/padrino-core/version.rb", __FILE__)
5
6Gem::Specification.new do |s|
7 s.name = "padrino-cache"
8 s.rubyforge_project = "padrino-cache"
9 s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", …
10:7… ail = "[email protected]"
11 s.summary = "Page and fragment caching for Padrino"
12 s.homepage = "http://www.padrinorb.com"
13 s.description = "Caching support for memcached, page and fragment"
14 s.required_rubygems_version = ">= 1.3.6"
15 s.version = …
No evidence locations were recorded for this file. Raw result