ruby / rubygems
git clone https://github.com/ruby/rubygems.git
v4.0.23 · 8d ago
🔥 on GitHub Trending today
Library packaging and distribution for Ruby.
+0
stars, 24h · #15,521
+~0
stars, 7 days · #16,016
+20
stars, 30 days · #22,148
4.0k
★ total
1.9k
forks · 165 open issues
Star history (as recorded here)
LanguageRuby
License—
Created2010-04-16 (16y ago)
Last push7d ago
Watchers168
OwnerOrganization
Seen on GitHub Trending
- 2026-10-22 — #15 monthly in ruby · +22 ★
- 2026-10-21 — #15 monthly in ruby · +20 ★
- 2026-10-20 — #13 monthly in ruby · +20 ★
GitHub topics
Links
- GitHub: github.com/ruby/rubygems
- Homepage: https://rubygems.org/
- Releases · Issues · Hacker News mentions
README excerpt
# RubyGems RubyGems is a package management framework for Ruby. A package (also known as a library) contains a set of functionality that can be invoked by a Ruby program, such as reading and parsing an XML file. We call these packages "gems" and RubyGems is a tool to install, create, manage and load these packages in your Ruby environment. RubyGems is also a client for RubyGems.org, a public repository of Gems that allows you to publish a Gem that can be shared and used by other developers. See our guide on publishing a Gem at guides.rubygems.org ## Getting Started Installing and managing a Gem is done through the `gem` command. To install a Gem such as [Faraday][faraday]: [code] [faraday]: https://github.com/lostisland/faraday?tab=readme-ov-file RubyGems will download the Faraday Gem from RubyGems.org and install it into your Ruby environment. Finally, inside your Ruby program, load the Faraday gem and start hacking: [code] For more information about how to use RubyGems, see our RubyGems basics guide at guides.rubygems.org ## Bundler Bundler makes sure Ruby applications run the same code on every machine. It is developed in this repository and ships with Ruby. It does this by managing the gems that the application depends on. Given a list of gems, it can automatically download and install those gems, as well as any other gems needed by the gems that are listed. Before installing gems, it checks the versions of every gem to make sure that they are compatible, and can all be loaded at the same time. After the gems have been installed, Bundler can help you update some or all of them when new versions become available. Finally, it records the exact versions that have been installed, so that others can install the exact same gems. For example, these commands will allow you to use Bundler to manage the `rspec` gem for your application: [code] For more information about how to use Bundler, see the guides at guides.rubygems.org ## Requirements * RubyGems supports Ruby 3.0 or later. ## Installation RubyGems is already installed in your Ruby environment, you can check the version you have installed by running `gem --version` in your terminal emulator. In some cases Ruby & RubyGems may be provided as OS packages. This is not a recommended way to use Ruby & RubyGems. It's better to use a Ruby Version Manager, such as rbenv or chruby. If you still want to use the version provided by your OS package manager, please also use your OS package manager to upgrade rubygems, and disregard any other installation instructions given below. If you would like to manually install RubyGems: * Download from https://rubygems.org/pages/download, unpack, and `cd` into RubyGems' src * OR clone this repository and `cd` into the repository Install RubyGems by running: $ ruby setup.rb For more details and other options, see: $ ruby setup.rb --help ## Upgrading RubyGems To upgrade to the latest RubyGems, run: $ gem update --system See UPGRADING for more details and alterna