• Stars
    star
    3,401
  • Rank 12,537 (Top 0.3 %)
  • Language
    Ruby
  • License
    Other
  • Created about 14 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Library packaging and distribution for Ruby.

RubyGems Maintainability

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 Nokogiri which lets you read and parse XML in Ruby:

$ gem install nokogiri

RubyGems will download the Nokogiri Gem from RubyGems.org and install it into your Ruby environment.

Finally, inside your Ruby program, load the Nokogiri gem and start parsing your XML:

require 'nokogiri'

Nokogiri.XML('<h1>Hello World</h1>')

For more information about how to use RubyGems, see our RubyGems basics guide 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:

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 alternative instructions.

Release policy

RubyGems and Bundler are released in sync, although they do not share their major version number. It is planned that also their major version numbers will be sync'ed in the future.

The release policy is somewhat similar to the release policy of Ruby itself:

  • Frequent patch releases (every 2-4 weeks) including bug fixes, minor enhancements, small features, or even medium sized features declared as experimental for battle testing.
  • Yearly minor releases including bigger features, and minor breaking changes (affecting only edge cases and a very small set of users).
  • Occasional major releases (replacing yearly minors) including major breaking changes.

Documentation

RubyGems uses rdoc for documentation. A compiled set of the docs can be viewed online at rubydoc.

RubyGems also provides a comprehensive set of guides which covers numerous topics such as creating a new gem, security practices and other resources at https://guides.rubygems.org

Getting Help

Filing Tickets

Got a bug and you're not sure? You're sure you have a bug, but don't know what to do next? In any case, let us know about it! The best place for letting the RubyGems team know about bugs or problems you're having is on the RubyGems issues page at GitHub.

Bundler Compatibility

See https://bundler.io/compatibility for known issues.

Supporting

RubyGems is managed by Ruby Central, a non-profit organization that supports the Ruby community through projects like this one, as well as RubyConf, RailsConf, and RubyGems.org. You can support Ruby Central by attending or sponsoring a conference, or by joining as a supporting member.

Contributing

If you'd like to contribute to RubyGems, that's awesome, and we <3 you. Check out our guide to contributing for more information.

Code of Conduct

Everyone interacting in the RubyGems project’s codebases, issue trackers, chat rooms, and mailing lists is expected to follow the contributor code of conduct.

More Repositories

1

bundler

Manage your Ruby application's gem dependencies
Ruby
4,865
star
2

rubygems.org

The Ruby community's gem hosting service.
Ruby
2,209
star
3

gemstash

A RubyGems.org cache and private gem server
Ruby
736
star
4

rubygems-mirror

The `gem mirror` RubyGems command, creates local mirrors of all gems from a remote gem source.
Ruby
266
star
5

guides

An effort to provide awesome documentation for the RubyGems ecosystem.
SCSS
149
star
6

gems

Ruby wrapper for the RubyGems.org API
Ruby
124
star
7

bundler-site

The Bundler documentation website
Haml
108
star
8

rubygems-aws

DEPRECATED: Chef repo for running RubyGems.org on AWS.
Ruby
102
star
9

gemcutter

The gemcutter gem, the rails app has been moved to http://github.com/rubygems/rubygems.org
Ruby
65
star
10

rubygems-test

An attempt to replace the testing facility in rubygems via a test plugin.
Ruby
48
star
11

bundler-api

Bundler 1.1+ API
Ruby
46
star
12

rubygems-chef

The new RubyGems.org infrastructure.
Perl
41
star
13

rfcs

RubyGems + Bundler RFCs
40
star
14

rubygems-status

DEPRECATED 1/7/2016 A simple rails app to show the status of rubygems.org infrastructure
CSS
37
star
15

ruby-ssl-check

Ruby
34
star
16

rubygems.org-configs

The config files used to run rubygems.org
Ruby
30
star
17

bundler-features

Bundler feature requests and discussion
28
star
18

rubygems.github.io

the blog, for rubygems!
SCSS
20
star
19

bundler-compose

A bundler plugin to allow composing new gems into an existing bundle
Ruby
18
star
20

adoption-center

The RubyGems Adoption Center - RGSoC 2015
HTML
17
star
21

gemx

Ruby
15
star
22

bundler-graph

Ruby
14
star
23

new-index

Prototype and documentation of the new gem index format
Ruby
12
star
24

postit

A Bundler Version Manager
Ruby
11
star
25

rubygems-server

Ruby
10
star
26

rubygems-verification

Tools and data used to verify gems on rubygems.org
Ruby
10
star
27

compact_index

implements the response logic for the compact index format and to manage the versions file
Ruby
8
star
28

cacache-rb

Ruby
7
star
29

install

A simple remote eval installer with tarball unpacker (the easy way to install/update RubyGems)
Ruby
7
star
30

shipit

Ruby
6
star
31

stat-update

A very fast libev+libebb+hiredis server to update rubygems stats on the fly
C
6
star
32

meg

Quick commands to help administer and support RubyGems.org.
Shell
6
star
33

contribute

One site to show all related RubyGems ecosystem projects and help developers get involved
Ruby
6
star
34

bundlerbot

A bot that loves to help
JavaScript
5
star
35

bundler.github.io

The Bundler website, generated by https://github.com/rubygems/bundler-site
HTML
5
star
36

docs

RubyGems Manuals.
Ruby
5
star
37

search

DEPRECATED
Ruby
3
star
38

issue-triage

issue triage bot
Ruby
3
star
39

rubygems.org-backup

This is a BACKUP repo for rubygems.org before the history rewrite. Do not use. No pull requests please.
Ruby
3
star
40

rubygems.org-vendor

Submodule cache of gems to make RubyGems.org development easier!
3
star
41

rubygems-lita

A Lita chat bot for RubyGems/Bundler
Ruby
2
star
42

bundler-changelog

Ruby
1
star
43

compact_index_client

Ruby
1
star
44

apt-tools

Scripts for managing the apt repositories used for RubyGems.org machines.
Shell
1
star
45

bundler-gem

The Bundler gem creator
1
star
46

configure-rubygems-credentials

Configure rubygems.org credential environment variables for use in other GitHub Actions.
TypeScript
1
star
47

bundler-slackin

The Bundler Slack inviter
JavaScript
1
star