Benign gem 22,953,473 installs Download

hanami-utils 1.2.0

Legitimate Ruby gem

“Ruby core extentions and Hanami utilities”

Ruby subshell command executionCode embeds cleartext HTTP URL literal
SHA-2569e45772369c85cdbe953a0cfdabfbf79b6ff2623f8aa0af97c50b17f5c4c54d0

Evidence

Ruby gemspec assigns package name hanami-utils.gemspec · lines 1–9
1lib = File.expand_path('../lib', __FILE__)
2$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3require 'hanami/utils/version'
4
5Gem::Specification.new do |spec|
6 spec.name = 'hanami-utils'
7 spec.version = Hanami::Utils::VERSION
8 spec.authors = ['Luca Guidi']
9 spec.email = ['me@ …
Code embeds cleartext HTTP URL literal hanami-utils.gemspec · lines 10–17
10:40… s'
11 spec.summary = 'Ruby core extentions and Hanami utilities'
12 spec.homepage = 'http://hanamirb.org'
13 spec.license = 'MIT'
14
15 spec.files = `git ls-files -- lib/* CHANGELOG.md LICENSE.md README.md hanami-utils.gemspec`.split($/)
16 spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17 spec.test_files = spec.files.grep(%r{ …
Ruby class_eval call class_attribute.rb · lines 67–74
67:29… eels # => 8
68 def class_attribute(*attributes)
69 singleton_class.class_eval do
70 attr_accessor(*attributes)
71 end
72
73 class_attributes.merge(attributes)
74 e …
Ruby dynamically invokes a method with send class_attribute.rb · lines 80–85
80:31… )
81 class_attributes.each do |attr|
82 value = send(attr)
83 value = Duplicable.dup(value)
84 subclass.class_attribute attr
85 subclass.send("#{attr}=", …
Ruby dynamically resolves a constant class.rb · lines 39–46
39:62… ameError
40 def self.load!(name, namespace = Object)
41 namespace.const_get(name.to_s, false)
42 end
43
44 # Loads a class for the given name, only if it's defined.
45 #
46 # @param n …

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.