Benign ruby 5,240 installs Download

hx_ruby 0.4.2

“A preset on a Line 6 Helix or HX Stomp is a saved guitar rig: an amp, a speaker cabinet, the pedals in front of them, the order it all runs…”

File is named extconf.rb
SHA-256e130de357193b417daf2ba9ba5849e7f1b5ff545bd227def494f3f323cb7d957

Evidence

Ruby loads a relative source module hx_ruby.rb · lines 1–30
1# frozen_string_literal: true
2
3require_relative "hx_ruby/version"
4
5# Load the compiled Rust extension. rake-compiler installs it under a Ruby
6# version directory for gems that ship several; a plain extconf build (what
7# Bundler runs for a path gem) drops it straight in lib/hx_ruby. Try the
8# versioned path first, then fall back.
9begin
10 ruby_version = RUBY_VERSION[/\d+\.\d+/]
11 require_relative "hx_ruby/#{ruby_version}/hx_ruby"
12rescue LoadError
13 begin
14 require_relative "hx_ruby/hx_ruby"
15 rescue LoadError => e
16 # Bundler does not compile a path gem's extension on install, so a fresh
17 # checkout has to build it once.
18 raise LoadError, "#{e.message}\n\nThe hx_ruby native extension is not " \
19 "built yet. From the gem directory run: bundle exec rake compile"
20 end
21end
22
23# Ruby bindings over hx-catalog's `.hlx` inspector.
24#
25# The native `HxRuby.inspect_hlx(json)` is defined in Rust (see ext/hx_ruby).
26# It takes a preset's JSON string and returns a Hash of tone facts, raising
27# {HxRuby::CatalogNotInstalled} when the HX Edit resources are missing and
28# {HxRuby::Error} for any other catalog read failure.
29module HxRuby
30end
Ruby mkmf native extension helper extconf.rb · lines 1–8
1# frozen_string_literal: true
2
3require "mkmf"
4require "rb_sys/mkmf"
5
6# Builds the Rust cdylib beside this file and installs it as
7# lib/hx_ruby/hx_ruby.so, which lib/hx_ruby.rb then requires.
8create_rust_makefile("hx_ruby/hx_ruby")
Cargo dynamic library crate type Cargo.toml · lines 21–28
21:80…
22# with the gem's `require "hx_ruby/hx_ruby"`.
23name = "hx_ruby"
24crate-type = ["cdylib"]
25
26[dependencies]
27# The whole point: parse presets with hx-catalog's inspector, never a Ruby
28# reimplementation. hx-proto is the …

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.