Skip to content

Commit

Permalink
fix(ruby): fix Ruby plugin to use ruby_install option correctly (jd…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhr authored and miguelmig committed Dec 21, 2024
1 parent b541c35 commit 0f0bf3b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/plugins/core/ruby.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ impl RubyPlugin {
fn lock_build_tool(&self) -> Result<fslock::LockFile> {
let settings = Settings::get();
let build_tool_path = if settings.ruby.ruby_install {
self.ruby_build_bin()
} else {
self.ruby_install_bin()
} else {
self.ruby_build_bin()
};
LockFile::new(&build_tool_path)
.with_callback(|l| {
Expand All @@ -65,10 +65,11 @@ impl RubyPlugin {
let pr = ctx.map(|ctx| ctx.pr.as_ref());
if SETTINGS.ruby.ruby_install {
self.update_ruby_install(pr)
.wrap_err("failed to update ruby-install")?;
.wrap_err("failed to update ruby-install")
} else {
self.update_ruby_build(pr)
.wrap_err("failed to update ruby-build")
}
self.update_ruby_build(pr)
.wrap_err("failed to update ruby-build")
}

fn install_ruby_build(&self, pr: Option<&dyn SingleReport>) -> Result<()> {
Expand Down

0 comments on commit 0f0bf3b

Please sign in to comment.