# \[ANN\] RubyGems 0.9.1

**URL:** <https://www.ruby-forum.com/t/ann-rubygems-0-9-1/102647>\
**Category:** Rails\
**Created:** [January 16, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/ann-rubygems-0-9-1/102647 "2007-01-16T23:49:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [January 16, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/ann-rubygems-0-9-1/102647/1 "2007-01-16T23:49:10Z")

</div>

= Announce: RubyGems Release 0.9.1

Finally, the much anticipated RubyGems version 0.9.1 is now available.  
This release includes a number of new features and bug fixes.

The most important change in RubyGems 0.9.1 is that RubyGems no  
longer allows files to be installed outside of the installation  
directory. A separate security bulletin with full details will be  
posted shortly.

RubyGems 0.9.1 is a required update. The RubyForge gem repository  
will soon disallow installation by older versions of RubyGems.  
Manual installation will still be allowed.

== Upgrade note

While require\_gem was deprecated in 0.9.0, the bin stubs are still  
using it (oops!). To get rid of the warnings printed by rake or  
other bin stubs simply run ‘gem pristine --all’.

== Changes in RubyGems 0.9.1

Major changes include:

- RubyGems no longer allows installation of files outside the gem  
directory
- #require\_gem will now print a warning, use #gem instead
- RubyGems now requires ruby 1.8.2 or greater
- RubyGems is -w clean

Minor changes include:

- gem command changes
  - new gem pristine command
  - new gem outdated command
  - new gem sources command
  - gem uninstall can uninstall multiple gems
  - gem install uses the cache instead of downloading
  - gem install returns non-zero exit code on failure
  - gem install can now set shebang on bin stubs (env or ruby)
  - gem help output now fits in 80 columns

- many proxy installation improvements
- gem cert improvements
- RubyGems is now easier to use as a library
  - Easier programatic installs
  - Easier inspection of local and remote gems

- extension building enhancements
- error reporting enhancements (less odd exceptions)
- require now loads .jar files

Bug fixes:

- installing from scratch fixed
- gem install --force forces
- installing from read-only location works
- gem uninstall requires full name
- gem install obeys GEM\_HOME for bin scripts
- RubyGems now installs on ruby 1.9
- fixed issue with Gem::Specification#hash for JRuby
- RubyGems now installs RDoc and ri for itself
- RubyGems is now tab-free

== What is RubyGems?

RubyGems is a package management system for Ruby applications and  
libraries. RubyGems’ one command download makes installing Ruby software  
fun and enjoyable again.

Many gems are available for download from the RubyForge site. Browse  
the list of gems with a “gem list --remote” command and download what  
you need with a simple “gem install ”. RubyGems takes care  
of the details of installing, not only the gem you requested, but also  
any gems needed by the software you selected.

== RubyGems Statistics

- About 1250 different gems are available from RubyForge
- Over 540 thousand downloads of the RubyGems software
- Over 8 million gem downloads

If you are interested in finding out when new gems are released, I  
maintain an RSS feed at [http://onestepback.org/gemwatch.rss](http://onestepback.org/gemwatch.rss).

== How can I get RubyGems?

If you have a recent version of RubyGems (0.8.5 or later), then all  
you need to do is:

$ gem update --system # you might need to be admin/root  
$ gem pristine --all # … here too

(Note: You may have to run the command twice if you have any previosly  
installed rubygems-update gems).

If you have an older version of RubyGems installed, then you can still  
do it in two steps:

$ gem install rubygems-update # again, might need to be admin/root  
$ update\_rubygems # … here too  
$ gem pristine --all # and here

If you don’t have any gems install, there is still the pre-gem  
approach to getting software, doing it manually:

1. DOWNLOAD FROM: [http://rubyforge.org/frs/?group\_id=126](http://rubyforge.org/frs/?group_id=126)
2. UNPACK INTO A DIRECTORY AND CD THERE
3. INSTALL WITH: ruby setup.rb all (you may need admin/root privilege)

== What’s Next

For RubyGems 0.9.2 the RubyGems team is looking to add:

- Integration of local and remote installation
- Automatic installation of platform-specific gems

== Thanks

Contributors to this release include:

Anatol P., Gavin S., David L., Ryan D., Robert J.,  
Chris M., Sylvain J., Sava C., Tom P., Kevin C.,  
Andy Shen.

Keep those gems coming!

– Eric H. (for the RubyGems team)

---

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [January 17, 2007, 12:19am UTC](https://www.ruby-forum.com/t/ann-rubygems-0-9-1/102647/2 "2007-01-17T00:19:14Z")

</div>

Eric,

I attempted to update from 0.9.0 to 0.9.1, but to no avail.  
gem update --system ran without incident.  
However, gem pristine --all failed as the pristine command could not be  
found.

I’m running on Mac OS X 10.4.8 with version 1.8.5 of Ruby. I ran gem  
update --system twice. Below is the console output from the first  
attempt.

Thanks,  
Jeff

$ gem --version  
0.9.0  
$ sudo gem update --system  
Password:  
Updating RubyGems…  
Need to update 24 gems from [http://gems.rubyforge.org](http://gems.rubyforge.org)  
…  
complete  
Attempting remote update of rubygems-update  
Successfully installed rubygems-update-0.9.0  
Updating version of RubyGems to 0.9.0  
Installing RubyGems 0.9.0  
—\> bin  
\<— bin  
—\> lib  
—\> lib/rbconfig  
\<— lib/rbconfig  
—\> lib/rubygems  
\<— lib/rubygems  
\<— lib  
—\> bin  
\<— bin  
—\> lib  
—\> lib/rbconfig  
\<— lib/rbconfig  
—\> lib/rubygems  
\<— lib/rubygems  
\<— lib  
rm -f InstalledFiles  
—\> bin  
mkdir -p /usr/local/bin/  
install gem /usr/local/bin/  
install gem\_mirror /usr/local/bin/  
install gem\_server /usr/local/bin/  
install gemlock /usr/local/bin/  
install gemri /usr/local/bin/  
install gemwhich /usr/local/bin/  
install index\_gem\_repository.rb /usr/local/bin/  
install update\_rubygems /usr/local/bin/  
\<— bin  
—\> lib  
mkdir -p /usr/local/lib/ruby/site\_ruby/1.8/  
install gemconfigure.rb /usr/local/lib/ruby/site\_ruby/1.8/  
install rubygems.rb /usr/local/lib/ruby/site\_ruby/1.8/  
install ubygems.rb /usr/local/lib/ruby/site\_ruby/1.8/  
—\> lib/rbconfig  
mkdir -p /usr/local/lib/ruby/site\_ruby/1.8/rbconfig  
install datadir.rb /usr/local/lib/ruby/site\_ruby/1.8/rbconfig  
\<— lib/rbconfig  
—\> lib/rubygems  
mkdir -p /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install builder.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install cmd\_manager.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install command.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install config\_file.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install custom\_require.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install dependency\_list.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install doc\_manager.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install format.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install gem\_commands.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install gem\_openssl.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install gem\_runner.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install incremental\_fetcher.rb  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install installer.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install loadpath\_manager.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install old\_format.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install open-uri.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install package.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install remote\_installer.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install rubygems\_version.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install security.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install source\_index.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install specification.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install timer.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install user\_interaction.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install validator.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
install version.rb /usr/local/lib/ruby/site\_ruby/1.8/rubygems  
\<— lib/rubygems  
\<— lib

As of RubyGems 0.8.0, library stubs are no longer needed.  
Searching $LOAD\_PATH for stubs to optionally delete (may take a  
while)…  
…done.  
No library stubs found.

Successfully built RubyGem  
Name: sources  
Version: 0.0.1  
File: sources-0.0.1.gem  
RubyGems system software updated  
$ sudo gem pristine --all  
ERROR: While executing gem … (RuntimeError)  
Unknown command pristine  
Kiriad:/Library/WebServer/Rails/acklife kamakiri$ gem --version  
0.9.0

---

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [January 17, 2007, 2:46am UTC](https://www.ruby-forum.com/t/ann-rubygems-0-9-1/102647/3 "2007-01-17T02:46:31Z")

</div>

Download and build from source, per Eric’s instructions. Otherwise you  
will  
install 0.9.0.

> > >

1. DOWNLOAD FROM: [http://rubyforge.org/frs/?group\_id=126](http://rubyforge.org/frs/?group_id=126)
2. UNPACK INTO A DIRECTORY AND CD THERE
3. INSTALL WITH: ruby setup.rb all (you may need admin/root privilege)

> > >

Jeff-168 wrote:

> update --system twice. Below is the console output from the first  
> attempt.
> 
> Thanks,  
> Jeff
> 
> $ gem --version  
> 0.9.0

–  
View this message in context:  
[http://www.nabble.com/-Rails---ANN--RubyGems-0.9.1-tf3024110.html#a8402762](http://www.nabble.com/-Rails---ANN--RubyGems-0.9.1-tf3024110.html#a8402762)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [January 17, 2007, 3:29am UTC](https://www.ruby-forum.com/t/ann-rubygems-0-9-1/102647/4 "2007-01-17T03:29:34Z")

</div>

Download and build from source, per Eric’s instructions. Otherwise you  
will  
install 0.9.0.

> > >

1. DOWNLOAD FROM: [http://rubyforge.org/frs/?group\_id=126](http://rubyforge.org/frs/?group_id=126)
2. UNPACK INTO A DIRECTORY AND CD THERE
3. INSTALL WITH: ruby setup.rb all (you may need admin/root privilege)

> > >

Jeff-168 wrote:

> update --system twice. Below is the console output from the first  
> attempt.
> 
> Thanks,  
> Jeff
> 
> $ gem --version  
> 0.9.0

–  
View this message in context:  
[http://www.nabble.com/-Rails---ANN--RubyGems-0.9.1-tf3024110.html#a8402877](http://www.nabble.com/-Rails---ANN--RubyGems-0.9.1-tf3024110.html#a8402877)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [January 17, 2007, 4:17am UTC](https://www.ruby-forum.com/t/ann-rubygems-0-9-1/102647/5 "2007-01-17T04:17:41Z")

</div>

On Jan 16, 2007, at 15:18, Jeff wrote:

> attempt.  
> …  
> complete  
> Attempting remote update of rubygems-update  
> Successfully installed rubygems-update-0.9.0

Sorry, currently the gem index is offline due to the poisoning of  
Hoe, so new gems are not being index (including RubyGems).

You’ll have to manually download, install, then run the  
update\_rubygems command.

Tom is working hard on this, so it should be ready to go again soon.

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)

I LIT YOUR GEM ON FIRE!

---

<div class="post-metadata">

**Author:** ![miracleofmagick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Post date:** [January 17, 2007, 3:51am UTC](https://www.ruby-forum.com/t/ann-rubygems-0-9-1/102647/6 "2007-01-17T03:51:39Z")

</div>

On 1/16/07, Jeff [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Eric,
> 
> I attempted to update from 0.9.0 to 0.9.1, but to no avail.  
> gem update --system ran without incident.  
> However, gem pristine --all failed as the pristine command could not be  
> found.

that happened to me too (debian), so i tried the second method mentioned  
and  
it worked:

$ gem install rubygems-update # again, might need to be admin/root  
$ update\_rubygems # … here too  
$ gem pristine --all # and here

ed@laptop:~/ruby$ gem -v  
0.9.1
