Benign gem 1,521,743 installs Download

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

Evidence

Ruby dynamically invokes a method with send file.rb · lines 39–43
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 …
Ruby recursively deletes a directory tree file.rb · lines 84–93
84:8… def delete(key)
85 init
86 Array(key).each { |k| FileUtils.rm_rf(path_for_key(k)) }
87 end
88
⋯5 lines
Ruby creates a directory tree file.rb · lines 103–112
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
Ruby gemspec assigns package name padrino-cache.gemspec · lines 1–9
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", …
Code embeds cleartext HTTP URL literal padrino-cache.gemspec · lines 10–15
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.