#!/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