Files
coredesktop/updates.d/40-ruby.sh
T
2026-10-26 11:22:03 -06:00

17 lines
500 B
Bash

#!/bin/bash
# Answer yes to any mise prompt (e.g. trusting config files)
export MISE_YES=1
echo "Updating mise..."
mise self-update -y
echo "Updating Ruby and Rails..."
mise upgrade --bump ruby
mise reshim
# A new Ruby's bundled gems (e.g. minitest) come with executables RubyGems
# doesn't recognise as its own, so gem update stops to ask whether to overwrite
# them. Regenerating them first lets the update go through without asking.
gem pristine --all --only-executables > /dev/null
gem update