Benign gem 10,071,060 installs Download

mjml-rails 4.3.1

Legitimate MJML Rails gem

“Render MJML + ERb template views in Rails”

Ruby subshell command executionpopen pipes to/from command
SHA-256c3b2c90a2267fb36cdd1cdd6587fdb68529304d4e9febb58b4e7dae44262376e

Evidence

Open3 popen call parser_test.rb · lines 60–71
60:47…
61 let(:error) { 'shell error' }
62 let(:stderr) { mock('stderr', eof?: false, read: error) }
63
64 before { Open3.stubs(popen3: [nil, nil, stderr, nil]) }
65
66 it 'raises exception' do
67 -> { parser.run "/tmp/input_file.mjml" }.must_raise(Mjml::Parser::ParseError, error)
68 end
69 end
70 end
71end
popen pipes to/from command mjml.rb · lines 13–27
⋯4 lines
17
18 def self.check_version(bin)
19 IO.popen([bin, '--version']) { |io| io.read.include?("mjml-core: #{Mjml.mjml_binary_version_supported}") }
20 rescue
21 false
⋯6 lines
Ruby subshell command execution mjml.rb · lines 39–52
39:37… ng
40 nil
41 end
42
43 def self.bin_path_from(package_manager)
44 `#{package_manager} bin`.chomp
45 rescue Errno::ENOENT # package manager is not installed
46 nil
⋯6 lines
References a public code-forge URL mjml.rb · lines 71–75
71:26… hen top-level layout/template is rendered
72 #
73 # [0] - https://github.com/mjmlio/mjml/blob/master/doc/guide.md#mjml
74 if compiled_source =~ /<mjml(.+)?>/i
75 "Mjml::Mjmltemplate.to_html(begin;# …

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.