Benign gem 7,210,929 installs Download

gretel 4.0.0

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-2569cf9fb02311b16b37aa01383148666b06401c12cc53d685c3ae3e9ae7470cc17

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", "Kazuki Nishikawa"]
10 gem.email = [ …
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/kzkn/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", ">= 5.1 …
English function-word token "and" gretel.rb · lines 10–15
10:7… s << self
11 include Resettable
12
13 # Returns the path from with breadcrumbs are loaded. Default is +config/breadcrumbs.rb+
14 # in the app and all loaded engines. Breadcrumbs set in the app will override
15 # breadcrumbs set in engines.
Ruby dynamically invokes a method with send gretel.rb · lines 54–61
⋯5 lines
59end
60
61ActionView::Base.send :include, Gretel::ViewHelpers
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

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.