Applying patches to gems


#1

Hi, I sent this query over to the Rails list, but no joy there.

In general, how do you apply a patch to an installed gem? Do you have
to get the gem src and rebuild the gem, then reinstall? Or, since it
is just ruby code, can you apply it in place in the gem’s library
folder.

I am specifically talking about the patch Ticket #2245:
as_clean_logger_rb-fixed.patch.
which fixes the Rails 0.13/Ruby 1.8.3 Logger problem.

Thanks
Ed


#2

Ed Howland wrote:

Hi, I sent this query over to the Rails list, but no joy there.

In general, how do you apply a patch to an installed gem? Do you have
to get the gem src and rebuild the gem, then reinstall? Or, since it
is just ruby code, can you apply it in place in the gem’s library
folder.

Why not just fix what’s broken and release a new version?

If this is just for you, then just change the code in the gem’s lib
folder.

James

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools


#3

On 11/30/05, Ed Howland removed_email_address@domain.invalid wrote:

Or, since it
is just ruby code, can you apply it in place in the gem’s library
folder.

that’s it.

Dave