Benign gem 7,210,929 installs Download

gretel 3.0.8

Legitimate Rails breadcrumb gem

“Gretel is a Ruby on Rails plugin that makes it easy yet flexible to create breadcrumbs.”

Ruby recursively deletes a directory treeRuby subshell command execution
SHA-25610cea496bc2fb9e88f58e58504e16ed88c37bfb307dc0970a4d24e195baf5204

Evidence

Ruby gemspec assigns package name gretel.gemspec · lines 1–10
1# -*- encoding: utf-8 -*-
2lib = File.expand_path('../lib', __FILE__)
3$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4require 'gretel/version'
5
6Gem::Specification.new do |gem|
7 gem.name = "gretel"
8 gem.version = Gretel::VERSION
9 gem.authors = ["Lasse Bunk"]
10 gem.email = ["[email protected] …
References a public code-forge URL gretel.gemspec · lines 11–20
11:11… ription = %q{Gretel is a Ruby on Rails plugin that makes it easy yet flexible to create breadcrumbs.}
12 gem.summary = %q{Flexible Ruby on Rails breadcrumbs plugin.}
13 gem.homepage = "http://github.com/lassebunk/gretel"
14 gem.license = "MIT"
15
16 gem.files = `git ls-files`.split($/)
17 gem.test_files = gem.files.grep(%r{^test/})
18 gem.require_paths = ["lib"]
19
20 gem.add_dependency "rails", ">= 3.2 …
English function-word token "for" crumbs.rb · lines 1–11
1module Gretel
2 module Crumbs
3 class << self
4 include Resettable
5
6 # Stores the supplied block for later use.
7 def crumb(key, &block)
8 crumbs[key] = block
9 end
10
11 # Returns …
Ruby instance_eval call crumbs.rb · lines 25–34
25:20… _mtimes.clear
26 breadcrumb_files.each do |file|
27 instance_eval open(file).read, file
28 loaded_file_mtimes << File.mtime(file)
29 end
⋯5 lines
Ruby dynamically invokes a method with send gretel.rb · lines 75–82
⋯5 lines
80end
81
82ActionView::Base.send :include, Gretel::ViewHelpers

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.