Benign gem 54,047,120 installs download unavailable

arbre 1.0.3

“Arbre makes it easy to generate HTML directly in Ruby”

Ruby subshell command executionRuby class_eval call
SHA-25664ff1cf12ed0e280d599e9281c5c1295d2ef2436ee8de0e7e57f1ef56f8f8042

Evidence

Ruby gemspec assigns package name arbre.gemspec · lines 1–10
1# -*- encoding: utf-8 -*-
2$:.push File.expand_path("../lib", __FILE__)
3require "arbre/version"
4
5Gem::Specification.new do |s|
6 s.name = "arbre"
7 s.version = Arbre::VERSION
8 s.platform = Gem::Platform::RUBY
9 s.authors = ["Greg Bell"]
10 s.email …
Ruby subshell command execution arbre.gemspec · lines 13–22
13:39… d DOM Tree in Ruby}
14 s.license = "MIT"
15
16 s.files = `git ls-files`.split("\n")
17 s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18 s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19 s.require_paths = ["lib"]
20
21 s.add_dependency("activesupport", ">= 3.0.0")
22end
Ruby rebinds a method with alias_method element.rb · lines 101–108
101:40… nts_by_tag_name(tag_name))
102 end
103 elements
104 end
105 alias_method :find_by_tag, :get_elements_by_tag_name
106
107 def get_elements_by_class_name(class_name)
108 elements = ElementCollection.new
Ruby dynamically invokes a method with send element.rb · lines 174–179
174:38… block)
175 if current_arbre_element.respond_to?(name)
176 current_arbre_element.send name, *args, &block
177 elsif assigns && assigns.has_key?(name)
178 assigns[name]
179 elsif helpe …
Ruby instance_eval call context.rb · lines 42–56
42:8… _current_arbre_element_buffer = [self]
43
44 super(self)
45 instance_eval &block if block_given?
46 end
47
⋯9 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.