Guides
Getting Started
Guides
Dependency Management
- How to manage application dependencies with Bundler
- How to manage dependencies with Bundler
- How to update gems with Bundler
- How to manage groups of gems
- How to install gems from git repositories
- Recommended Workflow with Version Control
- How to use Bundler with Ruby
- How to use Bundler in a single-file Ruby script
- How to deploy bundled applications
Gem Development
Publishing & Security
- Trusted Publishing
- Setting up multi-factor authentication
- Using multi-factor authentication in command line
- MFA requirement opt in
- Managing owners using UI
- Organizations
- Removing a Published gem
- Security Practices
Integrations
- How to use Bundler with Rails
- How to use Bundler with Sinatra
- How to use Bundler with Docker
- How to use Bundler with RubyMotion
Hosting & Sources
Extending
Troubleshooting
- How to troubleshoot RubyGems and Bundler TLS/SSL Issues
- SSL Certificate Update
- How to use git bisect with Bundler
Concepts
Reference
- gem Command Reference
- Bundler Command Reference
- Gemfile Reference
- Ruby Directive
- Specification Reference
- RubyGems.org API
- RubyGems.org API V2.0
- RubyGems.org Compact Index API
- RubyGems.org rate limits
- API key scopes
- Bundler compatibility with Ruby
- Known Bundler Plugins
Appendix
Everything about library management in Ruby: learn what gems are, how to use them in your projects, and how to build and publish your own.
Ruby libraries are packaged and distributed as gems. Two tools that ship with Ruby manage them: RubyGems installs individual gems and provides the gem command, and Bundler tracks the exact set of gems an application depends on through a Gemfile. RubyGems.org is the community hosting service where gems are published and downloaded.
# Install a gem and use it right away
gem install nokogiri
# Track dependencies for a project
bundle init
bundle add rack
Getting Started
New to gems? Follow the tutorial from installing your first gem to publishing your own.
Guides
Task-oriented how-tos for everyday work with gems.
Concepts
How library management in Ruby works under the hood.
Reference
Commands, file formats, and APIs in full detail.