[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] RubyGems 0.8.5

Jim Weirich

2/27/2005 1:35:00 AM

= Announce: RubyGems Release 0.8.5

Hello one and all. It is time for another RubyGems update. But first the
numbers.

Counting both the tarfile/zipfile download and the rubygem-update gem, we have
exceed 20,000 downloads of the RubyGems software, and this doesn't count the
number of RubyGems packages were downloaded as part of the Windows one-click
installer. New gems are being published all the time. It was just a week or
so ago when we saw the 200th gem released, and already we have more 213
unique gems available for download.

We have just released RubyGems 0.8.5. This latest version of RubyGems has
some new functionality, fixes a few bugs and makes some things look prettier.
There are more changes in the works, but we wanted to get the new stuff out
as fast as possible.

== Faster Source Cache

Do you know how you used to dread getting the following message while
installing gems?

Updating Gem source index for: http://gems.rub...

It could take up to 30 seconds (on my machine, even worse on others) for that
crazy source index to update.

This latest release of RubyGems speeds that wait time up considerably. The
following table gives the following times for installing RedCloth with a
required source index update on three system we had available to us. No RDoc
generation was included in the following times.

RubyGems Linux Mac OSX Windows
0.8.4 33 secs 73 secs 58 secs
0.8.5 8 secs 14 secs 21 secs

The new caching code is at least 3x faster than previous versions. Woo Hoo!

== 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. (Ok, not really.)

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 <name-of-gem>". RubyGems takes care of the details of
installing, not only the gem you requested, but also any gems needed by the
software you selected.

So now you are asking ...

== How can I get all this great stuff?

Well, here's how ...

To download and install:

1. DOWNLOAD FROM: http://rubyforge.org/frs/?gr...
2. UNPACK INTO A DIRECTORY AND CD THERE
3. INSTALL WITH: ruby setup.rb all (you may need admin/root privilege)

... or, if you have an existing RubyGem installation ....

$ gem install rubygems-update (again, might need to be admin/root)
$ update_rubygems (... here too)

== So What's Changed in this Release?

* Fixed a bug where, during installation, partial matches on gem names
overshadowed an exact match on the gem name. Exact matches are now required.

* Applied Austin Ziegler/Kasper Schiess's patch to fix unit test running bug.

* Applied Lyle Johnson's patch to fix a problem with multiple require paths.

* "gem update" now accepts a list of gems and only updates the gems listed on
the command line. If no list is given then all gems are updated (which is
the bahvior of the previousversion.

* gem_server has been updated with a very nice looking template. Thanks to
Martin Ankerl.

* RubyGems now actively requires Ruby version 1.8.0 or better. Folks trying
to run RubyGems on OSX with the default Ruby installation will now get a
meaning error message (rather than mysteriously not working).

* Local source index caching is now /much/ faster. It now using Marshal
rather than Yaml.

* The update command now supports a --system option to update the RubyGems
software its self. After installing 0.8.5, updating RubyGems will be a one
step process.

* Dropped that really irritating warning about generating RDocs for packages
that didn't specify it had an RDoc. No one really cared about the message
and it was confusing to new users.

* Errors encountered while using require now corrctly reported.

* Misc. bug fixes. See the ChangeLog file for details.

== Thanks

I wish to give a special thanks to Lyle Johnson, Austing Ziegler, and Ksaper
Schiess for the patches they provided. And a big thanks to Martin Ankerl for
the HTML template upgrade to the gem_server package. It looks really great.

Keep those gems coming!

-- Jim & Chad (for the RubyGems team)

--
-- Jim Weirich jim@weirichhouse.org http://onest...
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)


22 Answers

James Britt

2/27/2005 2:21:00 AM

0

Jim Weirich wrote:
> = Announce: RubyGems Release 0.8.5
...

> == So What's Changed in this Release?
> ...
> * "gem update" now accepts a list of gems and only updates the gems listed on
> the command line. If no list is given then all gems are updated (which is
> the bahvior of the previousversion.

Sweet. Thanks.

James


James Britt

2/27/2005 3:04:00 AM

0

Jim Weirich wrote:
> = Announce: RubyGems Release 0.8.5
>


BTW, is this guide up-to-date?

http://rubygems.rubyforge.org/wiki/wiki.pl?Deve...


Is there a better "How to build a gem" guide one available online?



Thanks,


James


Chad Fowler

2/27/2005 4:06:00 AM

0

On Sun, 27 Feb 2005 12:03:53 +0900, James Britt
<jamesUNDERBARb@neurogami.com> wrote:
> Jim Weirich wrote:
> > = Announce: RubyGems Release 0.8.5
> >
>
> BTW, is this guide up-to-date?
>
> http://rubygems.rub.../wiki/wiki.pl?Deve...
>
> Is there a better "How to build a gem" guide one available online?
>

The RubyGems chapter of the Pickaxe2 is probably the best online guide
available right now. Jim has started a new documentation project
which will hopefully yield some nicer-than-wiki results. Stay tuned.

--

Chad Fowler
http://chad...
http://rubyc...
http://ruby...
http://rubygems.rub... (over 100,000 gems served!)


Marcel Molina Jr.

2/27/2005 5:44:00 AM

0

On Sun, Feb 27, 2005 at 10:34:34AM +0900, Jim Weirich wrote:
> == Faster Source Cache
>
> The new caching code is at least 3x faster than previous versions. Woo Hoo!

Usually I'm not one to split hairs about speed differences but this is very
welcome.

Thanks.

marcel
--
Marcel Molina Jr. <marcel@vernix.org>


Shalev NessAiver

2/27/2005 12:11:00 PM

0

Yeah,

On Feb 27, 2005, at 12:43 AM, Marcel Molina Jr. wrote:
>
> Usually I'm not one to split hairs about speed differences but this is
> very
> welcome.
>

But now you're splitting hairs 3x faster!



Chad Fowler

2/27/2005 1:39:00 PM

0

On Sun, 27 Feb 2005 14:43:43 +0900, Marcel Molina Jr. <marcel@vernix.org> wrote:
> On Sun, Feb 27, 2005 at 10:34:34AM +0900, Jim Weirich wrote:
> > == Faster Source Cache
> >
> > The new caching code is at least 3x faster than previous versions. Woo Hoo!
>
> Usually I'm not one to split hairs about speed differences but this is very
> welcome.
>
> Thanks.
>

Marcel, are you saying that based on the numbers Jim published or your
actual experience? I'm hoping to hear confirmation that it _feels_
faster for people. It definitely did for us!

--

Chad Fowler
http://chad...
http://rubyc...
http://ruby...
http://rubygems.rub... (over 100,000 gems served!)


Marcel Molina Jr.

2/27/2005 2:39:00 PM

0

On Sun, Feb 27, 2005 at 10:38:59PM +0900, Chad Fowler wrote:
> > > == Faster Source Cache
> > >
> > > The new caching code is at least 3x faster than previous versions. Woo Hoo!
> >
> > Usually I'm not one to split hairs about speed differences but this is very
> > welcome.
>
> Marcel, are you saying that based on the numbers Jim published or your
> actual experience? I'm hoping to hear confirmation that it _feels_
> faster for people. It definitely did for us!

I've experienced this in person. A substantial difference. I don't dread
running 'gem list -r' anymore (emoticon).

marcel
--
Marcel Molina Jr. <marcel@vernix.org>


Jim Freeze

2/27/2005 3:12:00 PM

0

* Jim Weirich <jim@weirichhouse.org> [2005-02-27 10:34:34 +0900]:

> = Announce: RubyGems Release 0.8.5

Thanks for the nice update.

> == So What's Changed in this Release?
>
> * "gem update" now accepts a list of gems and only updates the gems listed on
> the command line. If no list is given then all gems are updated (which is
> the bahvior of the previousversion.

Now that I can update gems one at a time, it would be nice if I
could look at dependencies. For example, I would like to see
something like:

gem depends_on builder
rails-x.y

gem dependencies_of rails
Dependencies for rails x.y.z
- actionmailer-x.y
- actionpack-x.y
- builder-x.y
- rake-x.y
- ...

Can I do something like this now?

--
Jim Freeze
Code Red. Code Ruby


Chad Fowler

2/27/2005 10:37:00 PM

0

On Mon, 28 Feb 2005 00:11:42 +0900, Jim Freeze <jim@freeze.org> wrote:
> * Jim Weirich <jim@weirichhouse.org> [2005-02-27 10:34:34 +0900]:
>
> > = Announce: RubyGems Release 0.8.5
>
> Thanks for the nice update.
>
> > == So What's Changed in this Release?
> >
> > * "gem update" now accepts a list of gems and only updates the gems listed on
> > the command line. If no list is given then all gems are updated (which is
> > the bahvior of the previousversion.
>
> Now that I can update gems one at a time, it would be nice if I
> could look at dependencies. For example, I would like to see
> something like:
>
> gem depends_on builder
> rails-x.y
>
> gem dependencies_of rails
> Dependencies for rails x.y.z
> - actionmailer-x.y
> - actionpack-x.y
> - builder-x.y
> - rake-x.y
> - ...
>
> Can I do something like this now?
>

irb(main):026:0> Gem.cache.to_a.select {|g|
!g.last.dependencies.select{|d| d.name == "rake"}.empty?}.collect{|g|
g.first}
=> ["rails-0.9.4", "rails-0.9.5", "rails-0.10.0"]

In short, no :)

Probably a good one for the TODO list, though.

--

Chad Fowler
http://chad...
http://rubyc...
http://ruby...
http://rubygems.rub... (over 100,000 gems served!)


Chad Fowler

2/27/2005 11:11:00 PM

0

On Sun, 27 Feb 2005 10:34:34 +0900, Jim Weirich <jim@weirichhouse.org> wrote:
> = Announce: RubyGems Release 0.8.5
>
> Hello one and all. It is time for another RubyGems update.

When it rains, it pours!

Actually, Jim noticed a small but potentially very inconvenient bug in
my shebang-line logic (Ryan, your feature request is in, by the way).
Hopefully Jim caught it before any of you had to.

So, we've just released RubyGems 0.8.6. This is a great chance for
RubyGems 0.8.5 users to try the (new in 0.8.5) feature:

$ gem update --system

This should automatically download and install the upgrade.

Users of 0.8.4 can do the ole faithful:

$ gem install rubygems-update
$ update_rubygems


And, of course, for those of you new to RubyGems, there's always the
RubyGems file release area:

http://rubyforge.org/frs/?gr...

...from which you can download a .zip or .tar.gz file and install using:

$ ruby setup.rb


Thanks!

--

Chad Fowler
http://chad...
http://rubyc...
http://ruby...
http://rubygems.rub... (over 100,000 gems served!)