Benign ruby 10,989 installs Download

barefoot_js 0.31.2

“Engine-agnostic BarefootJS server runtime targeting ERB, ported from packages/adapter-perl/lib/BarefootJS.pm.”

Contains an unbounded block loopimports fileutils
SHA-256d00159557c17060a0d1733725256d208a71b2d9a1630da8cc93e146a1fc971d5
MaleculeH₂(Db₂F)

Evidence

Ruby parses JSON data evaluator.rb · lines 139–145
139:42… value convention).
140 def eval_json(json, env)
141 evaluate(JSON.parse(json, symbolize_names: true), env)
142 end
143
144 # ---------------------------------------------------------------------
145 # JS …
imports fileutils dev_reload.rb · lines 1–11
1# frozen_string_literal: true
2
3require 'fileutils'
4
5module BarefootJS
6 # Framework-agnostic dev-only browser auto-reload for BarefootJS apps.
7 #
8 # Ruby port of BarefootJS::DevReload (@barefootjs/perl), companion to
9 # `barefoot build --watch` in @barefootjs/cli. The CLI drops
10 # `<dist>/.dev/build-id` after every successful rebuild that changed output;
11 # a browser snippet subscribes to an SSE endpoint that emits `event: reload`
Ruby creates a directory tree dev_reload.rb · lines 51–65
51:25… dir(dist_dir)
52 dev = File.join(dist_dir, DEV_SUBDIR)
53 FileUtils.mkdir_p(dev)
54 dev
55 end
56
57 def self.read_build_id(path)
58 return '' unless File.file?(path)
59
60 File.read(path, encoding: 'UTF-8').strip
61 rescue Errno::ENOENT
62 ''
63 end
64
65 # The browser sni …
Contains an unbounded block loop dev_reload.rb · lines 116–124
116:54… data: #{initial}\n\n"
117 end
118
119 since_hb = 0
120 loop do
121 sleep(POLL_S)
122 id = read_build_id(path)
123 if !id.empty? && id != last_sent
124 …
Ruby defines methods dynamically barefoot_js.rb · lines 52–57
52:33… efault: nil)
53 ivar = :"@#{name.to_s.sub(/\A_/, '')}"
54 define_method(name) do |*args|
55 if args.empty?
56 unless instance_variable_defined?(ivar)
57 instance_variable_set(iva …

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.