
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@freestyle-sh/with-ruby
Advanced tools
Ruby runtime via [RVM](https://rvm.io) for [Freestyle](https://freestyle.sh) VMs.
Ruby runtime via RVM for Freestyle VMs.
npm install @freestyle-sh/with-ruby freestyle
import { freestyle } from "freestyle";
import { VmRuby } from "@freestyle-sh/with-ruby";
const { vm } = await freestyle.vms.create({
with: {
ruby: new VmRuby(),
},
});
const res = await vm.ruby.runCode({
code: "require 'json'; puts JSON.generate({ hello: 'world' })"
});
console.log(res);
// { result: { hello: 'world' }, stdout: '{"hello":"world"}\n', statusCode: 0 }
new VmRuby({
version: "3.3.6", // Optional: specific Ruby version (default: "3.4.8")
})
| Option | Type | Default | Description |
|---|---|---|---|
version | string | "3.4.8" | Ruby version to install via RVM. |
vm.ruby.runCode({ code: string })Executes Ruby code in the RVM-managed Ruby runtime.
Returns: Promise<RunCodeResponse>
type RunCodeResponse<Result> = {
result: Result; // Parsed JSON from stdout (if valid JSON)
stdout?: string; // Raw stdout output
stderr?: string; // Raw stderr output
statusCode?: number; // Exit code
};
vm.ruby.install(options?)Installs gems via gem install or bundle install.
Returns: Promise<InstallResult>
// Install specific gems
await vm.ruby.install({ deps: ["nokogiri", "colorize"] });
// Install from Gemfile (bundle install)
await vm.ruby.install();
await vm.ruby.install({ directory: "/app" });
type InstallOptions =
| { deps: string[] }
| { directory?: string; deps?: undefined };
type InstallResult = {
success: boolean;
stdout?: string;
stderr?: string;
};
FAQs
Ruby runtime via [RVM](https://rvm.io) for [Freestyle](https://freestyle.sh) VMs.
We found that @freestyle-sh/with-ruby demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.