This guide explains how to release a new version of the uptrace-ruby gem to RubyGems.
On Ubuntu, install Ruby with rbenv:
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv init
rbenv install -l
rbenv install 3.4.8
rbenv global 3.4.8To view outdated dependencies:
bundle outdatedEdit the Gemfile to update dependency versions, then update the
Gemfile.lock:
bundle updateTo install all dependencies:
bundle installBefore releasing, ensure all tests pass:
rake testTo run linter:
bundle exec rakeTo auto-correct issues:
bundle exec rubocop -A-
Update the version: Bump the version number in
lib/uptrace/version.rb -
Build and publish the gem:
gem build uptrace.gemspec bundle install gem push uptrace-X.Y.Z.gem
Replace
X.Y.Zwith the actual version number you specified in step 1.
Note: Make sure you have the necessary permissions to push to the uptrace gem on RubyGems before attempting to publish.