-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby 3.3.0 | ||
ruby 3.3.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,31 @@ | ||
## How to update Gems when some Gems are vulnerable | ||
|
||
- Update ruby to the latest version in [.tool-versions](./tool-versions) | ||
- Update Bundler to the latest version with `gem install bundler` | ||
- Use the latest version of Bundler to manage Gemfile.lock `bundle update --bundler`. | ||
- Update Gems with `bundle update`. | ||
``` | ||
# Run bash shell, if you are not using it already | ||
bash | ||
# Clean PATH | ||
export PATH="" | ||
# Initialize PATH | ||
. /etc/profile | ||
# Bring in homebrew | ||
eval "$(/opt/homebrew/bin/brew shellenv)" | ||
# Assume you have install libyaml with homebrew, as ruby depends on it. | ||
# Bring in asdf | ||
. "$HOME"/.asdf/asdf.sh | ||
# Update ruby to the latest version in ./.tool-versions | ||
# Update Bundler to the latest version. | ||
gem install bundler | ||
# Use the latest version of Bundler to manage Gemfile.lock | ||
bundle update --bundler | ||
# Update Gems | ||
bundle update | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters